configure 849 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998
  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. PKG_CONFIG_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. PKG_CONFIG_LIBDIR
  642. PKG_CONFIG_PATH
  643. PKG_CONFIG
  644. SET_MAKE
  645. INSTALL_DATA
  646. INSTALL_SCRIPT
  647. INSTALL_PROGRAM
  648. CXXCPP
  649. ac_ct_CXX
  650. CXXFLAGS
  651. CXX
  652. LT_AGE
  653. LT_REVISION
  654. LT_CURRENT
  655. LT_RELEASE
  656. RC
  657. CPP
  658. OTOOL64
  659. OTOOL
  660. LIPO
  661. NMEDIT
  662. DSYMUTIL
  663. MANIFEST_TOOL
  664. AWK
  665. RANLIB
  666. STRIP
  667. ac_ct_AR
  668. AR
  669. LN_S
  670. NM
  671. ac_ct_DUMPBIN
  672. DUMPBIN
  673. LD
  674. FGREP
  675. EGREP
  676. GREP
  677. SED
  678. OBJEXT
  679. EXEEXT
  680. ac_ct_CC
  681. CPPFLAGS
  682. LDFLAGS
  683. CFLAGS
  684. CC
  685. host_os
  686. host_vendor
  687. host_cpu
  688. host
  689. build_os
  690. build_vendor
  691. build_cpu
  692. build
  693. LIBTOOL
  694. OBJDUMP
  695. DLLTOOL
  696. AS
  697. SDL_VERSION
  698. SDL_BINARY_AGE
  699. SDL_INTERFACE_AGE
  700. SDL_MICRO_VERSION
  701. SDL_MINOR_VERSION
  702. SDL_MAJOR_VERSION
  703. target_alias
  704. host_alias
  705. build_alias
  706. LIBS
  707. ECHO_T
  708. ECHO_N
  709. ECHO_C
  710. DEFS
  711. mandir
  712. localedir
  713. libdir
  714. psdir
  715. pdfdir
  716. dvidir
  717. htmldir
  718. infodir
  719. docdir
  720. oldincludedir
  721. includedir
  722. runstatedir
  723. localstatedir
  724. sharedstatedir
  725. sysconfdir
  726. datadir
  727. datarootdir
  728. libexecdir
  729. sbindir
  730. bindir
  731. program_transform_name
  732. prefix
  733. exec_prefix
  734. PACKAGE_URL
  735. PACKAGE_BUGREPORT
  736. PACKAGE_STRING
  737. PACKAGE_VERSION
  738. PACKAGE_TARNAME
  739. PACKAGE_NAME
  740. PATH_SEPARATOR
  741. SHELL'
  742. ac_subst_files=''
  743. ac_user_opts='
  744. enable_option_checking
  745. enable_shared
  746. enable_static
  747. with_pic
  748. enable_fast_install
  749. with_gnu_ld
  750. with_sysroot
  751. enable_libtool_lock
  752. enable_assertions
  753. enable_dependency_tracking
  754. enable_libc
  755. enable_gcc_atomics
  756. enable_atomic
  757. enable_audio
  758. enable_video
  759. enable_render
  760. enable_events
  761. enable_joystick
  762. enable_haptic
  763. enable_sensor
  764. enable_power
  765. enable_filesystem
  766. enable_threads
  767. enable_timers
  768. enable_file
  769. enable_loadso
  770. enable_cpuinfo
  771. enable_assembly
  772. enable_ssemath
  773. enable_mmx
  774. enable_3dnow
  775. enable_sse
  776. enable_sse2
  777. enable_sse3
  778. enable_altivec
  779. enable_oss
  780. enable_alsa
  781. with_alsa_prefix
  782. with_alsa_inc_prefix
  783. enable_alsatest
  784. enable_alsa_shared
  785. enable_jack
  786. enable_jack_shared
  787. enable_esd
  788. with_esd_prefix
  789. with_esd_exec_prefix
  790. enable_esdtest
  791. enable_esd_shared
  792. enable_pipewire
  793. enable_pipewire_shared
  794. enable_pulseaudio
  795. enable_pulseaudio_shared
  796. enable_arts
  797. enable_arts_shared
  798. enable_nas
  799. enable_nas_shared
  800. enable_sndio
  801. enable_sndio_shared
  802. enable_fusionsound
  803. enable_fusionsound_shared
  804. enable_diskaudio
  805. enable_dummyaudio
  806. enable_libsamplerate
  807. enable_libsamplerate_shared
  808. enable_arm_simd
  809. enable_arm_neon
  810. enable_video_wayland
  811. enable_video_wayland_qt_touch
  812. enable_wayland_shared
  813. enable_video_rpi
  814. enable_video_x11
  815. with_x
  816. enable_x11_shared
  817. enable_video_x11_xcursor
  818. enable_video_x11_xdbe
  819. enable_video_x11_xinerama
  820. enable_video_x11_xinput
  821. enable_video_x11_xrandr
  822. enable_video_x11_scrnsaver
  823. enable_video_x11_xshape
  824. enable_video_x11_vm
  825. enable_video_vivante
  826. enable_video_cocoa
  827. enable_video_metal
  828. enable_render_metal
  829. enable_video_directfb
  830. enable_directfb_shared
  831. enable_video_kmsdrm
  832. enable_kmsdrm_shared
  833. enable_video_dummy
  834. enable_video_opengl
  835. enable_video_opengles
  836. enable_video_opengles1
  837. enable_video_opengles2
  838. enable_video_vulkan
  839. enable_libudev
  840. enable_dbus
  841. enable_ime
  842. enable_ibus
  843. enable_fcitx
  844. enable_joystick_mfi
  845. enable_pthreads
  846. enable_pthread_sem
  847. enable_directx
  848. enable_xinput
  849. enable_wasapi
  850. enable_sdl_dlopen
  851. enable_hidapi
  852. enable_hidapi_libusb
  853. enable_clock_gettime
  854. enable_rpath
  855. enable_backgrounding_signal
  856. enable_foregrounding_signal
  857. enable_joystick_virtual
  858. enable_render_d3d
  859. enable_sdl2_config
  860. '
  861. ac_precious_vars='build_alias
  862. host_alias
  863. target_alias
  864. CC
  865. CFLAGS
  866. LDFLAGS
  867. LIBS
  868. CPPFLAGS
  869. CPP
  870. CXX
  871. CXXFLAGS
  872. CCC
  873. CXXCPP
  874. PKG_CONFIG
  875. PKG_CONFIG_PATH
  876. PKG_CONFIG_LIBDIR
  877. JACK_CFLAGS
  878. JACK_LIBS
  879. PIPEWIRE_CFLAGS
  880. PIPEWIRE_LIBS
  881. PULSEAUDIO_CFLAGS
  882. PULSEAUDIO_LIBS
  883. FUSIONSOUND_CFLAGS
  884. FUSIONSOUND_LIBS
  885. RPI_CFLAGS
  886. RPI_LIBS
  887. XMKMF
  888. DIRECTFB_CFLAGS
  889. DIRECTFB_LIBS
  890. LIBDRM_CFLAGS
  891. LIBDRM_LIBS
  892. LIBGBM_CFLAGS
  893. LIBGBM_LIBS
  894. DBUS_CFLAGS
  895. DBUS_LIBS
  896. IBUS_CFLAGS
  897. IBUS_LIBS
  898. LIBUSB_CFLAGS
  899. LIBUSB_LIBS'
  900. # Initialize some variables set by options.
  901. ac_init_help=
  902. ac_init_version=false
  903. ac_unrecognized_opts=
  904. ac_unrecognized_sep=
  905. # The variables have the same names as the options, with
  906. # dashes changed to underlines.
  907. cache_file=/dev/null
  908. exec_prefix=NONE
  909. no_create=
  910. no_recursion=
  911. prefix=NONE
  912. program_prefix=NONE
  913. program_suffix=NONE
  914. program_transform_name=s,x,x,
  915. silent=
  916. site=
  917. srcdir=
  918. verbose=
  919. x_includes=NONE
  920. x_libraries=NONE
  921. # Installation directory options.
  922. # These are left unexpanded so users can "make install exec_prefix=/foo"
  923. # and all the variables that are supposed to be based on exec_prefix
  924. # by default will actually change.
  925. # Use braces instead of parens because sh, perl, etc. also accept them.
  926. # (The list follows the same order as the GNU Coding Standards.)
  927. bindir='${exec_prefix}/bin'
  928. sbindir='${exec_prefix}/sbin'
  929. libexecdir='${exec_prefix}/libexec'
  930. datarootdir='${prefix}/share'
  931. datadir='${datarootdir}'
  932. sysconfdir='${prefix}/etc'
  933. sharedstatedir='${prefix}/com'
  934. localstatedir='${prefix}/var'
  935. runstatedir='${localstatedir}/run'
  936. includedir='${prefix}/include'
  937. oldincludedir='/usr/include'
  938. docdir='${datarootdir}/doc/${PACKAGE}'
  939. infodir='${datarootdir}/info'
  940. htmldir='${docdir}'
  941. dvidir='${docdir}'
  942. pdfdir='${docdir}'
  943. psdir='${docdir}'
  944. libdir='${exec_prefix}/lib'
  945. localedir='${datarootdir}/locale'
  946. mandir='${datarootdir}/man'
  947. ac_prev=
  948. ac_dashdash=
  949. for ac_option
  950. do
  951. # If the previous option needs an argument, assign it.
  952. if test -n "$ac_prev"; then
  953. eval $ac_prev=\$ac_option
  954. ac_prev=
  955. continue
  956. fi
  957. case $ac_option in
  958. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  959. *=) ac_optarg= ;;
  960. *) ac_optarg=yes ;;
  961. esac
  962. # Accept the important Cygnus configure options, so we can diagnose typos.
  963. case $ac_dashdash$ac_option in
  964. --)
  965. ac_dashdash=yes ;;
  966. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  967. ac_prev=bindir ;;
  968. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  969. bindir=$ac_optarg ;;
  970. -build | --build | --buil | --bui | --bu)
  971. ac_prev=build_alias ;;
  972. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  973. build_alias=$ac_optarg ;;
  974. -cache-file | --cache-file | --cache-fil | --cache-fi \
  975. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  976. ac_prev=cache_file ;;
  977. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  978. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  979. cache_file=$ac_optarg ;;
  980. --config-cache | -C)
  981. cache_file=config.cache ;;
  982. -datadir | --datadir | --datadi | --datad)
  983. ac_prev=datadir ;;
  984. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  985. datadir=$ac_optarg ;;
  986. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  987. | --dataroo | --dataro | --datar)
  988. ac_prev=datarootdir ;;
  989. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  990. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  991. datarootdir=$ac_optarg ;;
  992. -disable-* | --disable-*)
  993. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  994. # Reject names that are not valid shell variable names.
  995. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  996. as_fn_error $? "invalid feature name: $ac_useropt"
  997. ac_useropt_orig=$ac_useropt
  998. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  999. case $ac_user_opts in
  1000. *"
  1001. "enable_$ac_useropt"
  1002. "*) ;;
  1003. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1004. ac_unrecognized_sep=', ';;
  1005. esac
  1006. eval enable_$ac_useropt=no ;;
  1007. -docdir | --docdir | --docdi | --doc | --do)
  1008. ac_prev=docdir ;;
  1009. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1010. docdir=$ac_optarg ;;
  1011. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1012. ac_prev=dvidir ;;
  1013. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1014. dvidir=$ac_optarg ;;
  1015. -enable-* | --enable-*)
  1016. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1017. # Reject names that are not valid shell variable names.
  1018. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1019. as_fn_error $? "invalid feature name: $ac_useropt"
  1020. ac_useropt_orig=$ac_useropt
  1021. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1022. case $ac_user_opts in
  1023. *"
  1024. "enable_$ac_useropt"
  1025. "*) ;;
  1026. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1027. ac_unrecognized_sep=', ';;
  1028. esac
  1029. eval enable_$ac_useropt=\$ac_optarg ;;
  1030. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1031. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1032. | --exec | --exe | --ex)
  1033. ac_prev=exec_prefix ;;
  1034. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1035. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1036. | --exec=* | --exe=* | --ex=*)
  1037. exec_prefix=$ac_optarg ;;
  1038. -gas | --gas | --ga | --g)
  1039. # Obsolete; use --with-gas.
  1040. with_gas=yes ;;
  1041. -help | --help | --hel | --he | -h)
  1042. ac_init_help=long ;;
  1043. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1044. ac_init_help=recursive ;;
  1045. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1046. ac_init_help=short ;;
  1047. -host | --host | --hos | --ho)
  1048. ac_prev=host_alias ;;
  1049. -host=* | --host=* | --hos=* | --ho=*)
  1050. host_alias=$ac_optarg ;;
  1051. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1052. ac_prev=htmldir ;;
  1053. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1054. | --ht=*)
  1055. htmldir=$ac_optarg ;;
  1056. -includedir | --includedir | --includedi | --included | --include \
  1057. | --includ | --inclu | --incl | --inc)
  1058. ac_prev=includedir ;;
  1059. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1060. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1061. includedir=$ac_optarg ;;
  1062. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1063. ac_prev=infodir ;;
  1064. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1065. infodir=$ac_optarg ;;
  1066. -libdir | --libdir | --libdi | --libd)
  1067. ac_prev=libdir ;;
  1068. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1069. libdir=$ac_optarg ;;
  1070. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1071. | --libexe | --libex | --libe)
  1072. ac_prev=libexecdir ;;
  1073. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1074. | --libexe=* | --libex=* | --libe=*)
  1075. libexecdir=$ac_optarg ;;
  1076. -localedir | --localedir | --localedi | --localed | --locale)
  1077. ac_prev=localedir ;;
  1078. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1079. localedir=$ac_optarg ;;
  1080. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1081. | --localstate | --localstat | --localsta | --localst | --locals)
  1082. ac_prev=localstatedir ;;
  1083. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1084. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1085. localstatedir=$ac_optarg ;;
  1086. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1087. ac_prev=mandir ;;
  1088. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1089. mandir=$ac_optarg ;;
  1090. -nfp | --nfp | --nf)
  1091. # Obsolete; use --without-fp.
  1092. with_fp=no ;;
  1093. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1094. | --no-cr | --no-c | -n)
  1095. no_create=yes ;;
  1096. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1097. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1098. no_recursion=yes ;;
  1099. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1100. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1101. | --oldin | --oldi | --old | --ol | --o)
  1102. ac_prev=oldincludedir ;;
  1103. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1104. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1105. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1106. oldincludedir=$ac_optarg ;;
  1107. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1108. ac_prev=prefix ;;
  1109. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1110. prefix=$ac_optarg ;;
  1111. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1112. | --program-pre | --program-pr | --program-p)
  1113. ac_prev=program_prefix ;;
  1114. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1115. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1116. program_prefix=$ac_optarg ;;
  1117. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1118. | --program-suf | --program-su | --program-s)
  1119. ac_prev=program_suffix ;;
  1120. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1121. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1122. program_suffix=$ac_optarg ;;
  1123. -program-transform-name | --program-transform-name \
  1124. | --program-transform-nam | --program-transform-na \
  1125. | --program-transform-n | --program-transform- \
  1126. | --program-transform | --program-transfor \
  1127. | --program-transfo | --program-transf \
  1128. | --program-trans | --program-tran \
  1129. | --progr-tra | --program-tr | --program-t)
  1130. ac_prev=program_transform_name ;;
  1131. -program-transform-name=* | --program-transform-name=* \
  1132. | --program-transform-nam=* | --program-transform-na=* \
  1133. | --program-transform-n=* | --program-transform-=* \
  1134. | --program-transform=* | --program-transfor=* \
  1135. | --program-transfo=* | --program-transf=* \
  1136. | --program-trans=* | --program-tran=* \
  1137. | --progr-tra=* | --program-tr=* | --program-t=*)
  1138. program_transform_name=$ac_optarg ;;
  1139. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1140. ac_prev=pdfdir ;;
  1141. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1142. pdfdir=$ac_optarg ;;
  1143. -psdir | --psdir | --psdi | --psd | --ps)
  1144. ac_prev=psdir ;;
  1145. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1146. psdir=$ac_optarg ;;
  1147. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1148. | -silent | --silent | --silen | --sile | --sil)
  1149. silent=yes ;;
  1150. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1151. | --runstate | --runstat | --runsta | --runst | --runs \
  1152. | --run | --ru | --r)
  1153. ac_prev=runstatedir ;;
  1154. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1155. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1156. | --run=* | --ru=* | --r=*)
  1157. runstatedir=$ac_optarg ;;
  1158. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1159. ac_prev=sbindir ;;
  1160. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1161. | --sbi=* | --sb=*)
  1162. sbindir=$ac_optarg ;;
  1163. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1164. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1165. | --sharedst | --shareds | --shared | --share | --shar \
  1166. | --sha | --sh)
  1167. ac_prev=sharedstatedir ;;
  1168. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1169. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1170. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1171. | --sha=* | --sh=*)
  1172. sharedstatedir=$ac_optarg ;;
  1173. -site | --site | --sit)
  1174. ac_prev=site ;;
  1175. -site=* | --site=* | --sit=*)
  1176. site=$ac_optarg ;;
  1177. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1178. ac_prev=srcdir ;;
  1179. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1180. srcdir=$ac_optarg ;;
  1181. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1182. | --syscon | --sysco | --sysc | --sys | --sy)
  1183. ac_prev=sysconfdir ;;
  1184. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1185. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1186. sysconfdir=$ac_optarg ;;
  1187. -target | --target | --targe | --targ | --tar | --ta | --t)
  1188. ac_prev=target_alias ;;
  1189. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1190. target_alias=$ac_optarg ;;
  1191. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1192. verbose=yes ;;
  1193. -version | --version | --versio | --versi | --vers | -V)
  1194. ac_init_version=: ;;
  1195. -with-* | --with-*)
  1196. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1197. # Reject names that are not valid shell variable names.
  1198. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1199. as_fn_error $? "invalid package name: $ac_useropt"
  1200. ac_useropt_orig=$ac_useropt
  1201. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1202. case $ac_user_opts in
  1203. *"
  1204. "with_$ac_useropt"
  1205. "*) ;;
  1206. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1207. ac_unrecognized_sep=', ';;
  1208. esac
  1209. eval with_$ac_useropt=\$ac_optarg ;;
  1210. -without-* | --without-*)
  1211. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1212. # Reject names that are not valid shell variable names.
  1213. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1214. as_fn_error $? "invalid package name: $ac_useropt"
  1215. ac_useropt_orig=$ac_useropt
  1216. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1217. case $ac_user_opts in
  1218. *"
  1219. "with_$ac_useropt"
  1220. "*) ;;
  1221. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1222. ac_unrecognized_sep=', ';;
  1223. esac
  1224. eval with_$ac_useropt=no ;;
  1225. --x)
  1226. # Obsolete; use --with-x.
  1227. with_x=yes ;;
  1228. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1229. | --x-incl | --x-inc | --x-in | --x-i)
  1230. ac_prev=x_includes ;;
  1231. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1232. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1233. x_includes=$ac_optarg ;;
  1234. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1235. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1236. ac_prev=x_libraries ;;
  1237. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1238. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1239. x_libraries=$ac_optarg ;;
  1240. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1241. Try \`$0 --help' for more information"
  1242. ;;
  1243. *=*)
  1244. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1245. # Reject names that are not valid shell variable names.
  1246. case $ac_envvar in #(
  1247. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1248. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1249. esac
  1250. eval $ac_envvar=\$ac_optarg
  1251. export $ac_envvar ;;
  1252. *)
  1253. # FIXME: should be removed in autoconf 3.0.
  1254. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1255. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1256. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1257. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1258. ;;
  1259. esac
  1260. done
  1261. if test -n "$ac_prev"; then
  1262. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1263. as_fn_error $? "missing argument to $ac_option"
  1264. fi
  1265. if test -n "$ac_unrecognized_opts"; then
  1266. case $enable_option_checking in
  1267. no) ;;
  1268. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1269. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1270. esac
  1271. fi
  1272. # Check all directory arguments for consistency.
  1273. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1274. datadir sysconfdir sharedstatedir localstatedir includedir \
  1275. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1276. libdir localedir mandir runstatedir
  1277. do
  1278. eval ac_val=\$$ac_var
  1279. # Remove trailing slashes.
  1280. case $ac_val in
  1281. */ )
  1282. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1283. eval $ac_var=\$ac_val;;
  1284. esac
  1285. # Be sure to have absolute directory names.
  1286. case $ac_val in
  1287. [\\/$]* | ?:[\\/]* ) continue;;
  1288. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1289. esac
  1290. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1291. done
  1292. # There might be people who depend on the old broken behavior: `$host'
  1293. # used to hold the argument of --host etc.
  1294. # FIXME: To remove some day.
  1295. build=$build_alias
  1296. host=$host_alias
  1297. target=$target_alias
  1298. # FIXME: To remove some day.
  1299. if test "x$host_alias" != x; then
  1300. if test "x$build_alias" = x; then
  1301. cross_compiling=maybe
  1302. elif test "x$build_alias" != "x$host_alias"; then
  1303. cross_compiling=yes
  1304. fi
  1305. fi
  1306. ac_tool_prefix=
  1307. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1308. test "$silent" = yes && exec 6>/dev/null
  1309. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1310. ac_ls_di=`ls -di .` &&
  1311. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1312. as_fn_error $? "working directory cannot be determined"
  1313. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1314. as_fn_error $? "pwd does not report name of working directory"
  1315. # Find the source files, if location was not specified.
  1316. if test -z "$srcdir"; then
  1317. ac_srcdir_defaulted=yes
  1318. # Try the directory containing this script, then the parent directory.
  1319. ac_confdir=`$as_dirname -- "$as_myself" ||
  1320. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1321. X"$as_myself" : 'X\(//\)[^/]' \| \
  1322. X"$as_myself" : 'X\(//\)$' \| \
  1323. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1324. $as_echo X"$as_myself" |
  1325. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1326. s//\1/
  1327. q
  1328. }
  1329. /^X\(\/\/\)[^/].*/{
  1330. s//\1/
  1331. q
  1332. }
  1333. /^X\(\/\/\)$/{
  1334. s//\1/
  1335. q
  1336. }
  1337. /^X\(\/\).*/{
  1338. s//\1/
  1339. q
  1340. }
  1341. s/.*/./; q'`
  1342. srcdir=$ac_confdir
  1343. if test ! -r "$srcdir/$ac_unique_file"; then
  1344. srcdir=..
  1345. fi
  1346. else
  1347. ac_srcdir_defaulted=no
  1348. fi
  1349. if test ! -r "$srcdir/$ac_unique_file"; then
  1350. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1351. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1352. fi
  1353. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1354. ac_abs_confdir=`(
  1355. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1356. pwd)`
  1357. # When building in place, set srcdir=.
  1358. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1359. srcdir=.
  1360. fi
  1361. # Remove unnecessary trailing slashes from srcdir.
  1362. # Double slashes in file names in object file debugging info
  1363. # mess up M-x gdb in Emacs.
  1364. case $srcdir in
  1365. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1366. esac
  1367. for ac_var in $ac_precious_vars; do
  1368. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1369. eval ac_env_${ac_var}_value=\$${ac_var}
  1370. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1371. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1372. done
  1373. #
  1374. # Report the --help message.
  1375. #
  1376. if test "$ac_init_help" = "long"; then
  1377. # Omit some internal or obsolete options to make the list less imposing.
  1378. # This message is too long to be a string in the A/UX 3.1 sh.
  1379. cat <<_ACEOF
  1380. \`configure' configures this package to adapt to many kinds of systems.
  1381. Usage: $0 [OPTION]... [VAR=VALUE]...
  1382. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1383. VAR=VALUE. See below for descriptions of some of the useful variables.
  1384. Defaults for the options are specified in brackets.
  1385. Configuration:
  1386. -h, --help display this help and exit
  1387. --help=short display options specific to this package
  1388. --help=recursive display the short help of all the included packages
  1389. -V, --version display version information and exit
  1390. -q, --quiet, --silent do not print \`checking ...' messages
  1391. --cache-file=FILE cache test results in FILE [disabled]
  1392. -C, --config-cache alias for \`--cache-file=config.cache'
  1393. -n, --no-create do not create output files
  1394. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1395. Installation directories:
  1396. --prefix=PREFIX install architecture-independent files in PREFIX
  1397. [$ac_default_prefix]
  1398. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1399. [PREFIX]
  1400. By default, \`make install' will install all the files in
  1401. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1402. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1403. for instance \`--prefix=\$HOME'.
  1404. For better control, use the options below.
  1405. Fine tuning of the installation directories:
  1406. --bindir=DIR user executables [EPREFIX/bin]
  1407. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1408. --libexecdir=DIR program executables [EPREFIX/libexec]
  1409. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1410. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1411. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1412. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1413. --libdir=DIR object code libraries [EPREFIX/lib]
  1414. --includedir=DIR C header files [PREFIX/include]
  1415. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1416. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1417. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1418. --infodir=DIR info documentation [DATAROOTDIR/info]
  1419. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1420. --mandir=DIR man documentation [DATAROOTDIR/man]
  1421. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1422. --htmldir=DIR html documentation [DOCDIR]
  1423. --dvidir=DIR dvi documentation [DOCDIR]
  1424. --pdfdir=DIR pdf documentation [DOCDIR]
  1425. --psdir=DIR ps documentation [DOCDIR]
  1426. _ACEOF
  1427. cat <<\_ACEOF
  1428. X features:
  1429. --x-includes=DIR X include files are in DIR
  1430. --x-libraries=DIR X library files are in DIR
  1431. System types:
  1432. --build=BUILD configure for building on BUILD [guessed]
  1433. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1434. _ACEOF
  1435. fi
  1436. if test -n "$ac_init_help"; then
  1437. cat <<\_ACEOF
  1438. Optional Features:
  1439. --disable-option-checking ignore unrecognized --enable/--with options
  1440. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1441. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1442. --enable-shared[=PKGS] build shared libraries [default=yes]
  1443. --enable-static[=PKGS] build static libraries [default=yes]
  1444. --enable-fast-install[=PKGS]
  1445. optimize for fast installation [default=yes]
  1446. --disable-libtool-lock avoid locking (might break parallel builds)
  1447. --enable-assertions Enable internal sanity checks
  1448. (auto/disabled/release/enabled/paranoid)
  1449. [default=auto]
  1450. --enable-dependency-tracking
  1451. Use gcc -MMD -MT dependency tracking [default=yes]
  1452. --enable-libc Use the system C library [default=yes]
  1453. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1454. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1455. --enable-audio Enable the audio subsystem [default=yes]
  1456. --enable-video Enable the video subsystem [default=yes]
  1457. --enable-render Enable the render subsystem [default=yes]
  1458. --enable-events Enable the events subsystem [default=yes]
  1459. --enable-joystick Enable the joystick subsystem [default=yes]
  1460. --enable-haptic Enable the haptic (force feedback) subsystem
  1461. [default=yes]
  1462. --enable-sensor Enable the sensor subsystem [default=yes]
  1463. --enable-power Enable the power subsystem [default=yes]
  1464. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1465. --enable-threads Enable the threading subsystem [default=yes]
  1466. --enable-timers Enable the timer subsystem [default=yes]
  1467. --enable-file Enable the file subsystem [default=yes]
  1468. --enable-loadso Enable the shared object loading subsystem
  1469. [default=yes]
  1470. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1471. --enable-assembly Enable assembly routines [default=yes]
  1472. --enable-ssemath Allow GCC to use SSE floating point math
  1473. [default=maybe]
  1474. --enable-mmx use MMX assembly routines [default=yes]
  1475. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1476. --enable-sse use SSE assembly routines [default=yes]
  1477. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1478. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1479. --enable-altivec use Altivec assembly routines [default=yes]
  1480. --enable-oss support the OSS audio API [default=maybe]
  1481. --enable-alsa support the ALSA audio API [default=yes]
  1482. --disable-alsatest Do not try to compile and run a test Alsa program
  1483. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1484. --enable-jack use JACK audio [default=yes]
  1485. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1486. --enable-esd support the Enlightened Sound Daemon [default=yes]
  1487. --disable-esdtest Do not try to compile and run a test ESD program
  1488. --enable-esd-shared dynamically load ESD audio support [default=yes]
  1489. --enable-pipewire use Pipewire audio [default=yes]
  1490. --enable-pipewire-shared
  1491. dynamically load Pipewire support [default=yes]
  1492. --enable-pulseaudio use PulseAudio [default=yes]
  1493. --enable-pulseaudio-shared
  1494. dynamically load PulseAudio support [default=yes]
  1495. --enable-arts support the Analog Real Time Synthesizer
  1496. [default=yes]
  1497. --enable-arts-shared dynamically load aRts audio support [default=yes]
  1498. --enable-nas support the NAS audio API [default=yes]
  1499. --enable-nas-shared dynamically load NAS audio support [default=yes]
  1500. --enable-sndio support the sndio audio API [default=yes]
  1501. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1502. --enable-fusionsound use FusionSound audio driver [default=no]
  1503. --enable-fusionsound-shared
  1504. dynamically load fusionsound audio support
  1505. [default=yes]
  1506. --enable-diskaudio support the disk writer audio driver [default=yes]
  1507. --enable-dummyaudio support the dummy audio driver [default=yes]
  1508. --enable-libsamplerate use libsamplerate for audio rate conversion
  1509. [default=yes]
  1510. --enable-libsamplerate-shared
  1511. dynamically load libsamplerate [default=yes]
  1512. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1513. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1514. --enable-video-wayland use Wayland video driver [default=yes]
  1515. --enable-video-wayland-qt-touch
  1516. QtWayland server support for Wayland video driver
  1517. [default=yes]
  1518. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1519. --enable-video-rpi use Raspberry Pi video driver [default=yes]
  1520. --enable-video-x11 use X11 video driver [default=yes]
  1521. --enable-x11-shared dynamically load X11 support [default=maybe]
  1522. --enable-video-x11-xcursor
  1523. enable X11 Xcursor support [default=yes]
  1524. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1525. --enable-video-x11-xinerama
  1526. enable X11 Xinerama support [default=yes]
  1527. --enable-video-x11-xinput
  1528. enable X11 XInput extension for manymouse, tablets,
  1529. etc [default=yes]
  1530. --enable-video-x11-xrandr
  1531. enable X11 Xrandr extension for fullscreen
  1532. [default=yes]
  1533. --enable-video-x11-scrnsaver
  1534. enable X11 screensaver extension [default=yes]
  1535. --enable-video-x11-xshape
  1536. enable X11 XShape support [default=yes]
  1537. --enable-video-x11-vm use X11 VM extension for fullscreen [default=yes]
  1538. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1539. --enable-video-cocoa use Cocoa video driver [default=yes]
  1540. --enable-video-metal include Metal support [default=yes]
  1541. --enable-render-metal enable the Metal render driver [default=yes]
  1542. --enable-video-directfb use DirectFB video driver [default=no]
  1543. --enable-directfb-shared
  1544. dynamically load directfb support [default=yes]
  1545. --enable-video-kmsdrm use KMSDRM video driver [default=no]
  1546. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1547. --enable-video-dummy use dummy video driver [default=yes]
  1548. --enable-video-opengl include OpenGL support [default=yes]
  1549. --enable-video-opengles include OpenGL ES support [default=yes]
  1550. --enable-video-opengles1
  1551. include OpenGL ES 1.1 support [default=yes]
  1552. --enable-video-opengles2
  1553. include OpenGL ES 2.0 support [default=yes]
  1554. --enable-video-vulkan include Vulkan support [default=yes]
  1555. --enable-libudev enable libudev support [default=yes]
  1556. --enable-dbus enable D-Bus support [default=yes]
  1557. --enable-ime enable IME support [default=yes]
  1558. --enable-ibus enable IBus support [default=yes]
  1559. --enable-fcitx enable fcitx support [default=yes]
  1560. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1561. --enable-pthreads use POSIX threads for multi-threading
  1562. [default=maybe]
  1563. --enable-pthread-sem use pthread semaphores [default=maybe]
  1564. --enable-directx use DirectX for Windows audio/video [default=yes]
  1565. --enable-xinput use Xinput for Windows [default=yes]
  1566. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1567. --enable-sdl-dlopen use dlopen for shared object loading [default=yes]
  1568. --enable-hidapi use HIDAPI for low level joystick drivers
  1569. [default=yes]
  1570. --enable-hidapi-libusb use libusb for low level joystick drivers
  1571. [default=maybe]
  1572. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1573. UNIX [default=yes]
  1574. --enable-rpath use an rpath when linking SDL [default=yes]
  1575. --enable-backgrounding-signal
  1576. number to use for magic backgrounding signal or 'no'
  1577. [default=no]
  1578. --enable-foregrounding-signal
  1579. number to use for magic foregrounding signal or 'no'
  1580. [default=no]
  1581. --enable-joystick-virtual
  1582. enable virtual joystick APIs [default=yes]
  1583. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1584. --enable-sdl2-config Install sdl2-config [default=yes]
  1585. Optional Packages:
  1586. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1587. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1588. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1589. both]
  1590. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1591. --with-sysroot=DIR Search for dependent libraries within DIR
  1592. (or the compiler's sysroot if not specified).
  1593. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1594. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1595. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1596. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1597. --with-x use the X Window System
  1598. Some influential environment variables:
  1599. CC C compiler command
  1600. CFLAGS C compiler flags
  1601. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1602. nonstandard directory <lib dir>
  1603. LIBS libraries to pass to the linker, e.g. -l<library>
  1604. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1605. you have headers in a nonstandard directory <include dir>
  1606. CPP C preprocessor
  1607. CXX C++ compiler command
  1608. CXXFLAGS C++ compiler flags
  1609. CXXCPP C++ preprocessor
  1610. PKG_CONFIG path to pkg-config utility
  1611. PKG_CONFIG_PATH
  1612. directories to add to pkg-config's search path
  1613. PKG_CONFIG_LIBDIR
  1614. path overriding pkg-config's built-in search path
  1615. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1616. JACK_LIBS linker flags for JACK, overriding pkg-config
  1617. PIPEWIRE_CFLAGS
  1618. C compiler flags for PIPEWIRE, overriding pkg-config
  1619. PIPEWIRE_LIBS
  1620. linker flags for PIPEWIRE, overriding pkg-config
  1621. PULSEAUDIO_CFLAGS
  1622. C compiler flags for PULSEAUDIO, overriding pkg-config
  1623. PULSEAUDIO_LIBS
  1624. linker flags for PULSEAUDIO, overriding pkg-config
  1625. FUSIONSOUND_CFLAGS
  1626. C compiler flags for FUSIONSOUND, overriding pkg-config
  1627. FUSIONSOUND_LIBS
  1628. linker flags for FUSIONSOUND, overriding pkg-config
  1629. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1630. RPI_LIBS linker flags for RPI, overriding pkg-config
  1631. XMKMF Path to xmkmf, Makefile generator for X Window System
  1632. DIRECTFB_CFLAGS
  1633. C compiler flags for DIRECTFB, overriding pkg-config
  1634. DIRECTFB_LIBS
  1635. linker flags for DIRECTFB, overriding pkg-config
  1636. LIBDRM_CFLAGS
  1637. C compiler flags for LIBDRM, overriding pkg-config
  1638. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1639. LIBGBM_CFLAGS
  1640. C compiler flags for LIBGBM, overriding pkg-config
  1641. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1642. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1643. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1644. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1645. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1646. LIBUSB_CFLAGS
  1647. C compiler flags for LIBUSB, overriding pkg-config
  1648. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1649. Use these variables to override the choices made by `configure' or to help
  1650. it to find libraries and programs with nonstandard names/locations.
  1651. Report bugs to the package provider.
  1652. _ACEOF
  1653. ac_status=$?
  1654. fi
  1655. if test "$ac_init_help" = "recursive"; then
  1656. # If there are subdirs, report their specific --help.
  1657. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1658. test -d "$ac_dir" ||
  1659. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1660. continue
  1661. ac_builddir=.
  1662. case "$ac_dir" in
  1663. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1664. *)
  1665. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1666. # A ".." for each directory in $ac_dir_suffix.
  1667. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1668. case $ac_top_builddir_sub in
  1669. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1670. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1671. esac ;;
  1672. esac
  1673. ac_abs_top_builddir=$ac_pwd
  1674. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1675. # for backward compatibility:
  1676. ac_top_builddir=$ac_top_build_prefix
  1677. case $srcdir in
  1678. .) # We are building in place.
  1679. ac_srcdir=.
  1680. ac_top_srcdir=$ac_top_builddir_sub
  1681. ac_abs_top_srcdir=$ac_pwd ;;
  1682. [\\/]* | ?:[\\/]* ) # Absolute name.
  1683. ac_srcdir=$srcdir$ac_dir_suffix;
  1684. ac_top_srcdir=$srcdir
  1685. ac_abs_top_srcdir=$srcdir ;;
  1686. *) # Relative name.
  1687. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1688. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1689. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1690. esac
  1691. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1692. cd "$ac_dir" || { ac_status=$?; continue; }
  1693. # Check for guested configure.
  1694. if test -f "$ac_srcdir/configure.gnu"; then
  1695. echo &&
  1696. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1697. elif test -f "$ac_srcdir/configure"; then
  1698. echo &&
  1699. $SHELL "$ac_srcdir/configure" --help=recursive
  1700. else
  1701. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1702. fi || ac_status=$?
  1703. cd "$ac_pwd" || { ac_status=$?; break; }
  1704. done
  1705. fi
  1706. test -n "$ac_init_help" && exit $ac_status
  1707. if $ac_init_version; then
  1708. cat <<\_ACEOF
  1709. configure
  1710. generated by GNU Autoconf 2.69
  1711. Copyright (C) 2012 Free Software Foundation, Inc.
  1712. This configure script is free software; the Free Software Foundation
  1713. gives unlimited permission to copy, distribute and modify it.
  1714. _ACEOF
  1715. exit
  1716. fi
  1717. ## ------------------------ ##
  1718. ## Autoconf initialization. ##
  1719. ## ------------------------ ##
  1720. # ac_fn_c_try_compile LINENO
  1721. # --------------------------
  1722. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1723. ac_fn_c_try_compile ()
  1724. {
  1725. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1726. rm -f conftest.$ac_objext
  1727. if { { ac_try="$ac_compile"
  1728. case "(($ac_try" in
  1729. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1730. *) ac_try_echo=$ac_try;;
  1731. esac
  1732. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1733. $as_echo "$ac_try_echo"; } >&5
  1734. (eval "$ac_compile") 2>conftest.err
  1735. ac_status=$?
  1736. if test -s conftest.err; then
  1737. grep -v '^ *+' conftest.err >conftest.er1
  1738. cat conftest.er1 >&5
  1739. mv -f conftest.er1 conftest.err
  1740. fi
  1741. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1742. test $ac_status = 0; } && {
  1743. test -z "$ac_c_werror_flag" ||
  1744. test ! -s conftest.err
  1745. } && test -s conftest.$ac_objext; then :
  1746. ac_retval=0
  1747. else
  1748. $as_echo "$as_me: failed program was:" >&5
  1749. sed 's/^/| /' conftest.$ac_ext >&5
  1750. ac_retval=1
  1751. fi
  1752. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1753. as_fn_set_status $ac_retval
  1754. } # ac_fn_c_try_compile
  1755. # ac_fn_c_try_link LINENO
  1756. # -----------------------
  1757. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1758. ac_fn_c_try_link ()
  1759. {
  1760. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1761. rm -f conftest.$ac_objext conftest$ac_exeext
  1762. if { { ac_try="$ac_link"
  1763. case "(($ac_try" in
  1764. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1765. *) ac_try_echo=$ac_try;;
  1766. esac
  1767. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1768. $as_echo "$ac_try_echo"; } >&5
  1769. (eval "$ac_link") 2>conftest.err
  1770. ac_status=$?
  1771. if test -s conftest.err; then
  1772. grep -v '^ *+' conftest.err >conftest.er1
  1773. cat conftest.er1 >&5
  1774. mv -f conftest.er1 conftest.err
  1775. fi
  1776. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1777. test $ac_status = 0; } && {
  1778. test -z "$ac_c_werror_flag" ||
  1779. test ! -s conftest.err
  1780. } && test -s conftest$ac_exeext && {
  1781. test "$cross_compiling" = yes ||
  1782. test -x conftest$ac_exeext
  1783. }; then :
  1784. ac_retval=0
  1785. else
  1786. $as_echo "$as_me: failed program was:" >&5
  1787. sed 's/^/| /' conftest.$ac_ext >&5
  1788. ac_retval=1
  1789. fi
  1790. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1791. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1792. # interfere with the next link command; also delete a directory that is
  1793. # left behind by Apple's compiler. We do this before executing the actions.
  1794. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1795. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1796. as_fn_set_status $ac_retval
  1797. } # ac_fn_c_try_link
  1798. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1799. # -------------------------------------------------------
  1800. # Tests whether HEADER exists and can be compiled using the include files in
  1801. # INCLUDES, setting the cache variable VAR accordingly.
  1802. ac_fn_c_check_header_compile ()
  1803. {
  1804. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1806. $as_echo_n "checking for $2... " >&6; }
  1807. if eval \${$3+:} false; then :
  1808. $as_echo_n "(cached) " >&6
  1809. else
  1810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1811. /* end confdefs.h. */
  1812. $4
  1813. #include <$2>
  1814. _ACEOF
  1815. if ac_fn_c_try_compile "$LINENO"; then :
  1816. eval "$3=yes"
  1817. else
  1818. eval "$3=no"
  1819. fi
  1820. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1821. fi
  1822. eval ac_res=\$$3
  1823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1824. $as_echo "$ac_res" >&6; }
  1825. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1826. } # ac_fn_c_check_header_compile
  1827. # ac_fn_c_try_cpp LINENO
  1828. # ----------------------
  1829. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1830. ac_fn_c_try_cpp ()
  1831. {
  1832. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1833. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1834. case "(($ac_try" in
  1835. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1836. *) ac_try_echo=$ac_try;;
  1837. esac
  1838. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1839. $as_echo "$ac_try_echo"; } >&5
  1840. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1841. ac_status=$?
  1842. if test -s conftest.err; then
  1843. grep -v '^ *+' conftest.err >conftest.er1
  1844. cat conftest.er1 >&5
  1845. mv -f conftest.er1 conftest.err
  1846. fi
  1847. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1848. test $ac_status = 0; } > conftest.i && {
  1849. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1850. test ! -s conftest.err
  1851. }; then :
  1852. ac_retval=0
  1853. else
  1854. $as_echo "$as_me: failed program was:" >&5
  1855. sed 's/^/| /' conftest.$ac_ext >&5
  1856. ac_retval=1
  1857. fi
  1858. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1859. as_fn_set_status $ac_retval
  1860. } # ac_fn_c_try_cpp
  1861. # ac_fn_c_try_run LINENO
  1862. # ----------------------
  1863. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1864. # that executables *can* be run.
  1865. ac_fn_c_try_run ()
  1866. {
  1867. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1868. if { { ac_try="$ac_link"
  1869. case "(($ac_try" in
  1870. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1871. *) ac_try_echo=$ac_try;;
  1872. esac
  1873. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1874. $as_echo "$ac_try_echo"; } >&5
  1875. (eval "$ac_link") 2>&5
  1876. ac_status=$?
  1877. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1878. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1879. { { case "(($ac_try" in
  1880. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1881. *) ac_try_echo=$ac_try;;
  1882. esac
  1883. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1884. $as_echo "$ac_try_echo"; } >&5
  1885. (eval "$ac_try") 2>&5
  1886. ac_status=$?
  1887. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1888. test $ac_status = 0; }; }; then :
  1889. ac_retval=0
  1890. else
  1891. $as_echo "$as_me: program exited with status $ac_status" >&5
  1892. $as_echo "$as_me: failed program was:" >&5
  1893. sed 's/^/| /' conftest.$ac_ext >&5
  1894. ac_retval=$ac_status
  1895. fi
  1896. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1897. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1898. as_fn_set_status $ac_retval
  1899. } # ac_fn_c_try_run
  1900. # ac_fn_c_check_func LINENO FUNC VAR
  1901. # ----------------------------------
  1902. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1903. ac_fn_c_check_func ()
  1904. {
  1905. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1907. $as_echo_n "checking for $2... " >&6; }
  1908. if eval \${$3+:} false; then :
  1909. $as_echo_n "(cached) " >&6
  1910. else
  1911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1912. /* end confdefs.h. */
  1913. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1914. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1915. #define $2 innocuous_$2
  1916. /* System header to define __stub macros and hopefully few prototypes,
  1917. which can conflict with char $2 (); below.
  1918. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1919. <limits.h> exists even on freestanding compilers. */
  1920. #ifdef __STDC__
  1921. # include <limits.h>
  1922. #else
  1923. # include <assert.h>
  1924. #endif
  1925. #undef $2
  1926. /* Override any GCC internal prototype to avoid an error.
  1927. Use char because int might match the return type of a GCC
  1928. builtin and then its argument prototype would still apply. */
  1929. #ifdef __cplusplus
  1930. extern "C"
  1931. #endif
  1932. char $2 ();
  1933. /* The GNU C library defines this for functions which it implements
  1934. to always fail with ENOSYS. Some functions are actually named
  1935. something starting with __ and the normal name is an alias. */
  1936. #if defined __stub_$2 || defined __stub___$2
  1937. choke me
  1938. #endif
  1939. int
  1940. main ()
  1941. {
  1942. return $2 ();
  1943. ;
  1944. return 0;
  1945. }
  1946. _ACEOF
  1947. if ac_fn_c_try_link "$LINENO"; then :
  1948. eval "$3=yes"
  1949. else
  1950. eval "$3=no"
  1951. fi
  1952. rm -f core conftest.err conftest.$ac_objext \
  1953. conftest$ac_exeext conftest.$ac_ext
  1954. fi
  1955. eval ac_res=\$$3
  1956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1957. $as_echo "$ac_res" >&6; }
  1958. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1959. } # ac_fn_c_check_func
  1960. # ac_fn_cxx_try_compile LINENO
  1961. # ----------------------------
  1962. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1963. ac_fn_cxx_try_compile ()
  1964. {
  1965. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1966. rm -f conftest.$ac_objext
  1967. if { { ac_try="$ac_compile"
  1968. case "(($ac_try" in
  1969. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1970. *) ac_try_echo=$ac_try;;
  1971. esac
  1972. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1973. $as_echo "$ac_try_echo"; } >&5
  1974. (eval "$ac_compile") 2>conftest.err
  1975. ac_status=$?
  1976. if test -s conftest.err; then
  1977. grep -v '^ *+' conftest.err >conftest.er1
  1978. cat conftest.er1 >&5
  1979. mv -f conftest.er1 conftest.err
  1980. fi
  1981. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1982. test $ac_status = 0; } && {
  1983. test -z "$ac_cxx_werror_flag" ||
  1984. test ! -s conftest.err
  1985. } && test -s conftest.$ac_objext; then :
  1986. ac_retval=0
  1987. else
  1988. $as_echo "$as_me: failed program was:" >&5
  1989. sed 's/^/| /' conftest.$ac_ext >&5
  1990. ac_retval=1
  1991. fi
  1992. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1993. as_fn_set_status $ac_retval
  1994. } # ac_fn_cxx_try_compile
  1995. # ac_fn_cxx_try_cpp LINENO
  1996. # ------------------------
  1997. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1998. ac_fn_cxx_try_cpp ()
  1999. {
  2000. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2001. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2002. case "(($ac_try" in
  2003. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2004. *) ac_try_echo=$ac_try;;
  2005. esac
  2006. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2007. $as_echo "$ac_try_echo"; } >&5
  2008. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2009. ac_status=$?
  2010. if test -s conftest.err; then
  2011. grep -v '^ *+' conftest.err >conftest.er1
  2012. cat conftest.er1 >&5
  2013. mv -f conftest.er1 conftest.err
  2014. fi
  2015. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2016. test $ac_status = 0; } > conftest.i && {
  2017. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2018. test ! -s conftest.err
  2019. }; then :
  2020. ac_retval=0
  2021. else
  2022. $as_echo "$as_me: failed program was:" >&5
  2023. sed 's/^/| /' conftest.$ac_ext >&5
  2024. ac_retval=1
  2025. fi
  2026. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2027. as_fn_set_status $ac_retval
  2028. } # ac_fn_cxx_try_cpp
  2029. # ac_fn_cxx_try_link LINENO
  2030. # -------------------------
  2031. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2032. ac_fn_cxx_try_link ()
  2033. {
  2034. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2035. rm -f conftest.$ac_objext conftest$ac_exeext
  2036. if { { ac_try="$ac_link"
  2037. case "(($ac_try" in
  2038. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2039. *) ac_try_echo=$ac_try;;
  2040. esac
  2041. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2042. $as_echo "$ac_try_echo"; } >&5
  2043. (eval "$ac_link") 2>conftest.err
  2044. ac_status=$?
  2045. if test -s conftest.err; then
  2046. grep -v '^ *+' conftest.err >conftest.er1
  2047. cat conftest.er1 >&5
  2048. mv -f conftest.er1 conftest.err
  2049. fi
  2050. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2051. test $ac_status = 0; } && {
  2052. test -z "$ac_cxx_werror_flag" ||
  2053. test ! -s conftest.err
  2054. } && test -s conftest$ac_exeext && {
  2055. test "$cross_compiling" = yes ||
  2056. test -x conftest$ac_exeext
  2057. }; then :
  2058. ac_retval=0
  2059. else
  2060. $as_echo "$as_me: failed program was:" >&5
  2061. sed 's/^/| /' conftest.$ac_ext >&5
  2062. ac_retval=1
  2063. fi
  2064. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2065. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2066. # interfere with the next link command; also delete a directory that is
  2067. # left behind by Apple's compiler. We do this before executing the actions.
  2068. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2069. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2070. as_fn_set_status $ac_retval
  2071. } # ac_fn_cxx_try_link
  2072. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2073. # -------------------------------------------------------
  2074. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2075. # the include files in INCLUDES and setting the cache variable VAR
  2076. # accordingly.
  2077. ac_fn_c_check_header_mongrel ()
  2078. {
  2079. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2080. if eval \${$3+:} false; then :
  2081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2082. $as_echo_n "checking for $2... " >&6; }
  2083. if eval \${$3+:} false; then :
  2084. $as_echo_n "(cached) " >&6
  2085. fi
  2086. eval ac_res=\$$3
  2087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2088. $as_echo "$ac_res" >&6; }
  2089. else
  2090. # Is the header compilable?
  2091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2092. $as_echo_n "checking $2 usability... " >&6; }
  2093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2094. /* end confdefs.h. */
  2095. $4
  2096. #include <$2>
  2097. _ACEOF
  2098. if ac_fn_c_try_compile "$LINENO"; then :
  2099. ac_header_compiler=yes
  2100. else
  2101. ac_header_compiler=no
  2102. fi
  2103. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2105. $as_echo "$ac_header_compiler" >&6; }
  2106. # Is the header present?
  2107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2108. $as_echo_n "checking $2 presence... " >&6; }
  2109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2110. /* end confdefs.h. */
  2111. #include <$2>
  2112. _ACEOF
  2113. if ac_fn_c_try_cpp "$LINENO"; then :
  2114. ac_header_preproc=yes
  2115. else
  2116. ac_header_preproc=no
  2117. fi
  2118. rm -f conftest.err conftest.i conftest.$ac_ext
  2119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2120. $as_echo "$ac_header_preproc" >&6; }
  2121. # So? What about this header?
  2122. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2123. yes:no: )
  2124. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2125. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2126. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2127. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2128. ;;
  2129. no:yes:* )
  2130. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2131. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2132. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2133. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2134. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2135. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2136. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2137. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2138. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2139. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2140. ;;
  2141. esac
  2142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2143. $as_echo_n "checking for $2... " >&6; }
  2144. if eval \${$3+:} false; then :
  2145. $as_echo_n "(cached) " >&6
  2146. else
  2147. eval "$3=\$ac_header_compiler"
  2148. fi
  2149. eval ac_res=\$$3
  2150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2151. $as_echo "$ac_res" >&6; }
  2152. fi
  2153. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2154. } # ac_fn_c_check_header_mongrel
  2155. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2156. # -------------------------------------------
  2157. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2158. # variable VAR accordingly.
  2159. ac_fn_c_check_type ()
  2160. {
  2161. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2163. $as_echo_n "checking for $2... " >&6; }
  2164. if eval \${$3+:} false; then :
  2165. $as_echo_n "(cached) " >&6
  2166. else
  2167. eval "$3=no"
  2168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2169. /* end confdefs.h. */
  2170. $4
  2171. int
  2172. main ()
  2173. {
  2174. if (sizeof ($2))
  2175. return 0;
  2176. ;
  2177. return 0;
  2178. }
  2179. _ACEOF
  2180. if ac_fn_c_try_compile "$LINENO"; then :
  2181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2182. /* end confdefs.h. */
  2183. $4
  2184. int
  2185. main ()
  2186. {
  2187. if (sizeof (($2)))
  2188. return 0;
  2189. ;
  2190. return 0;
  2191. }
  2192. _ACEOF
  2193. if ac_fn_c_try_compile "$LINENO"; then :
  2194. else
  2195. eval "$3=yes"
  2196. fi
  2197. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2198. fi
  2199. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2200. fi
  2201. eval ac_res=\$$3
  2202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2203. $as_echo "$ac_res" >&6; }
  2204. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2205. } # ac_fn_c_check_type
  2206. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2207. # ----------------------------------------------------
  2208. # Tries to find if the field MEMBER exists in type AGGR, after including
  2209. # INCLUDES, setting cache variable VAR accordingly.
  2210. ac_fn_c_check_member ()
  2211. {
  2212. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2214. $as_echo_n "checking for $2.$3... " >&6; }
  2215. if eval \${$4+:} false; then :
  2216. $as_echo_n "(cached) " >&6
  2217. else
  2218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2219. /* end confdefs.h. */
  2220. $5
  2221. int
  2222. main ()
  2223. {
  2224. static $2 ac_aggr;
  2225. if (ac_aggr.$3)
  2226. return 0;
  2227. ;
  2228. return 0;
  2229. }
  2230. _ACEOF
  2231. if ac_fn_c_try_compile "$LINENO"; then :
  2232. eval "$4=yes"
  2233. else
  2234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2235. /* end confdefs.h. */
  2236. $5
  2237. int
  2238. main ()
  2239. {
  2240. static $2 ac_aggr;
  2241. if (sizeof ac_aggr.$3)
  2242. return 0;
  2243. ;
  2244. return 0;
  2245. }
  2246. _ACEOF
  2247. if ac_fn_c_try_compile "$LINENO"; then :
  2248. eval "$4=yes"
  2249. else
  2250. eval "$4=no"
  2251. fi
  2252. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2253. fi
  2254. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2255. fi
  2256. eval ac_res=\$$4
  2257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2258. $as_echo "$ac_res" >&6; }
  2259. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2260. } # ac_fn_c_check_member
  2261. cat >config.log <<_ACEOF
  2262. This file contains any messages produced by compilers while
  2263. running configure, to aid debugging if configure makes a mistake.
  2264. It was created by $as_me, which was
  2265. generated by GNU Autoconf 2.69. Invocation command line was
  2266. $ $0 $@
  2267. _ACEOF
  2268. exec 5>>config.log
  2269. {
  2270. cat <<_ASUNAME
  2271. ## --------- ##
  2272. ## Platform. ##
  2273. ## --------- ##
  2274. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2275. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2276. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2277. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2278. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2279. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2280. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2281. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2282. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2283. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2284. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2285. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2286. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2287. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2288. _ASUNAME
  2289. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2290. for as_dir in $PATH
  2291. do
  2292. IFS=$as_save_IFS
  2293. test -z "$as_dir" && as_dir=.
  2294. $as_echo "PATH: $as_dir"
  2295. done
  2296. IFS=$as_save_IFS
  2297. } >&5
  2298. cat >&5 <<_ACEOF
  2299. ## ----------- ##
  2300. ## Core tests. ##
  2301. ## ----------- ##
  2302. _ACEOF
  2303. # Keep a trace of the command line.
  2304. # Strip out --no-create and --no-recursion so they do not pile up.
  2305. # Strip out --silent because we don't want to record it for future runs.
  2306. # Also quote any args containing shell meta-characters.
  2307. # Make two passes to allow for proper duplicate-argument suppression.
  2308. ac_configure_args=
  2309. ac_configure_args0=
  2310. ac_configure_args1=
  2311. ac_must_keep_next=false
  2312. for ac_pass in 1 2
  2313. do
  2314. for ac_arg
  2315. do
  2316. case $ac_arg in
  2317. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2318. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2319. | -silent | --silent | --silen | --sile | --sil)
  2320. continue ;;
  2321. *\'*)
  2322. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2323. esac
  2324. case $ac_pass in
  2325. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2326. 2)
  2327. as_fn_append ac_configure_args1 " '$ac_arg'"
  2328. if test $ac_must_keep_next = true; then
  2329. ac_must_keep_next=false # Got value, back to normal.
  2330. else
  2331. case $ac_arg in
  2332. *=* | --config-cache | -C | -disable-* | --disable-* \
  2333. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2334. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2335. | -with-* | --with-* | -without-* | --without-* | --x)
  2336. case "$ac_configure_args0 " in
  2337. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2338. esac
  2339. ;;
  2340. -* ) ac_must_keep_next=true ;;
  2341. esac
  2342. fi
  2343. as_fn_append ac_configure_args " '$ac_arg'"
  2344. ;;
  2345. esac
  2346. done
  2347. done
  2348. { ac_configure_args0=; unset ac_configure_args0;}
  2349. { ac_configure_args1=; unset ac_configure_args1;}
  2350. # When interrupted or exit'd, cleanup temporary files, and complete
  2351. # config.log. We remove comments because anyway the quotes in there
  2352. # would cause problems or look ugly.
  2353. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2354. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2355. trap 'exit_status=$?
  2356. # Save into config.log some information that might help in debugging.
  2357. {
  2358. echo
  2359. $as_echo "## ---------------- ##
  2360. ## Cache variables. ##
  2361. ## ---------------- ##"
  2362. echo
  2363. # The following way of writing the cache mishandles newlines in values,
  2364. (
  2365. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2366. eval ac_val=\$$ac_var
  2367. case $ac_val in #(
  2368. *${as_nl}*)
  2369. case $ac_var in #(
  2370. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2371. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2372. esac
  2373. case $ac_var in #(
  2374. _ | IFS | as_nl) ;; #(
  2375. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2376. *) { eval $ac_var=; unset $ac_var;} ;;
  2377. esac ;;
  2378. esac
  2379. done
  2380. (set) 2>&1 |
  2381. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2382. *${as_nl}ac_space=\ *)
  2383. sed -n \
  2384. "s/'\''/'\''\\\\'\'''\''/g;
  2385. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2386. ;; #(
  2387. *)
  2388. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2389. ;;
  2390. esac |
  2391. sort
  2392. )
  2393. echo
  2394. $as_echo "## ----------------- ##
  2395. ## Output variables. ##
  2396. ## ----------------- ##"
  2397. echo
  2398. for ac_var in $ac_subst_vars
  2399. do
  2400. eval ac_val=\$$ac_var
  2401. case $ac_val in
  2402. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2403. esac
  2404. $as_echo "$ac_var='\''$ac_val'\''"
  2405. done | sort
  2406. echo
  2407. if test -n "$ac_subst_files"; then
  2408. $as_echo "## ------------------- ##
  2409. ## File substitutions. ##
  2410. ## ------------------- ##"
  2411. echo
  2412. for ac_var in $ac_subst_files
  2413. do
  2414. eval ac_val=\$$ac_var
  2415. case $ac_val in
  2416. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2417. esac
  2418. $as_echo "$ac_var='\''$ac_val'\''"
  2419. done | sort
  2420. echo
  2421. fi
  2422. if test -s confdefs.h; then
  2423. $as_echo "## ----------- ##
  2424. ## confdefs.h. ##
  2425. ## ----------- ##"
  2426. echo
  2427. cat confdefs.h
  2428. echo
  2429. fi
  2430. test "$ac_signal" != 0 &&
  2431. $as_echo "$as_me: caught signal $ac_signal"
  2432. $as_echo "$as_me: exit $exit_status"
  2433. } >&5
  2434. rm -f core *.core core.conftest.* &&
  2435. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2436. exit $exit_status
  2437. ' 0
  2438. for ac_signal in 1 2 13 15; do
  2439. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2440. done
  2441. ac_signal=0
  2442. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2443. rm -f -r conftest* confdefs.h
  2444. $as_echo "/* confdefs.h */" > confdefs.h
  2445. # Predefined preprocessor variables.
  2446. cat >>confdefs.h <<_ACEOF
  2447. #define PACKAGE_NAME "$PACKAGE_NAME"
  2448. _ACEOF
  2449. cat >>confdefs.h <<_ACEOF
  2450. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2451. _ACEOF
  2452. cat >>confdefs.h <<_ACEOF
  2453. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2454. _ACEOF
  2455. cat >>confdefs.h <<_ACEOF
  2456. #define PACKAGE_STRING "$PACKAGE_STRING"
  2457. _ACEOF
  2458. cat >>confdefs.h <<_ACEOF
  2459. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2460. _ACEOF
  2461. cat >>confdefs.h <<_ACEOF
  2462. #define PACKAGE_URL "$PACKAGE_URL"
  2463. _ACEOF
  2464. # Let the site file select an alternate cache file if it wants to.
  2465. # Prefer an explicitly selected file to automatically selected ones.
  2466. ac_site_file1=NONE
  2467. ac_site_file2=NONE
  2468. if test -n "$CONFIG_SITE"; then
  2469. # We do not want a PATH search for config.site.
  2470. case $CONFIG_SITE in #((
  2471. -*) ac_site_file1=./$CONFIG_SITE;;
  2472. */*) ac_site_file1=$CONFIG_SITE;;
  2473. *) ac_site_file1=./$CONFIG_SITE;;
  2474. esac
  2475. elif test "x$prefix" != xNONE; then
  2476. ac_site_file1=$prefix/share/config.site
  2477. ac_site_file2=$prefix/etc/config.site
  2478. else
  2479. ac_site_file1=$ac_default_prefix/share/config.site
  2480. ac_site_file2=$ac_default_prefix/etc/config.site
  2481. fi
  2482. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2483. do
  2484. test "x$ac_site_file" = xNONE && continue
  2485. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2486. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2487. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2488. sed 's/^/| /' "$ac_site_file" >&5
  2489. . "$ac_site_file" \
  2490. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2491. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2492. as_fn_error $? "failed to load site script $ac_site_file
  2493. See \`config.log' for more details" "$LINENO" 5; }
  2494. fi
  2495. done
  2496. if test -r "$cache_file"; then
  2497. # Some versions of bash will fail to source /dev/null (special files
  2498. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2499. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2500. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2501. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2502. case $cache_file in
  2503. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2504. *) . "./$cache_file";;
  2505. esac
  2506. fi
  2507. else
  2508. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2509. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2510. >$cache_file
  2511. fi
  2512. # Check that the precious variables saved in the cache have kept the same
  2513. # value.
  2514. ac_cache_corrupted=false
  2515. for ac_var in $ac_precious_vars; do
  2516. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2517. eval ac_new_set=\$ac_env_${ac_var}_set
  2518. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2519. eval ac_new_val=\$ac_env_${ac_var}_value
  2520. case $ac_old_set,$ac_new_set in
  2521. set,)
  2522. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2523. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2524. ac_cache_corrupted=: ;;
  2525. ,set)
  2526. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2527. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2528. ac_cache_corrupted=: ;;
  2529. ,);;
  2530. *)
  2531. if test "x$ac_old_val" != "x$ac_new_val"; then
  2532. # differences in whitespace do not lead to failure.
  2533. ac_old_val_w=`echo x $ac_old_val`
  2534. ac_new_val_w=`echo x $ac_new_val`
  2535. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2536. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2537. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2538. ac_cache_corrupted=:
  2539. else
  2540. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2541. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2542. eval $ac_var=\$ac_old_val
  2543. fi
  2544. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2545. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2546. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2547. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2548. fi;;
  2549. esac
  2550. # Pass precious variables to config.status.
  2551. if test "$ac_new_set" = set; then
  2552. case $ac_new_val in
  2553. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2554. *) ac_arg=$ac_var=$ac_new_val ;;
  2555. esac
  2556. case " $ac_configure_args " in
  2557. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2558. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2559. esac
  2560. fi
  2561. done
  2562. if $ac_cache_corrupted; then
  2563. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2564. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2565. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2566. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2567. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2568. fi
  2569. ## -------------------- ##
  2570. ## Main body of script. ##
  2571. ## -------------------- ##
  2572. ac_ext=c
  2573. ac_cpp='$CPP $CPPFLAGS'
  2574. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2575. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2576. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2577. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2578. ac_aux_dir=
  2579. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2580. if test -f "$ac_dir/install-sh"; then
  2581. ac_aux_dir=$ac_dir
  2582. ac_install_sh="$ac_aux_dir/install-sh -c"
  2583. break
  2584. elif test -f "$ac_dir/install.sh"; then
  2585. ac_aux_dir=$ac_dir
  2586. ac_install_sh="$ac_aux_dir/install.sh -c"
  2587. break
  2588. elif test -f "$ac_dir/shtool"; then
  2589. ac_aux_dir=$ac_dir
  2590. ac_install_sh="$ac_aux_dir/shtool install -c"
  2591. break
  2592. fi
  2593. done
  2594. if test -z "$ac_aux_dir"; then
  2595. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2596. fi
  2597. # These three variables are undocumented and unsupported,
  2598. # and are intended to be withdrawn in a future Autoconf release.
  2599. # They can cause serious problems if a builder's source tree is in a directory
  2600. # whose full name contains unusual characters.
  2601. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2602. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2603. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2604. orig_CFLAGS="$CFLAGS"
  2605. #
  2606. # Making releases:
  2607. # Edit include/SDL_version.h and change the version, then:
  2608. # SDL_MICRO_VERSION += 1;
  2609. # SDL_INTERFACE_AGE += 1;
  2610. # SDL_BINARY_AGE += 1;
  2611. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2612. # if backwards compatibility has been broken,
  2613. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2614. #
  2615. SDL_MAJOR_VERSION=2
  2616. SDL_MINOR_VERSION=0
  2617. SDL_MICRO_VERSION=15
  2618. SDL_INTERFACE_AGE=1
  2619. SDL_BINARY_AGE=15
  2620. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2621. # libtool versioning
  2622. case `pwd` in
  2623. *\ * | *\ *)
  2624. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2625. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2626. esac
  2627. macro_version='2.4.2'
  2628. macro_revision='1.3337'
  2629. ltmain="$ac_aux_dir/ltmain.sh"
  2630. # Make sure we can run config.sub.
  2631. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2632. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2634. $as_echo_n "checking build system type... " >&6; }
  2635. if ${ac_cv_build+:} false; then :
  2636. $as_echo_n "(cached) " >&6
  2637. else
  2638. ac_build_alias=$build_alias
  2639. test "x$ac_build_alias" = x &&
  2640. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2641. test "x$ac_build_alias" = x &&
  2642. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2643. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2644. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2645. fi
  2646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2647. $as_echo "$ac_cv_build" >&6; }
  2648. case $ac_cv_build in
  2649. *-*-*) ;;
  2650. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2651. esac
  2652. build=$ac_cv_build
  2653. ac_save_IFS=$IFS; IFS='-'
  2654. set x $ac_cv_build
  2655. shift
  2656. build_cpu=$1
  2657. build_vendor=$2
  2658. shift; shift
  2659. # Remember, the first character of IFS is used to create $*,
  2660. # except with old shells:
  2661. build_os=$*
  2662. IFS=$ac_save_IFS
  2663. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2665. $as_echo_n "checking host system type... " >&6; }
  2666. if ${ac_cv_host+:} false; then :
  2667. $as_echo_n "(cached) " >&6
  2668. else
  2669. if test "x$host_alias" = x; then
  2670. ac_cv_host=$ac_cv_build
  2671. else
  2672. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2673. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2674. fi
  2675. fi
  2676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2677. $as_echo "$ac_cv_host" >&6; }
  2678. case $ac_cv_host in
  2679. *-*-*) ;;
  2680. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2681. esac
  2682. host=$ac_cv_host
  2683. ac_save_IFS=$IFS; IFS='-'
  2684. set x $ac_cv_host
  2685. shift
  2686. host_cpu=$1
  2687. host_vendor=$2
  2688. shift; shift
  2689. # Remember, the first character of IFS is used to create $*,
  2690. # except with old shells:
  2691. host_os=$*
  2692. IFS=$ac_save_IFS
  2693. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2694. # Backslashify metacharacters that are still active within
  2695. # double-quoted strings.
  2696. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2697. # Same as above, but do not quote variable references.
  2698. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2699. # Sed substitution to delay expansion of an escaped shell variable in a
  2700. # double_quote_subst'ed string.
  2701. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2702. # Sed substitution to delay expansion of an escaped single quote.
  2703. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2704. # Sed substitution to avoid accidental globbing in evaled expressions
  2705. no_glob_subst='s/\*/\\\*/g'
  2706. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2707. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2708. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2710. $as_echo_n "checking how to print strings... " >&6; }
  2711. # Test print first, because it will be a builtin if present.
  2712. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2713. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2714. ECHO='print -r --'
  2715. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2716. ECHO='printf %s\n'
  2717. else
  2718. # Use this function as a fallback that always works.
  2719. func_fallback_echo ()
  2720. {
  2721. eval 'cat <<_LTECHO_EOF
  2722. $1
  2723. _LTECHO_EOF'
  2724. }
  2725. ECHO='func_fallback_echo'
  2726. fi
  2727. # func_echo_all arg...
  2728. # Invoke $ECHO with all args, space-separated.
  2729. func_echo_all ()
  2730. {
  2731. $ECHO ""
  2732. }
  2733. case "$ECHO" in
  2734. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2735. $as_echo "printf" >&6; } ;;
  2736. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2737. $as_echo "print -r" >&6; } ;;
  2738. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2739. $as_echo "cat" >&6; } ;;
  2740. esac
  2741. ac_ext=c
  2742. ac_cpp='$CPP $CPPFLAGS'
  2743. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2744. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2745. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2746. if test -n "$ac_tool_prefix"; then
  2747. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2748. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2750. $as_echo_n "checking for $ac_word... " >&6; }
  2751. if ${ac_cv_prog_CC+:} false; then :
  2752. $as_echo_n "(cached) " >&6
  2753. else
  2754. if test -n "$CC"; then
  2755. ac_cv_prog_CC="$CC" # Let the user override the test.
  2756. else
  2757. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2758. for as_dir in $PATH
  2759. do
  2760. IFS=$as_save_IFS
  2761. test -z "$as_dir" && as_dir=.
  2762. for ac_exec_ext in '' $ac_executable_extensions; do
  2763. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2764. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2765. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2766. break 2
  2767. fi
  2768. done
  2769. done
  2770. IFS=$as_save_IFS
  2771. fi
  2772. fi
  2773. CC=$ac_cv_prog_CC
  2774. if test -n "$CC"; then
  2775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2776. $as_echo "$CC" >&6; }
  2777. else
  2778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2779. $as_echo "no" >&6; }
  2780. fi
  2781. fi
  2782. if test -z "$ac_cv_prog_CC"; then
  2783. ac_ct_CC=$CC
  2784. # Extract the first word of "gcc", so it can be a program name with args.
  2785. set dummy gcc; ac_word=$2
  2786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2787. $as_echo_n "checking for $ac_word... " >&6; }
  2788. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2789. $as_echo_n "(cached) " >&6
  2790. else
  2791. if test -n "$ac_ct_CC"; then
  2792. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2793. else
  2794. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2795. for as_dir in $PATH
  2796. do
  2797. IFS=$as_save_IFS
  2798. test -z "$as_dir" && as_dir=.
  2799. for ac_exec_ext in '' $ac_executable_extensions; do
  2800. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2801. ac_cv_prog_ac_ct_CC="gcc"
  2802. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2803. break 2
  2804. fi
  2805. done
  2806. done
  2807. IFS=$as_save_IFS
  2808. fi
  2809. fi
  2810. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2811. if test -n "$ac_ct_CC"; then
  2812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2813. $as_echo "$ac_ct_CC" >&6; }
  2814. else
  2815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2816. $as_echo "no" >&6; }
  2817. fi
  2818. if test "x$ac_ct_CC" = x; then
  2819. CC=""
  2820. else
  2821. case $cross_compiling:$ac_tool_warned in
  2822. yes:)
  2823. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2824. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2825. ac_tool_warned=yes ;;
  2826. esac
  2827. CC=$ac_ct_CC
  2828. fi
  2829. else
  2830. CC="$ac_cv_prog_CC"
  2831. fi
  2832. if test -z "$CC"; then
  2833. if test -n "$ac_tool_prefix"; then
  2834. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2835. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2837. $as_echo_n "checking for $ac_word... " >&6; }
  2838. if ${ac_cv_prog_CC+:} false; then :
  2839. $as_echo_n "(cached) " >&6
  2840. else
  2841. if test -n "$CC"; then
  2842. ac_cv_prog_CC="$CC" # Let the user override the test.
  2843. else
  2844. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2845. for as_dir in $PATH
  2846. do
  2847. IFS=$as_save_IFS
  2848. test -z "$as_dir" && as_dir=.
  2849. for ac_exec_ext in '' $ac_executable_extensions; do
  2850. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2851. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2852. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2853. break 2
  2854. fi
  2855. done
  2856. done
  2857. IFS=$as_save_IFS
  2858. fi
  2859. fi
  2860. CC=$ac_cv_prog_CC
  2861. if test -n "$CC"; then
  2862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2863. $as_echo "$CC" >&6; }
  2864. else
  2865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2866. $as_echo "no" >&6; }
  2867. fi
  2868. fi
  2869. fi
  2870. if test -z "$CC"; then
  2871. # Extract the first word of "cc", so it can be a program name with args.
  2872. set dummy cc; ac_word=$2
  2873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2874. $as_echo_n "checking for $ac_word... " >&6; }
  2875. if ${ac_cv_prog_CC+:} false; then :
  2876. $as_echo_n "(cached) " >&6
  2877. else
  2878. if test -n "$CC"; then
  2879. ac_cv_prog_CC="$CC" # Let the user override the test.
  2880. else
  2881. ac_prog_rejected=no
  2882. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2883. for as_dir in $PATH
  2884. do
  2885. IFS=$as_save_IFS
  2886. test -z "$as_dir" && as_dir=.
  2887. for ac_exec_ext in '' $ac_executable_extensions; do
  2888. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2889. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2890. ac_prog_rejected=yes
  2891. continue
  2892. fi
  2893. ac_cv_prog_CC="cc"
  2894. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2895. break 2
  2896. fi
  2897. done
  2898. done
  2899. IFS=$as_save_IFS
  2900. if test $ac_prog_rejected = yes; then
  2901. # We found a bogon in the path, so make sure we never use it.
  2902. set dummy $ac_cv_prog_CC
  2903. shift
  2904. if test $# != 0; then
  2905. # We chose a different compiler from the bogus one.
  2906. # However, it has the same basename, so the bogon will be chosen
  2907. # first if we set CC to just the basename; use the full file name.
  2908. shift
  2909. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2910. fi
  2911. fi
  2912. fi
  2913. fi
  2914. CC=$ac_cv_prog_CC
  2915. if test -n "$CC"; then
  2916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2917. $as_echo "$CC" >&6; }
  2918. else
  2919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2920. $as_echo "no" >&6; }
  2921. fi
  2922. fi
  2923. if test -z "$CC"; then
  2924. if test -n "$ac_tool_prefix"; then
  2925. for ac_prog in cl.exe
  2926. do
  2927. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2928. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2930. $as_echo_n "checking for $ac_word... " >&6; }
  2931. if ${ac_cv_prog_CC+:} false; then :
  2932. $as_echo_n "(cached) " >&6
  2933. else
  2934. if test -n "$CC"; then
  2935. ac_cv_prog_CC="$CC" # Let the user override the test.
  2936. else
  2937. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2938. for as_dir in $PATH
  2939. do
  2940. IFS=$as_save_IFS
  2941. test -z "$as_dir" && as_dir=.
  2942. for ac_exec_ext in '' $ac_executable_extensions; do
  2943. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2944. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2945. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2946. break 2
  2947. fi
  2948. done
  2949. done
  2950. IFS=$as_save_IFS
  2951. fi
  2952. fi
  2953. CC=$ac_cv_prog_CC
  2954. if test -n "$CC"; then
  2955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2956. $as_echo "$CC" >&6; }
  2957. else
  2958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2959. $as_echo "no" >&6; }
  2960. fi
  2961. test -n "$CC" && break
  2962. done
  2963. fi
  2964. if test -z "$CC"; then
  2965. ac_ct_CC=$CC
  2966. for ac_prog in cl.exe
  2967. do
  2968. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2969. set dummy $ac_prog; ac_word=$2
  2970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2971. $as_echo_n "checking for $ac_word... " >&6; }
  2972. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2973. $as_echo_n "(cached) " >&6
  2974. else
  2975. if test -n "$ac_ct_CC"; then
  2976. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2977. else
  2978. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2979. for as_dir in $PATH
  2980. do
  2981. IFS=$as_save_IFS
  2982. test -z "$as_dir" && as_dir=.
  2983. for ac_exec_ext in '' $ac_executable_extensions; do
  2984. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2985. ac_cv_prog_ac_ct_CC="$ac_prog"
  2986. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2987. break 2
  2988. fi
  2989. done
  2990. done
  2991. IFS=$as_save_IFS
  2992. fi
  2993. fi
  2994. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2995. if test -n "$ac_ct_CC"; then
  2996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2997. $as_echo "$ac_ct_CC" >&6; }
  2998. else
  2999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3000. $as_echo "no" >&6; }
  3001. fi
  3002. test -n "$ac_ct_CC" && break
  3003. done
  3004. if test "x$ac_ct_CC" = x; then
  3005. CC=""
  3006. else
  3007. case $cross_compiling:$ac_tool_warned in
  3008. yes:)
  3009. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3010. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3011. ac_tool_warned=yes ;;
  3012. esac
  3013. CC=$ac_ct_CC
  3014. fi
  3015. fi
  3016. fi
  3017. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3018. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3019. as_fn_error $? "no acceptable C compiler found in \$PATH
  3020. See \`config.log' for more details" "$LINENO" 5; }
  3021. # Provide some information about the compiler.
  3022. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3023. set X $ac_compile
  3024. ac_compiler=$2
  3025. for ac_option in --version -v -V -qversion; do
  3026. { { ac_try="$ac_compiler $ac_option >&5"
  3027. case "(($ac_try" in
  3028. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3029. *) ac_try_echo=$ac_try;;
  3030. esac
  3031. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3032. $as_echo "$ac_try_echo"; } >&5
  3033. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3034. ac_status=$?
  3035. if test -s conftest.err; then
  3036. sed '10a\
  3037. ... rest of stderr output deleted ...
  3038. 10q' conftest.err >conftest.er1
  3039. cat conftest.er1 >&5
  3040. fi
  3041. rm -f conftest.er1 conftest.err
  3042. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3043. test $ac_status = 0; }
  3044. done
  3045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3046. /* end confdefs.h. */
  3047. int
  3048. main ()
  3049. {
  3050. ;
  3051. return 0;
  3052. }
  3053. _ACEOF
  3054. ac_clean_files_save=$ac_clean_files
  3055. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3056. # Try to create an executable without -o first, disregard a.out.
  3057. # It will help us diagnose broken compilers, and finding out an intuition
  3058. # of exeext.
  3059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3060. $as_echo_n "checking whether the C compiler works... " >&6; }
  3061. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3062. # The possible output files:
  3063. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3064. ac_rmfiles=
  3065. for ac_file in $ac_files
  3066. do
  3067. case $ac_file in
  3068. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3069. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3070. esac
  3071. done
  3072. rm -f $ac_rmfiles
  3073. if { { ac_try="$ac_link_default"
  3074. case "(($ac_try" in
  3075. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3076. *) ac_try_echo=$ac_try;;
  3077. esac
  3078. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3079. $as_echo "$ac_try_echo"; } >&5
  3080. (eval "$ac_link_default") 2>&5
  3081. ac_status=$?
  3082. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3083. test $ac_status = 0; }; then :
  3084. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3085. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3086. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3087. # so that the user can short-circuit this test for compilers unknown to
  3088. # Autoconf.
  3089. for ac_file in $ac_files ''
  3090. do
  3091. test -f "$ac_file" || continue
  3092. case $ac_file in
  3093. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3094. ;;
  3095. [ab].out )
  3096. # We found the default executable, but exeext='' is most
  3097. # certainly right.
  3098. break;;
  3099. *.* )
  3100. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3101. then :; else
  3102. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3103. fi
  3104. # We set ac_cv_exeext here because the later test for it is not
  3105. # safe: cross compilers may not add the suffix if given an `-o'
  3106. # argument, so we may need to know it at that point already.
  3107. # Even if this section looks crufty: it has the advantage of
  3108. # actually working.
  3109. break;;
  3110. * )
  3111. break;;
  3112. esac
  3113. done
  3114. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3115. else
  3116. ac_file=''
  3117. fi
  3118. if test -z "$ac_file"; then :
  3119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3120. $as_echo "no" >&6; }
  3121. $as_echo "$as_me: failed program was:" >&5
  3122. sed 's/^/| /' conftest.$ac_ext >&5
  3123. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3124. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3125. as_fn_error 77 "C compiler cannot create executables
  3126. See \`config.log' for more details" "$LINENO" 5; }
  3127. else
  3128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3129. $as_echo "yes" >&6; }
  3130. fi
  3131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3132. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3134. $as_echo "$ac_file" >&6; }
  3135. ac_exeext=$ac_cv_exeext
  3136. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3137. ac_clean_files=$ac_clean_files_save
  3138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3139. $as_echo_n "checking for suffix of executables... " >&6; }
  3140. if { { ac_try="$ac_link"
  3141. case "(($ac_try" in
  3142. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3143. *) ac_try_echo=$ac_try;;
  3144. esac
  3145. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3146. $as_echo "$ac_try_echo"; } >&5
  3147. (eval "$ac_link") 2>&5
  3148. ac_status=$?
  3149. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3150. test $ac_status = 0; }; then :
  3151. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3152. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3153. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3154. # `rm'.
  3155. for ac_file in conftest.exe conftest conftest.*; do
  3156. test -f "$ac_file" || continue
  3157. case $ac_file in
  3158. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3159. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3160. break;;
  3161. * ) break;;
  3162. esac
  3163. done
  3164. else
  3165. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3166. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3167. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3168. See \`config.log' for more details" "$LINENO" 5; }
  3169. fi
  3170. rm -f conftest conftest$ac_cv_exeext
  3171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3172. $as_echo "$ac_cv_exeext" >&6; }
  3173. rm -f conftest.$ac_ext
  3174. EXEEXT=$ac_cv_exeext
  3175. ac_exeext=$EXEEXT
  3176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3177. /* end confdefs.h. */
  3178. #include <stdio.h>
  3179. int
  3180. main ()
  3181. {
  3182. FILE *f = fopen ("conftest.out", "w");
  3183. return ferror (f) || fclose (f) != 0;
  3184. ;
  3185. return 0;
  3186. }
  3187. _ACEOF
  3188. ac_clean_files="$ac_clean_files conftest.out"
  3189. # Check that the compiler produces executables we can run. If not, either
  3190. # the compiler is broken, or we cross compile.
  3191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3192. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3193. if test "$cross_compiling" != yes; then
  3194. { { ac_try="$ac_link"
  3195. case "(($ac_try" in
  3196. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3197. *) ac_try_echo=$ac_try;;
  3198. esac
  3199. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3200. $as_echo "$ac_try_echo"; } >&5
  3201. (eval "$ac_link") 2>&5
  3202. ac_status=$?
  3203. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3204. test $ac_status = 0; }
  3205. if { ac_try='./conftest$ac_cv_exeext'
  3206. { { case "(($ac_try" in
  3207. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3208. *) ac_try_echo=$ac_try;;
  3209. esac
  3210. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3211. $as_echo "$ac_try_echo"; } >&5
  3212. (eval "$ac_try") 2>&5
  3213. ac_status=$?
  3214. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3215. test $ac_status = 0; }; }; then
  3216. cross_compiling=no
  3217. else
  3218. if test "$cross_compiling" = maybe; then
  3219. cross_compiling=yes
  3220. else
  3221. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3222. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3223. as_fn_error $? "cannot run C compiled programs.
  3224. If you meant to cross compile, use \`--host'.
  3225. See \`config.log' for more details" "$LINENO" 5; }
  3226. fi
  3227. fi
  3228. fi
  3229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3230. $as_echo "$cross_compiling" >&6; }
  3231. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3232. ac_clean_files=$ac_clean_files_save
  3233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3234. $as_echo_n "checking for suffix of object files... " >&6; }
  3235. if ${ac_cv_objext+:} false; then :
  3236. $as_echo_n "(cached) " >&6
  3237. else
  3238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3239. /* end confdefs.h. */
  3240. int
  3241. main ()
  3242. {
  3243. ;
  3244. return 0;
  3245. }
  3246. _ACEOF
  3247. rm -f conftest.o conftest.obj
  3248. if { { ac_try="$ac_compile"
  3249. case "(($ac_try" in
  3250. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3251. *) ac_try_echo=$ac_try;;
  3252. esac
  3253. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3254. $as_echo "$ac_try_echo"; } >&5
  3255. (eval "$ac_compile") 2>&5
  3256. ac_status=$?
  3257. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3258. test $ac_status = 0; }; then :
  3259. for ac_file in conftest.o conftest.obj conftest.*; do
  3260. test -f "$ac_file" || continue;
  3261. case $ac_file in
  3262. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3263. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3264. break;;
  3265. esac
  3266. done
  3267. else
  3268. $as_echo "$as_me: failed program was:" >&5
  3269. sed 's/^/| /' conftest.$ac_ext >&5
  3270. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3271. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3272. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3273. See \`config.log' for more details" "$LINENO" 5; }
  3274. fi
  3275. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3276. fi
  3277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3278. $as_echo "$ac_cv_objext" >&6; }
  3279. OBJEXT=$ac_cv_objext
  3280. ac_objext=$OBJEXT
  3281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3282. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3283. if ${ac_cv_c_compiler_gnu+:} false; then :
  3284. $as_echo_n "(cached) " >&6
  3285. else
  3286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3287. /* end confdefs.h. */
  3288. int
  3289. main ()
  3290. {
  3291. #ifndef __GNUC__
  3292. choke me
  3293. #endif
  3294. ;
  3295. return 0;
  3296. }
  3297. _ACEOF
  3298. if ac_fn_c_try_compile "$LINENO"; then :
  3299. ac_compiler_gnu=yes
  3300. else
  3301. ac_compiler_gnu=no
  3302. fi
  3303. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3304. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3305. fi
  3306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3307. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3308. if test $ac_compiler_gnu = yes; then
  3309. GCC=yes
  3310. else
  3311. GCC=
  3312. fi
  3313. ac_test_CFLAGS=${CFLAGS+set}
  3314. ac_save_CFLAGS=$CFLAGS
  3315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3316. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3317. if ${ac_cv_prog_cc_g+:} false; then :
  3318. $as_echo_n "(cached) " >&6
  3319. else
  3320. ac_save_c_werror_flag=$ac_c_werror_flag
  3321. ac_c_werror_flag=yes
  3322. ac_cv_prog_cc_g=no
  3323. CFLAGS="-g"
  3324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3325. /* end confdefs.h. */
  3326. int
  3327. main ()
  3328. {
  3329. ;
  3330. return 0;
  3331. }
  3332. _ACEOF
  3333. if ac_fn_c_try_compile "$LINENO"; then :
  3334. ac_cv_prog_cc_g=yes
  3335. else
  3336. CFLAGS=""
  3337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3338. /* end confdefs.h. */
  3339. int
  3340. main ()
  3341. {
  3342. ;
  3343. return 0;
  3344. }
  3345. _ACEOF
  3346. if ac_fn_c_try_compile "$LINENO"; then :
  3347. else
  3348. ac_c_werror_flag=$ac_save_c_werror_flag
  3349. CFLAGS="-g"
  3350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3351. /* end confdefs.h. */
  3352. int
  3353. main ()
  3354. {
  3355. ;
  3356. return 0;
  3357. }
  3358. _ACEOF
  3359. if ac_fn_c_try_compile "$LINENO"; then :
  3360. ac_cv_prog_cc_g=yes
  3361. fi
  3362. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3363. fi
  3364. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3365. fi
  3366. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3367. ac_c_werror_flag=$ac_save_c_werror_flag
  3368. fi
  3369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3370. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3371. if test "$ac_test_CFLAGS" = set; then
  3372. CFLAGS=$ac_save_CFLAGS
  3373. elif test $ac_cv_prog_cc_g = yes; then
  3374. if test "$GCC" = yes; then
  3375. CFLAGS="-g -O2"
  3376. else
  3377. CFLAGS="-g"
  3378. fi
  3379. else
  3380. if test "$GCC" = yes; then
  3381. CFLAGS="-O2"
  3382. else
  3383. CFLAGS=
  3384. fi
  3385. fi
  3386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3387. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3388. if ${ac_cv_prog_cc_c89+:} false; then :
  3389. $as_echo_n "(cached) " >&6
  3390. else
  3391. ac_cv_prog_cc_c89=no
  3392. ac_save_CC=$CC
  3393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3394. /* end confdefs.h. */
  3395. #include <stdarg.h>
  3396. #include <stdio.h>
  3397. struct stat;
  3398. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3399. struct buf { int x; };
  3400. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3401. static char *e (p, i)
  3402. char **p;
  3403. int i;
  3404. {
  3405. return p[i];
  3406. }
  3407. static char *f (char * (*g) (char **, int), char **p, ...)
  3408. {
  3409. char *s;
  3410. va_list v;
  3411. va_start (v,p);
  3412. s = g (p, va_arg (v,int));
  3413. va_end (v);
  3414. return s;
  3415. }
  3416. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3417. function prototypes and stuff, but not '\xHH' hex character constants.
  3418. These don't provoke an error unfortunately, instead are silently treated
  3419. as 'x'. The following induces an error, until -std is added to get
  3420. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3421. array size at least. It's necessary to write '\x00'==0 to get something
  3422. that's true only with -std. */
  3423. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3424. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3425. inside strings and character constants. */
  3426. #define FOO(x) 'x'
  3427. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3428. int test (int i, double x);
  3429. struct s1 {int (*f) (int a);};
  3430. struct s2 {int (*f) (double a);};
  3431. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3432. int argc;
  3433. char **argv;
  3434. int
  3435. main ()
  3436. {
  3437. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3438. ;
  3439. return 0;
  3440. }
  3441. _ACEOF
  3442. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3443. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3444. do
  3445. CC="$ac_save_CC $ac_arg"
  3446. if ac_fn_c_try_compile "$LINENO"; then :
  3447. ac_cv_prog_cc_c89=$ac_arg
  3448. fi
  3449. rm -f core conftest.err conftest.$ac_objext
  3450. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3451. done
  3452. rm -f conftest.$ac_ext
  3453. CC=$ac_save_CC
  3454. fi
  3455. # AC_CACHE_VAL
  3456. case "x$ac_cv_prog_cc_c89" in
  3457. x)
  3458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3459. $as_echo "none needed" >&6; } ;;
  3460. xno)
  3461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3462. $as_echo "unsupported" >&6; } ;;
  3463. *)
  3464. CC="$CC $ac_cv_prog_cc_c89"
  3465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3466. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3467. esac
  3468. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3469. fi
  3470. ac_ext=c
  3471. ac_cpp='$CPP $CPPFLAGS'
  3472. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3473. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3474. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3476. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3477. if ${ac_cv_path_SED+:} false; then :
  3478. $as_echo_n "(cached) " >&6
  3479. else
  3480. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3481. for ac_i in 1 2 3 4 5 6 7; do
  3482. ac_script="$ac_script$as_nl$ac_script"
  3483. done
  3484. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3485. { ac_script=; unset ac_script;}
  3486. if test -z "$SED"; then
  3487. ac_path_SED_found=false
  3488. # Loop through the user's path and test for each of PROGNAME-LIST
  3489. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3490. for as_dir in $PATH
  3491. do
  3492. IFS=$as_save_IFS
  3493. test -z "$as_dir" && as_dir=.
  3494. for ac_prog in sed gsed; do
  3495. for ac_exec_ext in '' $ac_executable_extensions; do
  3496. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3497. as_fn_executable_p "$ac_path_SED" || continue
  3498. # Check for GNU ac_path_SED and select it if it is found.
  3499. # Check for GNU $ac_path_SED
  3500. case `"$ac_path_SED" --version 2>&1` in
  3501. *GNU*)
  3502. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3503. *)
  3504. ac_count=0
  3505. $as_echo_n 0123456789 >"conftest.in"
  3506. while :
  3507. do
  3508. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3509. mv "conftest.tmp" "conftest.in"
  3510. cp "conftest.in" "conftest.nl"
  3511. $as_echo '' >> "conftest.nl"
  3512. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3513. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3514. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3515. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3516. # Best one so far, save it but keep looking for a better one
  3517. ac_cv_path_SED="$ac_path_SED"
  3518. ac_path_SED_max=$ac_count
  3519. fi
  3520. # 10*(2^10) chars as input seems more than enough
  3521. test $ac_count -gt 10 && break
  3522. done
  3523. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3524. esac
  3525. $ac_path_SED_found && break 3
  3526. done
  3527. done
  3528. done
  3529. IFS=$as_save_IFS
  3530. if test -z "$ac_cv_path_SED"; then
  3531. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3532. fi
  3533. else
  3534. ac_cv_path_SED=$SED
  3535. fi
  3536. fi
  3537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3538. $as_echo "$ac_cv_path_SED" >&6; }
  3539. SED="$ac_cv_path_SED"
  3540. rm -f conftest.sed
  3541. test -z "$SED" && SED=sed
  3542. Xsed="$SED -e 1s/^X//"
  3543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3544. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3545. if ${ac_cv_path_GREP+:} false; then :
  3546. $as_echo_n "(cached) " >&6
  3547. else
  3548. if test -z "$GREP"; then
  3549. ac_path_GREP_found=false
  3550. # Loop through the user's path and test for each of PROGNAME-LIST
  3551. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3552. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3553. do
  3554. IFS=$as_save_IFS
  3555. test -z "$as_dir" && as_dir=.
  3556. for ac_prog in grep ggrep; do
  3557. for ac_exec_ext in '' $ac_executable_extensions; do
  3558. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3559. as_fn_executable_p "$ac_path_GREP" || continue
  3560. # Check for GNU ac_path_GREP and select it if it is found.
  3561. # Check for GNU $ac_path_GREP
  3562. case `"$ac_path_GREP" --version 2>&1` in
  3563. *GNU*)
  3564. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3565. *)
  3566. ac_count=0
  3567. $as_echo_n 0123456789 >"conftest.in"
  3568. while :
  3569. do
  3570. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3571. mv "conftest.tmp" "conftest.in"
  3572. cp "conftest.in" "conftest.nl"
  3573. $as_echo 'GREP' >> "conftest.nl"
  3574. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3575. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3576. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3577. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3578. # Best one so far, save it but keep looking for a better one
  3579. ac_cv_path_GREP="$ac_path_GREP"
  3580. ac_path_GREP_max=$ac_count
  3581. fi
  3582. # 10*(2^10) chars as input seems more than enough
  3583. test $ac_count -gt 10 && break
  3584. done
  3585. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3586. esac
  3587. $ac_path_GREP_found && break 3
  3588. done
  3589. done
  3590. done
  3591. IFS=$as_save_IFS
  3592. if test -z "$ac_cv_path_GREP"; then
  3593. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3594. fi
  3595. else
  3596. ac_cv_path_GREP=$GREP
  3597. fi
  3598. fi
  3599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3600. $as_echo "$ac_cv_path_GREP" >&6; }
  3601. GREP="$ac_cv_path_GREP"
  3602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3603. $as_echo_n "checking for egrep... " >&6; }
  3604. if ${ac_cv_path_EGREP+:} false; then :
  3605. $as_echo_n "(cached) " >&6
  3606. else
  3607. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3608. then ac_cv_path_EGREP="$GREP -E"
  3609. else
  3610. if test -z "$EGREP"; then
  3611. ac_path_EGREP_found=false
  3612. # Loop through the user's path and test for each of PROGNAME-LIST
  3613. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3614. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3615. do
  3616. IFS=$as_save_IFS
  3617. test -z "$as_dir" && as_dir=.
  3618. for ac_prog in egrep; do
  3619. for ac_exec_ext in '' $ac_executable_extensions; do
  3620. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3621. as_fn_executable_p "$ac_path_EGREP" || continue
  3622. # Check for GNU ac_path_EGREP and select it if it is found.
  3623. # Check for GNU $ac_path_EGREP
  3624. case `"$ac_path_EGREP" --version 2>&1` in
  3625. *GNU*)
  3626. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3627. *)
  3628. ac_count=0
  3629. $as_echo_n 0123456789 >"conftest.in"
  3630. while :
  3631. do
  3632. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3633. mv "conftest.tmp" "conftest.in"
  3634. cp "conftest.in" "conftest.nl"
  3635. $as_echo 'EGREP' >> "conftest.nl"
  3636. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3637. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3638. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3639. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3640. # Best one so far, save it but keep looking for a better one
  3641. ac_cv_path_EGREP="$ac_path_EGREP"
  3642. ac_path_EGREP_max=$ac_count
  3643. fi
  3644. # 10*(2^10) chars as input seems more than enough
  3645. test $ac_count -gt 10 && break
  3646. done
  3647. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3648. esac
  3649. $ac_path_EGREP_found && break 3
  3650. done
  3651. done
  3652. done
  3653. IFS=$as_save_IFS
  3654. if test -z "$ac_cv_path_EGREP"; then
  3655. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3656. fi
  3657. else
  3658. ac_cv_path_EGREP=$EGREP
  3659. fi
  3660. fi
  3661. fi
  3662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3663. $as_echo "$ac_cv_path_EGREP" >&6; }
  3664. EGREP="$ac_cv_path_EGREP"
  3665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3666. $as_echo_n "checking for fgrep... " >&6; }
  3667. if ${ac_cv_path_FGREP+:} false; then :
  3668. $as_echo_n "(cached) " >&6
  3669. else
  3670. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3671. then ac_cv_path_FGREP="$GREP -F"
  3672. else
  3673. if test -z "$FGREP"; then
  3674. ac_path_FGREP_found=false
  3675. # Loop through the user's path and test for each of PROGNAME-LIST
  3676. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3677. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3678. do
  3679. IFS=$as_save_IFS
  3680. test -z "$as_dir" && as_dir=.
  3681. for ac_prog in fgrep; do
  3682. for ac_exec_ext in '' $ac_executable_extensions; do
  3683. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3684. as_fn_executable_p "$ac_path_FGREP" || continue
  3685. # Check for GNU ac_path_FGREP and select it if it is found.
  3686. # Check for GNU $ac_path_FGREP
  3687. case `"$ac_path_FGREP" --version 2>&1` in
  3688. *GNU*)
  3689. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3690. *)
  3691. ac_count=0
  3692. $as_echo_n 0123456789 >"conftest.in"
  3693. while :
  3694. do
  3695. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3696. mv "conftest.tmp" "conftest.in"
  3697. cp "conftest.in" "conftest.nl"
  3698. $as_echo 'FGREP' >> "conftest.nl"
  3699. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3700. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3701. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3702. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3703. # Best one so far, save it but keep looking for a better one
  3704. ac_cv_path_FGREP="$ac_path_FGREP"
  3705. ac_path_FGREP_max=$ac_count
  3706. fi
  3707. # 10*(2^10) chars as input seems more than enough
  3708. test $ac_count -gt 10 && break
  3709. done
  3710. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3711. esac
  3712. $ac_path_FGREP_found && break 3
  3713. done
  3714. done
  3715. done
  3716. IFS=$as_save_IFS
  3717. if test -z "$ac_cv_path_FGREP"; then
  3718. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3719. fi
  3720. else
  3721. ac_cv_path_FGREP=$FGREP
  3722. fi
  3723. fi
  3724. fi
  3725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3726. $as_echo "$ac_cv_path_FGREP" >&6; }
  3727. FGREP="$ac_cv_path_FGREP"
  3728. test -z "$GREP" && GREP=grep
  3729. # Check whether --with-gnu-ld was given.
  3730. if test "${with_gnu_ld+set}" = set; then :
  3731. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3732. else
  3733. with_gnu_ld=no
  3734. fi
  3735. ac_prog=ld
  3736. if test "$GCC" = yes; then
  3737. # Check if gcc -print-prog-name=ld gives a path.
  3738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3739. $as_echo_n "checking for ld used by $CC... " >&6; }
  3740. case $host in
  3741. *-*-mingw*)
  3742. # gcc leaves a trailing carriage return which upsets mingw
  3743. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3744. *)
  3745. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3746. esac
  3747. case $ac_prog in
  3748. # Accept absolute paths.
  3749. [\\/]* | ?:[\\/]*)
  3750. re_direlt='/[^/][^/]*/\.\./'
  3751. # Canonicalize the pathname of ld
  3752. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3753. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3754. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3755. done
  3756. test -z "$LD" && LD="$ac_prog"
  3757. ;;
  3758. "")
  3759. # If it fails, then pretend we aren't using GCC.
  3760. ac_prog=ld
  3761. ;;
  3762. *)
  3763. # If it is relative, then search for the first ld in PATH.
  3764. with_gnu_ld=unknown
  3765. ;;
  3766. esac
  3767. elif test "$with_gnu_ld" = yes; then
  3768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3769. $as_echo_n "checking for GNU ld... " >&6; }
  3770. else
  3771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3772. $as_echo_n "checking for non-GNU ld... " >&6; }
  3773. fi
  3774. if ${lt_cv_path_LD+:} false; then :
  3775. $as_echo_n "(cached) " >&6
  3776. else
  3777. if test -z "$LD"; then
  3778. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3779. for ac_dir in $PATH; do
  3780. IFS="$lt_save_ifs"
  3781. test -z "$ac_dir" && ac_dir=.
  3782. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3783. lt_cv_path_LD="$ac_dir/$ac_prog"
  3784. # Check to see if the program is GNU ld. I'd rather use --version,
  3785. # but apparently some variants of GNU ld only accept -v.
  3786. # Break only if it was the GNU/non-GNU ld that we prefer.
  3787. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3788. *GNU* | *'with BFD'*)
  3789. test "$with_gnu_ld" != no && break
  3790. ;;
  3791. *)
  3792. test "$with_gnu_ld" != yes && break
  3793. ;;
  3794. esac
  3795. fi
  3796. done
  3797. IFS="$lt_save_ifs"
  3798. else
  3799. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3800. fi
  3801. fi
  3802. LD="$lt_cv_path_LD"
  3803. if test -n "$LD"; then
  3804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3805. $as_echo "$LD" >&6; }
  3806. else
  3807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3808. $as_echo "no" >&6; }
  3809. fi
  3810. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3812. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3813. if ${lt_cv_prog_gnu_ld+:} false; then :
  3814. $as_echo_n "(cached) " >&6
  3815. else
  3816. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3817. case `$LD -v 2>&1 </dev/null` in
  3818. *GNU* | *'with BFD'*)
  3819. lt_cv_prog_gnu_ld=yes
  3820. ;;
  3821. *)
  3822. lt_cv_prog_gnu_ld=no
  3823. ;;
  3824. esac
  3825. fi
  3826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3827. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3828. with_gnu_ld=$lt_cv_prog_gnu_ld
  3829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3830. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3831. if ${lt_cv_path_NM+:} false; then :
  3832. $as_echo_n "(cached) " >&6
  3833. else
  3834. if test -n "$NM"; then
  3835. # Let the user override the test.
  3836. lt_cv_path_NM="$NM"
  3837. else
  3838. lt_nm_to_check="${ac_tool_prefix}nm"
  3839. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3840. lt_nm_to_check="$lt_nm_to_check nm"
  3841. fi
  3842. for lt_tmp_nm in $lt_nm_to_check; do
  3843. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3844. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3845. IFS="$lt_save_ifs"
  3846. test -z "$ac_dir" && ac_dir=.
  3847. tmp_nm="$ac_dir/$lt_tmp_nm"
  3848. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3849. # Check to see if the nm accepts a BSD-compat flag.
  3850. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3851. # nm: unknown option "B" ignored
  3852. # Tru64's nm complains that /dev/null is an invalid object file
  3853. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3854. */dev/null* | *'Invalid file or object type'*)
  3855. lt_cv_path_NM="$tmp_nm -B"
  3856. break
  3857. ;;
  3858. *)
  3859. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3860. */dev/null*)
  3861. lt_cv_path_NM="$tmp_nm -p"
  3862. break
  3863. ;;
  3864. *)
  3865. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3866. continue # so that we can try to find one that supports BSD flags
  3867. ;;
  3868. esac
  3869. ;;
  3870. esac
  3871. fi
  3872. done
  3873. IFS="$lt_save_ifs"
  3874. done
  3875. : ${lt_cv_path_NM=no}
  3876. fi
  3877. fi
  3878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3879. $as_echo "$lt_cv_path_NM" >&6; }
  3880. if test "$lt_cv_path_NM" != "no"; then
  3881. NM="$lt_cv_path_NM"
  3882. else
  3883. # Didn't find any BSD compatible name lister, look for dumpbin.
  3884. if test -n "$DUMPBIN"; then :
  3885. # Let the user override the test.
  3886. else
  3887. if test -n "$ac_tool_prefix"; then
  3888. for ac_prog in dumpbin "link -dump"
  3889. do
  3890. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3891. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3893. $as_echo_n "checking for $ac_word... " >&6; }
  3894. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3895. $as_echo_n "(cached) " >&6
  3896. else
  3897. if test -n "$DUMPBIN"; then
  3898. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3899. else
  3900. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3901. for as_dir in $PATH
  3902. do
  3903. IFS=$as_save_IFS
  3904. test -z "$as_dir" && as_dir=.
  3905. for ac_exec_ext in '' $ac_executable_extensions; do
  3906. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3907. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3908. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3909. break 2
  3910. fi
  3911. done
  3912. done
  3913. IFS=$as_save_IFS
  3914. fi
  3915. fi
  3916. DUMPBIN=$ac_cv_prog_DUMPBIN
  3917. if test -n "$DUMPBIN"; then
  3918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3919. $as_echo "$DUMPBIN" >&6; }
  3920. else
  3921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3922. $as_echo "no" >&6; }
  3923. fi
  3924. test -n "$DUMPBIN" && break
  3925. done
  3926. fi
  3927. if test -z "$DUMPBIN"; then
  3928. ac_ct_DUMPBIN=$DUMPBIN
  3929. for ac_prog in dumpbin "link -dump"
  3930. do
  3931. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3932. set dummy $ac_prog; ac_word=$2
  3933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3934. $as_echo_n "checking for $ac_word... " >&6; }
  3935. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3936. $as_echo_n "(cached) " >&6
  3937. else
  3938. if test -n "$ac_ct_DUMPBIN"; then
  3939. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3940. else
  3941. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3942. for as_dir in $PATH
  3943. do
  3944. IFS=$as_save_IFS
  3945. test -z "$as_dir" && as_dir=.
  3946. for ac_exec_ext in '' $ac_executable_extensions; do
  3947. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3948. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3949. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3950. break 2
  3951. fi
  3952. done
  3953. done
  3954. IFS=$as_save_IFS
  3955. fi
  3956. fi
  3957. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3958. if test -n "$ac_ct_DUMPBIN"; then
  3959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3960. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3961. else
  3962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3963. $as_echo "no" >&6; }
  3964. fi
  3965. test -n "$ac_ct_DUMPBIN" && break
  3966. done
  3967. if test "x$ac_ct_DUMPBIN" = x; then
  3968. DUMPBIN=":"
  3969. else
  3970. case $cross_compiling:$ac_tool_warned in
  3971. yes:)
  3972. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3973. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3974. ac_tool_warned=yes ;;
  3975. esac
  3976. DUMPBIN=$ac_ct_DUMPBIN
  3977. fi
  3978. fi
  3979. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3980. *COFF*)
  3981. DUMPBIN="$DUMPBIN -symbols"
  3982. ;;
  3983. *)
  3984. DUMPBIN=:
  3985. ;;
  3986. esac
  3987. fi
  3988. if test "$DUMPBIN" != ":"; then
  3989. NM="$DUMPBIN"
  3990. fi
  3991. fi
  3992. test -z "$NM" && NM=nm
  3993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3994. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3995. if ${lt_cv_nm_interface+:} false; then :
  3996. $as_echo_n "(cached) " >&6
  3997. else
  3998. lt_cv_nm_interface="BSD nm"
  3999. echo "int some_variable = 0;" > conftest.$ac_ext
  4000. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4001. (eval "$ac_compile" 2>conftest.err)
  4002. cat conftest.err >&5
  4003. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4004. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4005. cat conftest.err >&5
  4006. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4007. cat conftest.out >&5
  4008. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4009. lt_cv_nm_interface="MS dumpbin"
  4010. fi
  4011. rm -f conftest*
  4012. fi
  4013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4014. $as_echo "$lt_cv_nm_interface" >&6; }
  4015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4016. $as_echo_n "checking whether ln -s works... " >&6; }
  4017. LN_S=$as_ln_s
  4018. if test "$LN_S" = "ln -s"; then
  4019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4020. $as_echo "yes" >&6; }
  4021. else
  4022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4023. $as_echo "no, using $LN_S" >&6; }
  4024. fi
  4025. # find the maximum length of command line arguments
  4026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4027. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4028. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4029. $as_echo_n "(cached) " >&6
  4030. else
  4031. i=0
  4032. teststring="ABCD"
  4033. case $build_os in
  4034. msdosdjgpp*)
  4035. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4036. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4037. # during glob expansion). Even if it were fixed, the result of this
  4038. # check would be larger than it should be.
  4039. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4040. ;;
  4041. gnu*)
  4042. # Under GNU Hurd, this test is not required because there is
  4043. # no limit to the length of command line arguments.
  4044. # Libtool will interpret -1 as no limit whatsoever
  4045. lt_cv_sys_max_cmd_len=-1;
  4046. ;;
  4047. cygwin* | mingw* | cegcc*)
  4048. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4049. # about 5 minutes as the teststring grows exponentially.
  4050. # Worse, since 9x/ME are not pre-emptively multitasking,
  4051. # you end up with a "frozen" computer, even though with patience
  4052. # the test eventually succeeds (with a max line length of 256k).
  4053. # Instead, let's just punt: use the minimum linelength reported by
  4054. # all of the supported platforms: 8192 (on NT/2K/XP).
  4055. lt_cv_sys_max_cmd_len=8192;
  4056. ;;
  4057. mint*)
  4058. # On MiNT this can take a long time and run out of memory.
  4059. lt_cv_sys_max_cmd_len=8192;
  4060. ;;
  4061. amigaos*)
  4062. # On AmigaOS with pdksh, this test takes hours, literally.
  4063. # So we just punt and use a minimum line length of 8192.
  4064. lt_cv_sys_max_cmd_len=8192;
  4065. ;;
  4066. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4067. # This has been around since 386BSD, at least. Likely further.
  4068. if test -x /sbin/sysctl; then
  4069. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4070. elif test -x /usr/sbin/sysctl; then
  4071. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4072. else
  4073. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4074. fi
  4075. # And add a safety zone
  4076. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4077. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4078. ;;
  4079. interix*)
  4080. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4081. lt_cv_sys_max_cmd_len=196608
  4082. ;;
  4083. os2*)
  4084. # The test takes a long time on OS/2.
  4085. lt_cv_sys_max_cmd_len=8192
  4086. ;;
  4087. osf*)
  4088. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4089. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4090. # nice to cause kernel panics so lets avoid the loop below.
  4091. # First set a reasonable default.
  4092. lt_cv_sys_max_cmd_len=16384
  4093. #
  4094. if test -x /sbin/sysconfig; then
  4095. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4096. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4097. esac
  4098. fi
  4099. ;;
  4100. sco3.2v5*)
  4101. lt_cv_sys_max_cmd_len=102400
  4102. ;;
  4103. sysv5* | sco5v6* | sysv4.2uw2*)
  4104. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4105. if test -n "$kargmax"; then
  4106. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4107. else
  4108. lt_cv_sys_max_cmd_len=32768
  4109. fi
  4110. ;;
  4111. *)
  4112. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4113. if test -n "$lt_cv_sys_max_cmd_len"; then
  4114. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4115. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4116. else
  4117. # Make teststring a little bigger before we do anything with it.
  4118. # a 1K string should be a reasonable start.
  4119. for i in 1 2 3 4 5 6 7 8 ; do
  4120. teststring=$teststring$teststring
  4121. done
  4122. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4123. # If test is not a shell built-in, we'll probably end up computing a
  4124. # maximum length that is only half of the actual maximum length, but
  4125. # we can't tell.
  4126. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4127. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4128. test $i != 17 # 1/2 MB should be enough
  4129. do
  4130. i=`expr $i + 1`
  4131. teststring=$teststring$teststring
  4132. done
  4133. # Only check the string length outside the loop.
  4134. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4135. teststring=
  4136. # Add a significant safety factor because C++ compilers can tack on
  4137. # massive amounts of additional arguments before passing them to the
  4138. # linker. It appears as though 1/2 is a usable value.
  4139. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4140. fi
  4141. ;;
  4142. esac
  4143. fi
  4144. if test -n $lt_cv_sys_max_cmd_len ; then
  4145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4146. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4147. else
  4148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4149. $as_echo "none" >&6; }
  4150. fi
  4151. max_cmd_len=$lt_cv_sys_max_cmd_len
  4152. : ${CP="cp -f"}
  4153. : ${MV="mv -f"}
  4154. : ${RM="rm -f"}
  4155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4156. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4157. # Try some XSI features
  4158. xsi_shell=no
  4159. ( _lt_dummy="a/b/c"
  4160. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4161. = c,a/b,b/c, \
  4162. && eval 'test $(( 1 + 1 )) -eq 2 \
  4163. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4164. && xsi_shell=yes
  4165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4166. $as_echo "$xsi_shell" >&6; }
  4167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4168. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4169. lt_shell_append=no
  4170. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4171. >/dev/null 2>&1 \
  4172. && lt_shell_append=yes
  4173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4174. $as_echo "$lt_shell_append" >&6; }
  4175. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4176. lt_unset=unset
  4177. else
  4178. lt_unset=false
  4179. fi
  4180. # test EBCDIC or ASCII
  4181. case `echo X|tr X '\101'` in
  4182. A) # ASCII based system
  4183. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4184. lt_SP2NL='tr \040 \012'
  4185. lt_NL2SP='tr \015\012 \040\040'
  4186. ;;
  4187. *) # EBCDIC based system
  4188. lt_SP2NL='tr \100 \n'
  4189. lt_NL2SP='tr \r\n \100\100'
  4190. ;;
  4191. esac
  4192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4193. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4194. if ${lt_cv_to_host_file_cmd+:} false; then :
  4195. $as_echo_n "(cached) " >&6
  4196. else
  4197. case $host in
  4198. *-*-mingw* )
  4199. case $build in
  4200. *-*-mingw* ) # actually msys
  4201. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4202. ;;
  4203. *-*-cygwin* )
  4204. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4205. ;;
  4206. * ) # otherwise, assume *nix
  4207. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4208. ;;
  4209. esac
  4210. ;;
  4211. *-*-cygwin* )
  4212. case $build in
  4213. *-*-mingw* ) # actually msys
  4214. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4215. ;;
  4216. *-*-cygwin* )
  4217. lt_cv_to_host_file_cmd=func_convert_file_noop
  4218. ;;
  4219. * ) # otherwise, assume *nix
  4220. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4221. ;;
  4222. esac
  4223. ;;
  4224. * ) # unhandled hosts (and "normal" native builds)
  4225. lt_cv_to_host_file_cmd=func_convert_file_noop
  4226. ;;
  4227. esac
  4228. fi
  4229. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4231. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4233. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4234. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4235. $as_echo_n "(cached) " >&6
  4236. else
  4237. #assume ordinary cross tools, or native build.
  4238. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4239. case $host in
  4240. *-*-mingw* )
  4241. case $build in
  4242. *-*-mingw* ) # actually msys
  4243. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4244. ;;
  4245. esac
  4246. ;;
  4247. esac
  4248. fi
  4249. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4251. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4253. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4254. if ${lt_cv_ld_reload_flag+:} false; then :
  4255. $as_echo_n "(cached) " >&6
  4256. else
  4257. lt_cv_ld_reload_flag='-r'
  4258. fi
  4259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4260. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4261. reload_flag=$lt_cv_ld_reload_flag
  4262. case $reload_flag in
  4263. "" | " "*) ;;
  4264. *) reload_flag=" $reload_flag" ;;
  4265. esac
  4266. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4267. case $host_os in
  4268. cygwin* | mingw* | pw32* | cegcc*)
  4269. if test "$GCC" != yes; then
  4270. reload_cmds=false
  4271. fi
  4272. ;;
  4273. darwin*)
  4274. if test "$GCC" = yes; then
  4275. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4276. else
  4277. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4278. fi
  4279. ;;
  4280. esac
  4281. if test -n "$ac_tool_prefix"; then
  4282. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4283. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4285. $as_echo_n "checking for $ac_word... " >&6; }
  4286. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4287. $as_echo_n "(cached) " >&6
  4288. else
  4289. if test -n "$OBJDUMP"; then
  4290. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4291. else
  4292. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4293. for as_dir in $PATH
  4294. do
  4295. IFS=$as_save_IFS
  4296. test -z "$as_dir" && as_dir=.
  4297. for ac_exec_ext in '' $ac_executable_extensions; do
  4298. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4299. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4300. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4301. break 2
  4302. fi
  4303. done
  4304. done
  4305. IFS=$as_save_IFS
  4306. fi
  4307. fi
  4308. OBJDUMP=$ac_cv_prog_OBJDUMP
  4309. if test -n "$OBJDUMP"; then
  4310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4311. $as_echo "$OBJDUMP" >&6; }
  4312. else
  4313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4314. $as_echo "no" >&6; }
  4315. fi
  4316. fi
  4317. if test -z "$ac_cv_prog_OBJDUMP"; then
  4318. ac_ct_OBJDUMP=$OBJDUMP
  4319. # Extract the first word of "objdump", so it can be a program name with args.
  4320. set dummy objdump; ac_word=$2
  4321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4322. $as_echo_n "checking for $ac_word... " >&6; }
  4323. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4324. $as_echo_n "(cached) " >&6
  4325. else
  4326. if test -n "$ac_ct_OBJDUMP"; then
  4327. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4328. else
  4329. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4330. for as_dir in $PATH
  4331. do
  4332. IFS=$as_save_IFS
  4333. test -z "$as_dir" && as_dir=.
  4334. for ac_exec_ext in '' $ac_executable_extensions; do
  4335. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4336. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4337. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4338. break 2
  4339. fi
  4340. done
  4341. done
  4342. IFS=$as_save_IFS
  4343. fi
  4344. fi
  4345. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4346. if test -n "$ac_ct_OBJDUMP"; then
  4347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4348. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4349. else
  4350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4351. $as_echo "no" >&6; }
  4352. fi
  4353. if test "x$ac_ct_OBJDUMP" = x; then
  4354. OBJDUMP="false"
  4355. else
  4356. case $cross_compiling:$ac_tool_warned in
  4357. yes:)
  4358. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4359. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4360. ac_tool_warned=yes ;;
  4361. esac
  4362. OBJDUMP=$ac_ct_OBJDUMP
  4363. fi
  4364. else
  4365. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4366. fi
  4367. test -z "$OBJDUMP" && OBJDUMP=objdump
  4368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4369. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4370. if ${lt_cv_deplibs_check_method+:} false; then :
  4371. $as_echo_n "(cached) " >&6
  4372. else
  4373. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4374. lt_cv_file_magic_test_file=
  4375. lt_cv_deplibs_check_method='unknown'
  4376. # Need to set the preceding variable on all platforms that support
  4377. # interlibrary dependencies.
  4378. # 'none' -- dependencies not supported.
  4379. # `unknown' -- same as none, but documents that we really don't know.
  4380. # 'pass_all' -- all dependencies passed with no checks.
  4381. # 'test_compile' -- check by making test program.
  4382. # 'file_magic [[regex]]' -- check by looking for files in library path
  4383. # which responds to the $file_magic_cmd with a given extended regex.
  4384. # If you have `file' or equivalent on your system and you're not sure
  4385. # whether `pass_all' will *always* work, you probably want this one.
  4386. case $host_os in
  4387. aix[4-9]*)
  4388. lt_cv_deplibs_check_method=pass_all
  4389. ;;
  4390. beos*)
  4391. lt_cv_deplibs_check_method=pass_all
  4392. ;;
  4393. bsdi[45]*)
  4394. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4395. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4396. lt_cv_file_magic_test_file=/shlib/libc.so
  4397. ;;
  4398. cygwin*)
  4399. # func_win32_libid is a shell function defined in ltmain.sh
  4400. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4401. lt_cv_file_magic_cmd='func_win32_libid'
  4402. lt_cv_deplibs_check_method=pass_all
  4403. ;;
  4404. mingw* | pw32*)
  4405. # Base MSYS/MinGW do not provide the 'file' command needed by
  4406. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4407. # unless we find 'file', for example because we are cross-compiling.
  4408. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4409. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4410. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4411. lt_cv_file_magic_cmd='func_win32_libid'
  4412. else
  4413. # Keep this pattern in sync with the one in func_win32_libid.
  4414. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4415. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4416. fi
  4417. lt_cv_deplibs_check_method=pass_all
  4418. ;;
  4419. cegcc*)
  4420. # use the weaker test based on 'objdump'. See mingw*.
  4421. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4422. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4423. ;;
  4424. darwin* | rhapsody*)
  4425. lt_cv_deplibs_check_method=pass_all
  4426. ;;
  4427. freebsd* | dragonfly*)
  4428. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4429. case $host_cpu in
  4430. i*86 )
  4431. # Not sure whether the presence of OpenBSD here was a mistake.
  4432. # Let's accept both of them until this is cleared up.
  4433. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4434. lt_cv_file_magic_cmd=/usr/bin/file
  4435. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4436. ;;
  4437. esac
  4438. else
  4439. lt_cv_deplibs_check_method=pass_all
  4440. fi
  4441. ;;
  4442. gnu*)
  4443. lt_cv_deplibs_check_method=pass_all
  4444. ;;
  4445. haiku*)
  4446. lt_cv_deplibs_check_method=pass_all
  4447. ;;
  4448. hpux10.20* | hpux11*)
  4449. lt_cv_file_magic_cmd=/usr/bin/file
  4450. case $host_cpu in
  4451. ia64*)
  4452. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4453. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4454. ;;
  4455. hppa*64*)
  4456. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  4457. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4458. ;;
  4459. *)
  4460. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4461. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4462. ;;
  4463. esac
  4464. ;;
  4465. interix[3-9]*)
  4466. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4467. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4468. ;;
  4469. irix5* | irix6* | nonstopux*)
  4470. case $LD in
  4471. *-32|*"-32 ") libmagic=32-bit;;
  4472. *-n32|*"-n32 ") libmagic=N32;;
  4473. *-64|*"-64 ") libmagic=64-bit;;
  4474. *) libmagic=never-match;;
  4475. esac
  4476. lt_cv_deplibs_check_method=pass_all
  4477. ;;
  4478. # This must be glibc/ELF.
  4479. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4480. lt_cv_deplibs_check_method=pass_all
  4481. ;;
  4482. netbsd*)
  4483. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4484. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4485. else
  4486. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4487. fi
  4488. ;;
  4489. newos6*)
  4490. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4491. lt_cv_file_magic_cmd=/usr/bin/file
  4492. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4493. ;;
  4494. *nto* | *qnx*)
  4495. lt_cv_deplibs_check_method=pass_all
  4496. ;;
  4497. openbsd*)
  4498. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4499. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4500. else
  4501. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4502. fi
  4503. ;;
  4504. osf3* | osf4* | osf5*)
  4505. lt_cv_deplibs_check_method=pass_all
  4506. ;;
  4507. rdos*)
  4508. lt_cv_deplibs_check_method=pass_all
  4509. ;;
  4510. solaris*)
  4511. lt_cv_deplibs_check_method=pass_all
  4512. ;;
  4513. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4514. lt_cv_deplibs_check_method=pass_all
  4515. ;;
  4516. sysv4 | sysv4.3*)
  4517. case $host_vendor in
  4518. motorola)
  4519. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  4520. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4521. ;;
  4522. ncr)
  4523. lt_cv_deplibs_check_method=pass_all
  4524. ;;
  4525. sequent)
  4526. lt_cv_file_magic_cmd='/bin/file'
  4527. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4528. ;;
  4529. sni)
  4530. lt_cv_file_magic_cmd='/bin/file'
  4531. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4532. lt_cv_file_magic_test_file=/lib/libc.so
  4533. ;;
  4534. siemens)
  4535. lt_cv_deplibs_check_method=pass_all
  4536. ;;
  4537. pc)
  4538. lt_cv_deplibs_check_method=pass_all
  4539. ;;
  4540. esac
  4541. ;;
  4542. tpf*)
  4543. lt_cv_deplibs_check_method=pass_all
  4544. ;;
  4545. esac
  4546. fi
  4547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4548. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4549. file_magic_glob=
  4550. want_nocaseglob=no
  4551. if test "$build" = "$host"; then
  4552. case $host_os in
  4553. mingw* | pw32*)
  4554. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4555. want_nocaseglob=yes
  4556. else
  4557. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4558. fi
  4559. ;;
  4560. esac
  4561. fi
  4562. file_magic_cmd=$lt_cv_file_magic_cmd
  4563. deplibs_check_method=$lt_cv_deplibs_check_method
  4564. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4565. if test -n "$ac_tool_prefix"; then
  4566. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4567. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4569. $as_echo_n "checking for $ac_word... " >&6; }
  4570. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4571. $as_echo_n "(cached) " >&6
  4572. else
  4573. if test -n "$DLLTOOL"; then
  4574. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4575. else
  4576. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4577. for as_dir in $PATH
  4578. do
  4579. IFS=$as_save_IFS
  4580. test -z "$as_dir" && as_dir=.
  4581. for ac_exec_ext in '' $ac_executable_extensions; do
  4582. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4583. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4584. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4585. break 2
  4586. fi
  4587. done
  4588. done
  4589. IFS=$as_save_IFS
  4590. fi
  4591. fi
  4592. DLLTOOL=$ac_cv_prog_DLLTOOL
  4593. if test -n "$DLLTOOL"; then
  4594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4595. $as_echo "$DLLTOOL" >&6; }
  4596. else
  4597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4598. $as_echo "no" >&6; }
  4599. fi
  4600. fi
  4601. if test -z "$ac_cv_prog_DLLTOOL"; then
  4602. ac_ct_DLLTOOL=$DLLTOOL
  4603. # Extract the first word of "dlltool", so it can be a program name with args.
  4604. set dummy dlltool; ac_word=$2
  4605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4606. $as_echo_n "checking for $ac_word... " >&6; }
  4607. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4608. $as_echo_n "(cached) " >&6
  4609. else
  4610. if test -n "$ac_ct_DLLTOOL"; then
  4611. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4612. else
  4613. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4614. for as_dir in $PATH
  4615. do
  4616. IFS=$as_save_IFS
  4617. test -z "$as_dir" && as_dir=.
  4618. for ac_exec_ext in '' $ac_executable_extensions; do
  4619. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4620. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4621. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4622. break 2
  4623. fi
  4624. done
  4625. done
  4626. IFS=$as_save_IFS
  4627. fi
  4628. fi
  4629. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4630. if test -n "$ac_ct_DLLTOOL"; then
  4631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4632. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4633. else
  4634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4635. $as_echo "no" >&6; }
  4636. fi
  4637. if test "x$ac_ct_DLLTOOL" = x; then
  4638. DLLTOOL="false"
  4639. else
  4640. case $cross_compiling:$ac_tool_warned in
  4641. yes:)
  4642. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4643. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4644. ac_tool_warned=yes ;;
  4645. esac
  4646. DLLTOOL=$ac_ct_DLLTOOL
  4647. fi
  4648. else
  4649. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4650. fi
  4651. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4653. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4654. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4655. $as_echo_n "(cached) " >&6
  4656. else
  4657. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4658. case $host_os in
  4659. cygwin* | mingw* | pw32* | cegcc*)
  4660. # two different shell functions defined in ltmain.sh
  4661. # decide which to use based on capabilities of $DLLTOOL
  4662. case `$DLLTOOL --help 2>&1` in
  4663. *--identify-strict*)
  4664. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4665. ;;
  4666. *)
  4667. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4668. ;;
  4669. esac
  4670. ;;
  4671. *)
  4672. # fallback: assume linklib IS sharedlib
  4673. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4674. ;;
  4675. esac
  4676. fi
  4677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4678. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4679. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4680. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4681. if test -n "$ac_tool_prefix"; then
  4682. for ac_prog in ar
  4683. do
  4684. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4685. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4687. $as_echo_n "checking for $ac_word... " >&6; }
  4688. if ${ac_cv_prog_AR+:} false; then :
  4689. $as_echo_n "(cached) " >&6
  4690. else
  4691. if test -n "$AR"; then
  4692. ac_cv_prog_AR="$AR" # Let the user override the test.
  4693. else
  4694. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4695. for as_dir in $PATH
  4696. do
  4697. IFS=$as_save_IFS
  4698. test -z "$as_dir" && as_dir=.
  4699. for ac_exec_ext in '' $ac_executable_extensions; do
  4700. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4701. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4702. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4703. break 2
  4704. fi
  4705. done
  4706. done
  4707. IFS=$as_save_IFS
  4708. fi
  4709. fi
  4710. AR=$ac_cv_prog_AR
  4711. if test -n "$AR"; then
  4712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4713. $as_echo "$AR" >&6; }
  4714. else
  4715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4716. $as_echo "no" >&6; }
  4717. fi
  4718. test -n "$AR" && break
  4719. done
  4720. fi
  4721. if test -z "$AR"; then
  4722. ac_ct_AR=$AR
  4723. for ac_prog in ar
  4724. do
  4725. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4726. set dummy $ac_prog; ac_word=$2
  4727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4728. $as_echo_n "checking for $ac_word... " >&6; }
  4729. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4730. $as_echo_n "(cached) " >&6
  4731. else
  4732. if test -n "$ac_ct_AR"; then
  4733. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4734. else
  4735. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4736. for as_dir in $PATH
  4737. do
  4738. IFS=$as_save_IFS
  4739. test -z "$as_dir" && as_dir=.
  4740. for ac_exec_ext in '' $ac_executable_extensions; do
  4741. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4742. ac_cv_prog_ac_ct_AR="$ac_prog"
  4743. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4744. break 2
  4745. fi
  4746. done
  4747. done
  4748. IFS=$as_save_IFS
  4749. fi
  4750. fi
  4751. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4752. if test -n "$ac_ct_AR"; then
  4753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4754. $as_echo "$ac_ct_AR" >&6; }
  4755. else
  4756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4757. $as_echo "no" >&6; }
  4758. fi
  4759. test -n "$ac_ct_AR" && break
  4760. done
  4761. if test "x$ac_ct_AR" = x; then
  4762. AR="false"
  4763. else
  4764. case $cross_compiling:$ac_tool_warned in
  4765. yes:)
  4766. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4767. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4768. ac_tool_warned=yes ;;
  4769. esac
  4770. AR=$ac_ct_AR
  4771. fi
  4772. fi
  4773. : ${AR=ar}
  4774. : ${AR_FLAGS=cru}
  4775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4776. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4777. if ${lt_cv_ar_at_file+:} false; then :
  4778. $as_echo_n "(cached) " >&6
  4779. else
  4780. lt_cv_ar_at_file=no
  4781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4782. /* end confdefs.h. */
  4783. int
  4784. main ()
  4785. {
  4786. ;
  4787. return 0;
  4788. }
  4789. _ACEOF
  4790. if ac_fn_c_try_compile "$LINENO"; then :
  4791. echo conftest.$ac_objext > conftest.lst
  4792. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4793. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4794. (eval $lt_ar_try) 2>&5
  4795. ac_status=$?
  4796. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4797. test $ac_status = 0; }
  4798. if test "$ac_status" -eq 0; then
  4799. # Ensure the archiver fails upon bogus file names.
  4800. rm -f conftest.$ac_objext libconftest.a
  4801. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4802. (eval $lt_ar_try) 2>&5
  4803. ac_status=$?
  4804. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4805. test $ac_status = 0; }
  4806. if test "$ac_status" -ne 0; then
  4807. lt_cv_ar_at_file=@
  4808. fi
  4809. fi
  4810. rm -f conftest.* libconftest.a
  4811. fi
  4812. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4813. fi
  4814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4815. $as_echo "$lt_cv_ar_at_file" >&6; }
  4816. if test "x$lt_cv_ar_at_file" = xno; then
  4817. archiver_list_spec=
  4818. else
  4819. archiver_list_spec=$lt_cv_ar_at_file
  4820. fi
  4821. if test -n "$ac_tool_prefix"; then
  4822. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4823. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4825. $as_echo_n "checking for $ac_word... " >&6; }
  4826. if ${ac_cv_prog_STRIP+:} false; then :
  4827. $as_echo_n "(cached) " >&6
  4828. else
  4829. if test -n "$STRIP"; then
  4830. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4831. else
  4832. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4833. for as_dir in $PATH
  4834. do
  4835. IFS=$as_save_IFS
  4836. test -z "$as_dir" && as_dir=.
  4837. for ac_exec_ext in '' $ac_executable_extensions; do
  4838. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4839. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4840. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4841. break 2
  4842. fi
  4843. done
  4844. done
  4845. IFS=$as_save_IFS
  4846. fi
  4847. fi
  4848. STRIP=$ac_cv_prog_STRIP
  4849. if test -n "$STRIP"; then
  4850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4851. $as_echo "$STRIP" >&6; }
  4852. else
  4853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4854. $as_echo "no" >&6; }
  4855. fi
  4856. fi
  4857. if test -z "$ac_cv_prog_STRIP"; then
  4858. ac_ct_STRIP=$STRIP
  4859. # Extract the first word of "strip", so it can be a program name with args.
  4860. set dummy strip; ac_word=$2
  4861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4862. $as_echo_n "checking for $ac_word... " >&6; }
  4863. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4864. $as_echo_n "(cached) " >&6
  4865. else
  4866. if test -n "$ac_ct_STRIP"; then
  4867. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4868. else
  4869. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4870. for as_dir in $PATH
  4871. do
  4872. IFS=$as_save_IFS
  4873. test -z "$as_dir" && as_dir=.
  4874. for ac_exec_ext in '' $ac_executable_extensions; do
  4875. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4876. ac_cv_prog_ac_ct_STRIP="strip"
  4877. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4878. break 2
  4879. fi
  4880. done
  4881. done
  4882. IFS=$as_save_IFS
  4883. fi
  4884. fi
  4885. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4886. if test -n "$ac_ct_STRIP"; then
  4887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4888. $as_echo "$ac_ct_STRIP" >&6; }
  4889. else
  4890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4891. $as_echo "no" >&6; }
  4892. fi
  4893. if test "x$ac_ct_STRIP" = x; then
  4894. STRIP=":"
  4895. else
  4896. case $cross_compiling:$ac_tool_warned in
  4897. yes:)
  4898. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4899. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4900. ac_tool_warned=yes ;;
  4901. esac
  4902. STRIP=$ac_ct_STRIP
  4903. fi
  4904. else
  4905. STRIP="$ac_cv_prog_STRIP"
  4906. fi
  4907. test -z "$STRIP" && STRIP=:
  4908. if test -n "$ac_tool_prefix"; then
  4909. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4910. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4912. $as_echo_n "checking for $ac_word... " >&6; }
  4913. if ${ac_cv_prog_RANLIB+:} false; then :
  4914. $as_echo_n "(cached) " >&6
  4915. else
  4916. if test -n "$RANLIB"; then
  4917. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4918. else
  4919. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4920. for as_dir in $PATH
  4921. do
  4922. IFS=$as_save_IFS
  4923. test -z "$as_dir" && as_dir=.
  4924. for ac_exec_ext in '' $ac_executable_extensions; do
  4925. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4926. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4927. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4928. break 2
  4929. fi
  4930. done
  4931. done
  4932. IFS=$as_save_IFS
  4933. fi
  4934. fi
  4935. RANLIB=$ac_cv_prog_RANLIB
  4936. if test -n "$RANLIB"; then
  4937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4938. $as_echo "$RANLIB" >&6; }
  4939. else
  4940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4941. $as_echo "no" >&6; }
  4942. fi
  4943. fi
  4944. if test -z "$ac_cv_prog_RANLIB"; then
  4945. ac_ct_RANLIB=$RANLIB
  4946. # Extract the first word of "ranlib", so it can be a program name with args.
  4947. set dummy ranlib; ac_word=$2
  4948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4949. $as_echo_n "checking for $ac_word... " >&6; }
  4950. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4951. $as_echo_n "(cached) " >&6
  4952. else
  4953. if test -n "$ac_ct_RANLIB"; then
  4954. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4955. else
  4956. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4957. for as_dir in $PATH
  4958. do
  4959. IFS=$as_save_IFS
  4960. test -z "$as_dir" && as_dir=.
  4961. for ac_exec_ext in '' $ac_executable_extensions; do
  4962. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4963. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4964. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4965. break 2
  4966. fi
  4967. done
  4968. done
  4969. IFS=$as_save_IFS
  4970. fi
  4971. fi
  4972. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4973. if test -n "$ac_ct_RANLIB"; then
  4974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4975. $as_echo "$ac_ct_RANLIB" >&6; }
  4976. else
  4977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4978. $as_echo "no" >&6; }
  4979. fi
  4980. if test "x$ac_ct_RANLIB" = x; then
  4981. RANLIB=":"
  4982. else
  4983. case $cross_compiling:$ac_tool_warned in
  4984. yes:)
  4985. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4986. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4987. ac_tool_warned=yes ;;
  4988. esac
  4989. RANLIB=$ac_ct_RANLIB
  4990. fi
  4991. else
  4992. RANLIB="$ac_cv_prog_RANLIB"
  4993. fi
  4994. test -z "$RANLIB" && RANLIB=:
  4995. # Determine commands to create old-style static archives.
  4996. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4997. old_postinstall_cmds='chmod 644 $oldlib'
  4998. old_postuninstall_cmds=
  4999. if test -n "$RANLIB"; then
  5000. case $host_os in
  5001. openbsd*)
  5002. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5003. ;;
  5004. *)
  5005. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5006. ;;
  5007. esac
  5008. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5009. fi
  5010. case $host_os in
  5011. darwin*)
  5012. lock_old_archive_extraction=yes ;;
  5013. *)
  5014. lock_old_archive_extraction=no ;;
  5015. esac
  5016. for ac_prog in gawk mawk nawk awk
  5017. do
  5018. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5019. set dummy $ac_prog; ac_word=$2
  5020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5021. $as_echo_n "checking for $ac_word... " >&6; }
  5022. if ${ac_cv_prog_AWK+:} false; then :
  5023. $as_echo_n "(cached) " >&6
  5024. else
  5025. if test -n "$AWK"; then
  5026. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5027. else
  5028. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5029. for as_dir in $PATH
  5030. do
  5031. IFS=$as_save_IFS
  5032. test -z "$as_dir" && as_dir=.
  5033. for ac_exec_ext in '' $ac_executable_extensions; do
  5034. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5035. ac_cv_prog_AWK="$ac_prog"
  5036. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5037. break 2
  5038. fi
  5039. done
  5040. done
  5041. IFS=$as_save_IFS
  5042. fi
  5043. fi
  5044. AWK=$ac_cv_prog_AWK
  5045. if test -n "$AWK"; then
  5046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5047. $as_echo "$AWK" >&6; }
  5048. else
  5049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5050. $as_echo "no" >&6; }
  5051. fi
  5052. test -n "$AWK" && break
  5053. done
  5054. # If no C compiler was specified, use CC.
  5055. LTCC=${LTCC-"$CC"}
  5056. # If no C compiler flags were specified, use CFLAGS.
  5057. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5058. # Allow CC to be a program name with arguments.
  5059. compiler=$CC
  5060. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5062. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5063. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5064. $as_echo_n "(cached) " >&6
  5065. else
  5066. # These are sane defaults that work on at least a few old systems.
  5067. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5068. # Character class describing NM global symbol codes.
  5069. symcode='[BCDEGRST]'
  5070. # Regexp to match symbols that can be accessed directly from C.
  5071. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5072. # Define system-specific variables.
  5073. case $host_os in
  5074. aix*)
  5075. symcode='[BCDT]'
  5076. ;;
  5077. cygwin* | mingw* | pw32* | cegcc*)
  5078. symcode='[ABCDGISTW]'
  5079. ;;
  5080. hpux*)
  5081. if test "$host_cpu" = ia64; then
  5082. symcode='[ABCDEGRST]'
  5083. fi
  5084. ;;
  5085. irix* | nonstopux*)
  5086. symcode='[BCDEGRST]'
  5087. ;;
  5088. osf*)
  5089. symcode='[BCDEGQRST]'
  5090. ;;
  5091. solaris*)
  5092. symcode='[BDRT]'
  5093. ;;
  5094. sco3.2v5*)
  5095. symcode='[DT]'
  5096. ;;
  5097. sysv4.2uw2*)
  5098. symcode='[DT]'
  5099. ;;
  5100. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5101. symcode='[ABDT]'
  5102. ;;
  5103. sysv4)
  5104. symcode='[DFNSTU]'
  5105. ;;
  5106. esac
  5107. # If we're using GNU nm, then use its standard symbol codes.
  5108. case `$NM -V 2>&1` in
  5109. *GNU* | *'with BFD'*)
  5110. symcode='[ABCDGIRSTW]' ;;
  5111. esac
  5112. # Transform an extracted symbol line into a proper C declaration.
  5113. # Some systems (esp. on ia64) link data and code symbols differently,
  5114. # so use this general approach.
  5115. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5116. # Transform an extracted symbol line into symbol name and symbol address
  5117. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5118. 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'"
  5119. # Handle CRLF in mingw tool chain
  5120. opt_cr=
  5121. case $build_os in
  5122. mingw*)
  5123. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5124. ;;
  5125. esac
  5126. # Try without a prefix underscore, then with it.
  5127. for ac_symprfx in "" "_"; do
  5128. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5129. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5130. # Write the raw and C identifiers.
  5131. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5132. # Fake it for dumpbin and say T for any non-static function
  5133. # and D for any global variable.
  5134. # Also find C++ and __fastcall symbols from MSVC++,
  5135. # which start with @ or ?.
  5136. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5137. " {last_section=section; section=\$ 3};"\
  5138. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5139. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5140. " \$ 0!~/External *\|/{next};"\
  5141. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5142. " {if(hide[section]) next};"\
  5143. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5144. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5145. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5146. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5147. " ' prfx=^$ac_symprfx"
  5148. else
  5149. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5150. fi
  5151. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5152. # Check to see that the pipe works correctly.
  5153. pipe_works=no
  5154. rm -f conftest*
  5155. cat > conftest.$ac_ext <<_LT_EOF
  5156. #ifdef __cplusplus
  5157. extern "C" {
  5158. #endif
  5159. char nm_test_var;
  5160. void nm_test_func(void);
  5161. void nm_test_func(void){}
  5162. #ifdef __cplusplus
  5163. }
  5164. #endif
  5165. int main(){nm_test_var='a';nm_test_func();return(0);}
  5166. _LT_EOF
  5167. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5168. (eval $ac_compile) 2>&5
  5169. ac_status=$?
  5170. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5171. test $ac_status = 0; }; then
  5172. # Now try to grab the symbols.
  5173. nlist=conftest.nm
  5174. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5175. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5176. ac_status=$?
  5177. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5178. test $ac_status = 0; } && test -s "$nlist"; then
  5179. # Try sorting and uniquifying the output.
  5180. if sort "$nlist" | uniq > "$nlist"T; then
  5181. mv -f "$nlist"T "$nlist"
  5182. else
  5183. rm -f "$nlist"T
  5184. fi
  5185. # Make sure that we snagged all the symbols we need.
  5186. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5187. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5188. cat <<_LT_EOF > conftest.$ac_ext
  5189. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5190. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5191. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5192. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5193. # define LT_DLSYM_CONST
  5194. #elif defined(__osf__)
  5195. /* This system does not cope well with relocations in const data. */
  5196. # define LT_DLSYM_CONST
  5197. #else
  5198. # define LT_DLSYM_CONST const
  5199. #endif
  5200. #ifdef __cplusplus
  5201. extern "C" {
  5202. #endif
  5203. _LT_EOF
  5204. # Now generate the symbol file.
  5205. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5206. cat <<_LT_EOF >> conftest.$ac_ext
  5207. /* The mapping between symbol names and symbols. */
  5208. LT_DLSYM_CONST struct {
  5209. const char *name;
  5210. void *address;
  5211. }
  5212. lt__PROGRAM__LTX_preloaded_symbols[] =
  5213. {
  5214. { "@PROGRAM@", (void *) 0 },
  5215. _LT_EOF
  5216. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5217. cat <<\_LT_EOF >> conftest.$ac_ext
  5218. {0, (void *) 0}
  5219. };
  5220. /* This works around a problem in FreeBSD linker */
  5221. #ifdef FREEBSD_WORKAROUND
  5222. static const void *lt_preloaded_setup() {
  5223. return lt__PROGRAM__LTX_preloaded_symbols;
  5224. }
  5225. #endif
  5226. #ifdef __cplusplus
  5227. }
  5228. #endif
  5229. _LT_EOF
  5230. # Now try linking the two files.
  5231. mv conftest.$ac_objext conftstm.$ac_objext
  5232. lt_globsym_save_LIBS=$LIBS
  5233. lt_globsym_save_CFLAGS=$CFLAGS
  5234. LIBS="conftstm.$ac_objext"
  5235. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5236. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5237. (eval $ac_link) 2>&5
  5238. ac_status=$?
  5239. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5240. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5241. pipe_works=yes
  5242. fi
  5243. LIBS=$lt_globsym_save_LIBS
  5244. CFLAGS=$lt_globsym_save_CFLAGS
  5245. else
  5246. echo "cannot find nm_test_func in $nlist" >&5
  5247. fi
  5248. else
  5249. echo "cannot find nm_test_var in $nlist" >&5
  5250. fi
  5251. else
  5252. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5253. fi
  5254. else
  5255. echo "$progname: failed program was:" >&5
  5256. cat conftest.$ac_ext >&5
  5257. fi
  5258. rm -rf conftest* conftst*
  5259. # Do not use the global_symbol_pipe unless it works.
  5260. if test "$pipe_works" = yes; then
  5261. break
  5262. else
  5263. lt_cv_sys_global_symbol_pipe=
  5264. fi
  5265. done
  5266. fi
  5267. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5268. lt_cv_sys_global_symbol_to_cdecl=
  5269. fi
  5270. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5272. $as_echo "failed" >&6; }
  5273. else
  5274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5275. $as_echo "ok" >&6; }
  5276. fi
  5277. # Response file support.
  5278. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5279. nm_file_list_spec='@'
  5280. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5281. nm_file_list_spec='@'
  5282. fi
  5283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5284. $as_echo_n "checking for sysroot... " >&6; }
  5285. # Check whether --with-sysroot was given.
  5286. if test "${with_sysroot+set}" = set; then :
  5287. withval=$with_sysroot;
  5288. else
  5289. with_sysroot=no
  5290. fi
  5291. lt_sysroot=
  5292. case ${with_sysroot} in #(
  5293. yes)
  5294. if test "$GCC" = yes; then
  5295. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5296. fi
  5297. ;; #(
  5298. /*)
  5299. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5300. ;; #(
  5301. no|'')
  5302. ;; #(
  5303. *)
  5304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5305. $as_echo "${with_sysroot}" >&6; }
  5306. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5307. ;;
  5308. esac
  5309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5310. $as_echo "${lt_sysroot:-no}" >&6; }
  5311. # Check whether --enable-libtool-lock was given.
  5312. if test "${enable_libtool_lock+set}" = set; then :
  5313. enableval=$enable_libtool_lock;
  5314. fi
  5315. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5316. # Some flags need to be propagated to the compiler or linker for good
  5317. # libtool support.
  5318. case $host in
  5319. ia64-*-hpux*)
  5320. # Find out which ABI we are using.
  5321. echo 'int i;' > conftest.$ac_ext
  5322. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5323. (eval $ac_compile) 2>&5
  5324. ac_status=$?
  5325. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5326. test $ac_status = 0; }; then
  5327. case `/usr/bin/file conftest.$ac_objext` in
  5328. *ELF-32*)
  5329. HPUX_IA64_MODE="32"
  5330. ;;
  5331. *ELF-64*)
  5332. HPUX_IA64_MODE="64"
  5333. ;;
  5334. esac
  5335. fi
  5336. rm -rf conftest*
  5337. ;;
  5338. *-*-irix6*)
  5339. # Find out which ABI we are using.
  5340. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5341. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5342. (eval $ac_compile) 2>&5
  5343. ac_status=$?
  5344. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5345. test $ac_status = 0; }; then
  5346. if test "$lt_cv_prog_gnu_ld" = yes; then
  5347. case `/usr/bin/file conftest.$ac_objext` in
  5348. *32-bit*)
  5349. LD="${LD-ld} -melf32bsmip"
  5350. ;;
  5351. *N32*)
  5352. LD="${LD-ld} -melf32bmipn32"
  5353. ;;
  5354. *64-bit*)
  5355. LD="${LD-ld} -melf64bmip"
  5356. ;;
  5357. esac
  5358. else
  5359. case `/usr/bin/file conftest.$ac_objext` in
  5360. *32-bit*)
  5361. LD="${LD-ld} -32"
  5362. ;;
  5363. *N32*)
  5364. LD="${LD-ld} -n32"
  5365. ;;
  5366. *64-bit*)
  5367. LD="${LD-ld} -64"
  5368. ;;
  5369. esac
  5370. fi
  5371. fi
  5372. rm -rf conftest*
  5373. ;;
  5374. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5375. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5376. # Find out which ABI we are using.
  5377. echo 'int i;' > conftest.$ac_ext
  5378. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5379. (eval $ac_compile) 2>&5
  5380. ac_status=$?
  5381. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5382. test $ac_status = 0; }; then
  5383. case `/usr/bin/file conftest.o` in
  5384. *32-bit*)
  5385. case $host in
  5386. x86_64-*kfreebsd*-gnu)
  5387. LD="${LD-ld} -m elf_i386_fbsd"
  5388. ;;
  5389. x86_64-*linux*)
  5390. LD="${LD-ld} -m elf_i386"
  5391. ;;
  5392. ppc64-*linux*|powerpc64-*linux*)
  5393. LD="${LD-ld} -m elf32ppclinux"
  5394. ;;
  5395. s390x-*linux*)
  5396. LD="${LD-ld} -m elf_s390"
  5397. ;;
  5398. sparc64-*linux*)
  5399. LD="${LD-ld} -m elf32_sparc"
  5400. ;;
  5401. esac
  5402. ;;
  5403. *64-bit*)
  5404. case $host in
  5405. x86_64-*kfreebsd*-gnu)
  5406. LD="${LD-ld} -m elf_x86_64_fbsd"
  5407. ;;
  5408. x86_64-*linux*)
  5409. LD="${LD-ld} -m elf_x86_64"
  5410. ;;
  5411. powerpc64le-*linux*)
  5412. LD="${LD-ld} -m elf64lppc"
  5413. ;;
  5414. powerpc64-*linux*)
  5415. LD="${LD-ld} -m elf64ppc"
  5416. ;;
  5417. s390*-*linux*|s390*-*tpf*)
  5418. LD="${LD-ld} -m elf64_s390"
  5419. ;;
  5420. sparc*-*linux*)
  5421. LD="${LD-ld} -m elf64_sparc"
  5422. ;;
  5423. esac
  5424. ;;
  5425. esac
  5426. fi
  5427. rm -rf conftest*
  5428. ;;
  5429. *-*-sco3.2v5*)
  5430. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5431. SAVE_CFLAGS="$CFLAGS"
  5432. CFLAGS="$CFLAGS -belf"
  5433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5434. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5435. if ${lt_cv_cc_needs_belf+:} false; then :
  5436. $as_echo_n "(cached) " >&6
  5437. else
  5438. ac_ext=c
  5439. ac_cpp='$CPP $CPPFLAGS'
  5440. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5441. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5442. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5444. /* end confdefs.h. */
  5445. int
  5446. main ()
  5447. {
  5448. ;
  5449. return 0;
  5450. }
  5451. _ACEOF
  5452. if ac_fn_c_try_link "$LINENO"; then :
  5453. lt_cv_cc_needs_belf=yes
  5454. else
  5455. lt_cv_cc_needs_belf=no
  5456. fi
  5457. rm -f core conftest.err conftest.$ac_objext \
  5458. conftest$ac_exeext conftest.$ac_ext
  5459. ac_ext=c
  5460. ac_cpp='$CPP $CPPFLAGS'
  5461. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5462. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5463. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5464. fi
  5465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5466. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5467. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5468. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5469. CFLAGS="$SAVE_CFLAGS"
  5470. fi
  5471. ;;
  5472. *-*solaris*)
  5473. # Find out which ABI we are using.
  5474. echo 'int i;' > conftest.$ac_ext
  5475. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5476. (eval $ac_compile) 2>&5
  5477. ac_status=$?
  5478. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5479. test $ac_status = 0; }; then
  5480. case `/usr/bin/file conftest.o` in
  5481. *64-bit*)
  5482. case $lt_cv_prog_gnu_ld in
  5483. yes*)
  5484. case $host in
  5485. i?86-*-solaris*)
  5486. LD="${LD-ld} -m elf_x86_64"
  5487. ;;
  5488. sparc*-*-solaris*)
  5489. LD="${LD-ld} -m elf64_sparc"
  5490. ;;
  5491. esac
  5492. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5493. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5494. LD="${LD-ld}_sol2"
  5495. fi
  5496. ;;
  5497. *)
  5498. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5499. LD="${LD-ld} -64"
  5500. fi
  5501. ;;
  5502. esac
  5503. ;;
  5504. esac
  5505. fi
  5506. rm -rf conftest*
  5507. ;;
  5508. esac
  5509. need_locks="$enable_libtool_lock"
  5510. if test -n "$ac_tool_prefix"; then
  5511. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5512. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5514. $as_echo_n "checking for $ac_word... " >&6; }
  5515. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5516. $as_echo_n "(cached) " >&6
  5517. else
  5518. if test -n "$MANIFEST_TOOL"; then
  5519. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5520. else
  5521. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5522. for as_dir in $PATH
  5523. do
  5524. IFS=$as_save_IFS
  5525. test -z "$as_dir" && as_dir=.
  5526. for ac_exec_ext in '' $ac_executable_extensions; do
  5527. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5528. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5529. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5530. break 2
  5531. fi
  5532. done
  5533. done
  5534. IFS=$as_save_IFS
  5535. fi
  5536. fi
  5537. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5538. if test -n "$MANIFEST_TOOL"; then
  5539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5540. $as_echo "$MANIFEST_TOOL" >&6; }
  5541. else
  5542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5543. $as_echo "no" >&6; }
  5544. fi
  5545. fi
  5546. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5547. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5548. # Extract the first word of "mt", so it can be a program name with args.
  5549. set dummy mt; ac_word=$2
  5550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5551. $as_echo_n "checking for $ac_word... " >&6; }
  5552. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5553. $as_echo_n "(cached) " >&6
  5554. else
  5555. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5556. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5557. else
  5558. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5559. for as_dir in $PATH
  5560. do
  5561. IFS=$as_save_IFS
  5562. test -z "$as_dir" && as_dir=.
  5563. for ac_exec_ext in '' $ac_executable_extensions; do
  5564. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5565. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5566. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5567. break 2
  5568. fi
  5569. done
  5570. done
  5571. IFS=$as_save_IFS
  5572. fi
  5573. fi
  5574. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5575. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5577. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5578. else
  5579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5580. $as_echo "no" >&6; }
  5581. fi
  5582. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5583. MANIFEST_TOOL=":"
  5584. else
  5585. case $cross_compiling:$ac_tool_warned in
  5586. yes:)
  5587. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5588. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5589. ac_tool_warned=yes ;;
  5590. esac
  5591. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5592. fi
  5593. else
  5594. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5595. fi
  5596. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5598. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5599. if ${lt_cv_path_mainfest_tool+:} false; then :
  5600. $as_echo_n "(cached) " >&6
  5601. else
  5602. lt_cv_path_mainfest_tool=no
  5603. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5604. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5605. cat conftest.err >&5
  5606. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5607. lt_cv_path_mainfest_tool=yes
  5608. fi
  5609. rm -f conftest*
  5610. fi
  5611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5612. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5613. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5614. MANIFEST_TOOL=:
  5615. fi
  5616. case $host_os in
  5617. rhapsody* | darwin*)
  5618. if test -n "$ac_tool_prefix"; then
  5619. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5620. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5622. $as_echo_n "checking for $ac_word... " >&6; }
  5623. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5624. $as_echo_n "(cached) " >&6
  5625. else
  5626. if test -n "$DSYMUTIL"; then
  5627. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5628. else
  5629. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5630. for as_dir in $PATH
  5631. do
  5632. IFS=$as_save_IFS
  5633. test -z "$as_dir" && as_dir=.
  5634. for ac_exec_ext in '' $ac_executable_extensions; do
  5635. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5636. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5637. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5638. break 2
  5639. fi
  5640. done
  5641. done
  5642. IFS=$as_save_IFS
  5643. fi
  5644. fi
  5645. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5646. if test -n "$DSYMUTIL"; then
  5647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5648. $as_echo "$DSYMUTIL" >&6; }
  5649. else
  5650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5651. $as_echo "no" >&6; }
  5652. fi
  5653. fi
  5654. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5655. ac_ct_DSYMUTIL=$DSYMUTIL
  5656. # Extract the first word of "dsymutil", so it can be a program name with args.
  5657. set dummy dsymutil; ac_word=$2
  5658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5659. $as_echo_n "checking for $ac_word... " >&6; }
  5660. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5661. $as_echo_n "(cached) " >&6
  5662. else
  5663. if test -n "$ac_ct_DSYMUTIL"; then
  5664. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5665. else
  5666. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5667. for as_dir in $PATH
  5668. do
  5669. IFS=$as_save_IFS
  5670. test -z "$as_dir" && as_dir=.
  5671. for ac_exec_ext in '' $ac_executable_extensions; do
  5672. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5673. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5674. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5675. break 2
  5676. fi
  5677. done
  5678. done
  5679. IFS=$as_save_IFS
  5680. fi
  5681. fi
  5682. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5683. if test -n "$ac_ct_DSYMUTIL"; then
  5684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5685. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5686. else
  5687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5688. $as_echo "no" >&6; }
  5689. fi
  5690. if test "x$ac_ct_DSYMUTIL" = x; then
  5691. DSYMUTIL=":"
  5692. else
  5693. case $cross_compiling:$ac_tool_warned in
  5694. yes:)
  5695. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5696. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5697. ac_tool_warned=yes ;;
  5698. esac
  5699. DSYMUTIL=$ac_ct_DSYMUTIL
  5700. fi
  5701. else
  5702. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5703. fi
  5704. if test -n "$ac_tool_prefix"; then
  5705. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5706. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5708. $as_echo_n "checking for $ac_word... " >&6; }
  5709. if ${ac_cv_prog_NMEDIT+:} false; then :
  5710. $as_echo_n "(cached) " >&6
  5711. else
  5712. if test -n "$NMEDIT"; then
  5713. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5714. else
  5715. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5716. for as_dir in $PATH
  5717. do
  5718. IFS=$as_save_IFS
  5719. test -z "$as_dir" && as_dir=.
  5720. for ac_exec_ext in '' $ac_executable_extensions; do
  5721. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5722. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5723. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5724. break 2
  5725. fi
  5726. done
  5727. done
  5728. IFS=$as_save_IFS
  5729. fi
  5730. fi
  5731. NMEDIT=$ac_cv_prog_NMEDIT
  5732. if test -n "$NMEDIT"; then
  5733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5734. $as_echo "$NMEDIT" >&6; }
  5735. else
  5736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5737. $as_echo "no" >&6; }
  5738. fi
  5739. fi
  5740. if test -z "$ac_cv_prog_NMEDIT"; then
  5741. ac_ct_NMEDIT=$NMEDIT
  5742. # Extract the first word of "nmedit", so it can be a program name with args.
  5743. set dummy nmedit; ac_word=$2
  5744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5745. $as_echo_n "checking for $ac_word... " >&6; }
  5746. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5747. $as_echo_n "(cached) " >&6
  5748. else
  5749. if test -n "$ac_ct_NMEDIT"; then
  5750. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5751. else
  5752. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5753. for as_dir in $PATH
  5754. do
  5755. IFS=$as_save_IFS
  5756. test -z "$as_dir" && as_dir=.
  5757. for ac_exec_ext in '' $ac_executable_extensions; do
  5758. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5759. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5760. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5761. break 2
  5762. fi
  5763. done
  5764. done
  5765. IFS=$as_save_IFS
  5766. fi
  5767. fi
  5768. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5769. if test -n "$ac_ct_NMEDIT"; then
  5770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5771. $as_echo "$ac_ct_NMEDIT" >&6; }
  5772. else
  5773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5774. $as_echo "no" >&6; }
  5775. fi
  5776. if test "x$ac_ct_NMEDIT" = x; then
  5777. NMEDIT=":"
  5778. else
  5779. case $cross_compiling:$ac_tool_warned in
  5780. yes:)
  5781. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5782. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5783. ac_tool_warned=yes ;;
  5784. esac
  5785. NMEDIT=$ac_ct_NMEDIT
  5786. fi
  5787. else
  5788. NMEDIT="$ac_cv_prog_NMEDIT"
  5789. fi
  5790. if test -n "$ac_tool_prefix"; then
  5791. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5792. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5794. $as_echo_n "checking for $ac_word... " >&6; }
  5795. if ${ac_cv_prog_LIPO+:} false; then :
  5796. $as_echo_n "(cached) " >&6
  5797. else
  5798. if test -n "$LIPO"; then
  5799. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5800. else
  5801. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5802. for as_dir in $PATH
  5803. do
  5804. IFS=$as_save_IFS
  5805. test -z "$as_dir" && as_dir=.
  5806. for ac_exec_ext in '' $ac_executable_extensions; do
  5807. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5808. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5809. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5810. break 2
  5811. fi
  5812. done
  5813. done
  5814. IFS=$as_save_IFS
  5815. fi
  5816. fi
  5817. LIPO=$ac_cv_prog_LIPO
  5818. if test -n "$LIPO"; then
  5819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5820. $as_echo "$LIPO" >&6; }
  5821. else
  5822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5823. $as_echo "no" >&6; }
  5824. fi
  5825. fi
  5826. if test -z "$ac_cv_prog_LIPO"; then
  5827. ac_ct_LIPO=$LIPO
  5828. # Extract the first word of "lipo", so it can be a program name with args.
  5829. set dummy lipo; ac_word=$2
  5830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5831. $as_echo_n "checking for $ac_word... " >&6; }
  5832. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5833. $as_echo_n "(cached) " >&6
  5834. else
  5835. if test -n "$ac_ct_LIPO"; then
  5836. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5837. else
  5838. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5839. for as_dir in $PATH
  5840. do
  5841. IFS=$as_save_IFS
  5842. test -z "$as_dir" && as_dir=.
  5843. for ac_exec_ext in '' $ac_executable_extensions; do
  5844. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5845. ac_cv_prog_ac_ct_LIPO="lipo"
  5846. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5847. break 2
  5848. fi
  5849. done
  5850. done
  5851. IFS=$as_save_IFS
  5852. fi
  5853. fi
  5854. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5855. if test -n "$ac_ct_LIPO"; then
  5856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5857. $as_echo "$ac_ct_LIPO" >&6; }
  5858. else
  5859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5860. $as_echo "no" >&6; }
  5861. fi
  5862. if test "x$ac_ct_LIPO" = x; then
  5863. LIPO=":"
  5864. else
  5865. case $cross_compiling:$ac_tool_warned in
  5866. yes:)
  5867. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5868. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5869. ac_tool_warned=yes ;;
  5870. esac
  5871. LIPO=$ac_ct_LIPO
  5872. fi
  5873. else
  5874. LIPO="$ac_cv_prog_LIPO"
  5875. fi
  5876. if test -n "$ac_tool_prefix"; then
  5877. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5878. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5880. $as_echo_n "checking for $ac_word... " >&6; }
  5881. if ${ac_cv_prog_OTOOL+:} false; then :
  5882. $as_echo_n "(cached) " >&6
  5883. else
  5884. if test -n "$OTOOL"; then
  5885. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5886. else
  5887. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5888. for as_dir in $PATH
  5889. do
  5890. IFS=$as_save_IFS
  5891. test -z "$as_dir" && as_dir=.
  5892. for ac_exec_ext in '' $ac_executable_extensions; do
  5893. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5894. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5895. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5896. break 2
  5897. fi
  5898. done
  5899. done
  5900. IFS=$as_save_IFS
  5901. fi
  5902. fi
  5903. OTOOL=$ac_cv_prog_OTOOL
  5904. if test -n "$OTOOL"; then
  5905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5906. $as_echo "$OTOOL" >&6; }
  5907. else
  5908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5909. $as_echo "no" >&6; }
  5910. fi
  5911. fi
  5912. if test -z "$ac_cv_prog_OTOOL"; then
  5913. ac_ct_OTOOL=$OTOOL
  5914. # Extract the first word of "otool", so it can be a program name with args.
  5915. set dummy otool; ac_word=$2
  5916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5917. $as_echo_n "checking for $ac_word... " >&6; }
  5918. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5919. $as_echo_n "(cached) " >&6
  5920. else
  5921. if test -n "$ac_ct_OTOOL"; then
  5922. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5923. else
  5924. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5925. for as_dir in $PATH
  5926. do
  5927. IFS=$as_save_IFS
  5928. test -z "$as_dir" && as_dir=.
  5929. for ac_exec_ext in '' $ac_executable_extensions; do
  5930. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5931. ac_cv_prog_ac_ct_OTOOL="otool"
  5932. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5933. break 2
  5934. fi
  5935. done
  5936. done
  5937. IFS=$as_save_IFS
  5938. fi
  5939. fi
  5940. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5941. if test -n "$ac_ct_OTOOL"; then
  5942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5943. $as_echo "$ac_ct_OTOOL" >&6; }
  5944. else
  5945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5946. $as_echo "no" >&6; }
  5947. fi
  5948. if test "x$ac_ct_OTOOL" = x; then
  5949. OTOOL=":"
  5950. else
  5951. case $cross_compiling:$ac_tool_warned in
  5952. yes:)
  5953. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5954. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5955. ac_tool_warned=yes ;;
  5956. esac
  5957. OTOOL=$ac_ct_OTOOL
  5958. fi
  5959. else
  5960. OTOOL="$ac_cv_prog_OTOOL"
  5961. fi
  5962. if test -n "$ac_tool_prefix"; then
  5963. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5964. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5966. $as_echo_n "checking for $ac_word... " >&6; }
  5967. if ${ac_cv_prog_OTOOL64+:} false; then :
  5968. $as_echo_n "(cached) " >&6
  5969. else
  5970. if test -n "$OTOOL64"; then
  5971. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5972. else
  5973. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5974. for as_dir in $PATH
  5975. do
  5976. IFS=$as_save_IFS
  5977. test -z "$as_dir" && as_dir=.
  5978. for ac_exec_ext in '' $ac_executable_extensions; do
  5979. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5980. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5981. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5982. break 2
  5983. fi
  5984. done
  5985. done
  5986. IFS=$as_save_IFS
  5987. fi
  5988. fi
  5989. OTOOL64=$ac_cv_prog_OTOOL64
  5990. if test -n "$OTOOL64"; then
  5991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5992. $as_echo "$OTOOL64" >&6; }
  5993. else
  5994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5995. $as_echo "no" >&6; }
  5996. fi
  5997. fi
  5998. if test -z "$ac_cv_prog_OTOOL64"; then
  5999. ac_ct_OTOOL64=$OTOOL64
  6000. # Extract the first word of "otool64", so it can be a program name with args.
  6001. set dummy otool64; ac_word=$2
  6002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6003. $as_echo_n "checking for $ac_word... " >&6; }
  6004. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6005. $as_echo_n "(cached) " >&6
  6006. else
  6007. if test -n "$ac_ct_OTOOL64"; then
  6008. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6009. else
  6010. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6011. for as_dir in $PATH
  6012. do
  6013. IFS=$as_save_IFS
  6014. test -z "$as_dir" && as_dir=.
  6015. for ac_exec_ext in '' $ac_executable_extensions; do
  6016. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6017. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6018. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6019. break 2
  6020. fi
  6021. done
  6022. done
  6023. IFS=$as_save_IFS
  6024. fi
  6025. fi
  6026. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6027. if test -n "$ac_ct_OTOOL64"; then
  6028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6029. $as_echo "$ac_ct_OTOOL64" >&6; }
  6030. else
  6031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6032. $as_echo "no" >&6; }
  6033. fi
  6034. if test "x$ac_ct_OTOOL64" = x; then
  6035. OTOOL64=":"
  6036. else
  6037. case $cross_compiling:$ac_tool_warned in
  6038. yes:)
  6039. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6040. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6041. ac_tool_warned=yes ;;
  6042. esac
  6043. OTOOL64=$ac_ct_OTOOL64
  6044. fi
  6045. else
  6046. OTOOL64="$ac_cv_prog_OTOOL64"
  6047. fi
  6048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6049. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6050. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6051. $as_echo_n "(cached) " >&6
  6052. else
  6053. lt_cv_apple_cc_single_mod=no
  6054. if test -z "${LT_MULTI_MODULE}"; then
  6055. # By default we will add the -single_module flag. You can override
  6056. # by either setting the environment variable LT_MULTI_MODULE
  6057. # non-empty at configure time, or by adding -multi_module to the
  6058. # link flags.
  6059. rm -rf libconftest.dylib*
  6060. echo "int foo(void){return 1;}" > conftest.c
  6061. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6062. -dynamiclib -Wl,-single_module conftest.c" >&5
  6063. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6064. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6065. _lt_result=$?
  6066. # If there is a non-empty error log, and "single_module"
  6067. # appears in it, assume the flag caused a linker warning
  6068. if test -s conftest.err && $GREP single_module conftest.err; then
  6069. cat conftest.err >&5
  6070. # Otherwise, if the output was created with a 0 exit code from
  6071. # the compiler, it worked.
  6072. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6073. lt_cv_apple_cc_single_mod=yes
  6074. else
  6075. cat conftest.err >&5
  6076. fi
  6077. rm -rf libconftest.dylib*
  6078. rm -f conftest.*
  6079. fi
  6080. fi
  6081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6082. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6084. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6085. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6086. $as_echo_n "(cached) " >&6
  6087. else
  6088. lt_cv_ld_exported_symbols_list=no
  6089. save_LDFLAGS=$LDFLAGS
  6090. echo "_main" > conftest.sym
  6091. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6093. /* end confdefs.h. */
  6094. int
  6095. main ()
  6096. {
  6097. ;
  6098. return 0;
  6099. }
  6100. _ACEOF
  6101. if ac_fn_c_try_link "$LINENO"; then :
  6102. lt_cv_ld_exported_symbols_list=yes
  6103. else
  6104. lt_cv_ld_exported_symbols_list=no
  6105. fi
  6106. rm -f core conftest.err conftest.$ac_objext \
  6107. conftest$ac_exeext conftest.$ac_ext
  6108. LDFLAGS="$save_LDFLAGS"
  6109. fi
  6110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6111. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6113. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6114. if ${lt_cv_ld_force_load+:} false; then :
  6115. $as_echo_n "(cached) " >&6
  6116. else
  6117. lt_cv_ld_force_load=no
  6118. cat > conftest.c << _LT_EOF
  6119. int forced_loaded() { return 2;}
  6120. _LT_EOF
  6121. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6122. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6123. echo "$AR cru libconftest.a conftest.o" >&5
  6124. $AR cru libconftest.a conftest.o 2>&5
  6125. echo "$RANLIB libconftest.a" >&5
  6126. $RANLIB libconftest.a 2>&5
  6127. cat > conftest.c << _LT_EOF
  6128. int main() { return 0;}
  6129. _LT_EOF
  6130. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6131. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6132. _lt_result=$?
  6133. if test -s conftest.err && $GREP force_load conftest.err; then
  6134. cat conftest.err >&5
  6135. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6136. lt_cv_ld_force_load=yes
  6137. else
  6138. cat conftest.err >&5
  6139. fi
  6140. rm -f conftest.err libconftest.a conftest conftest.c
  6141. rm -rf conftest.dSYM
  6142. fi
  6143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6144. $as_echo "$lt_cv_ld_force_load" >&6; }
  6145. case $host_os in
  6146. rhapsody* | darwin1.[012])
  6147. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6148. darwin1.*)
  6149. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6150. darwin*)
  6151. case $MACOSX_DEPLOYMENT_TARGET,$host in
  6152. 10.[012],*|,*powerpc*-darwin[5-8]*)
  6153. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6154. *)
  6155. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6156. esac
  6157. ;;
  6158. esac
  6159. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6160. _lt_dar_single_mod='$single_module'
  6161. fi
  6162. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6163. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6164. else
  6165. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6166. fi
  6167. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6168. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6169. else
  6170. _lt_dsymutil=
  6171. fi
  6172. ;;
  6173. esac
  6174. ac_ext=c
  6175. ac_cpp='$CPP $CPPFLAGS'
  6176. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6177. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6178. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6180. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6181. # On Suns, sometimes $CPP names a directory.
  6182. if test -n "$CPP" && test -d "$CPP"; then
  6183. CPP=
  6184. fi
  6185. if test -z "$CPP"; then
  6186. if ${ac_cv_prog_CPP+:} false; then :
  6187. $as_echo_n "(cached) " >&6
  6188. else
  6189. # Double quotes because CPP needs to be expanded
  6190. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6191. do
  6192. ac_preproc_ok=false
  6193. for ac_c_preproc_warn_flag in '' yes
  6194. do
  6195. # Use a header file that comes with gcc, so configuring glibc
  6196. # with a fresh cross-compiler works.
  6197. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6198. # <limits.h> exists even on freestanding compilers.
  6199. # On the NeXT, cc -E runs the code through the compiler's parser,
  6200. # not just through cpp. "Syntax error" is here to catch this case.
  6201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6202. /* end confdefs.h. */
  6203. #ifdef __STDC__
  6204. # include <limits.h>
  6205. #else
  6206. # include <assert.h>
  6207. #endif
  6208. Syntax error
  6209. _ACEOF
  6210. if ac_fn_c_try_cpp "$LINENO"; then :
  6211. else
  6212. # Broken: fails on valid input.
  6213. continue
  6214. fi
  6215. rm -f conftest.err conftest.i conftest.$ac_ext
  6216. # OK, works on sane cases. Now check whether nonexistent headers
  6217. # can be detected and how.
  6218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6219. /* end confdefs.h. */
  6220. #include <ac_nonexistent.h>
  6221. _ACEOF
  6222. if ac_fn_c_try_cpp "$LINENO"; then :
  6223. # Broken: success on invalid input.
  6224. continue
  6225. else
  6226. # Passes both tests.
  6227. ac_preproc_ok=:
  6228. break
  6229. fi
  6230. rm -f conftest.err conftest.i conftest.$ac_ext
  6231. done
  6232. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6233. rm -f conftest.i conftest.err conftest.$ac_ext
  6234. if $ac_preproc_ok; then :
  6235. break
  6236. fi
  6237. done
  6238. ac_cv_prog_CPP=$CPP
  6239. fi
  6240. CPP=$ac_cv_prog_CPP
  6241. else
  6242. ac_cv_prog_CPP=$CPP
  6243. fi
  6244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6245. $as_echo "$CPP" >&6; }
  6246. ac_preproc_ok=false
  6247. for ac_c_preproc_warn_flag in '' yes
  6248. do
  6249. # Use a header file that comes with gcc, so configuring glibc
  6250. # with a fresh cross-compiler works.
  6251. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6252. # <limits.h> exists even on freestanding compilers.
  6253. # On the NeXT, cc -E runs the code through the compiler's parser,
  6254. # not just through cpp. "Syntax error" is here to catch this case.
  6255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6256. /* end confdefs.h. */
  6257. #ifdef __STDC__
  6258. # include <limits.h>
  6259. #else
  6260. # include <assert.h>
  6261. #endif
  6262. Syntax error
  6263. _ACEOF
  6264. if ac_fn_c_try_cpp "$LINENO"; then :
  6265. else
  6266. # Broken: fails on valid input.
  6267. continue
  6268. fi
  6269. rm -f conftest.err conftest.i conftest.$ac_ext
  6270. # OK, works on sane cases. Now check whether nonexistent headers
  6271. # can be detected and how.
  6272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6273. /* end confdefs.h. */
  6274. #include <ac_nonexistent.h>
  6275. _ACEOF
  6276. if ac_fn_c_try_cpp "$LINENO"; then :
  6277. # Broken: success on invalid input.
  6278. continue
  6279. else
  6280. # Passes both tests.
  6281. ac_preproc_ok=:
  6282. break
  6283. fi
  6284. rm -f conftest.err conftest.i conftest.$ac_ext
  6285. done
  6286. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6287. rm -f conftest.i conftest.err conftest.$ac_ext
  6288. if $ac_preproc_ok; then :
  6289. else
  6290. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6291. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6292. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6293. See \`config.log' for more details" "$LINENO" 5; }
  6294. fi
  6295. ac_ext=c
  6296. ac_cpp='$CPP $CPPFLAGS'
  6297. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6298. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6299. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6301. $as_echo_n "checking for ANSI C header files... " >&6; }
  6302. if ${ac_cv_header_stdc+:} false; then :
  6303. $as_echo_n "(cached) " >&6
  6304. else
  6305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6306. /* end confdefs.h. */
  6307. #include <stdlib.h>
  6308. #include <stdarg.h>
  6309. #include <string.h>
  6310. #include <float.h>
  6311. int
  6312. main ()
  6313. {
  6314. ;
  6315. return 0;
  6316. }
  6317. _ACEOF
  6318. if ac_fn_c_try_compile "$LINENO"; then :
  6319. ac_cv_header_stdc=yes
  6320. else
  6321. ac_cv_header_stdc=no
  6322. fi
  6323. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6324. if test $ac_cv_header_stdc = yes; then
  6325. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6327. /* end confdefs.h. */
  6328. #include <string.h>
  6329. _ACEOF
  6330. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6331. $EGREP "memchr" >/dev/null 2>&1; then :
  6332. else
  6333. ac_cv_header_stdc=no
  6334. fi
  6335. rm -f conftest*
  6336. fi
  6337. if test $ac_cv_header_stdc = yes; then
  6338. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6340. /* end confdefs.h. */
  6341. #include <stdlib.h>
  6342. _ACEOF
  6343. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6344. $EGREP "free" >/dev/null 2>&1; then :
  6345. else
  6346. ac_cv_header_stdc=no
  6347. fi
  6348. rm -f conftest*
  6349. fi
  6350. if test $ac_cv_header_stdc = yes; then
  6351. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6352. if test "$cross_compiling" = yes; then :
  6353. :
  6354. else
  6355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6356. /* end confdefs.h. */
  6357. #include <ctype.h>
  6358. #include <stdlib.h>
  6359. #if ((' ' & 0x0FF) == 0x020)
  6360. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6361. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6362. #else
  6363. # define ISLOWER(c) \
  6364. (('a' <= (c) && (c) <= 'i') \
  6365. || ('j' <= (c) && (c) <= 'r') \
  6366. || ('s' <= (c) && (c) <= 'z'))
  6367. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6368. #endif
  6369. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6370. int
  6371. main ()
  6372. {
  6373. int i;
  6374. for (i = 0; i < 256; i++)
  6375. if (XOR (islower (i), ISLOWER (i))
  6376. || toupper (i) != TOUPPER (i))
  6377. return 2;
  6378. return 0;
  6379. }
  6380. _ACEOF
  6381. if ac_fn_c_try_run "$LINENO"; then :
  6382. else
  6383. ac_cv_header_stdc=no
  6384. fi
  6385. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6386. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6387. fi
  6388. fi
  6389. fi
  6390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6391. $as_echo "$ac_cv_header_stdc" >&6; }
  6392. if test $ac_cv_header_stdc = yes; then
  6393. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6394. fi
  6395. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6396. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6397. inttypes.h stdint.h unistd.h
  6398. do :
  6399. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6400. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6401. "
  6402. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6403. cat >>confdefs.h <<_ACEOF
  6404. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6405. _ACEOF
  6406. fi
  6407. done
  6408. for ac_header in dlfcn.h
  6409. do :
  6410. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6411. "
  6412. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6413. cat >>confdefs.h <<_ACEOF
  6414. #define HAVE_DLFCN_H 1
  6415. _ACEOF
  6416. fi
  6417. done
  6418. # Set options
  6419. enable_win32_dll=yes
  6420. case $host in
  6421. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6422. if test -n "$ac_tool_prefix"; then
  6423. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6424. set dummy ${ac_tool_prefix}as; ac_word=$2
  6425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6426. $as_echo_n "checking for $ac_word... " >&6; }
  6427. if ${ac_cv_prog_AS+:} false; then :
  6428. $as_echo_n "(cached) " >&6
  6429. else
  6430. if test -n "$AS"; then
  6431. ac_cv_prog_AS="$AS" # Let the user override the test.
  6432. else
  6433. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6434. for as_dir in $PATH
  6435. do
  6436. IFS=$as_save_IFS
  6437. test -z "$as_dir" && as_dir=.
  6438. for ac_exec_ext in '' $ac_executable_extensions; do
  6439. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6440. ac_cv_prog_AS="${ac_tool_prefix}as"
  6441. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6442. break 2
  6443. fi
  6444. done
  6445. done
  6446. IFS=$as_save_IFS
  6447. fi
  6448. fi
  6449. AS=$ac_cv_prog_AS
  6450. if test -n "$AS"; then
  6451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6452. $as_echo "$AS" >&6; }
  6453. else
  6454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6455. $as_echo "no" >&6; }
  6456. fi
  6457. fi
  6458. if test -z "$ac_cv_prog_AS"; then
  6459. ac_ct_AS=$AS
  6460. # Extract the first word of "as", so it can be a program name with args.
  6461. set dummy as; ac_word=$2
  6462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6463. $as_echo_n "checking for $ac_word... " >&6; }
  6464. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6465. $as_echo_n "(cached) " >&6
  6466. else
  6467. if test -n "$ac_ct_AS"; then
  6468. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6469. else
  6470. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6471. for as_dir in $PATH
  6472. do
  6473. IFS=$as_save_IFS
  6474. test -z "$as_dir" && as_dir=.
  6475. for ac_exec_ext in '' $ac_executable_extensions; do
  6476. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6477. ac_cv_prog_ac_ct_AS="as"
  6478. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6479. break 2
  6480. fi
  6481. done
  6482. done
  6483. IFS=$as_save_IFS
  6484. fi
  6485. fi
  6486. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6487. if test -n "$ac_ct_AS"; then
  6488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6489. $as_echo "$ac_ct_AS" >&6; }
  6490. else
  6491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6492. $as_echo "no" >&6; }
  6493. fi
  6494. if test "x$ac_ct_AS" = x; then
  6495. AS="false"
  6496. else
  6497. case $cross_compiling:$ac_tool_warned in
  6498. yes:)
  6499. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6500. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6501. ac_tool_warned=yes ;;
  6502. esac
  6503. AS=$ac_ct_AS
  6504. fi
  6505. else
  6506. AS="$ac_cv_prog_AS"
  6507. fi
  6508. if test -n "$ac_tool_prefix"; then
  6509. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6510. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6512. $as_echo_n "checking for $ac_word... " >&6; }
  6513. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6514. $as_echo_n "(cached) " >&6
  6515. else
  6516. if test -n "$DLLTOOL"; then
  6517. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6518. else
  6519. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6520. for as_dir in $PATH
  6521. do
  6522. IFS=$as_save_IFS
  6523. test -z "$as_dir" && as_dir=.
  6524. for ac_exec_ext in '' $ac_executable_extensions; do
  6525. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6526. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6527. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6528. break 2
  6529. fi
  6530. done
  6531. done
  6532. IFS=$as_save_IFS
  6533. fi
  6534. fi
  6535. DLLTOOL=$ac_cv_prog_DLLTOOL
  6536. if test -n "$DLLTOOL"; then
  6537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6538. $as_echo "$DLLTOOL" >&6; }
  6539. else
  6540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6541. $as_echo "no" >&6; }
  6542. fi
  6543. fi
  6544. if test -z "$ac_cv_prog_DLLTOOL"; then
  6545. ac_ct_DLLTOOL=$DLLTOOL
  6546. # Extract the first word of "dlltool", so it can be a program name with args.
  6547. set dummy dlltool; ac_word=$2
  6548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6549. $as_echo_n "checking for $ac_word... " >&6; }
  6550. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6551. $as_echo_n "(cached) " >&6
  6552. else
  6553. if test -n "$ac_ct_DLLTOOL"; then
  6554. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6555. else
  6556. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6557. for as_dir in $PATH
  6558. do
  6559. IFS=$as_save_IFS
  6560. test -z "$as_dir" && as_dir=.
  6561. for ac_exec_ext in '' $ac_executable_extensions; do
  6562. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6563. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6564. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6565. break 2
  6566. fi
  6567. done
  6568. done
  6569. IFS=$as_save_IFS
  6570. fi
  6571. fi
  6572. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6573. if test -n "$ac_ct_DLLTOOL"; then
  6574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6575. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6576. else
  6577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6578. $as_echo "no" >&6; }
  6579. fi
  6580. if test "x$ac_ct_DLLTOOL" = x; then
  6581. DLLTOOL="false"
  6582. else
  6583. case $cross_compiling:$ac_tool_warned in
  6584. yes:)
  6585. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6586. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6587. ac_tool_warned=yes ;;
  6588. esac
  6589. DLLTOOL=$ac_ct_DLLTOOL
  6590. fi
  6591. else
  6592. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6593. fi
  6594. if test -n "$ac_tool_prefix"; then
  6595. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6596. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6598. $as_echo_n "checking for $ac_word... " >&6; }
  6599. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6600. $as_echo_n "(cached) " >&6
  6601. else
  6602. if test -n "$OBJDUMP"; then
  6603. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6604. else
  6605. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6606. for as_dir in $PATH
  6607. do
  6608. IFS=$as_save_IFS
  6609. test -z "$as_dir" && as_dir=.
  6610. for ac_exec_ext in '' $ac_executable_extensions; do
  6611. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6612. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6613. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6614. break 2
  6615. fi
  6616. done
  6617. done
  6618. IFS=$as_save_IFS
  6619. fi
  6620. fi
  6621. OBJDUMP=$ac_cv_prog_OBJDUMP
  6622. if test -n "$OBJDUMP"; then
  6623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6624. $as_echo "$OBJDUMP" >&6; }
  6625. else
  6626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6627. $as_echo "no" >&6; }
  6628. fi
  6629. fi
  6630. if test -z "$ac_cv_prog_OBJDUMP"; then
  6631. ac_ct_OBJDUMP=$OBJDUMP
  6632. # Extract the first word of "objdump", so it can be a program name with args.
  6633. set dummy objdump; ac_word=$2
  6634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6635. $as_echo_n "checking for $ac_word... " >&6; }
  6636. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6637. $as_echo_n "(cached) " >&6
  6638. else
  6639. if test -n "$ac_ct_OBJDUMP"; then
  6640. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6641. else
  6642. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6643. for as_dir in $PATH
  6644. do
  6645. IFS=$as_save_IFS
  6646. test -z "$as_dir" && as_dir=.
  6647. for ac_exec_ext in '' $ac_executable_extensions; do
  6648. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6649. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6650. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6651. break 2
  6652. fi
  6653. done
  6654. done
  6655. IFS=$as_save_IFS
  6656. fi
  6657. fi
  6658. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6659. if test -n "$ac_ct_OBJDUMP"; then
  6660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6661. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6662. else
  6663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6664. $as_echo "no" >&6; }
  6665. fi
  6666. if test "x$ac_ct_OBJDUMP" = x; then
  6667. OBJDUMP="false"
  6668. else
  6669. case $cross_compiling:$ac_tool_warned in
  6670. yes:)
  6671. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6672. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6673. ac_tool_warned=yes ;;
  6674. esac
  6675. OBJDUMP=$ac_ct_OBJDUMP
  6676. fi
  6677. else
  6678. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6679. fi
  6680. ;;
  6681. esac
  6682. test -z "$AS" && AS=as
  6683. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6684. test -z "$OBJDUMP" && OBJDUMP=objdump
  6685. enable_dlopen=no
  6686. # Check whether --enable-shared was given.
  6687. if test "${enable_shared+set}" = set; then :
  6688. enableval=$enable_shared; p=${PACKAGE-default}
  6689. case $enableval in
  6690. yes) enable_shared=yes ;;
  6691. no) enable_shared=no ;;
  6692. *)
  6693. enable_shared=no
  6694. # Look at the argument we got. We use all the common list separators.
  6695. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6696. for pkg in $enableval; do
  6697. IFS="$lt_save_ifs"
  6698. if test "X$pkg" = "X$p"; then
  6699. enable_shared=yes
  6700. fi
  6701. done
  6702. IFS="$lt_save_ifs"
  6703. ;;
  6704. esac
  6705. else
  6706. enable_shared=yes
  6707. fi
  6708. # Check whether --enable-static was given.
  6709. if test "${enable_static+set}" = set; then :
  6710. enableval=$enable_static; p=${PACKAGE-default}
  6711. case $enableval in
  6712. yes) enable_static=yes ;;
  6713. no) enable_static=no ;;
  6714. *)
  6715. enable_static=no
  6716. # Look at the argument we got. We use all the common list separators.
  6717. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6718. for pkg in $enableval; do
  6719. IFS="$lt_save_ifs"
  6720. if test "X$pkg" = "X$p"; then
  6721. enable_static=yes
  6722. fi
  6723. done
  6724. IFS="$lt_save_ifs"
  6725. ;;
  6726. esac
  6727. else
  6728. enable_static=yes
  6729. fi
  6730. # Check whether --with-pic was given.
  6731. if test "${with_pic+set}" = set; then :
  6732. withval=$with_pic; lt_p=${PACKAGE-default}
  6733. case $withval in
  6734. yes|no) pic_mode=$withval ;;
  6735. *)
  6736. pic_mode=default
  6737. # Look at the argument we got. We use all the common list separators.
  6738. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6739. for lt_pkg in $withval; do
  6740. IFS="$lt_save_ifs"
  6741. if test "X$lt_pkg" = "X$lt_p"; then
  6742. pic_mode=yes
  6743. fi
  6744. done
  6745. IFS="$lt_save_ifs"
  6746. ;;
  6747. esac
  6748. else
  6749. pic_mode=default
  6750. fi
  6751. test -z "$pic_mode" && pic_mode=default
  6752. # Check whether --enable-fast-install was given.
  6753. if test "${enable_fast_install+set}" = set; then :
  6754. enableval=$enable_fast_install; p=${PACKAGE-default}
  6755. case $enableval in
  6756. yes) enable_fast_install=yes ;;
  6757. no) enable_fast_install=no ;;
  6758. *)
  6759. enable_fast_install=no
  6760. # Look at the argument we got. We use all the common list separators.
  6761. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6762. for pkg in $enableval; do
  6763. IFS="$lt_save_ifs"
  6764. if test "X$pkg" = "X$p"; then
  6765. enable_fast_install=yes
  6766. fi
  6767. done
  6768. IFS="$lt_save_ifs"
  6769. ;;
  6770. esac
  6771. else
  6772. enable_fast_install=yes
  6773. fi
  6774. # This can be used to rebuild libtool when needed
  6775. LIBTOOL_DEPS="$ltmain"
  6776. # Always use our own libtool.
  6777. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6778. test -z "$LN_S" && LN_S="ln -s"
  6779. if test -n "${ZSH_VERSION+set}" ; then
  6780. setopt NO_GLOB_SUBST
  6781. fi
  6782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6783. $as_echo_n "checking for objdir... " >&6; }
  6784. if ${lt_cv_objdir+:} false; then :
  6785. $as_echo_n "(cached) " >&6
  6786. else
  6787. rm -f .libs 2>/dev/null
  6788. mkdir .libs 2>/dev/null
  6789. if test -d .libs; then
  6790. lt_cv_objdir=.libs
  6791. else
  6792. # MS-DOS does not allow filenames that begin with a dot.
  6793. lt_cv_objdir=_libs
  6794. fi
  6795. rmdir .libs 2>/dev/null
  6796. fi
  6797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6798. $as_echo "$lt_cv_objdir" >&6; }
  6799. objdir=$lt_cv_objdir
  6800. cat >>confdefs.h <<_ACEOF
  6801. #define LT_OBJDIR "$lt_cv_objdir/"
  6802. _ACEOF
  6803. case $host_os in
  6804. aix3*)
  6805. # AIX sometimes has problems with the GCC collect2 program. For some
  6806. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6807. # vanish in a puff of smoke.
  6808. if test "X${COLLECT_NAMES+set}" != Xset; then
  6809. COLLECT_NAMES=
  6810. export COLLECT_NAMES
  6811. fi
  6812. ;;
  6813. esac
  6814. # Global variables:
  6815. ofile=libtool
  6816. can_build_shared=yes
  6817. # All known linkers require a `.a' archive for static linking (except MSVC,
  6818. # which needs '.lib').
  6819. libext=a
  6820. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6821. old_CC="$CC"
  6822. old_CFLAGS="$CFLAGS"
  6823. # Set sane defaults for various variables
  6824. test -z "$CC" && CC=cc
  6825. test -z "$LTCC" && LTCC=$CC
  6826. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6827. test -z "$LD" && LD=ld
  6828. test -z "$ac_objext" && ac_objext=o
  6829. for cc_temp in $compiler""; do
  6830. case $cc_temp in
  6831. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6832. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6833. \-*) ;;
  6834. *) break;;
  6835. esac
  6836. done
  6837. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6838. # Only perform the check for file, if the check method requires it
  6839. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6840. case $deplibs_check_method in
  6841. file_magic*)
  6842. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6844. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6845. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6846. $as_echo_n "(cached) " >&6
  6847. else
  6848. case $MAGIC_CMD in
  6849. [\\/*] | ?:[\\/]*)
  6850. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6851. ;;
  6852. *)
  6853. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6854. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6855. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6856. for ac_dir in $ac_dummy; do
  6857. IFS="$lt_save_ifs"
  6858. test -z "$ac_dir" && ac_dir=.
  6859. if test -f $ac_dir/${ac_tool_prefix}file; then
  6860. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6861. if test -n "$file_magic_test_file"; then
  6862. case $deplibs_check_method in
  6863. "file_magic "*)
  6864. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6865. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6866. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6867. $EGREP "$file_magic_regex" > /dev/null; then
  6868. :
  6869. else
  6870. cat <<_LT_EOF 1>&2
  6871. *** Warning: the command libtool uses to detect shared libraries,
  6872. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6873. *** The result is that libtool may fail to recognize shared libraries
  6874. *** as such. This will affect the creation of libtool libraries that
  6875. *** depend on shared libraries, but programs linked with such libtool
  6876. *** libraries will work regardless of this problem. Nevertheless, you
  6877. *** may want to report the problem to your system manager and/or to
  6878. *** bug-libtool@gnu.org
  6879. _LT_EOF
  6880. fi ;;
  6881. esac
  6882. fi
  6883. break
  6884. fi
  6885. done
  6886. IFS="$lt_save_ifs"
  6887. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6888. ;;
  6889. esac
  6890. fi
  6891. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6892. if test -n "$MAGIC_CMD"; then
  6893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6894. $as_echo "$MAGIC_CMD" >&6; }
  6895. else
  6896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6897. $as_echo "no" >&6; }
  6898. fi
  6899. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6900. if test -n "$ac_tool_prefix"; then
  6901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6902. $as_echo_n "checking for file... " >&6; }
  6903. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6904. $as_echo_n "(cached) " >&6
  6905. else
  6906. case $MAGIC_CMD in
  6907. [\\/*] | ?:[\\/]*)
  6908. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6909. ;;
  6910. *)
  6911. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6912. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6913. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6914. for ac_dir in $ac_dummy; do
  6915. IFS="$lt_save_ifs"
  6916. test -z "$ac_dir" && ac_dir=.
  6917. if test -f $ac_dir/file; then
  6918. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6919. if test -n "$file_magic_test_file"; then
  6920. case $deplibs_check_method in
  6921. "file_magic "*)
  6922. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6923. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6924. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6925. $EGREP "$file_magic_regex" > /dev/null; then
  6926. :
  6927. else
  6928. cat <<_LT_EOF 1>&2
  6929. *** Warning: the command libtool uses to detect shared libraries,
  6930. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6931. *** The result is that libtool may fail to recognize shared libraries
  6932. *** as such. This will affect the creation of libtool libraries that
  6933. *** depend on shared libraries, but programs linked with such libtool
  6934. *** libraries will work regardless of this problem. Nevertheless, you
  6935. *** may want to report the problem to your system manager and/or to
  6936. *** bug-libtool@gnu.org
  6937. _LT_EOF
  6938. fi ;;
  6939. esac
  6940. fi
  6941. break
  6942. fi
  6943. done
  6944. IFS="$lt_save_ifs"
  6945. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6946. ;;
  6947. esac
  6948. fi
  6949. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6950. if test -n "$MAGIC_CMD"; then
  6951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6952. $as_echo "$MAGIC_CMD" >&6; }
  6953. else
  6954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6955. $as_echo "no" >&6; }
  6956. fi
  6957. else
  6958. MAGIC_CMD=:
  6959. fi
  6960. fi
  6961. fi
  6962. ;;
  6963. esac
  6964. # Use C for the default configuration in the libtool script
  6965. lt_save_CC="$CC"
  6966. ac_ext=c
  6967. ac_cpp='$CPP $CPPFLAGS'
  6968. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6969. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6970. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6971. # Source file extension for C test sources.
  6972. ac_ext=c
  6973. # Object file extension for compiled C test sources.
  6974. objext=o
  6975. objext=$objext
  6976. # Code to be used in simple compile tests
  6977. lt_simple_compile_test_code="int some_variable = 0;"
  6978. # Code to be used in simple link tests
  6979. lt_simple_link_test_code='int main(){return(0);}'
  6980. # If no C compiler was specified, use CC.
  6981. LTCC=${LTCC-"$CC"}
  6982. # If no C compiler flags were specified, use CFLAGS.
  6983. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6984. # Allow CC to be a program name with arguments.
  6985. compiler=$CC
  6986. # Save the default compiler, since it gets overwritten when the other
  6987. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6988. compiler_DEFAULT=$CC
  6989. # save warnings/boilerplate of simple test code
  6990. ac_outfile=conftest.$ac_objext
  6991. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6992. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6993. _lt_compiler_boilerplate=`cat conftest.err`
  6994. $RM conftest*
  6995. ac_outfile=conftest.$ac_objext
  6996. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6997. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6998. _lt_linker_boilerplate=`cat conftest.err`
  6999. $RM -r conftest*
  7000. ## CAVEAT EMPTOR:
  7001. ## There is no encapsulation within the following macros, do not change
  7002. ## the running order or otherwise move them around unless you know exactly
  7003. ## what you are doing...
  7004. if test -n "$compiler"; then
  7005. lt_prog_compiler_no_builtin_flag=
  7006. if test "$GCC" = yes; then
  7007. case $cc_basename in
  7008. nvcc*)
  7009. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7010. *)
  7011. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7012. esac
  7013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7014. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7015. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7016. $as_echo_n "(cached) " >&6
  7017. else
  7018. lt_cv_prog_compiler_rtti_exceptions=no
  7019. ac_outfile=conftest.$ac_objext
  7020. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7021. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7022. # Insert the option either (1) after the last *FLAGS variable, or
  7023. # (2) before a word containing "conftest.", or (3) at the end.
  7024. # Note that $ac_compile itself does not contain backslashes and begins
  7025. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7026. # The option is referenced via a variable to avoid confusing sed.
  7027. lt_compile=`echo "$ac_compile" | $SED \
  7028. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7029. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7030. -e 's:$: $lt_compiler_flag:'`
  7031. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7032. (eval "$lt_compile" 2>conftest.err)
  7033. ac_status=$?
  7034. cat conftest.err >&5
  7035. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7036. if (exit $ac_status) && test -s "$ac_outfile"; then
  7037. # The compiler can only warn and ignore the option if not recognized
  7038. # So say no if there are warnings other than the usual output.
  7039. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7040. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7041. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7042. lt_cv_prog_compiler_rtti_exceptions=yes
  7043. fi
  7044. fi
  7045. $RM conftest*
  7046. fi
  7047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7048. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7049. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7050. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7051. else
  7052. :
  7053. fi
  7054. fi
  7055. lt_prog_compiler_wl=
  7056. lt_prog_compiler_pic=
  7057. lt_prog_compiler_static=
  7058. if test "$GCC" = yes; then
  7059. lt_prog_compiler_wl='-Wl,'
  7060. lt_prog_compiler_static='-static'
  7061. case $host_os in
  7062. aix*)
  7063. # All AIX code is PIC.
  7064. if test "$host_cpu" = ia64; then
  7065. # AIX 5 now supports IA64 processor
  7066. lt_prog_compiler_static='-Bstatic'
  7067. fi
  7068. ;;
  7069. amigaos*)
  7070. case $host_cpu in
  7071. powerpc)
  7072. # see comment about AmigaOS4 .so support
  7073. lt_prog_compiler_pic='-fPIC'
  7074. ;;
  7075. m68k)
  7076. # FIXME: we need at least 68020 code to build shared libraries, but
  7077. # adding the `-m68020' flag to GCC prevents building anything better,
  7078. # like `-m68040'.
  7079. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7080. ;;
  7081. esac
  7082. ;;
  7083. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7084. # PIC is the default for these OSes.
  7085. ;;
  7086. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7087. # This hack is so that the source file can tell whether it is being
  7088. # built for inclusion in a dll (and should export symbols for example).
  7089. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7090. # (--disable-auto-import) libraries
  7091. lt_prog_compiler_pic='-DDLL_EXPORT'
  7092. ;;
  7093. darwin* | rhapsody*)
  7094. # PIC is the default on this platform
  7095. # Common symbols not allowed in MH_DYLIB files
  7096. lt_prog_compiler_pic='-fno-common'
  7097. ;;
  7098. haiku*)
  7099. # PIC is the default for Haiku.
  7100. # The "-static" flag exists, but is broken.
  7101. lt_prog_compiler_static=
  7102. ;;
  7103. hpux*)
  7104. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7105. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7106. # sets the default TLS model and affects inlining.
  7107. case $host_cpu in
  7108. hppa*64*)
  7109. # +Z the default
  7110. ;;
  7111. *)
  7112. lt_prog_compiler_pic='-fPIC'
  7113. ;;
  7114. esac
  7115. ;;
  7116. interix[3-9]*)
  7117. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7118. # Instead, we relocate shared libraries at runtime.
  7119. ;;
  7120. msdosdjgpp*)
  7121. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7122. # on systems that don't support them.
  7123. lt_prog_compiler_can_build_shared=no
  7124. enable_shared=no
  7125. ;;
  7126. *nto* | *qnx*)
  7127. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7128. # it will coredump.
  7129. lt_prog_compiler_pic='-fPIC -shared'
  7130. ;;
  7131. sysv4*MP*)
  7132. if test -d /usr/nec; then
  7133. lt_prog_compiler_pic=-Kconform_pic
  7134. fi
  7135. ;;
  7136. *)
  7137. lt_prog_compiler_pic='-fPIC'
  7138. ;;
  7139. esac
  7140. case $cc_basename in
  7141. nvcc*) # Cuda Compiler Driver 2.2
  7142. lt_prog_compiler_wl='-Xlinker '
  7143. if test -n "$lt_prog_compiler_pic"; then
  7144. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7145. fi
  7146. ;;
  7147. esac
  7148. else
  7149. # PORTME Check for flag to pass linker flags through the system compiler.
  7150. case $host_os in
  7151. aix*)
  7152. lt_prog_compiler_wl='-Wl,'
  7153. if test "$host_cpu" = ia64; then
  7154. # AIX 5 now supports IA64 processor
  7155. lt_prog_compiler_static='-Bstatic'
  7156. else
  7157. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7158. fi
  7159. ;;
  7160. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7161. # This hack is so that the source file can tell whether it is being
  7162. # built for inclusion in a dll (and should export symbols for example).
  7163. lt_prog_compiler_pic='-DDLL_EXPORT'
  7164. ;;
  7165. hpux9* | hpux10* | hpux11*)
  7166. lt_prog_compiler_wl='-Wl,'
  7167. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7168. # not for PA HP-UX.
  7169. case $host_cpu in
  7170. hppa*64*|ia64*)
  7171. # +Z the default
  7172. ;;
  7173. *)
  7174. lt_prog_compiler_pic='+Z'
  7175. ;;
  7176. esac
  7177. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7178. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7179. ;;
  7180. irix5* | irix6* | nonstopux*)
  7181. lt_prog_compiler_wl='-Wl,'
  7182. # PIC (with -KPIC) is the default.
  7183. lt_prog_compiler_static='-non_shared'
  7184. ;;
  7185. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7186. case $cc_basename in
  7187. # old Intel for x86_64 which still supported -KPIC.
  7188. ecc*)
  7189. lt_prog_compiler_wl='-Wl,'
  7190. lt_prog_compiler_pic='-KPIC'
  7191. lt_prog_compiler_static='-static'
  7192. ;;
  7193. # icc used to be incompatible with GCC.
  7194. # ICC 10 doesn't accept -KPIC any more.
  7195. icc* | ifort*)
  7196. lt_prog_compiler_wl='-Wl,'
  7197. lt_prog_compiler_pic='-fPIC'
  7198. lt_prog_compiler_static='-static'
  7199. ;;
  7200. # Lahey Fortran 8.1.
  7201. lf95*)
  7202. lt_prog_compiler_wl='-Wl,'
  7203. lt_prog_compiler_pic='--shared'
  7204. lt_prog_compiler_static='--static'
  7205. ;;
  7206. nagfor*)
  7207. # NAG Fortran compiler
  7208. lt_prog_compiler_wl='-Wl,-Wl,,'
  7209. lt_prog_compiler_pic='-PIC'
  7210. lt_prog_compiler_static='-Bstatic'
  7211. ;;
  7212. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7213. # Portland Group compilers (*not* the Pentium gcc compiler,
  7214. # which looks to be a dead project)
  7215. lt_prog_compiler_wl='-Wl,'
  7216. lt_prog_compiler_pic='-fpic'
  7217. lt_prog_compiler_static='-Bstatic'
  7218. ;;
  7219. ccc*)
  7220. lt_prog_compiler_wl='-Wl,'
  7221. # All Alpha code is PIC.
  7222. lt_prog_compiler_static='-non_shared'
  7223. ;;
  7224. xl* | bgxl* | bgf* | mpixl*)
  7225. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7226. lt_prog_compiler_wl='-Wl,'
  7227. lt_prog_compiler_pic='-qpic'
  7228. lt_prog_compiler_static='-qstaticlink'
  7229. ;;
  7230. *)
  7231. case `$CC -V 2>&1 | sed 5q` in
  7232. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7233. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7234. lt_prog_compiler_pic='-KPIC'
  7235. lt_prog_compiler_static='-Bstatic'
  7236. lt_prog_compiler_wl=''
  7237. ;;
  7238. *Sun\ F* | *Sun*Fortran*)
  7239. lt_prog_compiler_pic='-KPIC'
  7240. lt_prog_compiler_static='-Bstatic'
  7241. lt_prog_compiler_wl='-Qoption ld '
  7242. ;;
  7243. *Sun\ C*)
  7244. # Sun C 5.9
  7245. lt_prog_compiler_pic='-KPIC'
  7246. lt_prog_compiler_static='-Bstatic'
  7247. lt_prog_compiler_wl='-Wl,'
  7248. ;;
  7249. *Intel*\ [CF]*Compiler*)
  7250. lt_prog_compiler_wl='-Wl,'
  7251. lt_prog_compiler_pic='-fPIC'
  7252. lt_prog_compiler_static='-static'
  7253. ;;
  7254. *Portland\ Group*)
  7255. lt_prog_compiler_wl='-Wl,'
  7256. lt_prog_compiler_pic='-fpic'
  7257. lt_prog_compiler_static='-Bstatic'
  7258. ;;
  7259. esac
  7260. ;;
  7261. esac
  7262. ;;
  7263. newsos6)
  7264. lt_prog_compiler_pic='-KPIC'
  7265. lt_prog_compiler_static='-Bstatic'
  7266. ;;
  7267. *nto* | *qnx*)
  7268. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7269. # it will coredump.
  7270. lt_prog_compiler_pic='-fPIC -shared'
  7271. ;;
  7272. osf3* | osf4* | osf5*)
  7273. lt_prog_compiler_wl='-Wl,'
  7274. # All OSF/1 code is PIC.
  7275. lt_prog_compiler_static='-non_shared'
  7276. ;;
  7277. rdos*)
  7278. lt_prog_compiler_static='-non_shared'
  7279. ;;
  7280. solaris*)
  7281. lt_prog_compiler_pic='-KPIC'
  7282. lt_prog_compiler_static='-Bstatic'
  7283. case $cc_basename in
  7284. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7285. lt_prog_compiler_wl='-Qoption ld ';;
  7286. *)
  7287. lt_prog_compiler_wl='-Wl,';;
  7288. esac
  7289. ;;
  7290. sunos4*)
  7291. lt_prog_compiler_wl='-Qoption ld '
  7292. lt_prog_compiler_pic='-PIC'
  7293. lt_prog_compiler_static='-Bstatic'
  7294. ;;
  7295. sysv4 | sysv4.2uw2* | sysv4.3*)
  7296. lt_prog_compiler_wl='-Wl,'
  7297. lt_prog_compiler_pic='-KPIC'
  7298. lt_prog_compiler_static='-Bstatic'
  7299. ;;
  7300. sysv4*MP*)
  7301. if test -d /usr/nec ;then
  7302. lt_prog_compiler_pic='-Kconform_pic'
  7303. lt_prog_compiler_static='-Bstatic'
  7304. fi
  7305. ;;
  7306. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7307. lt_prog_compiler_wl='-Wl,'
  7308. lt_prog_compiler_pic='-KPIC'
  7309. lt_prog_compiler_static='-Bstatic'
  7310. ;;
  7311. unicos*)
  7312. lt_prog_compiler_wl='-Wl,'
  7313. lt_prog_compiler_can_build_shared=no
  7314. ;;
  7315. uts4*)
  7316. lt_prog_compiler_pic='-pic'
  7317. lt_prog_compiler_static='-Bstatic'
  7318. ;;
  7319. *)
  7320. lt_prog_compiler_can_build_shared=no
  7321. ;;
  7322. esac
  7323. fi
  7324. case $host_os in
  7325. # For platforms which do not support PIC, -DPIC is meaningless:
  7326. *djgpp*)
  7327. lt_prog_compiler_pic=
  7328. ;;
  7329. *)
  7330. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7331. ;;
  7332. esac
  7333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7334. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7335. if ${lt_cv_prog_compiler_pic+:} false; then :
  7336. $as_echo_n "(cached) " >&6
  7337. else
  7338. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7339. fi
  7340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7341. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7342. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7343. #
  7344. # Check to make sure the PIC flag actually works.
  7345. #
  7346. if test -n "$lt_prog_compiler_pic"; then
  7347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7348. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7349. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7350. $as_echo_n "(cached) " >&6
  7351. else
  7352. lt_cv_prog_compiler_pic_works=no
  7353. ac_outfile=conftest.$ac_objext
  7354. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7355. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7356. # Insert the option either (1) after the last *FLAGS variable, or
  7357. # (2) before a word containing "conftest.", or (3) at the end.
  7358. # Note that $ac_compile itself does not contain backslashes and begins
  7359. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7360. # The option is referenced via a variable to avoid confusing sed.
  7361. lt_compile=`echo "$ac_compile" | $SED \
  7362. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7363. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7364. -e 's:$: $lt_compiler_flag:'`
  7365. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7366. (eval "$lt_compile" 2>conftest.err)
  7367. ac_status=$?
  7368. cat conftest.err >&5
  7369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7370. if (exit $ac_status) && test -s "$ac_outfile"; then
  7371. # The compiler can only warn and ignore the option if not recognized
  7372. # So say no if there are warnings other than the usual output.
  7373. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7374. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7375. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7376. lt_cv_prog_compiler_pic_works=yes
  7377. fi
  7378. fi
  7379. $RM conftest*
  7380. fi
  7381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7382. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7383. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7384. case $lt_prog_compiler_pic in
  7385. "" | " "*) ;;
  7386. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7387. esac
  7388. else
  7389. lt_prog_compiler_pic=
  7390. lt_prog_compiler_can_build_shared=no
  7391. fi
  7392. fi
  7393. #
  7394. # Check to make sure the static flag actually works.
  7395. #
  7396. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7398. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7399. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7400. $as_echo_n "(cached) " >&6
  7401. else
  7402. lt_cv_prog_compiler_static_works=no
  7403. save_LDFLAGS="$LDFLAGS"
  7404. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7405. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7406. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7407. # The linker can only warn and ignore the option if not recognized
  7408. # So say no if there are warnings
  7409. if test -s conftest.err; then
  7410. # Append any errors to the config.log.
  7411. cat conftest.err 1>&5
  7412. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7413. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7414. if diff conftest.exp conftest.er2 >/dev/null; then
  7415. lt_cv_prog_compiler_static_works=yes
  7416. fi
  7417. else
  7418. lt_cv_prog_compiler_static_works=yes
  7419. fi
  7420. fi
  7421. $RM -r conftest*
  7422. LDFLAGS="$save_LDFLAGS"
  7423. fi
  7424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7425. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7426. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7427. :
  7428. else
  7429. lt_prog_compiler_static=
  7430. fi
  7431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7432. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7433. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7434. $as_echo_n "(cached) " >&6
  7435. else
  7436. lt_cv_prog_compiler_c_o=no
  7437. $RM -r conftest 2>/dev/null
  7438. mkdir conftest
  7439. cd conftest
  7440. mkdir out
  7441. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7442. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7443. # Insert the option either (1) after the last *FLAGS variable, or
  7444. # (2) before a word containing "conftest.", or (3) at the end.
  7445. # Note that $ac_compile itself does not contain backslashes and begins
  7446. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7447. lt_compile=`echo "$ac_compile" | $SED \
  7448. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7449. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7450. -e 's:$: $lt_compiler_flag:'`
  7451. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7452. (eval "$lt_compile" 2>out/conftest.err)
  7453. ac_status=$?
  7454. cat out/conftest.err >&5
  7455. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7456. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7457. then
  7458. # The compiler can only warn and ignore the option if not recognized
  7459. # So say no if there are warnings
  7460. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7461. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7462. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7463. lt_cv_prog_compiler_c_o=yes
  7464. fi
  7465. fi
  7466. chmod u+w . 2>&5
  7467. $RM conftest*
  7468. # SGI C++ compiler will create directory out/ii_files/ for
  7469. # template instantiation
  7470. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7471. $RM out/* && rmdir out
  7472. cd ..
  7473. $RM -r conftest
  7474. $RM conftest*
  7475. fi
  7476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7477. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7479. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7480. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7481. $as_echo_n "(cached) " >&6
  7482. else
  7483. lt_cv_prog_compiler_c_o=no
  7484. $RM -r conftest 2>/dev/null
  7485. mkdir conftest
  7486. cd conftest
  7487. mkdir out
  7488. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7489. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7490. # Insert the option either (1) after the last *FLAGS variable, or
  7491. # (2) before a word containing "conftest.", or (3) at the end.
  7492. # Note that $ac_compile itself does not contain backslashes and begins
  7493. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7494. lt_compile=`echo "$ac_compile" | $SED \
  7495. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7496. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7497. -e 's:$: $lt_compiler_flag:'`
  7498. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7499. (eval "$lt_compile" 2>out/conftest.err)
  7500. ac_status=$?
  7501. cat out/conftest.err >&5
  7502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7503. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7504. then
  7505. # The compiler can only warn and ignore the option if not recognized
  7506. # So say no if there are warnings
  7507. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7508. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7509. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7510. lt_cv_prog_compiler_c_o=yes
  7511. fi
  7512. fi
  7513. chmod u+w . 2>&5
  7514. $RM conftest*
  7515. # SGI C++ compiler will create directory out/ii_files/ for
  7516. # template instantiation
  7517. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7518. $RM out/* && rmdir out
  7519. cd ..
  7520. $RM -r conftest
  7521. $RM conftest*
  7522. fi
  7523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7524. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7525. hard_links="nottested"
  7526. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7527. # do not overwrite the value of need_locks provided by the user
  7528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7529. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7530. hard_links=yes
  7531. $RM conftest*
  7532. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7533. touch conftest.a
  7534. ln conftest.a conftest.b 2>&5 || hard_links=no
  7535. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7537. $as_echo "$hard_links" >&6; }
  7538. if test "$hard_links" = no; then
  7539. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7540. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7541. need_locks=warn
  7542. fi
  7543. else
  7544. need_locks=no
  7545. fi
  7546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7547. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7548. runpath_var=
  7549. allow_undefined_flag=
  7550. always_export_symbols=no
  7551. archive_cmds=
  7552. archive_expsym_cmds=
  7553. compiler_needs_object=no
  7554. enable_shared_with_static_runtimes=no
  7555. export_dynamic_flag_spec=
  7556. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7557. hardcode_automatic=no
  7558. hardcode_direct=no
  7559. hardcode_direct_absolute=no
  7560. hardcode_libdir_flag_spec=
  7561. hardcode_libdir_separator=
  7562. hardcode_minus_L=no
  7563. hardcode_shlibpath_var=unsupported
  7564. inherit_rpath=no
  7565. link_all_deplibs=unknown
  7566. module_cmds=
  7567. module_expsym_cmds=
  7568. old_archive_from_new_cmds=
  7569. old_archive_from_expsyms_cmds=
  7570. thread_safe_flag_spec=
  7571. whole_archive_flag_spec=
  7572. # include_expsyms should be a list of space-separated symbols to be *always*
  7573. # included in the symbol list
  7574. include_expsyms=
  7575. # exclude_expsyms can be an extended regexp of symbols to exclude
  7576. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7577. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7578. # as well as any symbol that contains `d'.
  7579. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7580. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7581. # platforms (ab)use it in PIC code, but their linkers get confused if
  7582. # the symbol is explicitly referenced. Since portable code cannot
  7583. # rely on this symbol name, it's probably fine to never include it in
  7584. # preloaded symbol tables.
  7585. # Exclude shared library initialization/finalization symbols.
  7586. extract_expsyms_cmds=
  7587. case $host_os in
  7588. cygwin* | mingw* | pw32* | cegcc*)
  7589. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7590. # When not using gcc, we currently assume that we are using
  7591. # Microsoft Visual C++.
  7592. if test "$GCC" != yes; then
  7593. with_gnu_ld=no
  7594. fi
  7595. ;;
  7596. interix*)
  7597. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7598. with_gnu_ld=yes
  7599. ;;
  7600. openbsd*)
  7601. with_gnu_ld=no
  7602. ;;
  7603. esac
  7604. ld_shlibs=yes
  7605. # On some targets, GNU ld is compatible enough with the native linker
  7606. # that we're better off using the native interface for both.
  7607. lt_use_gnu_ld_interface=no
  7608. if test "$with_gnu_ld" = yes; then
  7609. case $host_os in
  7610. aix*)
  7611. # The AIX port of GNU ld has always aspired to compatibility
  7612. # with the native linker. However, as the warning in the GNU ld
  7613. # block says, versions before 2.19.5* couldn't really create working
  7614. # shared libraries, regardless of the interface used.
  7615. case `$LD -v 2>&1` in
  7616. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7617. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7618. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7619. *)
  7620. lt_use_gnu_ld_interface=yes
  7621. ;;
  7622. esac
  7623. ;;
  7624. *)
  7625. lt_use_gnu_ld_interface=yes
  7626. ;;
  7627. esac
  7628. fi
  7629. if test "$lt_use_gnu_ld_interface" = yes; then
  7630. # If archive_cmds runs LD, not CC, wlarc should be empty
  7631. wlarc='${wl}'
  7632. # Set some defaults for GNU ld with shared library support. These
  7633. # are reset later if shared libraries are not supported. Putting them
  7634. # here allows them to be overridden if necessary.
  7635. runpath_var=LD_RUN_PATH
  7636. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7637. export_dynamic_flag_spec='${wl}--export-dynamic'
  7638. # ancient GNU ld didn't support --whole-archive et. al.
  7639. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7640. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7641. else
  7642. whole_archive_flag_spec=
  7643. fi
  7644. supports_anon_versioning=no
  7645. case `$LD -v 2>&1` in
  7646. *GNU\ gold*) supports_anon_versioning=yes ;;
  7647. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7648. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7649. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7650. *\ 2.11.*) ;; # other 2.11 versions
  7651. *) supports_anon_versioning=yes ;;
  7652. esac
  7653. # See if GNU ld supports shared libraries.
  7654. case $host_os in
  7655. aix[3-9]*)
  7656. # On AIX/PPC, the GNU linker is very broken
  7657. if test "$host_cpu" != ia64; then
  7658. ld_shlibs=no
  7659. cat <<_LT_EOF 1>&2
  7660. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7661. *** to be unable to reliably create shared libraries on AIX.
  7662. *** Therefore, libtool is disabling shared libraries support. If you
  7663. *** really care for shared libraries, you may want to install binutils
  7664. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7665. *** You will then need to restart the configuration process.
  7666. _LT_EOF
  7667. fi
  7668. ;;
  7669. amigaos*)
  7670. case $host_cpu in
  7671. powerpc)
  7672. # see comment about AmigaOS4 .so support
  7673. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7674. archive_expsym_cmds=''
  7675. ;;
  7676. m68k)
  7677. 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)'
  7678. hardcode_libdir_flag_spec='-L$libdir'
  7679. hardcode_minus_L=yes
  7680. ;;
  7681. esac
  7682. ;;
  7683. beos*)
  7684. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7685. allow_undefined_flag=unsupported
  7686. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7687. # support --undefined. This deserves some investigation. FIXME
  7688. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7689. else
  7690. ld_shlibs=no
  7691. fi
  7692. ;;
  7693. cygwin* | mingw* | pw32* | cegcc*)
  7694. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7695. # as there is no search path for DLLs.
  7696. hardcode_libdir_flag_spec='-L$libdir'
  7697. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7698. allow_undefined_flag=unsupported
  7699. always_export_symbols=no
  7700. enable_shared_with_static_runtimes=yes
  7701. 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'
  7702. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7703. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7704. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7705. # If the export-symbols file already is a .def file (1st line
  7706. # is EXPORTS), use it as is; otherwise, prepend...
  7707. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7708. cp $export_symbols $output_objdir/$soname.def;
  7709. else
  7710. echo EXPORTS > $output_objdir/$soname.def;
  7711. cat $export_symbols >> $output_objdir/$soname.def;
  7712. fi~
  7713. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7714. else
  7715. ld_shlibs=no
  7716. fi
  7717. ;;
  7718. haiku*)
  7719. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7720. link_all_deplibs=yes
  7721. ;;
  7722. interix[3-9]*)
  7723. hardcode_direct=no
  7724. hardcode_shlibpath_var=no
  7725. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7726. export_dynamic_flag_spec='${wl}-E'
  7727. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7728. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7729. # default) and relocated if they conflict, which is a slow very memory
  7730. # consuming and fragmenting process. To avoid this, we pick a random,
  7731. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7732. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7733. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7734. 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'
  7735. ;;
  7736. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7737. tmp_diet=no
  7738. if test "$host_os" = linux-dietlibc; then
  7739. case $cc_basename in
  7740. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7741. esac
  7742. fi
  7743. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7744. && test "$tmp_diet" = no
  7745. then
  7746. tmp_addflag=' $pic_flag'
  7747. tmp_sharedflag='-shared'
  7748. case $cc_basename,$host_cpu in
  7749. pgcc*) # Portland Group C compiler
  7750. 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'
  7751. tmp_addflag=' $pic_flag'
  7752. ;;
  7753. pgf77* | pgf90* | pgf95* | pgfortran*)
  7754. # Portland Group f77 and f90 compilers
  7755. 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'
  7756. tmp_addflag=' $pic_flag -Mnomain' ;;
  7757. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7758. tmp_addflag=' -i_dynamic' ;;
  7759. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7760. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7761. ifc* | ifort*) # Intel Fortran compiler
  7762. tmp_addflag=' -nofor_main' ;;
  7763. lf95*) # Lahey Fortran 8.1
  7764. whole_archive_flag_spec=
  7765. tmp_sharedflag='--shared' ;;
  7766. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7767. tmp_sharedflag='-qmkshrobj'
  7768. tmp_addflag= ;;
  7769. nvcc*) # Cuda Compiler Driver 2.2
  7770. 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'
  7771. compiler_needs_object=yes
  7772. ;;
  7773. esac
  7774. case `$CC -V 2>&1 | sed 5q` in
  7775. *Sun\ C*) # Sun C 5.9
  7776. 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'
  7777. compiler_needs_object=yes
  7778. tmp_sharedflag='-G' ;;
  7779. *Sun\ F*) # Sun Fortran 8.3
  7780. tmp_sharedflag='-G' ;;
  7781. esac
  7782. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7783. if test "x$supports_anon_versioning" = xyes; then
  7784. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7785. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7786. echo "local: *; };" >> $output_objdir/$libname.ver~
  7787. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7788. fi
  7789. case $cc_basename in
  7790. xlf* | bgf* | bgxlf* | mpixlf*)
  7791. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7792. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7793. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7794. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7795. if test "x$supports_anon_versioning" = xyes; then
  7796. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7797. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7798. echo "local: *; };" >> $output_objdir/$libname.ver~
  7799. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7800. fi
  7801. ;;
  7802. esac
  7803. else
  7804. ld_shlibs=no
  7805. fi
  7806. ;;
  7807. netbsd*)
  7808. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7809. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7810. wlarc=
  7811. else
  7812. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7813. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7814. fi
  7815. ;;
  7816. solaris*)
  7817. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7818. ld_shlibs=no
  7819. cat <<_LT_EOF 1>&2
  7820. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7821. *** create shared libraries on Solaris systems. Therefore, libtool
  7822. *** is disabling shared libraries support. We urge you to upgrade GNU
  7823. *** binutils to release 2.9.1 or newer. Another option is to modify
  7824. *** your PATH or compiler configuration so that the native linker is
  7825. *** used, and then restart.
  7826. _LT_EOF
  7827. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7828. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7829. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7830. else
  7831. ld_shlibs=no
  7832. fi
  7833. ;;
  7834. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7835. case `$LD -v 2>&1` in
  7836. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7837. ld_shlibs=no
  7838. cat <<_LT_EOF 1>&2
  7839. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7840. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7841. *** is disabling shared libraries support. We urge you to upgrade GNU
  7842. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7843. *** your PATH or compiler configuration so that the native linker is
  7844. *** used, and then restart.
  7845. _LT_EOF
  7846. ;;
  7847. *)
  7848. # For security reasons, it is highly recommended that you always
  7849. # use absolute paths for naming shared libraries, and exclude the
  7850. # DT_RUNPATH tag from executables and libraries. But doing so
  7851. # requires that you compile everything twice, which is a pain.
  7852. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7853. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7854. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7855. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7856. else
  7857. ld_shlibs=no
  7858. fi
  7859. ;;
  7860. esac
  7861. ;;
  7862. sunos4*)
  7863. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7864. wlarc=
  7865. hardcode_direct=yes
  7866. hardcode_shlibpath_var=no
  7867. ;;
  7868. *)
  7869. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7870. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7871. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7872. else
  7873. ld_shlibs=no
  7874. fi
  7875. ;;
  7876. esac
  7877. if test "$ld_shlibs" = no; then
  7878. runpath_var=
  7879. hardcode_libdir_flag_spec=
  7880. export_dynamic_flag_spec=
  7881. whole_archive_flag_spec=
  7882. fi
  7883. else
  7884. # PORTME fill in a description of your system's linker (not GNU ld)
  7885. case $host_os in
  7886. aix3*)
  7887. allow_undefined_flag=unsupported
  7888. always_export_symbols=yes
  7889. 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'
  7890. # Note: this linker hardcodes the directories in LIBPATH if there
  7891. # are no directories specified by -L.
  7892. hardcode_minus_L=yes
  7893. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7894. # Neither direct hardcoding nor static linking is supported with a
  7895. # broken collect2.
  7896. hardcode_direct=unsupported
  7897. fi
  7898. ;;
  7899. aix[4-9]*)
  7900. if test "$host_cpu" = ia64; then
  7901. # On IA64, the linker does run time linking by default, so we don't
  7902. # have to do anything special.
  7903. aix_use_runtimelinking=no
  7904. exp_sym_flag='-Bexport'
  7905. no_entry_flag=""
  7906. else
  7907. # If we're using GNU nm, then we don't want the "-C" option.
  7908. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7909. # Also, AIX nm treats weak defined symbols like other global
  7910. # defined symbols, whereas GNU nm marks them as "W".
  7911. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7912. 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'
  7913. else
  7914. 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'
  7915. fi
  7916. aix_use_runtimelinking=no
  7917. # Test if we are trying to use run time linking or normal
  7918. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7919. # need to do runtime linking.
  7920. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7921. for ld_flag in $LDFLAGS; do
  7922. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7923. aix_use_runtimelinking=yes
  7924. break
  7925. fi
  7926. done
  7927. ;;
  7928. esac
  7929. exp_sym_flag='-bexport'
  7930. no_entry_flag='-bnoentry'
  7931. fi
  7932. # When large executables or shared objects are built, AIX ld can
  7933. # have problems creating the table of contents. If linking a library
  7934. # or program results in "error TOC overflow" add -mminimal-toc to
  7935. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7936. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7937. archive_cmds=''
  7938. hardcode_direct=yes
  7939. hardcode_direct_absolute=yes
  7940. hardcode_libdir_separator=':'
  7941. link_all_deplibs=yes
  7942. file_list_spec='${wl}-f,'
  7943. if test "$GCC" = yes; then
  7944. case $host_os in aix4.[012]|aix4.[012].*)
  7945. # We only want to do this on AIX 4.2 and lower, the check
  7946. # below for broken collect2 doesn't work under 4.3+
  7947. collect2name=`${CC} -print-prog-name=collect2`
  7948. if test -f "$collect2name" &&
  7949. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7950. then
  7951. # We have reworked collect2
  7952. :
  7953. else
  7954. # We have old collect2
  7955. hardcode_direct=unsupported
  7956. # It fails to find uninstalled libraries when the uninstalled
  7957. # path is not listed in the libpath. Setting hardcode_minus_L
  7958. # to unsupported forces relinking
  7959. hardcode_minus_L=yes
  7960. hardcode_libdir_flag_spec='-L$libdir'
  7961. hardcode_libdir_separator=
  7962. fi
  7963. ;;
  7964. esac
  7965. shared_flag='-shared'
  7966. if test "$aix_use_runtimelinking" = yes; then
  7967. shared_flag="$shared_flag "'${wl}-G'
  7968. fi
  7969. else
  7970. # not using gcc
  7971. if test "$host_cpu" = ia64; then
  7972. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7973. # chokes on -Wl,-G. The following line is correct:
  7974. shared_flag='-G'
  7975. else
  7976. if test "$aix_use_runtimelinking" = yes; then
  7977. shared_flag='${wl}-G'
  7978. else
  7979. shared_flag='${wl}-bM:SRE'
  7980. fi
  7981. fi
  7982. fi
  7983. export_dynamic_flag_spec='${wl}-bexpall'
  7984. # It seems that -bexpall does not export symbols beginning with
  7985. # underscore (_), so it is better to generate a list of symbols to export.
  7986. always_export_symbols=yes
  7987. if test "$aix_use_runtimelinking" = yes; then
  7988. # Warning - without using the other runtime loading flags (-brtl),
  7989. # -berok will link without error, but may produce a broken library.
  7990. allow_undefined_flag='-berok'
  7991. # Determine the default libpath from the value encoded in an
  7992. # empty executable.
  7993. if test "${lt_cv_aix_libpath+set}" = set; then
  7994. aix_libpath=$lt_cv_aix_libpath
  7995. else
  7996. if ${lt_cv_aix_libpath_+:} false; then :
  7997. $as_echo_n "(cached) " >&6
  7998. else
  7999. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8000. /* end confdefs.h. */
  8001. int
  8002. main ()
  8003. {
  8004. ;
  8005. return 0;
  8006. }
  8007. _ACEOF
  8008. if ac_fn_c_try_link "$LINENO"; then :
  8009. lt_aix_libpath_sed='
  8010. /Import File Strings/,/^$/ {
  8011. /^0/ {
  8012. s/^0 *\([^ ]*\) *$/\1/
  8013. p
  8014. }
  8015. }'
  8016. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8017. # Check for a 64-bit object if we didn't find anything.
  8018. if test -z "$lt_cv_aix_libpath_"; then
  8019. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8020. fi
  8021. fi
  8022. rm -f core conftest.err conftest.$ac_objext \
  8023. conftest$ac_exeext conftest.$ac_ext
  8024. if test -z "$lt_cv_aix_libpath_"; then
  8025. lt_cv_aix_libpath_="/usr/lib:/lib"
  8026. fi
  8027. fi
  8028. aix_libpath=$lt_cv_aix_libpath_
  8029. fi
  8030. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8031. 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"
  8032. else
  8033. if test "$host_cpu" = ia64; then
  8034. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8035. allow_undefined_flag="-z nodefs"
  8036. 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"
  8037. else
  8038. # Determine the default libpath from the value encoded in an
  8039. # empty executable.
  8040. if test "${lt_cv_aix_libpath+set}" = set; then
  8041. aix_libpath=$lt_cv_aix_libpath
  8042. else
  8043. if ${lt_cv_aix_libpath_+:} false; then :
  8044. $as_echo_n "(cached) " >&6
  8045. else
  8046. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8047. /* end confdefs.h. */
  8048. int
  8049. main ()
  8050. {
  8051. ;
  8052. return 0;
  8053. }
  8054. _ACEOF
  8055. if ac_fn_c_try_link "$LINENO"; then :
  8056. lt_aix_libpath_sed='
  8057. /Import File Strings/,/^$/ {
  8058. /^0/ {
  8059. s/^0 *\([^ ]*\) *$/\1/
  8060. p
  8061. }
  8062. }'
  8063. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8064. # Check for a 64-bit object if we didn't find anything.
  8065. if test -z "$lt_cv_aix_libpath_"; then
  8066. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8067. fi
  8068. fi
  8069. rm -f core conftest.err conftest.$ac_objext \
  8070. conftest$ac_exeext conftest.$ac_ext
  8071. if test -z "$lt_cv_aix_libpath_"; then
  8072. lt_cv_aix_libpath_="/usr/lib:/lib"
  8073. fi
  8074. fi
  8075. aix_libpath=$lt_cv_aix_libpath_
  8076. fi
  8077. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8078. # Warning - without using the other run time loading flags,
  8079. # -berok will link without error, but may produce a broken library.
  8080. no_undefined_flag=' ${wl}-bernotok'
  8081. allow_undefined_flag=' ${wl}-berok'
  8082. if test "$with_gnu_ld" = yes; then
  8083. # We only use this code for GNU lds that support --whole-archive.
  8084. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8085. else
  8086. # Exported symbols can be pulled into shared objects from archives
  8087. whole_archive_flag_spec='$convenience'
  8088. fi
  8089. archive_cmds_need_lc=yes
  8090. # This is similar to how AIX traditionally builds its shared libraries.
  8091. 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'
  8092. fi
  8093. fi
  8094. ;;
  8095. amigaos*)
  8096. case $host_cpu in
  8097. powerpc)
  8098. # see comment about AmigaOS4 .so support
  8099. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8100. archive_expsym_cmds=''
  8101. ;;
  8102. m68k)
  8103. 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)'
  8104. hardcode_libdir_flag_spec='-L$libdir'
  8105. hardcode_minus_L=yes
  8106. ;;
  8107. esac
  8108. ;;
  8109. bsdi[45]*)
  8110. export_dynamic_flag_spec=-rdynamic
  8111. ;;
  8112. cygwin* | mingw* | pw32* | cegcc*)
  8113. # When not using gcc, we currently assume that we are using
  8114. # Microsoft Visual C++.
  8115. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8116. # no search path for DLLs.
  8117. case $cc_basename in
  8118. cl*)
  8119. # Native MSVC
  8120. hardcode_libdir_flag_spec=' '
  8121. allow_undefined_flag=unsupported
  8122. always_export_symbols=yes
  8123. file_list_spec='@'
  8124. # Tell ltmain to make .lib files, not .a files.
  8125. libext=lib
  8126. # Tell ltmain to make .dll files, not .so files.
  8127. shrext_cmds=".dll"
  8128. # FIXME: Setting linknames here is a bad hack.
  8129. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8130. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8131. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8132. else
  8133. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8134. fi~
  8135. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8136. linknames='
  8137. # The linker will not automatically build a static lib if we build a DLL.
  8138. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8139. enable_shared_with_static_runtimes=yes
  8140. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8141. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8142. # Don't use ranlib
  8143. old_postinstall_cmds='chmod 644 $oldlib'
  8144. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8145. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8146. case $lt_outputfile in
  8147. *.exe|*.EXE) ;;
  8148. *)
  8149. lt_outputfile="$lt_outputfile.exe"
  8150. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8151. ;;
  8152. esac~
  8153. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8154. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8155. $RM "$lt_outputfile.manifest";
  8156. fi'
  8157. ;;
  8158. *)
  8159. # Assume MSVC wrapper
  8160. hardcode_libdir_flag_spec=' '
  8161. allow_undefined_flag=unsupported
  8162. # Tell ltmain to make .lib files, not .a files.
  8163. libext=lib
  8164. # Tell ltmain to make .dll files, not .so files.
  8165. shrext_cmds=".dll"
  8166. # FIXME: Setting linknames here is a bad hack.
  8167. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8168. # The linker will automatically build a .lib file if we build a DLL.
  8169. old_archive_from_new_cmds='true'
  8170. # FIXME: Should let the user specify the lib program.
  8171. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8172. enable_shared_with_static_runtimes=yes
  8173. ;;
  8174. esac
  8175. ;;
  8176. darwin* | rhapsody*)
  8177. archive_cmds_need_lc=no
  8178. hardcode_direct=no
  8179. hardcode_automatic=yes
  8180. hardcode_shlibpath_var=unsupported
  8181. if test "$lt_cv_ld_force_load" = "yes"; then
  8182. 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\"`'
  8183. else
  8184. whole_archive_flag_spec=''
  8185. fi
  8186. link_all_deplibs=yes
  8187. allow_undefined_flag="$_lt_dar_allow_undefined"
  8188. case $cc_basename in
  8189. ifort*) _lt_dar_can_shared=yes ;;
  8190. *) _lt_dar_can_shared=$GCC ;;
  8191. esac
  8192. if test "$_lt_dar_can_shared" = "yes"; then
  8193. output_verbose_link_cmd=func_echo_all
  8194. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8195. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8196. 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}"
  8197. 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}"
  8198. else
  8199. ld_shlibs=no
  8200. fi
  8201. ;;
  8202. dgux*)
  8203. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8204. hardcode_libdir_flag_spec='-L$libdir'
  8205. hardcode_shlibpath_var=no
  8206. ;;
  8207. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8208. # support. Future versions do this automatically, but an explicit c++rt0.o
  8209. # does not break anything, and helps significantly (at the cost of a little
  8210. # extra space).
  8211. freebsd2.2*)
  8212. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8213. hardcode_libdir_flag_spec='-R$libdir'
  8214. hardcode_direct=yes
  8215. hardcode_shlibpath_var=no
  8216. ;;
  8217. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8218. freebsd2.*)
  8219. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8220. hardcode_direct=yes
  8221. hardcode_minus_L=yes
  8222. hardcode_shlibpath_var=no
  8223. ;;
  8224. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8225. freebsd* | dragonfly*)
  8226. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8227. hardcode_libdir_flag_spec='-R$libdir'
  8228. hardcode_direct=yes
  8229. hardcode_shlibpath_var=no
  8230. ;;
  8231. hpux9*)
  8232. if test "$GCC" = yes; then
  8233. 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'
  8234. else
  8235. 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'
  8236. fi
  8237. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8238. hardcode_libdir_separator=:
  8239. hardcode_direct=yes
  8240. # hardcode_minus_L: Not really in the search PATH,
  8241. # but as the default location of the library.
  8242. hardcode_minus_L=yes
  8243. export_dynamic_flag_spec='${wl}-E'
  8244. ;;
  8245. hpux10*)
  8246. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8247. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8248. else
  8249. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8250. fi
  8251. if test "$with_gnu_ld" = no; then
  8252. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8253. hardcode_libdir_separator=:
  8254. hardcode_direct=yes
  8255. hardcode_direct_absolute=yes
  8256. export_dynamic_flag_spec='${wl}-E'
  8257. # hardcode_minus_L: Not really in the search PATH,
  8258. # but as the default location of the library.
  8259. hardcode_minus_L=yes
  8260. fi
  8261. ;;
  8262. hpux11*)
  8263. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8264. case $host_cpu in
  8265. hppa*64*)
  8266. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8267. ;;
  8268. ia64*)
  8269. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8270. ;;
  8271. *)
  8272. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8273. ;;
  8274. esac
  8275. else
  8276. case $host_cpu in
  8277. hppa*64*)
  8278. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8279. ;;
  8280. ia64*)
  8281. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8282. ;;
  8283. *)
  8284. # Older versions of the 11.00 compiler do not understand -b yet
  8285. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8287. $as_echo_n "checking if $CC understands -b... " >&6; }
  8288. if ${lt_cv_prog_compiler__b+:} false; then :
  8289. $as_echo_n "(cached) " >&6
  8290. else
  8291. lt_cv_prog_compiler__b=no
  8292. save_LDFLAGS="$LDFLAGS"
  8293. LDFLAGS="$LDFLAGS -b"
  8294. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8295. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8296. # The linker can only warn and ignore the option if not recognized
  8297. # So say no if there are warnings
  8298. if test -s conftest.err; then
  8299. # Append any errors to the config.log.
  8300. cat conftest.err 1>&5
  8301. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8302. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8303. if diff conftest.exp conftest.er2 >/dev/null; then
  8304. lt_cv_prog_compiler__b=yes
  8305. fi
  8306. else
  8307. lt_cv_prog_compiler__b=yes
  8308. fi
  8309. fi
  8310. $RM -r conftest*
  8311. LDFLAGS="$save_LDFLAGS"
  8312. fi
  8313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8314. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8315. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8316. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8317. else
  8318. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8319. fi
  8320. ;;
  8321. esac
  8322. fi
  8323. if test "$with_gnu_ld" = no; then
  8324. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8325. hardcode_libdir_separator=:
  8326. case $host_cpu in
  8327. hppa*64*|ia64*)
  8328. hardcode_direct=no
  8329. hardcode_shlibpath_var=no
  8330. ;;
  8331. *)
  8332. hardcode_direct=yes
  8333. hardcode_direct_absolute=yes
  8334. export_dynamic_flag_spec='${wl}-E'
  8335. # hardcode_minus_L: Not really in the search PATH,
  8336. # but as the default location of the library.
  8337. hardcode_minus_L=yes
  8338. ;;
  8339. esac
  8340. fi
  8341. ;;
  8342. irix5* | irix6* | nonstopux*)
  8343. if test "$GCC" = yes; then
  8344. 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'
  8345. # Try to use the -exported_symbol ld option, if it does not
  8346. # work, assume that -exports_file does not work either and
  8347. # implicitly export all symbols.
  8348. # This should be the same for all languages, so no per-tag cache variable.
  8349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8350. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8351. if ${lt_cv_irix_exported_symbol+:} false; then :
  8352. $as_echo_n "(cached) " >&6
  8353. else
  8354. save_LDFLAGS="$LDFLAGS"
  8355. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8356. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8357. /* end confdefs.h. */
  8358. int foo (void) { return 0; }
  8359. _ACEOF
  8360. if ac_fn_c_try_link "$LINENO"; then :
  8361. lt_cv_irix_exported_symbol=yes
  8362. else
  8363. lt_cv_irix_exported_symbol=no
  8364. fi
  8365. rm -f core conftest.err conftest.$ac_objext \
  8366. conftest$ac_exeext conftest.$ac_ext
  8367. LDFLAGS="$save_LDFLAGS"
  8368. fi
  8369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8370. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8371. if test "$lt_cv_irix_exported_symbol" = yes; then
  8372. 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'
  8373. fi
  8374. else
  8375. 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'
  8376. 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'
  8377. fi
  8378. archive_cmds_need_lc='no'
  8379. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8380. hardcode_libdir_separator=:
  8381. inherit_rpath=yes
  8382. link_all_deplibs=yes
  8383. ;;
  8384. netbsd*)
  8385. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8386. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8387. else
  8388. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8389. fi
  8390. hardcode_libdir_flag_spec='-R$libdir'
  8391. hardcode_direct=yes
  8392. hardcode_shlibpath_var=no
  8393. ;;
  8394. newsos6)
  8395. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8396. hardcode_direct=yes
  8397. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8398. hardcode_libdir_separator=:
  8399. hardcode_shlibpath_var=no
  8400. ;;
  8401. *nto* | *qnx*)
  8402. ;;
  8403. openbsd*)
  8404. if test -f /usr/libexec/ld.so; then
  8405. hardcode_direct=yes
  8406. hardcode_shlibpath_var=no
  8407. hardcode_direct_absolute=yes
  8408. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8409. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8410. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8411. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8412. export_dynamic_flag_spec='${wl}-E'
  8413. else
  8414. case $host_os in
  8415. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8416. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8417. hardcode_libdir_flag_spec='-R$libdir'
  8418. ;;
  8419. *)
  8420. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8421. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8422. ;;
  8423. esac
  8424. fi
  8425. else
  8426. ld_shlibs=no
  8427. fi
  8428. ;;
  8429. os2*)
  8430. hardcode_libdir_flag_spec='-L$libdir'
  8431. hardcode_minus_L=yes
  8432. allow_undefined_flag=unsupported
  8433. 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'
  8434. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8435. ;;
  8436. osf3*)
  8437. if test "$GCC" = yes; then
  8438. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8439. 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'
  8440. else
  8441. allow_undefined_flag=' -expect_unresolved \*'
  8442. 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'
  8443. fi
  8444. archive_cmds_need_lc='no'
  8445. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8446. hardcode_libdir_separator=:
  8447. ;;
  8448. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8449. if test "$GCC" = yes; then
  8450. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8451. 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'
  8452. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8453. else
  8454. allow_undefined_flag=' -expect_unresolved \*'
  8455. 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'
  8456. 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~
  8457. $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'
  8458. # Both c and cxx compiler support -rpath directly
  8459. hardcode_libdir_flag_spec='-rpath $libdir'
  8460. fi
  8461. archive_cmds_need_lc='no'
  8462. hardcode_libdir_separator=:
  8463. ;;
  8464. solaris*)
  8465. no_undefined_flag=' -z defs'
  8466. if test "$GCC" = yes; then
  8467. wlarc='${wl}'
  8468. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8469. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8470. $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'
  8471. else
  8472. case `$CC -V 2>&1` in
  8473. *"Compilers 5.0"*)
  8474. wlarc=''
  8475. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8476. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8477. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8478. ;;
  8479. *)
  8480. wlarc='${wl}'
  8481. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8482. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8483. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8484. ;;
  8485. esac
  8486. fi
  8487. hardcode_libdir_flag_spec='-R$libdir'
  8488. hardcode_shlibpath_var=no
  8489. case $host_os in
  8490. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8491. *)
  8492. # The compiler driver will combine and reorder linker options,
  8493. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8494. # but is careful enough not to reorder.
  8495. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8496. if test "$GCC" = yes; then
  8497. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8498. else
  8499. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8500. fi
  8501. ;;
  8502. esac
  8503. link_all_deplibs=yes
  8504. ;;
  8505. sunos4*)
  8506. if test "x$host_vendor" = xsequent; then
  8507. # Use $CC to link under sequent, because it throws in some extra .o
  8508. # files that make .init and .fini sections work.
  8509. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8510. else
  8511. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8512. fi
  8513. hardcode_libdir_flag_spec='-L$libdir'
  8514. hardcode_direct=yes
  8515. hardcode_minus_L=yes
  8516. hardcode_shlibpath_var=no
  8517. ;;
  8518. sysv4)
  8519. case $host_vendor in
  8520. sni)
  8521. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8522. hardcode_direct=yes # is this really true???
  8523. ;;
  8524. siemens)
  8525. ## LD is ld it makes a PLAMLIB
  8526. ## CC just makes a GrossModule.
  8527. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8528. reload_cmds='$CC -r -o $output$reload_objs'
  8529. hardcode_direct=no
  8530. ;;
  8531. motorola)
  8532. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8533. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8534. ;;
  8535. esac
  8536. runpath_var='LD_RUN_PATH'
  8537. hardcode_shlibpath_var=no
  8538. ;;
  8539. sysv4.3*)
  8540. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8541. hardcode_shlibpath_var=no
  8542. export_dynamic_flag_spec='-Bexport'
  8543. ;;
  8544. sysv4*MP*)
  8545. if test -d /usr/nec; then
  8546. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8547. hardcode_shlibpath_var=no
  8548. runpath_var=LD_RUN_PATH
  8549. hardcode_runpath_var=yes
  8550. ld_shlibs=yes
  8551. fi
  8552. ;;
  8553. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8554. no_undefined_flag='${wl}-z,text'
  8555. archive_cmds_need_lc=no
  8556. hardcode_shlibpath_var=no
  8557. runpath_var='LD_RUN_PATH'
  8558. if test "$GCC" = yes; then
  8559. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8560. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8561. else
  8562. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8563. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8564. fi
  8565. ;;
  8566. sysv5* | sco3.2v5* | sco5v6*)
  8567. # Note: We can NOT use -z defs as we might desire, because we do not
  8568. # link with -lc, and that would cause any symbols used from libc to
  8569. # always be unresolved, which means just about no library would
  8570. # ever link correctly. If we're not using GNU ld we use -z text
  8571. # though, which does catch some bad symbols but isn't as heavy-handed
  8572. # as -z defs.
  8573. no_undefined_flag='${wl}-z,text'
  8574. allow_undefined_flag='${wl}-z,nodefs'
  8575. archive_cmds_need_lc=no
  8576. hardcode_shlibpath_var=no
  8577. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8578. hardcode_libdir_separator=':'
  8579. link_all_deplibs=yes
  8580. export_dynamic_flag_spec='${wl}-Bexport'
  8581. runpath_var='LD_RUN_PATH'
  8582. if test "$GCC" = yes; then
  8583. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8584. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8585. else
  8586. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8587. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8588. fi
  8589. ;;
  8590. uts4*)
  8591. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8592. hardcode_libdir_flag_spec='-L$libdir'
  8593. hardcode_shlibpath_var=no
  8594. ;;
  8595. *)
  8596. ld_shlibs=no
  8597. ;;
  8598. esac
  8599. if test x$host_vendor = xsni; then
  8600. case $host in
  8601. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8602. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8603. ;;
  8604. esac
  8605. fi
  8606. fi
  8607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8608. $as_echo "$ld_shlibs" >&6; }
  8609. test "$ld_shlibs" = no && can_build_shared=no
  8610. with_gnu_ld=$with_gnu_ld
  8611. #
  8612. # Do we need to explicitly link libc?
  8613. #
  8614. case "x$archive_cmds_need_lc" in
  8615. x|xyes)
  8616. # Assume -lc should be added
  8617. archive_cmds_need_lc=yes
  8618. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8619. case $archive_cmds in
  8620. *'~'*)
  8621. # FIXME: we may have to deal with multi-command sequences.
  8622. ;;
  8623. '$CC '*)
  8624. # Test whether the compiler implicitly links with -lc since on some
  8625. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8626. # to ld, don't add -lc before -lgcc.
  8627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8628. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8629. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8630. $as_echo_n "(cached) " >&6
  8631. else
  8632. $RM conftest*
  8633. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8634. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8635. (eval $ac_compile) 2>&5
  8636. ac_status=$?
  8637. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8638. test $ac_status = 0; } 2>conftest.err; then
  8639. soname=conftest
  8640. lib=conftest
  8641. libobjs=conftest.$ac_objext
  8642. deplibs=
  8643. wl=$lt_prog_compiler_wl
  8644. pic_flag=$lt_prog_compiler_pic
  8645. compiler_flags=-v
  8646. linker_flags=-v
  8647. verstring=
  8648. output_objdir=.
  8649. libname=conftest
  8650. lt_save_allow_undefined_flag=$allow_undefined_flag
  8651. allow_undefined_flag=
  8652. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8653. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8654. ac_status=$?
  8655. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8656. test $ac_status = 0; }
  8657. then
  8658. lt_cv_archive_cmds_need_lc=no
  8659. else
  8660. lt_cv_archive_cmds_need_lc=yes
  8661. fi
  8662. allow_undefined_flag=$lt_save_allow_undefined_flag
  8663. else
  8664. cat conftest.err 1>&5
  8665. fi
  8666. $RM conftest*
  8667. fi
  8668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8669. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8670. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8671. ;;
  8672. esac
  8673. fi
  8674. ;;
  8675. esac
  8676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8677. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8678. if test "$GCC" = yes; then
  8679. case $host_os in
  8680. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8681. *) lt_awk_arg="/^libraries:/" ;;
  8682. esac
  8683. case $host_os in
  8684. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8685. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8686. esac
  8687. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8688. case $lt_search_path_spec in
  8689. *\;*)
  8690. # if the path contains ";" then we assume it to be the separator
  8691. # otherwise default to the standard path separator (i.e. ":") - it is
  8692. # assumed that no part of a normal pathname contains ";" but that should
  8693. # okay in the real world where ";" in dirpaths is itself problematic.
  8694. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8695. ;;
  8696. *)
  8697. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8698. ;;
  8699. esac
  8700. # Ok, now we have the path, separated by spaces, we can step through it
  8701. # and add multilib dir if necessary...
  8702. lt_tmp_lt_search_path_spec=
  8703. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8704. # ...but if some path already ends with the multilib dir we assume
  8705. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8706. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8707. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8708. lt_multi_os_dir=
  8709. ;;
  8710. esac
  8711. for lt_sys_path in $lt_search_path_spec; do
  8712. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8713. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8714. elif test -n "$lt_multi_os_dir"; then
  8715. test -d "$lt_sys_path" && \
  8716. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8717. fi
  8718. done
  8719. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8720. BEGIN {RS=" "; FS="/|\n";} {
  8721. lt_foo="";
  8722. lt_count=0;
  8723. for (lt_i = NF; lt_i > 0; lt_i--) {
  8724. if ($lt_i != "" && $lt_i != ".") {
  8725. if ($lt_i == "..") {
  8726. lt_count++;
  8727. } else {
  8728. if (lt_count == 0) {
  8729. lt_foo="/" $lt_i lt_foo;
  8730. } else {
  8731. lt_count--;
  8732. }
  8733. }
  8734. }
  8735. }
  8736. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8737. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8738. }'`
  8739. # AWK program above erroneously prepends '/' to C:/dos/paths
  8740. # for these hosts.
  8741. case $host_os in
  8742. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8743. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8744. esac
  8745. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8746. else
  8747. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8748. fi
  8749. library_names_spec=
  8750. libname_spec='lib$name'
  8751. soname_spec=
  8752. shrext_cmds=".so"
  8753. postinstall_cmds=
  8754. postuninstall_cmds=
  8755. finish_cmds=
  8756. finish_eval=
  8757. shlibpath_var=
  8758. shlibpath_overrides_runpath=unknown
  8759. version_type=none
  8760. dynamic_linker="$host_os ld.so"
  8761. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8762. need_lib_prefix=unknown
  8763. hardcode_into_libs=no
  8764. # when you set need_version to no, make sure it does not cause -set_version
  8765. # flags to be left without arguments
  8766. need_version=unknown
  8767. case $host_os in
  8768. aix3*)
  8769. version_type=linux # correct to gnu/linux during the next big refactor
  8770. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8771. shlibpath_var=LIBPATH
  8772. # AIX 3 has no versioning support, so we append a major version to the name.
  8773. soname_spec='${libname}${release}${shared_ext}$major'
  8774. ;;
  8775. aix[4-9]*)
  8776. version_type=linux # correct to gnu/linux during the next big refactor
  8777. need_lib_prefix=no
  8778. need_version=no
  8779. hardcode_into_libs=yes
  8780. if test "$host_cpu" = ia64; then
  8781. # AIX 5 supports IA64
  8782. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8783. shlibpath_var=LD_LIBRARY_PATH
  8784. else
  8785. # With GCC up to 2.95.x, collect2 would create an import file
  8786. # for dependence libraries. The import file would start with
  8787. # the line `#! .'. This would cause the generated library to
  8788. # depend on `.', always an invalid library. This was fixed in
  8789. # development snapshots of GCC prior to 3.0.
  8790. case $host_os in
  8791. aix4 | aix4.[01] | aix4.[01].*)
  8792. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8793. echo ' yes '
  8794. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8795. :
  8796. else
  8797. can_build_shared=no
  8798. fi
  8799. ;;
  8800. esac
  8801. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8802. # soname into executable. Probably we can add versioning support to
  8803. # collect2, so additional links can be useful in future.
  8804. if test "$aix_use_runtimelinking" = yes; then
  8805. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8806. # instead of lib<name>.a to let people know that these are not
  8807. # typical AIX shared libraries.
  8808. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8809. else
  8810. # We preserve .a as extension for shared libraries through AIX4.2
  8811. # and later when we are not doing run time linking.
  8812. library_names_spec='${libname}${release}.a $libname.a'
  8813. soname_spec='${libname}${release}${shared_ext}$major'
  8814. fi
  8815. shlibpath_var=LIBPATH
  8816. fi
  8817. ;;
  8818. amigaos*)
  8819. case $host_cpu in
  8820. powerpc)
  8821. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8822. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8823. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8824. ;;
  8825. m68k)
  8826. library_names_spec='$libname.ixlibrary $libname.a'
  8827. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8828. 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'
  8829. ;;
  8830. esac
  8831. ;;
  8832. beos*)
  8833. library_names_spec='${libname}${shared_ext}'
  8834. dynamic_linker="$host_os ld.so"
  8835. shlibpath_var=LIBRARY_PATH
  8836. ;;
  8837. bsdi[45]*)
  8838. version_type=linux # correct to gnu/linux during the next big refactor
  8839. need_version=no
  8840. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8841. soname_spec='${libname}${release}${shared_ext}$major'
  8842. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8843. shlibpath_var=LD_LIBRARY_PATH
  8844. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8845. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8846. # the default ld.so.conf also contains /usr/contrib/lib and
  8847. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8848. # libtool to hard-code these into programs
  8849. ;;
  8850. cygwin* | mingw* | pw32* | cegcc*)
  8851. version_type=windows
  8852. shrext_cmds=".dll"
  8853. need_version=no
  8854. need_lib_prefix=no
  8855. case $GCC,$cc_basename in
  8856. yes,*)
  8857. # gcc
  8858. library_names_spec='$libname.dll.a'
  8859. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8860. postinstall_cmds='base_file=`basename \${file}`~
  8861. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8862. dldir=$destdir/`dirname \$dlpath`~
  8863. test -d \$dldir || mkdir -p \$dldir~
  8864. $install_prog $dir/$dlname \$dldir/$dlname~
  8865. chmod a+x \$dldir/$dlname~
  8866. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8867. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8868. fi'
  8869. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8870. dlpath=$dir/\$dldll~
  8871. $RM \$dlpath'
  8872. shlibpath_overrides_runpath=yes
  8873. case $host_os in
  8874. cygwin*)
  8875. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8876. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8877. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8878. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8879. ;;
  8880. mingw* | cegcc*)
  8881. # MinGW DLLs use traditional 'lib' prefix
  8882. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8883. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8884. ;;
  8885. pw32*)
  8886. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8887. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8888. ;;
  8889. esac
  8890. dynamic_linker='Win32 ld.exe'
  8891. ;;
  8892. *,cl*)
  8893. # Native MSVC
  8894. libname_spec='$name'
  8895. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8896. library_names_spec='${libname}.dll.lib'
  8897. case $build_os in
  8898. mingw*)
  8899. sys_lib_search_path_spec=
  8900. lt_save_ifs=$IFS
  8901. IFS=';'
  8902. for lt_path in $LIB
  8903. do
  8904. IFS=$lt_save_ifs
  8905. # Let DOS variable expansion print the short 8.3 style file name.
  8906. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8907. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8908. done
  8909. IFS=$lt_save_ifs
  8910. # Convert to MSYS style.
  8911. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8912. ;;
  8913. cygwin*)
  8914. # Convert to unix form, then to dos form, then back to unix form
  8915. # but this time dos style (no spaces!) so that the unix form looks
  8916. # like /cygdrive/c/PROGRA~1:/cygdr...
  8917. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8918. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8919. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8920. ;;
  8921. *)
  8922. sys_lib_search_path_spec="$LIB"
  8923. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8924. # It is most probably a Windows format PATH.
  8925. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8926. else
  8927. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8928. fi
  8929. # FIXME: find the short name or the path components, as spaces are
  8930. # common. (e.g. "Program Files" -> "PROGRA~1")
  8931. ;;
  8932. esac
  8933. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8934. postinstall_cmds='base_file=`basename \${file}`~
  8935. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8936. dldir=$destdir/`dirname \$dlpath`~
  8937. test -d \$dldir || mkdir -p \$dldir~
  8938. $install_prog $dir/$dlname \$dldir/$dlname'
  8939. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8940. dlpath=$dir/\$dldll~
  8941. $RM \$dlpath'
  8942. shlibpath_overrides_runpath=yes
  8943. dynamic_linker='Win32 link.exe'
  8944. ;;
  8945. *)
  8946. # Assume MSVC wrapper
  8947. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8948. dynamic_linker='Win32 ld.exe'
  8949. ;;
  8950. esac
  8951. # FIXME: first we should search . and the directory the executable is in
  8952. shlibpath_var=PATH
  8953. ;;
  8954. darwin* | rhapsody*)
  8955. dynamic_linker="$host_os dyld"
  8956. version_type=darwin
  8957. need_lib_prefix=no
  8958. need_version=no
  8959. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8960. soname_spec='${libname}${release}${major}$shared_ext'
  8961. shlibpath_overrides_runpath=yes
  8962. shlibpath_var=DYLD_LIBRARY_PATH
  8963. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8964. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8965. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8966. ;;
  8967. dgux*)
  8968. version_type=linux # correct to gnu/linux during the next big refactor
  8969. need_lib_prefix=no
  8970. need_version=no
  8971. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8972. soname_spec='${libname}${release}${shared_ext}$major'
  8973. shlibpath_var=LD_LIBRARY_PATH
  8974. ;;
  8975. freebsd* | dragonfly*)
  8976. # DragonFly does not have aout. When/if they implement a new
  8977. # versioning mechanism, adjust this.
  8978. if test -x /usr/bin/objformat; then
  8979. objformat=`/usr/bin/objformat`
  8980. else
  8981. case $host_os in
  8982. freebsd[23].*) objformat=aout ;;
  8983. *) objformat=elf ;;
  8984. esac
  8985. fi
  8986. version_type=freebsd-$objformat
  8987. case $version_type in
  8988. freebsd-elf*)
  8989. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8990. need_version=no
  8991. need_lib_prefix=no
  8992. ;;
  8993. freebsd-*)
  8994. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8995. need_version=yes
  8996. ;;
  8997. esac
  8998. shlibpath_var=LD_LIBRARY_PATH
  8999. case $host_os in
  9000. freebsd2.*)
  9001. shlibpath_overrides_runpath=yes
  9002. ;;
  9003. freebsd3.[01]* | freebsdelf3.[01]*)
  9004. shlibpath_overrides_runpath=yes
  9005. hardcode_into_libs=yes
  9006. ;;
  9007. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9008. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9009. shlibpath_overrides_runpath=no
  9010. hardcode_into_libs=yes
  9011. ;;
  9012. *) # from 4.6 on, and DragonFly
  9013. shlibpath_overrides_runpath=yes
  9014. hardcode_into_libs=yes
  9015. ;;
  9016. esac
  9017. ;;
  9018. gnu*)
  9019. version_type=linux # correct to gnu/linux during the next big refactor
  9020. need_lib_prefix=no
  9021. need_version=no
  9022. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9023. soname_spec='${libname}${release}${shared_ext}$major'
  9024. shlibpath_var=LD_LIBRARY_PATH
  9025. shlibpath_overrides_runpath=no
  9026. hardcode_into_libs=yes
  9027. ;;
  9028. haiku*)
  9029. version_type=linux # correct to gnu/linux during the next big refactor
  9030. need_lib_prefix=no
  9031. need_version=no
  9032. dynamic_linker="$host_os runtime_loader"
  9033. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9034. soname_spec='${libname}${release}${shared_ext}$major'
  9035. shlibpath_var=LIBRARY_PATH
  9036. shlibpath_overrides_runpath=yes
  9037. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9038. hardcode_into_libs=yes
  9039. ;;
  9040. hpux9* | hpux10* | hpux11*)
  9041. # Give a soname corresponding to the major version so that dld.sl refuses to
  9042. # link against other versions.
  9043. version_type=sunos
  9044. need_lib_prefix=no
  9045. need_version=no
  9046. case $host_cpu in
  9047. ia64*)
  9048. shrext_cmds='.so'
  9049. hardcode_into_libs=yes
  9050. dynamic_linker="$host_os dld.so"
  9051. shlibpath_var=LD_LIBRARY_PATH
  9052. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9053. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9054. soname_spec='${libname}${release}${shared_ext}$major'
  9055. if test "X$HPUX_IA64_MODE" = X32; then
  9056. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9057. else
  9058. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9059. fi
  9060. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9061. ;;
  9062. hppa*64*)
  9063. shrext_cmds='.sl'
  9064. hardcode_into_libs=yes
  9065. dynamic_linker="$host_os dld.sl"
  9066. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9067. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9068. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9069. soname_spec='${libname}${release}${shared_ext}$major'
  9070. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9071. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9072. ;;
  9073. *)
  9074. shrext_cmds='.sl'
  9075. dynamic_linker="$host_os dld.sl"
  9076. shlibpath_var=SHLIB_PATH
  9077. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9078. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9079. soname_spec='${libname}${release}${shared_ext}$major'
  9080. ;;
  9081. esac
  9082. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9083. postinstall_cmds='chmod 555 $lib'
  9084. # or fails outright, so override atomically:
  9085. install_override_mode=555
  9086. ;;
  9087. interix[3-9]*)
  9088. version_type=linux # correct to gnu/linux during the next big refactor
  9089. need_lib_prefix=no
  9090. need_version=no
  9091. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9092. soname_spec='${libname}${release}${shared_ext}$major'
  9093. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9094. shlibpath_var=LD_LIBRARY_PATH
  9095. shlibpath_overrides_runpath=no
  9096. hardcode_into_libs=yes
  9097. ;;
  9098. irix5* | irix6* | nonstopux*)
  9099. case $host_os in
  9100. nonstopux*) version_type=nonstopux ;;
  9101. *)
  9102. if test "$lt_cv_prog_gnu_ld" = yes; then
  9103. version_type=linux # correct to gnu/linux during the next big refactor
  9104. else
  9105. version_type=irix
  9106. fi ;;
  9107. esac
  9108. need_lib_prefix=no
  9109. need_version=no
  9110. soname_spec='${libname}${release}${shared_ext}$major'
  9111. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9112. case $host_os in
  9113. irix5* | nonstopux*)
  9114. libsuff= shlibsuff=
  9115. ;;
  9116. *)
  9117. case $LD in # libtool.m4 will add one of these switches to LD
  9118. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9119. libsuff= shlibsuff= libmagic=32-bit;;
  9120. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9121. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9122. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9123. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9124. *) libsuff= shlibsuff= libmagic=never-match;;
  9125. esac
  9126. ;;
  9127. esac
  9128. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9129. shlibpath_overrides_runpath=no
  9130. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9131. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9132. hardcode_into_libs=yes
  9133. ;;
  9134. # No shared lib support for Linux oldld, aout, or coff.
  9135. linux*oldld* | linux*aout* | linux*coff*)
  9136. dynamic_linker=no
  9137. ;;
  9138. # This must be glibc/ELF.
  9139. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9140. version_type=linux # correct to gnu/linux during the next big refactor
  9141. need_lib_prefix=no
  9142. need_version=no
  9143. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9144. soname_spec='${libname}${release}${shared_ext}$major'
  9145. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9146. shlibpath_var=LD_LIBRARY_PATH
  9147. shlibpath_overrides_runpath=no
  9148. # Some binutils ld are patched to set DT_RUNPATH
  9149. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9150. $as_echo_n "(cached) " >&6
  9151. else
  9152. lt_cv_shlibpath_overrides_runpath=no
  9153. save_LDFLAGS=$LDFLAGS
  9154. save_libdir=$libdir
  9155. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9156. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9158. /* end confdefs.h. */
  9159. int
  9160. main ()
  9161. {
  9162. ;
  9163. return 0;
  9164. }
  9165. _ACEOF
  9166. if ac_fn_c_try_link "$LINENO"; then :
  9167. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9168. lt_cv_shlibpath_overrides_runpath=yes
  9169. fi
  9170. fi
  9171. rm -f core conftest.err conftest.$ac_objext \
  9172. conftest$ac_exeext conftest.$ac_ext
  9173. LDFLAGS=$save_LDFLAGS
  9174. libdir=$save_libdir
  9175. fi
  9176. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9177. # This implies no fast_install, which is unacceptable.
  9178. # Some rework will be needed to allow for fast_install
  9179. # before this can be enabled.
  9180. hardcode_into_libs=yes
  9181. # Append ld.so.conf contents to the search path
  9182. if test -f /etc/ld.so.conf; then
  9183. 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' ' '`
  9184. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9185. fi
  9186. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9187. # powerpc, because MkLinux only supported shared libraries with the
  9188. # GNU dynamic linker. Since this was broken with cross compilers,
  9189. # most powerpc-linux boxes support dynamic linking these days and
  9190. # people can always --disable-shared, the test was removed, and we
  9191. # assume the GNU/Linux dynamic linker is in use.
  9192. dynamic_linker='GNU/Linux ld.so'
  9193. ;;
  9194. netbsd*)
  9195. version_type=sunos
  9196. need_lib_prefix=no
  9197. need_version=no
  9198. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9199. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9200. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9201. dynamic_linker='NetBSD (a.out) ld.so'
  9202. else
  9203. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9204. soname_spec='${libname}${release}${shared_ext}$major'
  9205. dynamic_linker='NetBSD ld.elf_so'
  9206. fi
  9207. shlibpath_var=LD_LIBRARY_PATH
  9208. shlibpath_overrides_runpath=yes
  9209. hardcode_into_libs=yes
  9210. ;;
  9211. newsos6)
  9212. version_type=linux # correct to gnu/linux during the next big refactor
  9213. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9214. shlibpath_var=LD_LIBRARY_PATH
  9215. shlibpath_overrides_runpath=yes
  9216. ;;
  9217. *nto* | *qnx*)
  9218. version_type=qnx
  9219. need_lib_prefix=no
  9220. need_version=no
  9221. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9222. soname_spec='${libname}${release}${shared_ext}$major'
  9223. shlibpath_var=LD_LIBRARY_PATH
  9224. shlibpath_overrides_runpath=no
  9225. hardcode_into_libs=yes
  9226. dynamic_linker='ldqnx.so'
  9227. ;;
  9228. openbsd*)
  9229. version_type=sunos
  9230. sys_lib_dlsearch_path_spec="/usr/lib"
  9231. need_lib_prefix=no
  9232. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9233. case $host_os in
  9234. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9235. *) need_version=no ;;
  9236. esac
  9237. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9238. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9239. shlibpath_var=LD_LIBRARY_PATH
  9240. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9241. case $host_os in
  9242. openbsd2.[89] | openbsd2.[89].*)
  9243. shlibpath_overrides_runpath=no
  9244. ;;
  9245. *)
  9246. shlibpath_overrides_runpath=yes
  9247. ;;
  9248. esac
  9249. else
  9250. shlibpath_overrides_runpath=yes
  9251. fi
  9252. ;;
  9253. os2*)
  9254. libname_spec='$name'
  9255. shrext_cmds=".dll"
  9256. need_lib_prefix=no
  9257. library_names_spec='$libname${shared_ext} $libname.a'
  9258. dynamic_linker='OS/2 ld.exe'
  9259. shlibpath_var=LIBPATH
  9260. ;;
  9261. osf3* | osf4* | osf5*)
  9262. version_type=osf
  9263. need_lib_prefix=no
  9264. need_version=no
  9265. soname_spec='${libname}${release}${shared_ext}$major'
  9266. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9267. shlibpath_var=LD_LIBRARY_PATH
  9268. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9269. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9270. ;;
  9271. rdos*)
  9272. dynamic_linker=no
  9273. ;;
  9274. solaris*)
  9275. version_type=linux # correct to gnu/linux during the next big refactor
  9276. need_lib_prefix=no
  9277. need_version=no
  9278. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9279. soname_spec='${libname}${release}${shared_ext}$major'
  9280. shlibpath_var=LD_LIBRARY_PATH
  9281. shlibpath_overrides_runpath=yes
  9282. hardcode_into_libs=yes
  9283. # ldd complains unless libraries are executable
  9284. postinstall_cmds='chmod +x $lib'
  9285. ;;
  9286. sunos4*)
  9287. version_type=sunos
  9288. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9289. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9290. shlibpath_var=LD_LIBRARY_PATH
  9291. shlibpath_overrides_runpath=yes
  9292. if test "$with_gnu_ld" = yes; then
  9293. need_lib_prefix=no
  9294. fi
  9295. need_version=yes
  9296. ;;
  9297. sysv4 | sysv4.3*)
  9298. version_type=linux # correct to gnu/linux during the next big refactor
  9299. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9300. soname_spec='${libname}${release}${shared_ext}$major'
  9301. shlibpath_var=LD_LIBRARY_PATH
  9302. case $host_vendor in
  9303. sni)
  9304. shlibpath_overrides_runpath=no
  9305. need_lib_prefix=no
  9306. runpath_var=LD_RUN_PATH
  9307. ;;
  9308. siemens)
  9309. need_lib_prefix=no
  9310. ;;
  9311. motorola)
  9312. need_lib_prefix=no
  9313. need_version=no
  9314. shlibpath_overrides_runpath=no
  9315. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9316. ;;
  9317. esac
  9318. ;;
  9319. sysv4*MP*)
  9320. if test -d /usr/nec ;then
  9321. version_type=linux # correct to gnu/linux during the next big refactor
  9322. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9323. soname_spec='$libname${shared_ext}.$major'
  9324. shlibpath_var=LD_LIBRARY_PATH
  9325. fi
  9326. ;;
  9327. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9328. version_type=freebsd-elf
  9329. need_lib_prefix=no
  9330. need_version=no
  9331. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9332. soname_spec='${libname}${release}${shared_ext}$major'
  9333. shlibpath_var=LD_LIBRARY_PATH
  9334. shlibpath_overrides_runpath=yes
  9335. hardcode_into_libs=yes
  9336. if test "$with_gnu_ld" = yes; then
  9337. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9338. else
  9339. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9340. case $host_os in
  9341. sco3.2v5*)
  9342. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9343. ;;
  9344. esac
  9345. fi
  9346. sys_lib_dlsearch_path_spec='/usr/lib'
  9347. ;;
  9348. tpf*)
  9349. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9350. version_type=linux # correct to gnu/linux during the next big refactor
  9351. need_lib_prefix=no
  9352. need_version=no
  9353. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9354. shlibpath_var=LD_LIBRARY_PATH
  9355. shlibpath_overrides_runpath=no
  9356. hardcode_into_libs=yes
  9357. ;;
  9358. uts4*)
  9359. version_type=linux # correct to gnu/linux during the next big refactor
  9360. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9361. soname_spec='${libname}${release}${shared_ext}$major'
  9362. shlibpath_var=LD_LIBRARY_PATH
  9363. ;;
  9364. *)
  9365. dynamic_linker=no
  9366. ;;
  9367. esac
  9368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9369. $as_echo "$dynamic_linker" >&6; }
  9370. test "$dynamic_linker" = no && can_build_shared=no
  9371. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9372. if test "$GCC" = yes; then
  9373. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9374. fi
  9375. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9376. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9377. fi
  9378. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9379. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9380. fi
  9381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9382. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9383. hardcode_action=
  9384. if test -n "$hardcode_libdir_flag_spec" ||
  9385. test -n "$runpath_var" ||
  9386. test "X$hardcode_automatic" = "Xyes" ; then
  9387. # We can hardcode non-existent directories.
  9388. if test "$hardcode_direct" != no &&
  9389. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9390. # have to relink, otherwise we might link with an installed library
  9391. # when we should be linking with a yet-to-be-installed one
  9392. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9393. test "$hardcode_minus_L" != no; then
  9394. # Linking always hardcodes the temporary library directory.
  9395. hardcode_action=relink
  9396. else
  9397. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9398. hardcode_action=immediate
  9399. fi
  9400. else
  9401. # We cannot hardcode anything, or else we can only hardcode existing
  9402. # directories.
  9403. hardcode_action=unsupported
  9404. fi
  9405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9406. $as_echo "$hardcode_action" >&6; }
  9407. if test "$hardcode_action" = relink ||
  9408. test "$inherit_rpath" = yes; then
  9409. # Fast installation is not supported
  9410. enable_fast_install=no
  9411. elif test "$shlibpath_overrides_runpath" = yes ||
  9412. test "$enable_shared" = no; then
  9413. # Fast installation is not necessary
  9414. enable_fast_install=needless
  9415. fi
  9416. if test "x$enable_dlopen" != xyes; then
  9417. enable_dlopen=unknown
  9418. enable_dlopen_self=unknown
  9419. enable_dlopen_self_static=unknown
  9420. else
  9421. lt_cv_dlopen=no
  9422. lt_cv_dlopen_libs=
  9423. case $host_os in
  9424. beos*)
  9425. lt_cv_dlopen="load_add_on"
  9426. lt_cv_dlopen_libs=
  9427. lt_cv_dlopen_self=yes
  9428. ;;
  9429. mingw* | pw32* | cegcc*)
  9430. lt_cv_dlopen="LoadLibrary"
  9431. lt_cv_dlopen_libs=
  9432. ;;
  9433. cygwin*)
  9434. lt_cv_dlopen="dlopen"
  9435. lt_cv_dlopen_libs=
  9436. ;;
  9437. darwin*)
  9438. # if libdl is installed we need to link against it
  9439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9440. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9441. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9442. $as_echo_n "(cached) " >&6
  9443. else
  9444. ac_check_lib_save_LIBS=$LIBS
  9445. LIBS="-ldl $LIBS"
  9446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9447. /* end confdefs.h. */
  9448. /* Override any GCC internal prototype to avoid an error.
  9449. Use char because int might match the return type of a GCC
  9450. builtin and then its argument prototype would still apply. */
  9451. #ifdef __cplusplus
  9452. extern "C"
  9453. #endif
  9454. char dlopen ();
  9455. int
  9456. main ()
  9457. {
  9458. return dlopen ();
  9459. ;
  9460. return 0;
  9461. }
  9462. _ACEOF
  9463. if ac_fn_c_try_link "$LINENO"; then :
  9464. ac_cv_lib_dl_dlopen=yes
  9465. else
  9466. ac_cv_lib_dl_dlopen=no
  9467. fi
  9468. rm -f core conftest.err conftest.$ac_objext \
  9469. conftest$ac_exeext conftest.$ac_ext
  9470. LIBS=$ac_check_lib_save_LIBS
  9471. fi
  9472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9473. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9474. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9475. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9476. else
  9477. lt_cv_dlopen="dyld"
  9478. lt_cv_dlopen_libs=
  9479. lt_cv_dlopen_self=yes
  9480. fi
  9481. ;;
  9482. *)
  9483. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9484. if test "x$ac_cv_func_shl_load" = xyes; then :
  9485. lt_cv_dlopen="shl_load"
  9486. else
  9487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9488. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9489. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9490. $as_echo_n "(cached) " >&6
  9491. else
  9492. ac_check_lib_save_LIBS=$LIBS
  9493. LIBS="-ldld $LIBS"
  9494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9495. /* end confdefs.h. */
  9496. /* Override any GCC internal prototype to avoid an error.
  9497. Use char because int might match the return type of a GCC
  9498. builtin and then its argument prototype would still apply. */
  9499. #ifdef __cplusplus
  9500. extern "C"
  9501. #endif
  9502. char shl_load ();
  9503. int
  9504. main ()
  9505. {
  9506. return shl_load ();
  9507. ;
  9508. return 0;
  9509. }
  9510. _ACEOF
  9511. if ac_fn_c_try_link "$LINENO"; then :
  9512. ac_cv_lib_dld_shl_load=yes
  9513. else
  9514. ac_cv_lib_dld_shl_load=no
  9515. fi
  9516. rm -f core conftest.err conftest.$ac_objext \
  9517. conftest$ac_exeext conftest.$ac_ext
  9518. LIBS=$ac_check_lib_save_LIBS
  9519. fi
  9520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9521. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9522. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9523. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9524. else
  9525. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9526. if test "x$ac_cv_func_dlopen" = xyes; then :
  9527. lt_cv_dlopen="dlopen"
  9528. else
  9529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9530. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9531. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9532. $as_echo_n "(cached) " >&6
  9533. else
  9534. ac_check_lib_save_LIBS=$LIBS
  9535. LIBS="-ldl $LIBS"
  9536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9537. /* end confdefs.h. */
  9538. /* Override any GCC internal prototype to avoid an error.
  9539. Use char because int might match the return type of a GCC
  9540. builtin and then its argument prototype would still apply. */
  9541. #ifdef __cplusplus
  9542. extern "C"
  9543. #endif
  9544. char dlopen ();
  9545. int
  9546. main ()
  9547. {
  9548. return dlopen ();
  9549. ;
  9550. return 0;
  9551. }
  9552. _ACEOF
  9553. if ac_fn_c_try_link "$LINENO"; then :
  9554. ac_cv_lib_dl_dlopen=yes
  9555. else
  9556. ac_cv_lib_dl_dlopen=no
  9557. fi
  9558. rm -f core conftest.err conftest.$ac_objext \
  9559. conftest$ac_exeext conftest.$ac_ext
  9560. LIBS=$ac_check_lib_save_LIBS
  9561. fi
  9562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9563. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9564. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9565. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9566. else
  9567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9568. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9569. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9570. $as_echo_n "(cached) " >&6
  9571. else
  9572. ac_check_lib_save_LIBS=$LIBS
  9573. LIBS="-lsvld $LIBS"
  9574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9575. /* end confdefs.h. */
  9576. /* Override any GCC internal prototype to avoid an error.
  9577. Use char because int might match the return type of a GCC
  9578. builtin and then its argument prototype would still apply. */
  9579. #ifdef __cplusplus
  9580. extern "C"
  9581. #endif
  9582. char dlopen ();
  9583. int
  9584. main ()
  9585. {
  9586. return dlopen ();
  9587. ;
  9588. return 0;
  9589. }
  9590. _ACEOF
  9591. if ac_fn_c_try_link "$LINENO"; then :
  9592. ac_cv_lib_svld_dlopen=yes
  9593. else
  9594. ac_cv_lib_svld_dlopen=no
  9595. fi
  9596. rm -f core conftest.err conftest.$ac_objext \
  9597. conftest$ac_exeext conftest.$ac_ext
  9598. LIBS=$ac_check_lib_save_LIBS
  9599. fi
  9600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9601. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9602. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9603. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9604. else
  9605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9606. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9607. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9608. $as_echo_n "(cached) " >&6
  9609. else
  9610. ac_check_lib_save_LIBS=$LIBS
  9611. LIBS="-ldld $LIBS"
  9612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9613. /* end confdefs.h. */
  9614. /* Override any GCC internal prototype to avoid an error.
  9615. Use char because int might match the return type of a GCC
  9616. builtin and then its argument prototype would still apply. */
  9617. #ifdef __cplusplus
  9618. extern "C"
  9619. #endif
  9620. char dld_link ();
  9621. int
  9622. main ()
  9623. {
  9624. return dld_link ();
  9625. ;
  9626. return 0;
  9627. }
  9628. _ACEOF
  9629. if ac_fn_c_try_link "$LINENO"; then :
  9630. ac_cv_lib_dld_dld_link=yes
  9631. else
  9632. ac_cv_lib_dld_dld_link=no
  9633. fi
  9634. rm -f core conftest.err conftest.$ac_objext \
  9635. conftest$ac_exeext conftest.$ac_ext
  9636. LIBS=$ac_check_lib_save_LIBS
  9637. fi
  9638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9639. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9640. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9641. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9642. fi
  9643. fi
  9644. fi
  9645. fi
  9646. fi
  9647. fi
  9648. ;;
  9649. esac
  9650. if test "x$lt_cv_dlopen" != xno; then
  9651. enable_dlopen=yes
  9652. else
  9653. enable_dlopen=no
  9654. fi
  9655. case $lt_cv_dlopen in
  9656. dlopen)
  9657. save_CPPFLAGS="$CPPFLAGS"
  9658. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9659. save_LDFLAGS="$LDFLAGS"
  9660. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9661. save_LIBS="$LIBS"
  9662. LIBS="$lt_cv_dlopen_libs $LIBS"
  9663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9664. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9665. if ${lt_cv_dlopen_self+:} false; then :
  9666. $as_echo_n "(cached) " >&6
  9667. else
  9668. if test "$cross_compiling" = yes; then :
  9669. lt_cv_dlopen_self=cross
  9670. else
  9671. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9672. lt_status=$lt_dlunknown
  9673. cat > conftest.$ac_ext <<_LT_EOF
  9674. #line $LINENO "configure"
  9675. #include "confdefs.h"
  9676. #if HAVE_DLFCN_H
  9677. #include <dlfcn.h>
  9678. #endif
  9679. #include <stdio.h>
  9680. #ifdef RTLD_GLOBAL
  9681. # define LT_DLGLOBAL RTLD_GLOBAL
  9682. #else
  9683. # ifdef DL_GLOBAL
  9684. # define LT_DLGLOBAL DL_GLOBAL
  9685. # else
  9686. # define LT_DLGLOBAL 0
  9687. # endif
  9688. #endif
  9689. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9690. find out it does not work in some platform. */
  9691. #ifndef LT_DLLAZY_OR_NOW
  9692. # ifdef RTLD_LAZY
  9693. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9694. # else
  9695. # ifdef DL_LAZY
  9696. # define LT_DLLAZY_OR_NOW DL_LAZY
  9697. # else
  9698. # ifdef RTLD_NOW
  9699. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9700. # else
  9701. # ifdef DL_NOW
  9702. # define LT_DLLAZY_OR_NOW DL_NOW
  9703. # else
  9704. # define LT_DLLAZY_OR_NOW 0
  9705. # endif
  9706. # endif
  9707. # endif
  9708. # endif
  9709. #endif
  9710. /* When -fvisbility=hidden is used, assume the code has been annotated
  9711. correspondingly for the symbols needed. */
  9712. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9713. int fnord () __attribute__((visibility("default")));
  9714. #endif
  9715. int fnord () { return 42; }
  9716. int main ()
  9717. {
  9718. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9719. int status = $lt_dlunknown;
  9720. if (self)
  9721. {
  9722. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9723. else
  9724. {
  9725. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9726. else puts (dlerror ());
  9727. }
  9728. /* dlclose (self); */
  9729. }
  9730. else
  9731. puts (dlerror ());
  9732. return status;
  9733. }
  9734. _LT_EOF
  9735. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9736. (eval $ac_link) 2>&5
  9737. ac_status=$?
  9738. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9739. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9740. (./conftest; exit; ) >&5 2>/dev/null
  9741. lt_status=$?
  9742. case x$lt_status in
  9743. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9744. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9745. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9746. esac
  9747. else :
  9748. # compilation failed
  9749. lt_cv_dlopen_self=no
  9750. fi
  9751. fi
  9752. rm -fr conftest*
  9753. fi
  9754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9755. $as_echo "$lt_cv_dlopen_self" >&6; }
  9756. if test "x$lt_cv_dlopen_self" = xyes; then
  9757. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9759. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9760. if ${lt_cv_dlopen_self_static+:} false; then :
  9761. $as_echo_n "(cached) " >&6
  9762. else
  9763. if test "$cross_compiling" = yes; then :
  9764. lt_cv_dlopen_self_static=cross
  9765. else
  9766. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9767. lt_status=$lt_dlunknown
  9768. cat > conftest.$ac_ext <<_LT_EOF
  9769. #line $LINENO "configure"
  9770. #include "confdefs.h"
  9771. #if HAVE_DLFCN_H
  9772. #include <dlfcn.h>
  9773. #endif
  9774. #include <stdio.h>
  9775. #ifdef RTLD_GLOBAL
  9776. # define LT_DLGLOBAL RTLD_GLOBAL
  9777. #else
  9778. # ifdef DL_GLOBAL
  9779. # define LT_DLGLOBAL DL_GLOBAL
  9780. # else
  9781. # define LT_DLGLOBAL 0
  9782. # endif
  9783. #endif
  9784. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9785. find out it does not work in some platform. */
  9786. #ifndef LT_DLLAZY_OR_NOW
  9787. # ifdef RTLD_LAZY
  9788. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9789. # else
  9790. # ifdef DL_LAZY
  9791. # define LT_DLLAZY_OR_NOW DL_LAZY
  9792. # else
  9793. # ifdef RTLD_NOW
  9794. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9795. # else
  9796. # ifdef DL_NOW
  9797. # define LT_DLLAZY_OR_NOW DL_NOW
  9798. # else
  9799. # define LT_DLLAZY_OR_NOW 0
  9800. # endif
  9801. # endif
  9802. # endif
  9803. # endif
  9804. #endif
  9805. /* When -fvisbility=hidden is used, assume the code has been annotated
  9806. correspondingly for the symbols needed. */
  9807. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9808. int fnord () __attribute__((visibility("default")));
  9809. #endif
  9810. int fnord () { return 42; }
  9811. int main ()
  9812. {
  9813. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9814. int status = $lt_dlunknown;
  9815. if (self)
  9816. {
  9817. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9818. else
  9819. {
  9820. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9821. else puts (dlerror ());
  9822. }
  9823. /* dlclose (self); */
  9824. }
  9825. else
  9826. puts (dlerror ());
  9827. return status;
  9828. }
  9829. _LT_EOF
  9830. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9831. (eval $ac_link) 2>&5
  9832. ac_status=$?
  9833. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9834. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9835. (./conftest; exit; ) >&5 2>/dev/null
  9836. lt_status=$?
  9837. case x$lt_status in
  9838. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9839. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9840. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9841. esac
  9842. else :
  9843. # compilation failed
  9844. lt_cv_dlopen_self_static=no
  9845. fi
  9846. fi
  9847. rm -fr conftest*
  9848. fi
  9849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9850. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9851. fi
  9852. CPPFLAGS="$save_CPPFLAGS"
  9853. LDFLAGS="$save_LDFLAGS"
  9854. LIBS="$save_LIBS"
  9855. ;;
  9856. esac
  9857. case $lt_cv_dlopen_self in
  9858. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9859. *) enable_dlopen_self=unknown ;;
  9860. esac
  9861. case $lt_cv_dlopen_self_static in
  9862. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9863. *) enable_dlopen_self_static=unknown ;;
  9864. esac
  9865. fi
  9866. striplib=
  9867. old_striplib=
  9868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9869. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9870. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9871. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9872. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9874. $as_echo "yes" >&6; }
  9875. else
  9876. # FIXME - insert some real tests, host_os isn't really good enough
  9877. case $host_os in
  9878. darwin*)
  9879. if test -n "$STRIP" ; then
  9880. striplib="$STRIP -x"
  9881. old_striplib="$STRIP -S"
  9882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9883. $as_echo "yes" >&6; }
  9884. else
  9885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9886. $as_echo "no" >&6; }
  9887. fi
  9888. ;;
  9889. *)
  9890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9891. $as_echo "no" >&6; }
  9892. ;;
  9893. esac
  9894. fi
  9895. # Report which library types will actually be built
  9896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9897. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9899. $as_echo "$can_build_shared" >&6; }
  9900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9901. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9902. test "$can_build_shared" = "no" && enable_shared=no
  9903. # On AIX, shared libraries and static libraries use the same namespace, and
  9904. # are all built from PIC.
  9905. case $host_os in
  9906. aix3*)
  9907. test "$enable_shared" = yes && enable_static=no
  9908. if test -n "$RANLIB"; then
  9909. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9910. postinstall_cmds='$RANLIB $lib'
  9911. fi
  9912. ;;
  9913. aix[4-9]*)
  9914. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9915. test "$enable_shared" = yes && enable_static=no
  9916. fi
  9917. ;;
  9918. esac
  9919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9920. $as_echo "$enable_shared" >&6; }
  9921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9922. $as_echo_n "checking whether to build static libraries... " >&6; }
  9923. # Make sure either enable_shared or enable_static is yes.
  9924. test "$enable_shared" = yes || enable_static=yes
  9925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9926. $as_echo "$enable_static" >&6; }
  9927. fi
  9928. ac_ext=c
  9929. ac_cpp='$CPP $CPPFLAGS'
  9930. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9931. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9932. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9933. CC="$lt_save_CC"
  9934. ac_config_commands="$ac_config_commands libtool"
  9935. # Only expand once:
  9936. if test -n "$ac_tool_prefix"; then
  9937. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  9938. set dummy ${ac_tool_prefix}windres; ac_word=$2
  9939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9940. $as_echo_n "checking for $ac_word... " >&6; }
  9941. if ${ac_cv_prog_RC+:} false; then :
  9942. $as_echo_n "(cached) " >&6
  9943. else
  9944. if test -n "$RC"; then
  9945. ac_cv_prog_RC="$RC" # Let the user override the test.
  9946. else
  9947. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9948. for as_dir in $PATH
  9949. do
  9950. IFS=$as_save_IFS
  9951. test -z "$as_dir" && as_dir=.
  9952. for ac_exec_ext in '' $ac_executable_extensions; do
  9953. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9954. ac_cv_prog_RC="${ac_tool_prefix}windres"
  9955. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9956. break 2
  9957. fi
  9958. done
  9959. done
  9960. IFS=$as_save_IFS
  9961. fi
  9962. fi
  9963. RC=$ac_cv_prog_RC
  9964. if test -n "$RC"; then
  9965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  9966. $as_echo "$RC" >&6; }
  9967. else
  9968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9969. $as_echo "no" >&6; }
  9970. fi
  9971. fi
  9972. if test -z "$ac_cv_prog_RC"; then
  9973. ac_ct_RC=$RC
  9974. # Extract the first word of "windres", so it can be a program name with args.
  9975. set dummy windres; ac_word=$2
  9976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9977. $as_echo_n "checking for $ac_word... " >&6; }
  9978. if ${ac_cv_prog_ac_ct_RC+:} false; then :
  9979. $as_echo_n "(cached) " >&6
  9980. else
  9981. if test -n "$ac_ct_RC"; then
  9982. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  9983. else
  9984. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9985. for as_dir in $PATH
  9986. do
  9987. IFS=$as_save_IFS
  9988. test -z "$as_dir" && as_dir=.
  9989. for ac_exec_ext in '' $ac_executable_extensions; do
  9990. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9991. ac_cv_prog_ac_ct_RC="windres"
  9992. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9993. break 2
  9994. fi
  9995. done
  9996. done
  9997. IFS=$as_save_IFS
  9998. fi
  9999. fi
  10000. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  10001. if test -n "$ac_ct_RC"; then
  10002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  10003. $as_echo "$ac_ct_RC" >&6; }
  10004. else
  10005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10006. $as_echo "no" >&6; }
  10007. fi
  10008. if test "x$ac_ct_RC" = x; then
  10009. RC=""
  10010. else
  10011. case $cross_compiling:$ac_tool_warned in
  10012. yes:)
  10013. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10014. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10015. ac_tool_warned=yes ;;
  10016. esac
  10017. RC=$ac_ct_RC
  10018. fi
  10019. else
  10020. RC="$ac_cv_prog_RC"
  10021. fi
  10022. # Source file extension for RC test sources.
  10023. ac_ext=rc
  10024. # Object file extension for compiled RC test sources.
  10025. objext=o
  10026. objext_RC=$objext
  10027. # Code to be used in simple compile tests
  10028. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  10029. # Code to be used in simple link tests
  10030. lt_simple_link_test_code="$lt_simple_compile_test_code"
  10031. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10032. # If no C compiler was specified, use CC.
  10033. LTCC=${LTCC-"$CC"}
  10034. # If no C compiler flags were specified, use CFLAGS.
  10035. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10036. # Allow CC to be a program name with arguments.
  10037. compiler=$CC
  10038. # save warnings/boilerplate of simple test code
  10039. ac_outfile=conftest.$ac_objext
  10040. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10041. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10042. _lt_compiler_boilerplate=`cat conftest.err`
  10043. $RM conftest*
  10044. ac_outfile=conftest.$ac_objext
  10045. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10046. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10047. _lt_linker_boilerplate=`cat conftest.err`
  10048. $RM -r conftest*
  10049. # Allow CC to be a program name with arguments.
  10050. lt_save_CC="$CC"
  10051. lt_save_CFLAGS=$CFLAGS
  10052. lt_save_GCC=$GCC
  10053. GCC=
  10054. CC=${RC-"windres"}
  10055. CFLAGS=
  10056. compiler=$CC
  10057. compiler_RC=$CC
  10058. for cc_temp in $compiler""; do
  10059. case $cc_temp in
  10060. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10061. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10062. \-*) ;;
  10063. *) break;;
  10064. esac
  10065. done
  10066. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10067. lt_cv_prog_compiler_c_o_RC=yes
  10068. if test -n "$compiler"; then
  10069. :
  10070. fi
  10071. GCC=$lt_save_GCC
  10072. ac_ext=c
  10073. ac_cpp='$CPP $CPPFLAGS'
  10074. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10075. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10076. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10077. CC=$lt_save_CC
  10078. CFLAGS=$lt_save_CFLAGS
  10079. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  10080. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  10081. LT_REVISION=$SDL_INTERFACE_AGE
  10082. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  10083. ac_ext=c
  10084. ac_cpp='$CPP $CPPFLAGS'
  10085. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10086. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10087. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10088. if test -n "$ac_tool_prefix"; then
  10089. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  10090. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  10091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10092. $as_echo_n "checking for $ac_word... " >&6; }
  10093. if ${ac_cv_prog_CC+:} false; then :
  10094. $as_echo_n "(cached) " >&6
  10095. else
  10096. if test -n "$CC"; then
  10097. ac_cv_prog_CC="$CC" # Let the user override the test.
  10098. else
  10099. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10100. for as_dir in $PATH
  10101. do
  10102. IFS=$as_save_IFS
  10103. test -z "$as_dir" && as_dir=.
  10104. for ac_exec_ext in '' $ac_executable_extensions; do
  10105. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10106. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  10107. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10108. break 2
  10109. fi
  10110. done
  10111. done
  10112. IFS=$as_save_IFS
  10113. fi
  10114. fi
  10115. CC=$ac_cv_prog_CC
  10116. if test -n "$CC"; then
  10117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10118. $as_echo "$CC" >&6; }
  10119. else
  10120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10121. $as_echo "no" >&6; }
  10122. fi
  10123. fi
  10124. if test -z "$ac_cv_prog_CC"; then
  10125. ac_ct_CC=$CC
  10126. # Extract the first word of "gcc", so it can be a program name with args.
  10127. set dummy gcc; ac_word=$2
  10128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10129. $as_echo_n "checking for $ac_word... " >&6; }
  10130. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10131. $as_echo_n "(cached) " >&6
  10132. else
  10133. if test -n "$ac_ct_CC"; then
  10134. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10135. else
  10136. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10137. for as_dir in $PATH
  10138. do
  10139. IFS=$as_save_IFS
  10140. test -z "$as_dir" && as_dir=.
  10141. for ac_exec_ext in '' $ac_executable_extensions; do
  10142. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10143. ac_cv_prog_ac_ct_CC="gcc"
  10144. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10145. break 2
  10146. fi
  10147. done
  10148. done
  10149. IFS=$as_save_IFS
  10150. fi
  10151. fi
  10152. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10153. if test -n "$ac_ct_CC"; then
  10154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10155. $as_echo "$ac_ct_CC" >&6; }
  10156. else
  10157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10158. $as_echo "no" >&6; }
  10159. fi
  10160. if test "x$ac_ct_CC" = x; then
  10161. CC=""
  10162. else
  10163. case $cross_compiling:$ac_tool_warned in
  10164. yes:)
  10165. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10166. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10167. ac_tool_warned=yes ;;
  10168. esac
  10169. CC=$ac_ct_CC
  10170. fi
  10171. else
  10172. CC="$ac_cv_prog_CC"
  10173. fi
  10174. if test -z "$CC"; then
  10175. if test -n "$ac_tool_prefix"; then
  10176. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  10177. set dummy ${ac_tool_prefix}cc; ac_word=$2
  10178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10179. $as_echo_n "checking for $ac_word... " >&6; }
  10180. if ${ac_cv_prog_CC+:} false; then :
  10181. $as_echo_n "(cached) " >&6
  10182. else
  10183. if test -n "$CC"; then
  10184. ac_cv_prog_CC="$CC" # Let the user override the test.
  10185. else
  10186. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10187. for as_dir in $PATH
  10188. do
  10189. IFS=$as_save_IFS
  10190. test -z "$as_dir" && as_dir=.
  10191. for ac_exec_ext in '' $ac_executable_extensions; do
  10192. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10193. ac_cv_prog_CC="${ac_tool_prefix}cc"
  10194. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10195. break 2
  10196. fi
  10197. done
  10198. done
  10199. IFS=$as_save_IFS
  10200. fi
  10201. fi
  10202. CC=$ac_cv_prog_CC
  10203. if test -n "$CC"; then
  10204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10205. $as_echo "$CC" >&6; }
  10206. else
  10207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10208. $as_echo "no" >&6; }
  10209. fi
  10210. fi
  10211. fi
  10212. if test -z "$CC"; then
  10213. # Extract the first word of "cc", so it can be a program name with args.
  10214. set dummy cc; ac_word=$2
  10215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10216. $as_echo_n "checking for $ac_word... " >&6; }
  10217. if ${ac_cv_prog_CC+:} false; then :
  10218. $as_echo_n "(cached) " >&6
  10219. else
  10220. if test -n "$CC"; then
  10221. ac_cv_prog_CC="$CC" # Let the user override the test.
  10222. else
  10223. ac_prog_rejected=no
  10224. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10225. for as_dir in $PATH
  10226. do
  10227. IFS=$as_save_IFS
  10228. test -z "$as_dir" && as_dir=.
  10229. for ac_exec_ext in '' $ac_executable_extensions; do
  10230. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10231. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  10232. ac_prog_rejected=yes
  10233. continue
  10234. fi
  10235. ac_cv_prog_CC="cc"
  10236. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10237. break 2
  10238. fi
  10239. done
  10240. done
  10241. IFS=$as_save_IFS
  10242. if test $ac_prog_rejected = yes; then
  10243. # We found a bogon in the path, so make sure we never use it.
  10244. set dummy $ac_cv_prog_CC
  10245. shift
  10246. if test $# != 0; then
  10247. # We chose a different compiler from the bogus one.
  10248. # However, it has the same basename, so the bogon will be chosen
  10249. # first if we set CC to just the basename; use the full file name.
  10250. shift
  10251. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  10252. fi
  10253. fi
  10254. fi
  10255. fi
  10256. CC=$ac_cv_prog_CC
  10257. if test -n "$CC"; then
  10258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10259. $as_echo "$CC" >&6; }
  10260. else
  10261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10262. $as_echo "no" >&6; }
  10263. fi
  10264. fi
  10265. if test -z "$CC"; then
  10266. if test -n "$ac_tool_prefix"; then
  10267. for ac_prog in cl.exe
  10268. do
  10269. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10270. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10272. $as_echo_n "checking for $ac_word... " >&6; }
  10273. if ${ac_cv_prog_CC+:} false; then :
  10274. $as_echo_n "(cached) " >&6
  10275. else
  10276. if test -n "$CC"; then
  10277. ac_cv_prog_CC="$CC" # Let the user override the test.
  10278. else
  10279. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10280. for as_dir in $PATH
  10281. do
  10282. IFS=$as_save_IFS
  10283. test -z "$as_dir" && as_dir=.
  10284. for ac_exec_ext in '' $ac_executable_extensions; do
  10285. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10286. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10287. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10288. break 2
  10289. fi
  10290. done
  10291. done
  10292. IFS=$as_save_IFS
  10293. fi
  10294. fi
  10295. CC=$ac_cv_prog_CC
  10296. if test -n "$CC"; then
  10297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10298. $as_echo "$CC" >&6; }
  10299. else
  10300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10301. $as_echo "no" >&6; }
  10302. fi
  10303. test -n "$CC" && break
  10304. done
  10305. fi
  10306. if test -z "$CC"; then
  10307. ac_ct_CC=$CC
  10308. for ac_prog in cl.exe
  10309. do
  10310. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10311. set dummy $ac_prog; ac_word=$2
  10312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10313. $as_echo_n "checking for $ac_word... " >&6; }
  10314. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10315. $as_echo_n "(cached) " >&6
  10316. else
  10317. if test -n "$ac_ct_CC"; then
  10318. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10319. else
  10320. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10321. for as_dir in $PATH
  10322. do
  10323. IFS=$as_save_IFS
  10324. test -z "$as_dir" && as_dir=.
  10325. for ac_exec_ext in '' $ac_executable_extensions; do
  10326. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10327. ac_cv_prog_ac_ct_CC="$ac_prog"
  10328. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10329. break 2
  10330. fi
  10331. done
  10332. done
  10333. IFS=$as_save_IFS
  10334. fi
  10335. fi
  10336. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10337. if test -n "$ac_ct_CC"; then
  10338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10339. $as_echo "$ac_ct_CC" >&6; }
  10340. else
  10341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10342. $as_echo "no" >&6; }
  10343. fi
  10344. test -n "$ac_ct_CC" && break
  10345. done
  10346. if test "x$ac_ct_CC" = x; then
  10347. CC=""
  10348. else
  10349. case $cross_compiling:$ac_tool_warned in
  10350. yes:)
  10351. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10352. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10353. ac_tool_warned=yes ;;
  10354. esac
  10355. CC=$ac_ct_CC
  10356. fi
  10357. fi
  10358. fi
  10359. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10360. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10361. as_fn_error $? "no acceptable C compiler found in \$PATH
  10362. See \`config.log' for more details" "$LINENO" 5; }
  10363. # Provide some information about the compiler.
  10364. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10365. set X $ac_compile
  10366. ac_compiler=$2
  10367. for ac_option in --version -v -V -qversion; do
  10368. { { ac_try="$ac_compiler $ac_option >&5"
  10369. case "(($ac_try" in
  10370. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10371. *) ac_try_echo=$ac_try;;
  10372. esac
  10373. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10374. $as_echo "$ac_try_echo"; } >&5
  10375. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10376. ac_status=$?
  10377. if test -s conftest.err; then
  10378. sed '10a\
  10379. ... rest of stderr output deleted ...
  10380. 10q' conftest.err >conftest.er1
  10381. cat conftest.er1 >&5
  10382. fi
  10383. rm -f conftest.er1 conftest.err
  10384. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10385. test $ac_status = 0; }
  10386. done
  10387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10388. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10389. if ${ac_cv_c_compiler_gnu+:} false; then :
  10390. $as_echo_n "(cached) " >&6
  10391. else
  10392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10393. /* end confdefs.h. */
  10394. int
  10395. main ()
  10396. {
  10397. #ifndef __GNUC__
  10398. choke me
  10399. #endif
  10400. ;
  10401. return 0;
  10402. }
  10403. _ACEOF
  10404. if ac_fn_c_try_compile "$LINENO"; then :
  10405. ac_compiler_gnu=yes
  10406. else
  10407. ac_compiler_gnu=no
  10408. fi
  10409. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10410. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10411. fi
  10412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10413. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10414. if test $ac_compiler_gnu = yes; then
  10415. GCC=yes
  10416. else
  10417. GCC=
  10418. fi
  10419. ac_test_CFLAGS=${CFLAGS+set}
  10420. ac_save_CFLAGS=$CFLAGS
  10421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10422. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10423. if ${ac_cv_prog_cc_g+:} false; then :
  10424. $as_echo_n "(cached) " >&6
  10425. else
  10426. ac_save_c_werror_flag=$ac_c_werror_flag
  10427. ac_c_werror_flag=yes
  10428. ac_cv_prog_cc_g=no
  10429. CFLAGS="-g"
  10430. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10431. /* end confdefs.h. */
  10432. int
  10433. main ()
  10434. {
  10435. ;
  10436. return 0;
  10437. }
  10438. _ACEOF
  10439. if ac_fn_c_try_compile "$LINENO"; then :
  10440. ac_cv_prog_cc_g=yes
  10441. else
  10442. CFLAGS=""
  10443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10444. /* end confdefs.h. */
  10445. int
  10446. main ()
  10447. {
  10448. ;
  10449. return 0;
  10450. }
  10451. _ACEOF
  10452. if ac_fn_c_try_compile "$LINENO"; then :
  10453. else
  10454. ac_c_werror_flag=$ac_save_c_werror_flag
  10455. CFLAGS="-g"
  10456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10457. /* end confdefs.h. */
  10458. int
  10459. main ()
  10460. {
  10461. ;
  10462. return 0;
  10463. }
  10464. _ACEOF
  10465. if ac_fn_c_try_compile "$LINENO"; then :
  10466. ac_cv_prog_cc_g=yes
  10467. fi
  10468. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10469. fi
  10470. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10471. fi
  10472. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10473. ac_c_werror_flag=$ac_save_c_werror_flag
  10474. fi
  10475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10476. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10477. if test "$ac_test_CFLAGS" = set; then
  10478. CFLAGS=$ac_save_CFLAGS
  10479. elif test $ac_cv_prog_cc_g = yes; then
  10480. if test "$GCC" = yes; then
  10481. CFLAGS="-g -O2"
  10482. else
  10483. CFLAGS="-g"
  10484. fi
  10485. else
  10486. if test "$GCC" = yes; then
  10487. CFLAGS="-O2"
  10488. else
  10489. CFLAGS=
  10490. fi
  10491. fi
  10492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10493. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10494. if ${ac_cv_prog_cc_c89+:} false; then :
  10495. $as_echo_n "(cached) " >&6
  10496. else
  10497. ac_cv_prog_cc_c89=no
  10498. ac_save_CC=$CC
  10499. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10500. /* end confdefs.h. */
  10501. #include <stdarg.h>
  10502. #include <stdio.h>
  10503. struct stat;
  10504. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10505. struct buf { int x; };
  10506. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10507. static char *e (p, i)
  10508. char **p;
  10509. int i;
  10510. {
  10511. return p[i];
  10512. }
  10513. static char *f (char * (*g) (char **, int), char **p, ...)
  10514. {
  10515. char *s;
  10516. va_list v;
  10517. va_start (v,p);
  10518. s = g (p, va_arg (v,int));
  10519. va_end (v);
  10520. return s;
  10521. }
  10522. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10523. function prototypes and stuff, but not '\xHH' hex character constants.
  10524. These don't provoke an error unfortunately, instead are silently treated
  10525. as 'x'. The following induces an error, until -std is added to get
  10526. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10527. array size at least. It's necessary to write '\x00'==0 to get something
  10528. that's true only with -std. */
  10529. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10530. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10531. inside strings and character constants. */
  10532. #define FOO(x) 'x'
  10533. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10534. int test (int i, double x);
  10535. struct s1 {int (*f) (int a);};
  10536. struct s2 {int (*f) (double a);};
  10537. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10538. int argc;
  10539. char **argv;
  10540. int
  10541. main ()
  10542. {
  10543. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10544. ;
  10545. return 0;
  10546. }
  10547. _ACEOF
  10548. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10549. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10550. do
  10551. CC="$ac_save_CC $ac_arg"
  10552. if ac_fn_c_try_compile "$LINENO"; then :
  10553. ac_cv_prog_cc_c89=$ac_arg
  10554. fi
  10555. rm -f core conftest.err conftest.$ac_objext
  10556. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10557. done
  10558. rm -f conftest.$ac_ext
  10559. CC=$ac_save_CC
  10560. fi
  10561. # AC_CACHE_VAL
  10562. case "x$ac_cv_prog_cc_c89" in
  10563. x)
  10564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10565. $as_echo "none needed" >&6; } ;;
  10566. xno)
  10567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10568. $as_echo "unsupported" >&6; } ;;
  10569. *)
  10570. CC="$CC $ac_cv_prog_cc_c89"
  10571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10572. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10573. esac
  10574. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10575. fi
  10576. ac_ext=c
  10577. ac_cpp='$CPP $CPPFLAGS'
  10578. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10579. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10580. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10581. ac_ext=cpp
  10582. ac_cpp='$CXXCPP $CPPFLAGS'
  10583. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10584. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10585. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10586. if test -z "$CXX"; then
  10587. if test -n "$CCC"; then
  10588. CXX=$CCC
  10589. else
  10590. if test -n "$ac_tool_prefix"; then
  10591. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10592. do
  10593. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10594. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10596. $as_echo_n "checking for $ac_word... " >&6; }
  10597. if ${ac_cv_prog_CXX+:} false; then :
  10598. $as_echo_n "(cached) " >&6
  10599. else
  10600. if test -n "$CXX"; then
  10601. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10602. else
  10603. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10604. for as_dir in $PATH
  10605. do
  10606. IFS=$as_save_IFS
  10607. test -z "$as_dir" && as_dir=.
  10608. for ac_exec_ext in '' $ac_executable_extensions; do
  10609. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10610. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10611. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10612. break 2
  10613. fi
  10614. done
  10615. done
  10616. IFS=$as_save_IFS
  10617. fi
  10618. fi
  10619. CXX=$ac_cv_prog_CXX
  10620. if test -n "$CXX"; then
  10621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10622. $as_echo "$CXX" >&6; }
  10623. else
  10624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10625. $as_echo "no" >&6; }
  10626. fi
  10627. test -n "$CXX" && break
  10628. done
  10629. fi
  10630. if test -z "$CXX"; then
  10631. ac_ct_CXX=$CXX
  10632. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10633. do
  10634. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10635. set dummy $ac_prog; ac_word=$2
  10636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10637. $as_echo_n "checking for $ac_word... " >&6; }
  10638. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10639. $as_echo_n "(cached) " >&6
  10640. else
  10641. if test -n "$ac_ct_CXX"; then
  10642. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10643. else
  10644. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10645. for as_dir in $PATH
  10646. do
  10647. IFS=$as_save_IFS
  10648. test -z "$as_dir" && as_dir=.
  10649. for ac_exec_ext in '' $ac_executable_extensions; do
  10650. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10651. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10652. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10653. break 2
  10654. fi
  10655. done
  10656. done
  10657. IFS=$as_save_IFS
  10658. fi
  10659. fi
  10660. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10661. if test -n "$ac_ct_CXX"; then
  10662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10663. $as_echo "$ac_ct_CXX" >&6; }
  10664. else
  10665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10666. $as_echo "no" >&6; }
  10667. fi
  10668. test -n "$ac_ct_CXX" && break
  10669. done
  10670. if test "x$ac_ct_CXX" = x; then
  10671. CXX="g++"
  10672. else
  10673. case $cross_compiling:$ac_tool_warned in
  10674. yes:)
  10675. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10676. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10677. ac_tool_warned=yes ;;
  10678. esac
  10679. CXX=$ac_ct_CXX
  10680. fi
  10681. fi
  10682. fi
  10683. fi
  10684. # Provide some information about the compiler.
  10685. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10686. set X $ac_compile
  10687. ac_compiler=$2
  10688. for ac_option in --version -v -V -qversion; do
  10689. { { ac_try="$ac_compiler $ac_option >&5"
  10690. case "(($ac_try" in
  10691. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10692. *) ac_try_echo=$ac_try;;
  10693. esac
  10694. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10695. $as_echo "$ac_try_echo"; } >&5
  10696. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10697. ac_status=$?
  10698. if test -s conftest.err; then
  10699. sed '10a\
  10700. ... rest of stderr output deleted ...
  10701. 10q' conftest.err >conftest.er1
  10702. cat conftest.er1 >&5
  10703. fi
  10704. rm -f conftest.er1 conftest.err
  10705. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10706. test $ac_status = 0; }
  10707. done
  10708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10709. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10710. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10711. $as_echo_n "(cached) " >&6
  10712. else
  10713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10714. /* end confdefs.h. */
  10715. int
  10716. main ()
  10717. {
  10718. #ifndef __GNUC__
  10719. choke me
  10720. #endif
  10721. ;
  10722. return 0;
  10723. }
  10724. _ACEOF
  10725. if ac_fn_cxx_try_compile "$LINENO"; then :
  10726. ac_compiler_gnu=yes
  10727. else
  10728. ac_compiler_gnu=no
  10729. fi
  10730. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10731. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10732. fi
  10733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10734. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10735. if test $ac_compiler_gnu = yes; then
  10736. GXX=yes
  10737. else
  10738. GXX=
  10739. fi
  10740. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10741. ac_save_CXXFLAGS=$CXXFLAGS
  10742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10743. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10744. if ${ac_cv_prog_cxx_g+:} false; then :
  10745. $as_echo_n "(cached) " >&6
  10746. else
  10747. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10748. ac_cxx_werror_flag=yes
  10749. ac_cv_prog_cxx_g=no
  10750. CXXFLAGS="-g"
  10751. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10752. /* end confdefs.h. */
  10753. int
  10754. main ()
  10755. {
  10756. ;
  10757. return 0;
  10758. }
  10759. _ACEOF
  10760. if ac_fn_cxx_try_compile "$LINENO"; then :
  10761. ac_cv_prog_cxx_g=yes
  10762. else
  10763. CXXFLAGS=""
  10764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10765. /* end confdefs.h. */
  10766. int
  10767. main ()
  10768. {
  10769. ;
  10770. return 0;
  10771. }
  10772. _ACEOF
  10773. if ac_fn_cxx_try_compile "$LINENO"; then :
  10774. else
  10775. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10776. CXXFLAGS="-g"
  10777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10778. /* end confdefs.h. */
  10779. int
  10780. main ()
  10781. {
  10782. ;
  10783. return 0;
  10784. }
  10785. _ACEOF
  10786. if ac_fn_cxx_try_compile "$LINENO"; then :
  10787. ac_cv_prog_cxx_g=yes
  10788. fi
  10789. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10790. fi
  10791. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10792. fi
  10793. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10794. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10795. fi
  10796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10797. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10798. if test "$ac_test_CXXFLAGS" = set; then
  10799. CXXFLAGS=$ac_save_CXXFLAGS
  10800. elif test $ac_cv_prog_cxx_g = yes; then
  10801. if test "$GXX" = yes; then
  10802. CXXFLAGS="-g -O2"
  10803. else
  10804. CXXFLAGS="-g"
  10805. fi
  10806. else
  10807. if test "$GXX" = yes; then
  10808. CXXFLAGS="-O2"
  10809. else
  10810. CXXFLAGS=
  10811. fi
  10812. fi
  10813. ac_ext=c
  10814. ac_cpp='$CPP $CPPFLAGS'
  10815. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10816. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10817. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10818. func_stripname_cnf ()
  10819. {
  10820. case ${2} in
  10821. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10822. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10823. esac
  10824. } # func_stripname_cnf
  10825. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10826. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10827. (test "X$CXX" != "Xg++"))) ; then
  10828. ac_ext=cpp
  10829. ac_cpp='$CXXCPP $CPPFLAGS'
  10830. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10831. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10832. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10834. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10835. if test -z "$CXXCPP"; then
  10836. if ${ac_cv_prog_CXXCPP+:} false; then :
  10837. $as_echo_n "(cached) " >&6
  10838. else
  10839. # Double quotes because CXXCPP needs to be expanded
  10840. for CXXCPP in "$CXX -E" "/lib/cpp"
  10841. do
  10842. ac_preproc_ok=false
  10843. for ac_cxx_preproc_warn_flag in '' yes
  10844. do
  10845. # Use a header file that comes with gcc, so configuring glibc
  10846. # with a fresh cross-compiler works.
  10847. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10848. # <limits.h> exists even on freestanding compilers.
  10849. # On the NeXT, cc -E runs the code through the compiler's parser,
  10850. # not just through cpp. "Syntax error" is here to catch this case.
  10851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10852. /* end confdefs.h. */
  10853. #ifdef __STDC__
  10854. # include <limits.h>
  10855. #else
  10856. # include <assert.h>
  10857. #endif
  10858. Syntax error
  10859. _ACEOF
  10860. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10861. else
  10862. # Broken: fails on valid input.
  10863. continue
  10864. fi
  10865. rm -f conftest.err conftest.i conftest.$ac_ext
  10866. # OK, works on sane cases. Now check whether nonexistent headers
  10867. # can be detected and how.
  10868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10869. /* end confdefs.h. */
  10870. #include <ac_nonexistent.h>
  10871. _ACEOF
  10872. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10873. # Broken: success on invalid input.
  10874. continue
  10875. else
  10876. # Passes both tests.
  10877. ac_preproc_ok=:
  10878. break
  10879. fi
  10880. rm -f conftest.err conftest.i conftest.$ac_ext
  10881. done
  10882. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10883. rm -f conftest.i conftest.err conftest.$ac_ext
  10884. if $ac_preproc_ok; then :
  10885. break
  10886. fi
  10887. done
  10888. ac_cv_prog_CXXCPP=$CXXCPP
  10889. fi
  10890. CXXCPP=$ac_cv_prog_CXXCPP
  10891. else
  10892. ac_cv_prog_CXXCPP=$CXXCPP
  10893. fi
  10894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10895. $as_echo "$CXXCPP" >&6; }
  10896. ac_preproc_ok=false
  10897. for ac_cxx_preproc_warn_flag in '' yes
  10898. do
  10899. # Use a header file that comes with gcc, so configuring glibc
  10900. # with a fresh cross-compiler works.
  10901. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10902. # <limits.h> exists even on freestanding compilers.
  10903. # On the NeXT, cc -E runs the code through the compiler's parser,
  10904. # not just through cpp. "Syntax error" is here to catch this case.
  10905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10906. /* end confdefs.h. */
  10907. #ifdef __STDC__
  10908. # include <limits.h>
  10909. #else
  10910. # include <assert.h>
  10911. #endif
  10912. Syntax error
  10913. _ACEOF
  10914. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10915. else
  10916. # Broken: fails on valid input.
  10917. continue
  10918. fi
  10919. rm -f conftest.err conftest.i conftest.$ac_ext
  10920. # OK, works on sane cases. Now check whether nonexistent headers
  10921. # can be detected and how.
  10922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10923. /* end confdefs.h. */
  10924. #include <ac_nonexistent.h>
  10925. _ACEOF
  10926. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10927. # Broken: success on invalid input.
  10928. continue
  10929. else
  10930. # Passes both tests.
  10931. ac_preproc_ok=:
  10932. break
  10933. fi
  10934. rm -f conftest.err conftest.i conftest.$ac_ext
  10935. done
  10936. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10937. rm -f conftest.i conftest.err conftest.$ac_ext
  10938. if $ac_preproc_ok; then :
  10939. else
  10940. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10941. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10942. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10943. See \`config.log' for more details" "$LINENO" 5; }
  10944. fi
  10945. ac_ext=c
  10946. ac_cpp='$CPP $CPPFLAGS'
  10947. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10948. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10949. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10950. else
  10951. _lt_caught_CXX_error=yes
  10952. fi
  10953. ac_ext=cpp
  10954. ac_cpp='$CXXCPP $CPPFLAGS'
  10955. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10956. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10957. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10958. archive_cmds_need_lc_CXX=no
  10959. allow_undefined_flag_CXX=
  10960. always_export_symbols_CXX=no
  10961. archive_expsym_cmds_CXX=
  10962. compiler_needs_object_CXX=no
  10963. export_dynamic_flag_spec_CXX=
  10964. hardcode_direct_CXX=no
  10965. hardcode_direct_absolute_CXX=no
  10966. hardcode_libdir_flag_spec_CXX=
  10967. hardcode_libdir_separator_CXX=
  10968. hardcode_minus_L_CXX=no
  10969. hardcode_shlibpath_var_CXX=unsupported
  10970. hardcode_automatic_CXX=no
  10971. inherit_rpath_CXX=no
  10972. module_cmds_CXX=
  10973. module_expsym_cmds_CXX=
  10974. link_all_deplibs_CXX=unknown
  10975. old_archive_cmds_CXX=$old_archive_cmds
  10976. reload_flag_CXX=$reload_flag
  10977. reload_cmds_CXX=$reload_cmds
  10978. no_undefined_flag_CXX=
  10979. whole_archive_flag_spec_CXX=
  10980. enable_shared_with_static_runtimes_CXX=no
  10981. # Source file extension for C++ test sources.
  10982. ac_ext=cpp
  10983. # Object file extension for compiled C++ test sources.
  10984. objext=o
  10985. objext_CXX=$objext
  10986. # No sense in running all these tests if we already determined that
  10987. # the CXX compiler isn't working. Some variables (like enable_shared)
  10988. # are currently assumed to apply to all compilers on this platform,
  10989. # and will be corrupted by setting them based on a non-working compiler.
  10990. if test "$_lt_caught_CXX_error" != yes; then
  10991. # Code to be used in simple compile tests
  10992. lt_simple_compile_test_code="int some_variable = 0;"
  10993. # Code to be used in simple link tests
  10994. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10995. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10996. # If no C compiler was specified, use CC.
  10997. LTCC=${LTCC-"$CC"}
  10998. # If no C compiler flags were specified, use CFLAGS.
  10999. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11000. # Allow CC to be a program name with arguments.
  11001. compiler=$CC
  11002. # save warnings/boilerplate of simple test code
  11003. ac_outfile=conftest.$ac_objext
  11004. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11005. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11006. _lt_compiler_boilerplate=`cat conftest.err`
  11007. $RM conftest*
  11008. ac_outfile=conftest.$ac_objext
  11009. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11010. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11011. _lt_linker_boilerplate=`cat conftest.err`
  11012. $RM -r conftest*
  11013. # Allow CC to be a program name with arguments.
  11014. lt_save_CC=$CC
  11015. lt_save_CFLAGS=$CFLAGS
  11016. lt_save_LD=$LD
  11017. lt_save_GCC=$GCC
  11018. GCC=$GXX
  11019. lt_save_with_gnu_ld=$with_gnu_ld
  11020. lt_save_path_LD=$lt_cv_path_LD
  11021. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11022. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11023. else
  11024. $as_unset lt_cv_prog_gnu_ld
  11025. fi
  11026. if test -n "${lt_cv_path_LDCXX+set}"; then
  11027. lt_cv_path_LD=$lt_cv_path_LDCXX
  11028. else
  11029. $as_unset lt_cv_path_LD
  11030. fi
  11031. test -z "${LDCXX+set}" || LD=$LDCXX
  11032. CC=${CXX-"c++"}
  11033. CFLAGS=$CXXFLAGS
  11034. compiler=$CC
  11035. compiler_CXX=$CC
  11036. for cc_temp in $compiler""; do
  11037. case $cc_temp in
  11038. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11039. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11040. \-*) ;;
  11041. *) break;;
  11042. esac
  11043. done
  11044. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  11045. if test -n "$compiler"; then
  11046. # We don't want -fno-exception when compiling C++ code, so set the
  11047. # no_builtin_flag separately
  11048. if test "$GXX" = yes; then
  11049. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11050. else
  11051. lt_prog_compiler_no_builtin_flag_CXX=
  11052. fi
  11053. if test "$GXX" = yes; then
  11054. # Set up default GNU C++ configuration
  11055. # Check whether --with-gnu-ld was given.
  11056. if test "${with_gnu_ld+set}" = set; then :
  11057. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11058. else
  11059. with_gnu_ld=no
  11060. fi
  11061. ac_prog=ld
  11062. if test "$GCC" = yes; then
  11063. # Check if gcc -print-prog-name=ld gives a path.
  11064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11065. $as_echo_n "checking for ld used by $CC... " >&6; }
  11066. case $host in
  11067. *-*-mingw*)
  11068. # gcc leaves a trailing carriage return which upsets mingw
  11069. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11070. *)
  11071. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11072. esac
  11073. case $ac_prog in
  11074. # Accept absolute paths.
  11075. [\\/]* | ?:[\\/]*)
  11076. re_direlt='/[^/][^/]*/\.\./'
  11077. # Canonicalize the pathname of ld
  11078. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11079. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11080. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11081. done
  11082. test -z "$LD" && LD="$ac_prog"
  11083. ;;
  11084. "")
  11085. # If it fails, then pretend we aren't using GCC.
  11086. ac_prog=ld
  11087. ;;
  11088. *)
  11089. # If it is relative, then search for the first ld in PATH.
  11090. with_gnu_ld=unknown
  11091. ;;
  11092. esac
  11093. elif test "$with_gnu_ld" = yes; then
  11094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11095. $as_echo_n "checking for GNU ld... " >&6; }
  11096. else
  11097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11098. $as_echo_n "checking for non-GNU ld... " >&6; }
  11099. fi
  11100. if ${lt_cv_path_LD+:} false; then :
  11101. $as_echo_n "(cached) " >&6
  11102. else
  11103. if test -z "$LD"; then
  11104. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11105. for ac_dir in $PATH; do
  11106. IFS="$lt_save_ifs"
  11107. test -z "$ac_dir" && ac_dir=.
  11108. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11109. lt_cv_path_LD="$ac_dir/$ac_prog"
  11110. # Check to see if the program is GNU ld. I'd rather use --version,
  11111. # but apparently some variants of GNU ld only accept -v.
  11112. # Break only if it was the GNU/non-GNU ld that we prefer.
  11113. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11114. *GNU* | *'with BFD'*)
  11115. test "$with_gnu_ld" != no && break
  11116. ;;
  11117. *)
  11118. test "$with_gnu_ld" != yes && break
  11119. ;;
  11120. esac
  11121. fi
  11122. done
  11123. IFS="$lt_save_ifs"
  11124. else
  11125. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11126. fi
  11127. fi
  11128. LD="$lt_cv_path_LD"
  11129. if test -n "$LD"; then
  11130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11131. $as_echo "$LD" >&6; }
  11132. else
  11133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11134. $as_echo "no" >&6; }
  11135. fi
  11136. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11138. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11139. if ${lt_cv_prog_gnu_ld+:} false; then :
  11140. $as_echo_n "(cached) " >&6
  11141. else
  11142. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11143. case `$LD -v 2>&1 </dev/null` in
  11144. *GNU* | *'with BFD'*)
  11145. lt_cv_prog_gnu_ld=yes
  11146. ;;
  11147. *)
  11148. lt_cv_prog_gnu_ld=no
  11149. ;;
  11150. esac
  11151. fi
  11152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11153. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11154. with_gnu_ld=$lt_cv_prog_gnu_ld
  11155. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11156. # archiving commands below assume that GNU ld is being used.
  11157. if test "$with_gnu_ld" = yes; then
  11158. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11159. 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'
  11160. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11161. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11162. # If archive_cmds runs LD, not CC, wlarc should be empty
  11163. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11164. # investigate it a little bit more. (MM)
  11165. wlarc='${wl}'
  11166. # ancient GNU ld didn't support --whole-archive et. al.
  11167. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11168. $GREP 'no-whole-archive' > /dev/null; then
  11169. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11170. else
  11171. whole_archive_flag_spec_CXX=
  11172. fi
  11173. else
  11174. with_gnu_ld=no
  11175. wlarc=
  11176. # A generic and very simple default shared library creation
  11177. # command for GNU C++ for the case where it uses the native
  11178. # linker, instead of GNU ld. If possible, this setting should
  11179. # overridden to take advantage of the native linker features on
  11180. # the platform it is being used on.
  11181. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11182. fi
  11183. # Commands to make compiler produce verbose output that lists
  11184. # what "hidden" libraries, object files and flags are used when
  11185. # linking a shared library.
  11186. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11187. else
  11188. GXX=no
  11189. with_gnu_ld=no
  11190. wlarc=
  11191. fi
  11192. # PORTME: fill in a description of your system's C++ link characteristics
  11193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11194. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11195. ld_shlibs_CXX=yes
  11196. case $host_os in
  11197. aix3*)
  11198. # FIXME: insert proper C++ library support
  11199. ld_shlibs_CXX=no
  11200. ;;
  11201. aix[4-9]*)
  11202. if test "$host_cpu" = ia64; then
  11203. # On IA64, the linker does run time linking by default, so we don't
  11204. # have to do anything special.
  11205. aix_use_runtimelinking=no
  11206. exp_sym_flag='-Bexport'
  11207. no_entry_flag=""
  11208. else
  11209. aix_use_runtimelinking=no
  11210. # Test if we are trying to use run time linking or normal
  11211. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11212. # need to do runtime linking.
  11213. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11214. for ld_flag in $LDFLAGS; do
  11215. case $ld_flag in
  11216. *-brtl*)
  11217. aix_use_runtimelinking=yes
  11218. break
  11219. ;;
  11220. esac
  11221. done
  11222. ;;
  11223. esac
  11224. exp_sym_flag='-bexport'
  11225. no_entry_flag='-bnoentry'
  11226. fi
  11227. # When large executables or shared objects are built, AIX ld can
  11228. # have problems creating the table of contents. If linking a library
  11229. # or program results in "error TOC overflow" add -mminimal-toc to
  11230. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11231. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11232. archive_cmds_CXX=''
  11233. hardcode_direct_CXX=yes
  11234. hardcode_direct_absolute_CXX=yes
  11235. hardcode_libdir_separator_CXX=':'
  11236. link_all_deplibs_CXX=yes
  11237. file_list_spec_CXX='${wl}-f,'
  11238. if test "$GXX" = yes; then
  11239. case $host_os in aix4.[012]|aix4.[012].*)
  11240. # We only want to do this on AIX 4.2 and lower, the check
  11241. # below for broken collect2 doesn't work under 4.3+
  11242. collect2name=`${CC} -print-prog-name=collect2`
  11243. if test -f "$collect2name" &&
  11244. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11245. then
  11246. # We have reworked collect2
  11247. :
  11248. else
  11249. # We have old collect2
  11250. hardcode_direct_CXX=unsupported
  11251. # It fails to find uninstalled libraries when the uninstalled
  11252. # path is not listed in the libpath. Setting hardcode_minus_L
  11253. # to unsupported forces relinking
  11254. hardcode_minus_L_CXX=yes
  11255. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11256. hardcode_libdir_separator_CXX=
  11257. fi
  11258. esac
  11259. shared_flag='-shared'
  11260. if test "$aix_use_runtimelinking" = yes; then
  11261. shared_flag="$shared_flag "'${wl}-G'
  11262. fi
  11263. else
  11264. # not using gcc
  11265. if test "$host_cpu" = ia64; then
  11266. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11267. # chokes on -Wl,-G. The following line is correct:
  11268. shared_flag='-G'
  11269. else
  11270. if test "$aix_use_runtimelinking" = yes; then
  11271. shared_flag='${wl}-G'
  11272. else
  11273. shared_flag='${wl}-bM:SRE'
  11274. fi
  11275. fi
  11276. fi
  11277. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11278. # It seems that -bexpall does not export symbols beginning with
  11279. # underscore (_), so it is better to generate a list of symbols to
  11280. # export.
  11281. always_export_symbols_CXX=yes
  11282. if test "$aix_use_runtimelinking" = yes; then
  11283. # Warning - without using the other runtime loading flags (-brtl),
  11284. # -berok will link without error, but may produce a broken library.
  11285. allow_undefined_flag_CXX='-berok'
  11286. # Determine the default libpath from the value encoded in an empty
  11287. # executable.
  11288. if test "${lt_cv_aix_libpath+set}" = set; then
  11289. aix_libpath=$lt_cv_aix_libpath
  11290. else
  11291. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11292. $as_echo_n "(cached) " >&6
  11293. else
  11294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11295. /* end confdefs.h. */
  11296. int
  11297. main ()
  11298. {
  11299. ;
  11300. return 0;
  11301. }
  11302. _ACEOF
  11303. if ac_fn_cxx_try_link "$LINENO"; then :
  11304. lt_aix_libpath_sed='
  11305. /Import File Strings/,/^$/ {
  11306. /^0/ {
  11307. s/^0 *\([^ ]*\) *$/\1/
  11308. p
  11309. }
  11310. }'
  11311. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11312. # Check for a 64-bit object if we didn't find anything.
  11313. if test -z "$lt_cv_aix_libpath__CXX"; then
  11314. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11315. fi
  11316. fi
  11317. rm -f core conftest.err conftest.$ac_objext \
  11318. conftest$ac_exeext conftest.$ac_ext
  11319. if test -z "$lt_cv_aix_libpath__CXX"; then
  11320. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11321. fi
  11322. fi
  11323. aix_libpath=$lt_cv_aix_libpath__CXX
  11324. fi
  11325. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11326. 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"
  11327. else
  11328. if test "$host_cpu" = ia64; then
  11329. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11330. allow_undefined_flag_CXX="-z nodefs"
  11331. 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"
  11332. else
  11333. # Determine the default libpath from the value encoded in an
  11334. # empty executable.
  11335. if test "${lt_cv_aix_libpath+set}" = set; then
  11336. aix_libpath=$lt_cv_aix_libpath
  11337. else
  11338. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11339. $as_echo_n "(cached) " >&6
  11340. else
  11341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11342. /* end confdefs.h. */
  11343. int
  11344. main ()
  11345. {
  11346. ;
  11347. return 0;
  11348. }
  11349. _ACEOF
  11350. if ac_fn_cxx_try_link "$LINENO"; then :
  11351. lt_aix_libpath_sed='
  11352. /Import File Strings/,/^$/ {
  11353. /^0/ {
  11354. s/^0 *\([^ ]*\) *$/\1/
  11355. p
  11356. }
  11357. }'
  11358. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11359. # Check for a 64-bit object if we didn't find anything.
  11360. if test -z "$lt_cv_aix_libpath__CXX"; then
  11361. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11362. fi
  11363. fi
  11364. rm -f core conftest.err conftest.$ac_objext \
  11365. conftest$ac_exeext conftest.$ac_ext
  11366. if test -z "$lt_cv_aix_libpath__CXX"; then
  11367. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11368. fi
  11369. fi
  11370. aix_libpath=$lt_cv_aix_libpath__CXX
  11371. fi
  11372. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11373. # Warning - without using the other run time loading flags,
  11374. # -berok will link without error, but may produce a broken library.
  11375. no_undefined_flag_CXX=' ${wl}-bernotok'
  11376. allow_undefined_flag_CXX=' ${wl}-berok'
  11377. if test "$with_gnu_ld" = yes; then
  11378. # We only use this code for GNU lds that support --whole-archive.
  11379. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11380. else
  11381. # Exported symbols can be pulled into shared objects from archives
  11382. whole_archive_flag_spec_CXX='$convenience'
  11383. fi
  11384. archive_cmds_need_lc_CXX=yes
  11385. # This is similar to how AIX traditionally builds its shared
  11386. # libraries.
  11387. 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'
  11388. fi
  11389. fi
  11390. ;;
  11391. beos*)
  11392. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11393. allow_undefined_flag_CXX=unsupported
  11394. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11395. # support --undefined. This deserves some investigation. FIXME
  11396. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11397. else
  11398. ld_shlibs_CXX=no
  11399. fi
  11400. ;;
  11401. chorus*)
  11402. case $cc_basename in
  11403. *)
  11404. # FIXME: insert proper C++ library support
  11405. ld_shlibs_CXX=no
  11406. ;;
  11407. esac
  11408. ;;
  11409. cygwin* | mingw* | pw32* | cegcc*)
  11410. case $GXX,$cc_basename in
  11411. ,cl* | no,cl*)
  11412. # Native MSVC
  11413. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11414. # no search path for DLLs.
  11415. hardcode_libdir_flag_spec_CXX=' '
  11416. allow_undefined_flag_CXX=unsupported
  11417. always_export_symbols_CXX=yes
  11418. file_list_spec_CXX='@'
  11419. # Tell ltmain to make .lib files, not .a files.
  11420. libext=lib
  11421. # Tell ltmain to make .dll files, not .so files.
  11422. shrext_cmds=".dll"
  11423. # FIXME: Setting linknames here is a bad hack.
  11424. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11425. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11426. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11427. else
  11428. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11429. fi~
  11430. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11431. linknames='
  11432. # The linker will not automatically build a static lib if we build a DLL.
  11433. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11434. enable_shared_with_static_runtimes_CXX=yes
  11435. # Don't use ranlib
  11436. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11437. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11438. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11439. case $lt_outputfile in
  11440. *.exe|*.EXE) ;;
  11441. *)
  11442. lt_outputfile="$lt_outputfile.exe"
  11443. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11444. ;;
  11445. esac~
  11446. func_to_tool_file "$lt_outputfile"~
  11447. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11448. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11449. $RM "$lt_outputfile.manifest";
  11450. fi'
  11451. ;;
  11452. *)
  11453. # g++
  11454. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11455. # as there is no search path for DLLs.
  11456. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11457. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11458. allow_undefined_flag_CXX=unsupported
  11459. always_export_symbols_CXX=no
  11460. enable_shared_with_static_runtimes_CXX=yes
  11461. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11462. 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'
  11463. # If the export-symbols file already is a .def file (1st line
  11464. # is EXPORTS), use it as is; otherwise, prepend...
  11465. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11466. cp $export_symbols $output_objdir/$soname.def;
  11467. else
  11468. echo EXPORTS > $output_objdir/$soname.def;
  11469. cat $export_symbols >> $output_objdir/$soname.def;
  11470. fi~
  11471. $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'
  11472. else
  11473. ld_shlibs_CXX=no
  11474. fi
  11475. ;;
  11476. esac
  11477. ;;
  11478. darwin* | rhapsody*)
  11479. archive_cmds_need_lc_CXX=no
  11480. hardcode_direct_CXX=no
  11481. hardcode_automatic_CXX=yes
  11482. hardcode_shlibpath_var_CXX=unsupported
  11483. if test "$lt_cv_ld_force_load" = "yes"; then
  11484. 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\"`'
  11485. else
  11486. whole_archive_flag_spec_CXX=''
  11487. fi
  11488. link_all_deplibs_CXX=yes
  11489. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11490. case $cc_basename in
  11491. ifort*) _lt_dar_can_shared=yes ;;
  11492. *) _lt_dar_can_shared=$GCC ;;
  11493. esac
  11494. if test "$_lt_dar_can_shared" = "yes"; then
  11495. output_verbose_link_cmd=func_echo_all
  11496. 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}"
  11497. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11498. 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}"
  11499. 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}"
  11500. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11501. 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}"
  11502. 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}"
  11503. fi
  11504. else
  11505. ld_shlibs_CXX=no
  11506. fi
  11507. ;;
  11508. dgux*)
  11509. case $cc_basename in
  11510. ec++*)
  11511. # FIXME: insert proper C++ library support
  11512. ld_shlibs_CXX=no
  11513. ;;
  11514. ghcx*)
  11515. # Green Hills C++ Compiler
  11516. # FIXME: insert proper C++ library support
  11517. ld_shlibs_CXX=no
  11518. ;;
  11519. *)
  11520. # FIXME: insert proper C++ library support
  11521. ld_shlibs_CXX=no
  11522. ;;
  11523. esac
  11524. ;;
  11525. freebsd2.*)
  11526. # C++ shared libraries reported to be fairly broken before
  11527. # switch to ELF
  11528. ld_shlibs_CXX=no
  11529. ;;
  11530. freebsd-elf*)
  11531. archive_cmds_need_lc_CXX=no
  11532. ;;
  11533. freebsd* | dragonfly*)
  11534. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11535. # conventions
  11536. ld_shlibs_CXX=yes
  11537. ;;
  11538. gnu*)
  11539. ;;
  11540. haiku*)
  11541. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11542. link_all_deplibs_CXX=yes
  11543. ;;
  11544. hpux9*)
  11545. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11546. hardcode_libdir_separator_CXX=:
  11547. export_dynamic_flag_spec_CXX='${wl}-E'
  11548. hardcode_direct_CXX=yes
  11549. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11550. # but as the default
  11551. # location of the library.
  11552. case $cc_basename in
  11553. CC*)
  11554. # FIXME: insert proper C++ library support
  11555. ld_shlibs_CXX=no
  11556. ;;
  11557. aCC*)
  11558. 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'
  11559. # Commands to make compiler produce verbose output that lists
  11560. # what "hidden" libraries, object files and flags are used when
  11561. # linking a shared library.
  11562. #
  11563. # There doesn't appear to be a way to prevent this compiler from
  11564. # explicitly linking system object files so we need to strip them
  11565. # from the output so that they don't get included in the library
  11566. # dependencies.
  11567. 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"'
  11568. ;;
  11569. *)
  11570. if test "$GXX" = yes; then
  11571. 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'
  11572. else
  11573. # FIXME: insert proper C++ library support
  11574. ld_shlibs_CXX=no
  11575. fi
  11576. ;;
  11577. esac
  11578. ;;
  11579. hpux10*|hpux11*)
  11580. if test $with_gnu_ld = no; then
  11581. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11582. hardcode_libdir_separator_CXX=:
  11583. case $host_cpu in
  11584. hppa*64*|ia64*)
  11585. ;;
  11586. *)
  11587. export_dynamic_flag_spec_CXX='${wl}-E'
  11588. ;;
  11589. esac
  11590. fi
  11591. case $host_cpu in
  11592. hppa*64*|ia64*)
  11593. hardcode_direct_CXX=no
  11594. hardcode_shlibpath_var_CXX=no
  11595. ;;
  11596. *)
  11597. hardcode_direct_CXX=yes
  11598. hardcode_direct_absolute_CXX=yes
  11599. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11600. # but as the default
  11601. # location of the library.
  11602. ;;
  11603. esac
  11604. case $cc_basename in
  11605. CC*)
  11606. # FIXME: insert proper C++ library support
  11607. ld_shlibs_CXX=no
  11608. ;;
  11609. aCC*)
  11610. case $host_cpu in
  11611. hppa*64*)
  11612. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11613. ;;
  11614. ia64*)
  11615. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11616. ;;
  11617. *)
  11618. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11619. ;;
  11620. esac
  11621. # Commands to make compiler produce verbose output that lists
  11622. # what "hidden" libraries, object files and flags are used when
  11623. # linking a shared library.
  11624. #
  11625. # There doesn't appear to be a way to prevent this compiler from
  11626. # explicitly linking system object files so we need to strip them
  11627. # from the output so that they don't get included in the library
  11628. # dependencies.
  11629. 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"'
  11630. ;;
  11631. *)
  11632. if test "$GXX" = yes; then
  11633. if test $with_gnu_ld = no; then
  11634. case $host_cpu in
  11635. hppa*64*)
  11636. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11637. ;;
  11638. ia64*)
  11639. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11640. ;;
  11641. *)
  11642. 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'
  11643. ;;
  11644. esac
  11645. fi
  11646. else
  11647. # FIXME: insert proper C++ library support
  11648. ld_shlibs_CXX=no
  11649. fi
  11650. ;;
  11651. esac
  11652. ;;
  11653. interix[3-9]*)
  11654. hardcode_direct_CXX=no
  11655. hardcode_shlibpath_var_CXX=no
  11656. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11657. export_dynamic_flag_spec_CXX='${wl}-E'
  11658. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11659. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11660. # default) and relocated if they conflict, which is a slow very memory
  11661. # consuming and fragmenting process. To avoid this, we pick a random,
  11662. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11663. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11664. 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'
  11665. 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'
  11666. ;;
  11667. irix5* | irix6*)
  11668. case $cc_basename in
  11669. CC*)
  11670. # SGI C++
  11671. 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'
  11672. # Archives containing C++ object files must be created using
  11673. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11674. # necessary to make sure instantiated templates are included
  11675. # in the archive.
  11676. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11677. ;;
  11678. *)
  11679. if test "$GXX" = yes; then
  11680. if test "$with_gnu_ld" = no; then
  11681. 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'
  11682. else
  11683. 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'
  11684. fi
  11685. fi
  11686. link_all_deplibs_CXX=yes
  11687. ;;
  11688. esac
  11689. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11690. hardcode_libdir_separator_CXX=:
  11691. inherit_rpath_CXX=yes
  11692. ;;
  11693. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11694. case $cc_basename in
  11695. KCC*)
  11696. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11697. # KCC will only create a shared library if the output file
  11698. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11699. # to its proper name (with version) after linking.
  11700. 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'
  11701. 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'
  11702. # Commands to make compiler produce verbose output that lists
  11703. # what "hidden" libraries, object files and flags are used when
  11704. # linking a shared library.
  11705. #
  11706. # There doesn't appear to be a way to prevent this compiler from
  11707. # explicitly linking system object files so we need to strip them
  11708. # from the output so that they don't get included in the library
  11709. # dependencies.
  11710. 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"'
  11711. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11712. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11713. # Archives containing C++ object files must be created using
  11714. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11715. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11716. ;;
  11717. icpc* | ecpc* )
  11718. # Intel C++
  11719. with_gnu_ld=yes
  11720. # version 8.0 and above of icpc choke on multiply defined symbols
  11721. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11722. # earlier do not add the objects themselves.
  11723. case `$CC -V 2>&1` in
  11724. *"Version 7."*)
  11725. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11726. 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'
  11727. ;;
  11728. *) # Version 8.0 or newer
  11729. tmp_idyn=
  11730. case $host_cpu in
  11731. ia64*) tmp_idyn=' -i_dynamic';;
  11732. esac
  11733. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11734. 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'
  11735. ;;
  11736. esac
  11737. archive_cmds_need_lc_CXX=no
  11738. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11739. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11740. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11741. ;;
  11742. pgCC* | pgcpp*)
  11743. # Portland Group C++ compiler
  11744. case `$CC -V` in
  11745. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11746. prelink_cmds_CXX='tpldir=Template.dir~
  11747. rm -rf $tpldir~
  11748. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11749. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11750. old_archive_cmds_CXX='tpldir=Template.dir~
  11751. rm -rf $tpldir~
  11752. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11753. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11754. $RANLIB $oldlib'
  11755. archive_cmds_CXX='tpldir=Template.dir~
  11756. rm -rf $tpldir~
  11757. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11758. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11759. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11760. rm -rf $tpldir~
  11761. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11762. $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'
  11763. ;;
  11764. *) # Version 6 and above use weak symbols
  11765. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11766. 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'
  11767. ;;
  11768. esac
  11769. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11770. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11771. 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'
  11772. ;;
  11773. cxx*)
  11774. # Compaq C++
  11775. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11776. 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'
  11777. runpath_var=LD_RUN_PATH
  11778. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11779. hardcode_libdir_separator_CXX=:
  11780. # Commands to make compiler produce verbose output that lists
  11781. # what "hidden" libraries, object files and flags are used when
  11782. # linking a shared library.
  11783. #
  11784. # There doesn't appear to be a way to prevent this compiler from
  11785. # explicitly linking system object files so we need to strip them
  11786. # from the output so that they don't get included in the library
  11787. # dependencies.
  11788. 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'
  11789. ;;
  11790. xl* | mpixl* | bgxl*)
  11791. # IBM XL 8.0 on PPC, with GNU ld
  11792. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11793. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11794. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11795. if test "x$supports_anon_versioning" = xyes; then
  11796. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11797. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11798. echo "local: *; };" >> $output_objdir/$libname.ver~
  11799. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11800. fi
  11801. ;;
  11802. *)
  11803. case `$CC -V 2>&1 | sed 5q` in
  11804. *Sun\ C*)
  11805. # Sun C++ 5.9
  11806. no_undefined_flag_CXX=' -zdefs'
  11807. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11808. 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'
  11809. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11810. 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'
  11811. compiler_needs_object_CXX=yes
  11812. # Not sure whether something based on
  11813. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11814. # would be better.
  11815. output_verbose_link_cmd='func_echo_all'
  11816. # Archives containing C++ object files must be created using
  11817. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11818. # necessary to make sure instantiated templates are included
  11819. # in the archive.
  11820. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11821. ;;
  11822. esac
  11823. ;;
  11824. esac
  11825. ;;
  11826. lynxos*)
  11827. # FIXME: insert proper C++ library support
  11828. ld_shlibs_CXX=no
  11829. ;;
  11830. m88k*)
  11831. # FIXME: insert proper C++ library support
  11832. ld_shlibs_CXX=no
  11833. ;;
  11834. mvs*)
  11835. case $cc_basename in
  11836. cxx*)
  11837. # FIXME: insert proper C++ library support
  11838. ld_shlibs_CXX=no
  11839. ;;
  11840. *)
  11841. # FIXME: insert proper C++ library support
  11842. ld_shlibs_CXX=no
  11843. ;;
  11844. esac
  11845. ;;
  11846. netbsd*)
  11847. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11848. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11849. wlarc=
  11850. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11851. hardcode_direct_CXX=yes
  11852. hardcode_shlibpath_var_CXX=no
  11853. fi
  11854. # Workaround some broken pre-1.5 toolchains
  11855. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11856. ;;
  11857. *nto* | *qnx*)
  11858. ld_shlibs_CXX=yes
  11859. ;;
  11860. openbsd2*)
  11861. # C++ shared libraries are fairly broken
  11862. ld_shlibs_CXX=no
  11863. ;;
  11864. openbsd*)
  11865. if test -f /usr/libexec/ld.so; then
  11866. hardcode_direct_CXX=yes
  11867. hardcode_shlibpath_var_CXX=no
  11868. hardcode_direct_absolute_CXX=yes
  11869. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11870. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11871. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11872. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11873. export_dynamic_flag_spec_CXX='${wl}-E'
  11874. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11875. fi
  11876. output_verbose_link_cmd=func_echo_all
  11877. else
  11878. ld_shlibs_CXX=no
  11879. fi
  11880. ;;
  11881. osf3* | osf4* | osf5*)
  11882. case $cc_basename in
  11883. KCC*)
  11884. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11885. # KCC will only create a shared library if the output file
  11886. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11887. # to its proper name (with version) after linking.
  11888. 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'
  11889. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11890. hardcode_libdir_separator_CXX=:
  11891. # Archives containing C++ object files must be created using
  11892. # the KAI C++ compiler.
  11893. case $host in
  11894. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11895. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11896. esac
  11897. ;;
  11898. RCC*)
  11899. # Rational C++ 2.4.1
  11900. # FIXME: insert proper C++ library support
  11901. ld_shlibs_CXX=no
  11902. ;;
  11903. cxx*)
  11904. case $host in
  11905. osf3*)
  11906. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11907. 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'
  11908. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11909. ;;
  11910. *)
  11911. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11912. 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'
  11913. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11914. echo "-hidden">> $lib.exp~
  11915. $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~
  11916. $RM $lib.exp'
  11917. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11918. ;;
  11919. esac
  11920. hardcode_libdir_separator_CXX=:
  11921. # Commands to make compiler produce verbose output that lists
  11922. # what "hidden" libraries, object files and flags are used when
  11923. # linking a shared library.
  11924. #
  11925. # There doesn't appear to be a way to prevent this compiler from
  11926. # explicitly linking system object files so we need to strip them
  11927. # from the output so that they don't get included in the library
  11928. # dependencies.
  11929. 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"'
  11930. ;;
  11931. *)
  11932. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11933. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11934. case $host in
  11935. osf3*)
  11936. 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'
  11937. ;;
  11938. *)
  11939. 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'
  11940. ;;
  11941. esac
  11942. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11943. hardcode_libdir_separator_CXX=:
  11944. # Commands to make compiler produce verbose output that lists
  11945. # what "hidden" libraries, object files and flags are used when
  11946. # linking a shared library.
  11947. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11948. else
  11949. # FIXME: insert proper C++ library support
  11950. ld_shlibs_CXX=no
  11951. fi
  11952. ;;
  11953. esac
  11954. ;;
  11955. psos*)
  11956. # FIXME: insert proper C++ library support
  11957. ld_shlibs_CXX=no
  11958. ;;
  11959. sunos4*)
  11960. case $cc_basename in
  11961. CC*)
  11962. # Sun C++ 4.x
  11963. # FIXME: insert proper C++ library support
  11964. ld_shlibs_CXX=no
  11965. ;;
  11966. lcc*)
  11967. # Lucid
  11968. # FIXME: insert proper C++ library support
  11969. ld_shlibs_CXX=no
  11970. ;;
  11971. *)
  11972. # FIXME: insert proper C++ library support
  11973. ld_shlibs_CXX=no
  11974. ;;
  11975. esac
  11976. ;;
  11977. solaris*)
  11978. case $cc_basename in
  11979. CC* | sunCC*)
  11980. # Sun C++ 4.2, 5.x and Centerline C++
  11981. archive_cmds_need_lc_CXX=yes
  11982. no_undefined_flag_CXX=' -zdefs'
  11983. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11984. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11985. $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'
  11986. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11987. hardcode_shlibpath_var_CXX=no
  11988. case $host_os in
  11989. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11990. *)
  11991. # The compiler driver will combine and reorder linker options,
  11992. # but understands `-z linker_flag'.
  11993. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11994. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11995. ;;
  11996. esac
  11997. link_all_deplibs_CXX=yes
  11998. output_verbose_link_cmd='func_echo_all'
  11999. # Archives containing C++ object files must be created using
  12000. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12001. # necessary to make sure instantiated templates are included
  12002. # in the archive.
  12003. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12004. ;;
  12005. gcx*)
  12006. # Green Hills C++ Compiler
  12007. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12008. # The C++ compiler must be used to create the archive.
  12009. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12010. ;;
  12011. *)
  12012. # GNU C++ compiler with Solaris linker
  12013. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12014. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  12015. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12016. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12017. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12018. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12019. # Commands to make compiler produce verbose output that lists
  12020. # what "hidden" libraries, object files and flags are used when
  12021. # linking a shared library.
  12022. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12023. else
  12024. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  12025. # platform.
  12026. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12027. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12028. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12029. # Commands to make compiler produce verbose output that lists
  12030. # what "hidden" libraries, object files and flags are used when
  12031. # linking a shared library.
  12032. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12033. fi
  12034. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  12035. case $host_os in
  12036. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12037. *)
  12038. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  12039. ;;
  12040. esac
  12041. fi
  12042. ;;
  12043. esac
  12044. ;;
  12045. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12046. no_undefined_flag_CXX='${wl}-z,text'
  12047. archive_cmds_need_lc_CXX=no
  12048. hardcode_shlibpath_var_CXX=no
  12049. runpath_var='LD_RUN_PATH'
  12050. case $cc_basename in
  12051. CC*)
  12052. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12053. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12054. ;;
  12055. *)
  12056. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12057. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12058. ;;
  12059. esac
  12060. ;;
  12061. sysv5* | sco3.2v5* | sco5v6*)
  12062. # Note: We can NOT use -z defs as we might desire, because we do not
  12063. # link with -lc, and that would cause any symbols used from libc to
  12064. # always be unresolved, which means just about no library would
  12065. # ever link correctly. If we're not using GNU ld we use -z text
  12066. # though, which does catch some bad symbols but isn't as heavy-handed
  12067. # as -z defs.
  12068. no_undefined_flag_CXX='${wl}-z,text'
  12069. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12070. archive_cmds_need_lc_CXX=no
  12071. hardcode_shlibpath_var_CXX=no
  12072. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  12073. hardcode_libdir_separator_CXX=':'
  12074. link_all_deplibs_CXX=yes
  12075. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12076. runpath_var='LD_RUN_PATH'
  12077. case $cc_basename in
  12078. CC*)
  12079. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12080. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12081. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12082. '"$old_archive_cmds_CXX"
  12083. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12084. '"$reload_cmds_CXX"
  12085. ;;
  12086. *)
  12087. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12088. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12089. ;;
  12090. esac
  12091. ;;
  12092. tandem*)
  12093. case $cc_basename in
  12094. NCC*)
  12095. # NonStop-UX NCC 3.20
  12096. # FIXME: insert proper C++ library support
  12097. ld_shlibs_CXX=no
  12098. ;;
  12099. *)
  12100. # FIXME: insert proper C++ library support
  12101. ld_shlibs_CXX=no
  12102. ;;
  12103. esac
  12104. ;;
  12105. vxworks*)
  12106. # FIXME: insert proper C++ library support
  12107. ld_shlibs_CXX=no
  12108. ;;
  12109. *)
  12110. # FIXME: insert proper C++ library support
  12111. ld_shlibs_CXX=no
  12112. ;;
  12113. esac
  12114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12115. $as_echo "$ld_shlibs_CXX" >&6; }
  12116. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12117. GCC_CXX="$GXX"
  12118. LD_CXX="$LD"
  12119. ## CAVEAT EMPTOR:
  12120. ## There is no encapsulation within the following macros, do not change
  12121. ## the running order or otherwise move them around unless you know exactly
  12122. ## what you are doing...
  12123. # Dependencies to place before and after the object being linked:
  12124. predep_objects_CXX=
  12125. postdep_objects_CXX=
  12126. predeps_CXX=
  12127. postdeps_CXX=
  12128. compiler_lib_search_path_CXX=
  12129. cat > conftest.$ac_ext <<_LT_EOF
  12130. class Foo
  12131. {
  12132. public:
  12133. Foo (void) { a = 0; }
  12134. private:
  12135. int a;
  12136. };
  12137. _LT_EOF
  12138. _lt_libdeps_save_CFLAGS=$CFLAGS
  12139. case "$CC $CFLAGS " in #(
  12140. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12141. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12142. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12143. esac
  12144. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12145. (eval $ac_compile) 2>&5
  12146. ac_status=$?
  12147. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12148. test $ac_status = 0; }; then
  12149. # Parse the compiler output and extract the necessary
  12150. # objects, libraries and library flags.
  12151. # Sentinel used to keep track of whether or not we are before
  12152. # the conftest object file.
  12153. pre_test_object_deps_done=no
  12154. for p in `eval "$output_verbose_link_cmd"`; do
  12155. case ${prev}${p} in
  12156. -L* | -R* | -l*)
  12157. # Some compilers place space between "-{L,R}" and the path.
  12158. # Remove the space.
  12159. if test $p = "-L" ||
  12160. test $p = "-R"; then
  12161. prev=$p
  12162. continue
  12163. fi
  12164. # Expand the sysroot to ease extracting the directories later.
  12165. if test -z "$prev"; then
  12166. case $p in
  12167. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12168. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12169. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12170. esac
  12171. fi
  12172. case $p in
  12173. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12174. esac
  12175. if test "$pre_test_object_deps_done" = no; then
  12176. case ${prev} in
  12177. -L | -R)
  12178. # Internal compiler library paths should come after those
  12179. # provided the user. The postdeps already come after the
  12180. # user supplied libs so there is no need to process them.
  12181. if test -z "$compiler_lib_search_path_CXX"; then
  12182. compiler_lib_search_path_CXX="${prev}${p}"
  12183. else
  12184. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12185. fi
  12186. ;;
  12187. # The "-l" case would never come before the object being
  12188. # linked, so don't bother handling this case.
  12189. esac
  12190. else
  12191. if test -z "$postdeps_CXX"; then
  12192. postdeps_CXX="${prev}${p}"
  12193. else
  12194. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12195. fi
  12196. fi
  12197. prev=
  12198. ;;
  12199. *.lto.$objext) ;; # Ignore GCC LTO objects
  12200. *.$objext)
  12201. # This assumes that the test object file only shows up
  12202. # once in the compiler output.
  12203. if test "$p" = "conftest.$objext"; then
  12204. pre_test_object_deps_done=yes
  12205. continue
  12206. fi
  12207. if test "$pre_test_object_deps_done" = no; then
  12208. if test -z "$predep_objects_CXX"; then
  12209. predep_objects_CXX="$p"
  12210. else
  12211. predep_objects_CXX="$predep_objects_CXX $p"
  12212. fi
  12213. else
  12214. if test -z "$postdep_objects_CXX"; then
  12215. postdep_objects_CXX="$p"
  12216. else
  12217. postdep_objects_CXX="$postdep_objects_CXX $p"
  12218. fi
  12219. fi
  12220. ;;
  12221. *) ;; # Ignore the rest.
  12222. esac
  12223. done
  12224. # Clean up.
  12225. rm -f a.out a.exe
  12226. else
  12227. echo "libtool.m4: error: problem compiling CXX test program"
  12228. fi
  12229. $RM -f confest.$objext
  12230. CFLAGS=$_lt_libdeps_save_CFLAGS
  12231. # PORTME: override above test on systems where it is broken
  12232. case $host_os in
  12233. interix[3-9]*)
  12234. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12235. # hack all around it, let's just trust "g++" to DTRT.
  12236. predep_objects_CXX=
  12237. postdep_objects_CXX=
  12238. postdeps_CXX=
  12239. ;;
  12240. linux*)
  12241. case `$CC -V 2>&1 | sed 5q` in
  12242. *Sun\ C*)
  12243. # Sun C++ 5.9
  12244. # The more standards-conforming stlport4 library is
  12245. # incompatible with the Cstd library. Avoid specifying
  12246. # it if it's in CXXFLAGS. Ignore libCrun as
  12247. # -library=stlport4 depends on it.
  12248. case " $CXX $CXXFLAGS " in
  12249. *" -library=stlport4 "*)
  12250. solaris_use_stlport4=yes
  12251. ;;
  12252. esac
  12253. if test "$solaris_use_stlport4" != yes; then
  12254. postdeps_CXX='-library=Cstd -library=Crun'
  12255. fi
  12256. ;;
  12257. esac
  12258. ;;
  12259. solaris*)
  12260. case $cc_basename in
  12261. CC* | sunCC*)
  12262. # The more standards-conforming stlport4 library is
  12263. # incompatible with the Cstd library. Avoid specifying
  12264. # it if it's in CXXFLAGS. Ignore libCrun as
  12265. # -library=stlport4 depends on it.
  12266. case " $CXX $CXXFLAGS " in
  12267. *" -library=stlport4 "*)
  12268. solaris_use_stlport4=yes
  12269. ;;
  12270. esac
  12271. # Adding this requires a known-good setup of shared libraries for
  12272. # Sun compiler versions before 5.6, else PIC objects from an old
  12273. # archive will be linked into the output, leading to subtle bugs.
  12274. if test "$solaris_use_stlport4" != yes; then
  12275. postdeps_CXX='-library=Cstd -library=Crun'
  12276. fi
  12277. ;;
  12278. esac
  12279. ;;
  12280. esac
  12281. case " $postdeps_CXX " in
  12282. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12283. esac
  12284. compiler_lib_search_dirs_CXX=
  12285. if test -n "${compiler_lib_search_path_CXX}"; then
  12286. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12287. fi
  12288. lt_prog_compiler_wl_CXX=
  12289. lt_prog_compiler_pic_CXX=
  12290. lt_prog_compiler_static_CXX=
  12291. # C++ specific cases for pic, static, wl, etc.
  12292. if test "$GXX" = yes; then
  12293. lt_prog_compiler_wl_CXX='-Wl,'
  12294. lt_prog_compiler_static_CXX='-static'
  12295. case $host_os in
  12296. aix*)
  12297. # All AIX code is PIC.
  12298. if test "$host_cpu" = ia64; then
  12299. # AIX 5 now supports IA64 processor
  12300. lt_prog_compiler_static_CXX='-Bstatic'
  12301. fi
  12302. ;;
  12303. amigaos*)
  12304. case $host_cpu in
  12305. powerpc)
  12306. # see comment about AmigaOS4 .so support
  12307. lt_prog_compiler_pic_CXX='-fPIC'
  12308. ;;
  12309. m68k)
  12310. # FIXME: we need at least 68020 code to build shared libraries, but
  12311. # adding the `-m68020' flag to GCC prevents building anything better,
  12312. # like `-m68040'.
  12313. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12314. ;;
  12315. esac
  12316. ;;
  12317. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12318. # PIC is the default for these OSes.
  12319. ;;
  12320. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12321. # This hack is so that the source file can tell whether it is being
  12322. # built for inclusion in a dll (and should export symbols for example).
  12323. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12324. # (--disable-auto-import) libraries
  12325. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12326. ;;
  12327. darwin* | rhapsody*)
  12328. # PIC is the default on this platform
  12329. # Common symbols not allowed in MH_DYLIB files
  12330. lt_prog_compiler_pic_CXX='-fno-common'
  12331. ;;
  12332. *djgpp*)
  12333. # DJGPP does not support shared libraries at all
  12334. lt_prog_compiler_pic_CXX=
  12335. ;;
  12336. haiku*)
  12337. # PIC is the default for Haiku.
  12338. # The "-static" flag exists, but is broken.
  12339. lt_prog_compiler_static_CXX=
  12340. ;;
  12341. interix[3-9]*)
  12342. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12343. # Instead, we relocate shared libraries at runtime.
  12344. ;;
  12345. sysv4*MP*)
  12346. if test -d /usr/nec; then
  12347. lt_prog_compiler_pic_CXX=-Kconform_pic
  12348. fi
  12349. ;;
  12350. hpux*)
  12351. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12352. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12353. # sets the default TLS model and affects inlining.
  12354. case $host_cpu in
  12355. hppa*64*)
  12356. ;;
  12357. *)
  12358. lt_prog_compiler_pic_CXX='-fPIC'
  12359. ;;
  12360. esac
  12361. ;;
  12362. *qnx* | *nto*)
  12363. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12364. # it will coredump.
  12365. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12366. ;;
  12367. *)
  12368. lt_prog_compiler_pic_CXX='-fPIC'
  12369. ;;
  12370. esac
  12371. else
  12372. case $host_os in
  12373. aix[4-9]*)
  12374. # All AIX code is PIC.
  12375. if test "$host_cpu" = ia64; then
  12376. # AIX 5 now supports IA64 processor
  12377. lt_prog_compiler_static_CXX='-Bstatic'
  12378. else
  12379. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12380. fi
  12381. ;;
  12382. chorus*)
  12383. case $cc_basename in
  12384. cxch68*)
  12385. # Green Hills C++ Compiler
  12386. # _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"
  12387. ;;
  12388. esac
  12389. ;;
  12390. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12391. # This hack is so that the source file can tell whether it is being
  12392. # built for inclusion in a dll (and should export symbols for example).
  12393. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12394. ;;
  12395. dgux*)
  12396. case $cc_basename in
  12397. ec++*)
  12398. lt_prog_compiler_pic_CXX='-KPIC'
  12399. ;;
  12400. ghcx*)
  12401. # Green Hills C++ Compiler
  12402. lt_prog_compiler_pic_CXX='-pic'
  12403. ;;
  12404. *)
  12405. ;;
  12406. esac
  12407. ;;
  12408. freebsd* | dragonfly*)
  12409. # FreeBSD uses GNU C++
  12410. ;;
  12411. hpux9* | hpux10* | hpux11*)
  12412. case $cc_basename in
  12413. CC*)
  12414. lt_prog_compiler_wl_CXX='-Wl,'
  12415. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12416. if test "$host_cpu" != ia64; then
  12417. lt_prog_compiler_pic_CXX='+Z'
  12418. fi
  12419. ;;
  12420. aCC*)
  12421. lt_prog_compiler_wl_CXX='-Wl,'
  12422. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12423. case $host_cpu in
  12424. hppa*64*|ia64*)
  12425. # +Z the default
  12426. ;;
  12427. *)
  12428. lt_prog_compiler_pic_CXX='+Z'
  12429. ;;
  12430. esac
  12431. ;;
  12432. *)
  12433. ;;
  12434. esac
  12435. ;;
  12436. interix*)
  12437. # This is c89, which is MS Visual C++ (no shared libs)
  12438. # Anyone wants to do a port?
  12439. ;;
  12440. irix5* | irix6* | nonstopux*)
  12441. case $cc_basename in
  12442. CC*)
  12443. lt_prog_compiler_wl_CXX='-Wl,'
  12444. lt_prog_compiler_static_CXX='-non_shared'
  12445. # CC pic flag -KPIC is the default.
  12446. ;;
  12447. *)
  12448. ;;
  12449. esac
  12450. ;;
  12451. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12452. case $cc_basename in
  12453. KCC*)
  12454. # KAI C++ Compiler
  12455. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12456. lt_prog_compiler_pic_CXX='-fPIC'
  12457. ;;
  12458. ecpc* )
  12459. # old Intel C++ for x86_64 which still supported -KPIC.
  12460. lt_prog_compiler_wl_CXX='-Wl,'
  12461. lt_prog_compiler_pic_CXX='-KPIC'
  12462. lt_prog_compiler_static_CXX='-static'
  12463. ;;
  12464. icpc* )
  12465. # Intel C++, used to be incompatible with GCC.
  12466. # ICC 10 doesn't accept -KPIC any more.
  12467. lt_prog_compiler_wl_CXX='-Wl,'
  12468. lt_prog_compiler_pic_CXX='-fPIC'
  12469. lt_prog_compiler_static_CXX='-static'
  12470. ;;
  12471. pgCC* | pgcpp*)
  12472. # Portland Group C++ compiler
  12473. lt_prog_compiler_wl_CXX='-Wl,'
  12474. lt_prog_compiler_pic_CXX='-fpic'
  12475. lt_prog_compiler_static_CXX='-Bstatic'
  12476. ;;
  12477. cxx*)
  12478. # Compaq C++
  12479. # Make sure the PIC flag is empty. It appears that all Alpha
  12480. # Linux and Compaq Tru64 Unix objects are PIC.
  12481. lt_prog_compiler_pic_CXX=
  12482. lt_prog_compiler_static_CXX='-non_shared'
  12483. ;;
  12484. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12485. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12486. lt_prog_compiler_wl_CXX='-Wl,'
  12487. lt_prog_compiler_pic_CXX='-qpic'
  12488. lt_prog_compiler_static_CXX='-qstaticlink'
  12489. ;;
  12490. *)
  12491. case `$CC -V 2>&1 | sed 5q` in
  12492. *Sun\ C*)
  12493. # Sun C++ 5.9
  12494. lt_prog_compiler_pic_CXX='-KPIC'
  12495. lt_prog_compiler_static_CXX='-Bstatic'
  12496. lt_prog_compiler_wl_CXX='-Qoption ld '
  12497. ;;
  12498. esac
  12499. ;;
  12500. esac
  12501. ;;
  12502. lynxos*)
  12503. ;;
  12504. m88k*)
  12505. ;;
  12506. mvs*)
  12507. case $cc_basename in
  12508. cxx*)
  12509. lt_prog_compiler_pic_CXX='-W c,exportall'
  12510. ;;
  12511. *)
  12512. ;;
  12513. esac
  12514. ;;
  12515. netbsd*)
  12516. ;;
  12517. *qnx* | *nto*)
  12518. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12519. # it will coredump.
  12520. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12521. ;;
  12522. osf3* | osf4* | osf5*)
  12523. case $cc_basename in
  12524. KCC*)
  12525. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12526. ;;
  12527. RCC*)
  12528. # Rational C++ 2.4.1
  12529. lt_prog_compiler_pic_CXX='-pic'
  12530. ;;
  12531. cxx*)
  12532. # Digital/Compaq C++
  12533. lt_prog_compiler_wl_CXX='-Wl,'
  12534. # Make sure the PIC flag is empty. It appears that all Alpha
  12535. # Linux and Compaq Tru64 Unix objects are PIC.
  12536. lt_prog_compiler_pic_CXX=
  12537. lt_prog_compiler_static_CXX='-non_shared'
  12538. ;;
  12539. *)
  12540. ;;
  12541. esac
  12542. ;;
  12543. psos*)
  12544. ;;
  12545. solaris*)
  12546. case $cc_basename in
  12547. CC* | sunCC*)
  12548. # Sun C++ 4.2, 5.x and Centerline C++
  12549. lt_prog_compiler_pic_CXX='-KPIC'
  12550. lt_prog_compiler_static_CXX='-Bstatic'
  12551. lt_prog_compiler_wl_CXX='-Qoption ld '
  12552. ;;
  12553. gcx*)
  12554. # Green Hills C++ Compiler
  12555. lt_prog_compiler_pic_CXX='-PIC'
  12556. ;;
  12557. *)
  12558. ;;
  12559. esac
  12560. ;;
  12561. sunos4*)
  12562. case $cc_basename in
  12563. CC*)
  12564. # Sun C++ 4.x
  12565. lt_prog_compiler_pic_CXX='-pic'
  12566. lt_prog_compiler_static_CXX='-Bstatic'
  12567. ;;
  12568. lcc*)
  12569. # Lucid
  12570. lt_prog_compiler_pic_CXX='-pic'
  12571. ;;
  12572. *)
  12573. ;;
  12574. esac
  12575. ;;
  12576. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12577. case $cc_basename in
  12578. CC*)
  12579. lt_prog_compiler_wl_CXX='-Wl,'
  12580. lt_prog_compiler_pic_CXX='-KPIC'
  12581. lt_prog_compiler_static_CXX='-Bstatic'
  12582. ;;
  12583. esac
  12584. ;;
  12585. tandem*)
  12586. case $cc_basename in
  12587. NCC*)
  12588. # NonStop-UX NCC 3.20
  12589. lt_prog_compiler_pic_CXX='-KPIC'
  12590. ;;
  12591. *)
  12592. ;;
  12593. esac
  12594. ;;
  12595. vxworks*)
  12596. ;;
  12597. *)
  12598. lt_prog_compiler_can_build_shared_CXX=no
  12599. ;;
  12600. esac
  12601. fi
  12602. case $host_os in
  12603. # For platforms which do not support PIC, -DPIC is meaningless:
  12604. *djgpp*)
  12605. lt_prog_compiler_pic_CXX=
  12606. ;;
  12607. *)
  12608. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12609. ;;
  12610. esac
  12611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12612. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12613. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12614. $as_echo_n "(cached) " >&6
  12615. else
  12616. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12617. fi
  12618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12619. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12620. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12621. #
  12622. # Check to make sure the PIC flag actually works.
  12623. #
  12624. if test -n "$lt_prog_compiler_pic_CXX"; then
  12625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12626. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12627. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12628. $as_echo_n "(cached) " >&6
  12629. else
  12630. lt_cv_prog_compiler_pic_works_CXX=no
  12631. ac_outfile=conftest.$ac_objext
  12632. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12633. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12634. # Insert the option either (1) after the last *FLAGS variable, or
  12635. # (2) before a word containing "conftest.", or (3) at the end.
  12636. # Note that $ac_compile itself does not contain backslashes and begins
  12637. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12638. # The option is referenced via a variable to avoid confusing sed.
  12639. lt_compile=`echo "$ac_compile" | $SED \
  12640. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12641. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12642. -e 's:$: $lt_compiler_flag:'`
  12643. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12644. (eval "$lt_compile" 2>conftest.err)
  12645. ac_status=$?
  12646. cat conftest.err >&5
  12647. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12648. if (exit $ac_status) && test -s "$ac_outfile"; then
  12649. # The compiler can only warn and ignore the option if not recognized
  12650. # So say no if there are warnings other than the usual output.
  12651. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12652. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12653. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12654. lt_cv_prog_compiler_pic_works_CXX=yes
  12655. fi
  12656. fi
  12657. $RM conftest*
  12658. fi
  12659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12660. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12661. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12662. case $lt_prog_compiler_pic_CXX in
  12663. "" | " "*) ;;
  12664. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12665. esac
  12666. else
  12667. lt_prog_compiler_pic_CXX=
  12668. lt_prog_compiler_can_build_shared_CXX=no
  12669. fi
  12670. fi
  12671. #
  12672. # Check to make sure the static flag actually works.
  12673. #
  12674. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12676. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12677. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12678. $as_echo_n "(cached) " >&6
  12679. else
  12680. lt_cv_prog_compiler_static_works_CXX=no
  12681. save_LDFLAGS="$LDFLAGS"
  12682. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12683. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12684. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12685. # The linker can only warn and ignore the option if not recognized
  12686. # So say no if there are warnings
  12687. if test -s conftest.err; then
  12688. # Append any errors to the config.log.
  12689. cat conftest.err 1>&5
  12690. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12691. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12692. if diff conftest.exp conftest.er2 >/dev/null; then
  12693. lt_cv_prog_compiler_static_works_CXX=yes
  12694. fi
  12695. else
  12696. lt_cv_prog_compiler_static_works_CXX=yes
  12697. fi
  12698. fi
  12699. $RM -r conftest*
  12700. LDFLAGS="$save_LDFLAGS"
  12701. fi
  12702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12703. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12704. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12705. :
  12706. else
  12707. lt_prog_compiler_static_CXX=
  12708. fi
  12709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12710. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12711. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12712. $as_echo_n "(cached) " >&6
  12713. else
  12714. lt_cv_prog_compiler_c_o_CXX=no
  12715. $RM -r conftest 2>/dev/null
  12716. mkdir conftest
  12717. cd conftest
  12718. mkdir out
  12719. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12720. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12721. # Insert the option either (1) after the last *FLAGS variable, or
  12722. # (2) before a word containing "conftest.", or (3) at the end.
  12723. # Note that $ac_compile itself does not contain backslashes and begins
  12724. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12725. lt_compile=`echo "$ac_compile" | $SED \
  12726. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12727. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12728. -e 's:$: $lt_compiler_flag:'`
  12729. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12730. (eval "$lt_compile" 2>out/conftest.err)
  12731. ac_status=$?
  12732. cat out/conftest.err >&5
  12733. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12734. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12735. then
  12736. # The compiler can only warn and ignore the option if not recognized
  12737. # So say no if there are warnings
  12738. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12739. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12740. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12741. lt_cv_prog_compiler_c_o_CXX=yes
  12742. fi
  12743. fi
  12744. chmod u+w . 2>&5
  12745. $RM conftest*
  12746. # SGI C++ compiler will create directory out/ii_files/ for
  12747. # template instantiation
  12748. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12749. $RM out/* && rmdir out
  12750. cd ..
  12751. $RM -r conftest
  12752. $RM conftest*
  12753. fi
  12754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12755. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12757. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12758. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12759. $as_echo_n "(cached) " >&6
  12760. else
  12761. lt_cv_prog_compiler_c_o_CXX=no
  12762. $RM -r conftest 2>/dev/null
  12763. mkdir conftest
  12764. cd conftest
  12765. mkdir out
  12766. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12767. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12768. # Insert the option either (1) after the last *FLAGS variable, or
  12769. # (2) before a word containing "conftest.", or (3) at the end.
  12770. # Note that $ac_compile itself does not contain backslashes and begins
  12771. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12772. lt_compile=`echo "$ac_compile" | $SED \
  12773. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12774. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12775. -e 's:$: $lt_compiler_flag:'`
  12776. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12777. (eval "$lt_compile" 2>out/conftest.err)
  12778. ac_status=$?
  12779. cat out/conftest.err >&5
  12780. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12781. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12782. then
  12783. # The compiler can only warn and ignore the option if not recognized
  12784. # So say no if there are warnings
  12785. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12786. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12787. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12788. lt_cv_prog_compiler_c_o_CXX=yes
  12789. fi
  12790. fi
  12791. chmod u+w . 2>&5
  12792. $RM conftest*
  12793. # SGI C++ compiler will create directory out/ii_files/ for
  12794. # template instantiation
  12795. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12796. $RM out/* && rmdir out
  12797. cd ..
  12798. $RM -r conftest
  12799. $RM conftest*
  12800. fi
  12801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12802. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12803. hard_links="nottested"
  12804. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12805. # do not overwrite the value of need_locks provided by the user
  12806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12807. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12808. hard_links=yes
  12809. $RM conftest*
  12810. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12811. touch conftest.a
  12812. ln conftest.a conftest.b 2>&5 || hard_links=no
  12813. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12815. $as_echo "$hard_links" >&6; }
  12816. if test "$hard_links" = no; then
  12817. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12818. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12819. need_locks=warn
  12820. fi
  12821. else
  12822. need_locks=no
  12823. fi
  12824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12825. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12826. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12827. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12828. case $host_os in
  12829. aix[4-9]*)
  12830. # If we're using GNU nm, then we don't want the "-C" option.
  12831. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12832. # Also, AIX nm treats weak defined symbols like other global defined
  12833. # symbols, whereas GNU nm marks them as "W".
  12834. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12835. 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'
  12836. else
  12837. 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'
  12838. fi
  12839. ;;
  12840. pw32*)
  12841. export_symbols_cmds_CXX="$ltdll_cmds"
  12842. ;;
  12843. cygwin* | mingw* | cegcc*)
  12844. case $cc_basename in
  12845. cl*)
  12846. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12847. ;;
  12848. *)
  12849. 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'
  12850. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12851. ;;
  12852. esac
  12853. ;;
  12854. *)
  12855. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12856. ;;
  12857. esac
  12858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12859. $as_echo "$ld_shlibs_CXX" >&6; }
  12860. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12861. with_gnu_ld_CXX=$with_gnu_ld
  12862. #
  12863. # Do we need to explicitly link libc?
  12864. #
  12865. case "x$archive_cmds_need_lc_CXX" in
  12866. x|xyes)
  12867. # Assume -lc should be added
  12868. archive_cmds_need_lc_CXX=yes
  12869. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12870. case $archive_cmds_CXX in
  12871. *'~'*)
  12872. # FIXME: we may have to deal with multi-command sequences.
  12873. ;;
  12874. '$CC '*)
  12875. # Test whether the compiler implicitly links with -lc since on some
  12876. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12877. # to ld, don't add -lc before -lgcc.
  12878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12879. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12880. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12881. $as_echo_n "(cached) " >&6
  12882. else
  12883. $RM conftest*
  12884. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12885. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12886. (eval $ac_compile) 2>&5
  12887. ac_status=$?
  12888. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12889. test $ac_status = 0; } 2>conftest.err; then
  12890. soname=conftest
  12891. lib=conftest
  12892. libobjs=conftest.$ac_objext
  12893. deplibs=
  12894. wl=$lt_prog_compiler_wl_CXX
  12895. pic_flag=$lt_prog_compiler_pic_CXX
  12896. compiler_flags=-v
  12897. linker_flags=-v
  12898. verstring=
  12899. output_objdir=.
  12900. libname=conftest
  12901. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12902. allow_undefined_flag_CXX=
  12903. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12904. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12905. ac_status=$?
  12906. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12907. test $ac_status = 0; }
  12908. then
  12909. lt_cv_archive_cmds_need_lc_CXX=no
  12910. else
  12911. lt_cv_archive_cmds_need_lc_CXX=yes
  12912. fi
  12913. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12914. else
  12915. cat conftest.err 1>&5
  12916. fi
  12917. $RM conftest*
  12918. fi
  12919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12920. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12921. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12922. ;;
  12923. esac
  12924. fi
  12925. ;;
  12926. esac
  12927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12928. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12929. library_names_spec=
  12930. libname_spec='lib$name'
  12931. soname_spec=
  12932. shrext_cmds=".so"
  12933. postinstall_cmds=
  12934. postuninstall_cmds=
  12935. finish_cmds=
  12936. finish_eval=
  12937. shlibpath_var=
  12938. shlibpath_overrides_runpath=unknown
  12939. version_type=none
  12940. dynamic_linker="$host_os ld.so"
  12941. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12942. need_lib_prefix=unknown
  12943. hardcode_into_libs=no
  12944. # when you set need_version to no, make sure it does not cause -set_version
  12945. # flags to be left without arguments
  12946. need_version=unknown
  12947. case $host_os in
  12948. aix3*)
  12949. version_type=linux # correct to gnu/linux during the next big refactor
  12950. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12951. shlibpath_var=LIBPATH
  12952. # AIX 3 has no versioning support, so we append a major version to the name.
  12953. soname_spec='${libname}${release}${shared_ext}$major'
  12954. ;;
  12955. aix[4-9]*)
  12956. version_type=linux # correct to gnu/linux during the next big refactor
  12957. need_lib_prefix=no
  12958. need_version=no
  12959. hardcode_into_libs=yes
  12960. if test "$host_cpu" = ia64; then
  12961. # AIX 5 supports IA64
  12962. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12963. shlibpath_var=LD_LIBRARY_PATH
  12964. else
  12965. # With GCC up to 2.95.x, collect2 would create an import file
  12966. # for dependence libraries. The import file would start with
  12967. # the line `#! .'. This would cause the generated library to
  12968. # depend on `.', always an invalid library. This was fixed in
  12969. # development snapshots of GCC prior to 3.0.
  12970. case $host_os in
  12971. aix4 | aix4.[01] | aix4.[01].*)
  12972. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12973. echo ' yes '
  12974. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12975. :
  12976. else
  12977. can_build_shared=no
  12978. fi
  12979. ;;
  12980. esac
  12981. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12982. # soname into executable. Probably we can add versioning support to
  12983. # collect2, so additional links can be useful in future.
  12984. if test "$aix_use_runtimelinking" = yes; then
  12985. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12986. # instead of lib<name>.a to let people know that these are not
  12987. # typical AIX shared libraries.
  12988. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12989. else
  12990. # We preserve .a as extension for shared libraries through AIX4.2
  12991. # and later when we are not doing run time linking.
  12992. library_names_spec='${libname}${release}.a $libname.a'
  12993. soname_spec='${libname}${release}${shared_ext}$major'
  12994. fi
  12995. shlibpath_var=LIBPATH
  12996. fi
  12997. ;;
  12998. amigaos*)
  12999. case $host_cpu in
  13000. powerpc)
  13001. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13002. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13003. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13004. ;;
  13005. m68k)
  13006. library_names_spec='$libname.ixlibrary $libname.a'
  13007. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13008. 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'
  13009. ;;
  13010. esac
  13011. ;;
  13012. beos*)
  13013. library_names_spec='${libname}${shared_ext}'
  13014. dynamic_linker="$host_os ld.so"
  13015. shlibpath_var=LIBRARY_PATH
  13016. ;;
  13017. bsdi[45]*)
  13018. version_type=linux # correct to gnu/linux during the next big refactor
  13019. need_version=no
  13020. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13021. soname_spec='${libname}${release}${shared_ext}$major'
  13022. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13023. shlibpath_var=LD_LIBRARY_PATH
  13024. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13025. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13026. # the default ld.so.conf also contains /usr/contrib/lib and
  13027. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13028. # libtool to hard-code these into programs
  13029. ;;
  13030. cygwin* | mingw* | pw32* | cegcc*)
  13031. version_type=windows
  13032. shrext_cmds=".dll"
  13033. need_version=no
  13034. need_lib_prefix=no
  13035. case $GCC,$cc_basename in
  13036. yes,*)
  13037. # gcc
  13038. library_names_spec='$libname.dll.a'
  13039. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13040. postinstall_cmds='base_file=`basename \${file}`~
  13041. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13042. dldir=$destdir/`dirname \$dlpath`~
  13043. test -d \$dldir || mkdir -p \$dldir~
  13044. $install_prog $dir/$dlname \$dldir/$dlname~
  13045. chmod a+x \$dldir/$dlname~
  13046. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13047. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13048. fi'
  13049. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13050. dlpath=$dir/\$dldll~
  13051. $RM \$dlpath'
  13052. shlibpath_overrides_runpath=yes
  13053. case $host_os in
  13054. cygwin*)
  13055. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13056. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  13057. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  13058. ;;
  13059. mingw* | cegcc*)
  13060. # MinGW DLLs use traditional 'lib' prefix
  13061. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  13062. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  13063. ;;
  13064. pw32*)
  13065. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13066. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13067. ;;
  13068. esac
  13069. dynamic_linker='Win32 ld.exe'
  13070. ;;
  13071. *,cl*)
  13072. # Native MSVC
  13073. libname_spec='$name'
  13074. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13075. library_names_spec='${libname}.dll.lib'
  13076. case $build_os in
  13077. mingw*)
  13078. sys_lib_search_path_spec=
  13079. lt_save_ifs=$IFS
  13080. IFS=';'
  13081. for lt_path in $LIB
  13082. do
  13083. IFS=$lt_save_ifs
  13084. # Let DOS variable expansion print the short 8.3 style file name.
  13085. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13086. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13087. done
  13088. IFS=$lt_save_ifs
  13089. # Convert to MSYS style.
  13090. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13091. ;;
  13092. cygwin*)
  13093. # Convert to unix form, then to dos form, then back to unix form
  13094. # but this time dos style (no spaces!) so that the unix form looks
  13095. # like /cygdrive/c/PROGRA~1:/cygdr...
  13096. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13097. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13098. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13099. ;;
  13100. *)
  13101. sys_lib_search_path_spec="$LIB"
  13102. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13103. # It is most probably a Windows format PATH.
  13104. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13105. else
  13106. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13107. fi
  13108. # FIXME: find the short name or the path components, as spaces are
  13109. # common. (e.g. "Program Files" -> "PROGRA~1")
  13110. ;;
  13111. esac
  13112. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13113. postinstall_cmds='base_file=`basename \${file}`~
  13114. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13115. dldir=$destdir/`dirname \$dlpath`~
  13116. test -d \$dldir || mkdir -p \$dldir~
  13117. $install_prog $dir/$dlname \$dldir/$dlname'
  13118. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13119. dlpath=$dir/\$dldll~
  13120. $RM \$dlpath'
  13121. shlibpath_overrides_runpath=yes
  13122. dynamic_linker='Win32 link.exe'
  13123. ;;
  13124. *)
  13125. # Assume MSVC wrapper
  13126. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13127. dynamic_linker='Win32 ld.exe'
  13128. ;;
  13129. esac
  13130. # FIXME: first we should search . and the directory the executable is in
  13131. shlibpath_var=PATH
  13132. ;;
  13133. darwin* | rhapsody*)
  13134. dynamic_linker="$host_os dyld"
  13135. version_type=darwin
  13136. need_lib_prefix=no
  13137. need_version=no
  13138. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13139. soname_spec='${libname}${release}${major}$shared_ext'
  13140. shlibpath_overrides_runpath=yes
  13141. shlibpath_var=DYLD_LIBRARY_PATH
  13142. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13143. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13144. ;;
  13145. dgux*)
  13146. version_type=linux # correct to gnu/linux during the next big refactor
  13147. need_lib_prefix=no
  13148. need_version=no
  13149. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13150. soname_spec='${libname}${release}${shared_ext}$major'
  13151. shlibpath_var=LD_LIBRARY_PATH
  13152. ;;
  13153. freebsd* | dragonfly*)
  13154. # DragonFly does not have aout. When/if they implement a new
  13155. # versioning mechanism, adjust this.
  13156. if test -x /usr/bin/objformat; then
  13157. objformat=`/usr/bin/objformat`
  13158. else
  13159. case $host_os in
  13160. freebsd[23].*) objformat=aout ;;
  13161. *) objformat=elf ;;
  13162. esac
  13163. fi
  13164. version_type=freebsd-$objformat
  13165. case $version_type in
  13166. freebsd-elf*)
  13167. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13168. need_version=no
  13169. need_lib_prefix=no
  13170. ;;
  13171. freebsd-*)
  13172. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13173. need_version=yes
  13174. ;;
  13175. esac
  13176. shlibpath_var=LD_LIBRARY_PATH
  13177. case $host_os in
  13178. freebsd2.*)
  13179. shlibpath_overrides_runpath=yes
  13180. ;;
  13181. freebsd3.[01]* | freebsdelf3.[01]*)
  13182. shlibpath_overrides_runpath=yes
  13183. hardcode_into_libs=yes
  13184. ;;
  13185. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13186. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13187. shlibpath_overrides_runpath=no
  13188. hardcode_into_libs=yes
  13189. ;;
  13190. *) # from 4.6 on, and DragonFly
  13191. shlibpath_overrides_runpath=yes
  13192. hardcode_into_libs=yes
  13193. ;;
  13194. esac
  13195. ;;
  13196. gnu*)
  13197. version_type=linux # correct to gnu/linux during the next big refactor
  13198. need_lib_prefix=no
  13199. need_version=no
  13200. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13201. soname_spec='${libname}${release}${shared_ext}$major'
  13202. shlibpath_var=LD_LIBRARY_PATH
  13203. shlibpath_overrides_runpath=no
  13204. hardcode_into_libs=yes
  13205. ;;
  13206. haiku*)
  13207. version_type=linux # correct to gnu/linux during the next big refactor
  13208. need_lib_prefix=no
  13209. need_version=no
  13210. dynamic_linker="$host_os runtime_loader"
  13211. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13212. soname_spec='${libname}${release}${shared_ext}$major'
  13213. shlibpath_var=LIBRARY_PATH
  13214. shlibpath_overrides_runpath=yes
  13215. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13216. hardcode_into_libs=yes
  13217. ;;
  13218. hpux9* | hpux10* | hpux11*)
  13219. # Give a soname corresponding to the major version so that dld.sl refuses to
  13220. # link against other versions.
  13221. version_type=sunos
  13222. need_lib_prefix=no
  13223. need_version=no
  13224. case $host_cpu in
  13225. ia64*)
  13226. shrext_cmds='.so'
  13227. hardcode_into_libs=yes
  13228. dynamic_linker="$host_os dld.so"
  13229. shlibpath_var=LD_LIBRARY_PATH
  13230. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13231. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13232. soname_spec='${libname}${release}${shared_ext}$major'
  13233. if test "X$HPUX_IA64_MODE" = X32; then
  13234. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13235. else
  13236. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13237. fi
  13238. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13239. ;;
  13240. hppa*64*)
  13241. shrext_cmds='.sl'
  13242. hardcode_into_libs=yes
  13243. dynamic_linker="$host_os dld.sl"
  13244. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13245. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13246. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13247. soname_spec='${libname}${release}${shared_ext}$major'
  13248. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13249. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13250. ;;
  13251. *)
  13252. shrext_cmds='.sl'
  13253. dynamic_linker="$host_os dld.sl"
  13254. shlibpath_var=SHLIB_PATH
  13255. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13256. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13257. soname_spec='${libname}${release}${shared_ext}$major'
  13258. ;;
  13259. esac
  13260. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13261. postinstall_cmds='chmod 555 $lib'
  13262. # or fails outright, so override atomically:
  13263. install_override_mode=555
  13264. ;;
  13265. interix[3-9]*)
  13266. version_type=linux # correct to gnu/linux during the next big refactor
  13267. need_lib_prefix=no
  13268. need_version=no
  13269. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13270. soname_spec='${libname}${release}${shared_ext}$major'
  13271. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13272. shlibpath_var=LD_LIBRARY_PATH
  13273. shlibpath_overrides_runpath=no
  13274. hardcode_into_libs=yes
  13275. ;;
  13276. irix5* | irix6* | nonstopux*)
  13277. case $host_os in
  13278. nonstopux*) version_type=nonstopux ;;
  13279. *)
  13280. if test "$lt_cv_prog_gnu_ld" = yes; then
  13281. version_type=linux # correct to gnu/linux during the next big refactor
  13282. else
  13283. version_type=irix
  13284. fi ;;
  13285. esac
  13286. need_lib_prefix=no
  13287. need_version=no
  13288. soname_spec='${libname}${release}${shared_ext}$major'
  13289. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13290. case $host_os in
  13291. irix5* | nonstopux*)
  13292. libsuff= shlibsuff=
  13293. ;;
  13294. *)
  13295. case $LD in # libtool.m4 will add one of these switches to LD
  13296. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13297. libsuff= shlibsuff= libmagic=32-bit;;
  13298. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13299. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13300. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13301. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13302. *) libsuff= shlibsuff= libmagic=never-match;;
  13303. esac
  13304. ;;
  13305. esac
  13306. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13307. shlibpath_overrides_runpath=no
  13308. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13309. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13310. hardcode_into_libs=yes
  13311. ;;
  13312. # No shared lib support for Linux oldld, aout, or coff.
  13313. linux*oldld* | linux*aout* | linux*coff*)
  13314. dynamic_linker=no
  13315. ;;
  13316. # This must be glibc/ELF.
  13317. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13318. version_type=linux # correct to gnu/linux during the next big refactor
  13319. need_lib_prefix=no
  13320. need_version=no
  13321. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13322. soname_spec='${libname}${release}${shared_ext}$major'
  13323. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13324. shlibpath_var=LD_LIBRARY_PATH
  13325. shlibpath_overrides_runpath=no
  13326. # Some binutils ld are patched to set DT_RUNPATH
  13327. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13328. $as_echo_n "(cached) " >&6
  13329. else
  13330. lt_cv_shlibpath_overrides_runpath=no
  13331. save_LDFLAGS=$LDFLAGS
  13332. save_libdir=$libdir
  13333. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13334. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13336. /* end confdefs.h. */
  13337. int
  13338. main ()
  13339. {
  13340. ;
  13341. return 0;
  13342. }
  13343. _ACEOF
  13344. if ac_fn_cxx_try_link "$LINENO"; then :
  13345. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13346. lt_cv_shlibpath_overrides_runpath=yes
  13347. fi
  13348. fi
  13349. rm -f core conftest.err conftest.$ac_objext \
  13350. conftest$ac_exeext conftest.$ac_ext
  13351. LDFLAGS=$save_LDFLAGS
  13352. libdir=$save_libdir
  13353. fi
  13354. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13355. # This implies no fast_install, which is unacceptable.
  13356. # Some rework will be needed to allow for fast_install
  13357. # before this can be enabled.
  13358. hardcode_into_libs=yes
  13359. # Append ld.so.conf contents to the search path
  13360. if test -f /etc/ld.so.conf; then
  13361. 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' ' '`
  13362. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13363. fi
  13364. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13365. # powerpc, because MkLinux only supported shared libraries with the
  13366. # GNU dynamic linker. Since this was broken with cross compilers,
  13367. # most powerpc-linux boxes support dynamic linking these days and
  13368. # people can always --disable-shared, the test was removed, and we
  13369. # assume the GNU/Linux dynamic linker is in use.
  13370. dynamic_linker='GNU/Linux ld.so'
  13371. ;;
  13372. netbsd*)
  13373. version_type=sunos
  13374. need_lib_prefix=no
  13375. need_version=no
  13376. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13377. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13378. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13379. dynamic_linker='NetBSD (a.out) ld.so'
  13380. else
  13381. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13382. soname_spec='${libname}${release}${shared_ext}$major'
  13383. dynamic_linker='NetBSD ld.elf_so'
  13384. fi
  13385. shlibpath_var=LD_LIBRARY_PATH
  13386. shlibpath_overrides_runpath=yes
  13387. hardcode_into_libs=yes
  13388. ;;
  13389. newsos6)
  13390. version_type=linux # correct to gnu/linux during the next big refactor
  13391. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13392. shlibpath_var=LD_LIBRARY_PATH
  13393. shlibpath_overrides_runpath=yes
  13394. ;;
  13395. *nto* | *qnx*)
  13396. version_type=qnx
  13397. need_lib_prefix=no
  13398. need_version=no
  13399. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13400. soname_spec='${libname}${release}${shared_ext}$major'
  13401. shlibpath_var=LD_LIBRARY_PATH
  13402. shlibpath_overrides_runpath=no
  13403. hardcode_into_libs=yes
  13404. dynamic_linker='ldqnx.so'
  13405. ;;
  13406. openbsd*)
  13407. version_type=sunos
  13408. sys_lib_dlsearch_path_spec="/usr/lib"
  13409. need_lib_prefix=no
  13410. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13411. case $host_os in
  13412. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13413. *) need_version=no ;;
  13414. esac
  13415. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13416. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13417. shlibpath_var=LD_LIBRARY_PATH
  13418. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13419. case $host_os in
  13420. openbsd2.[89] | openbsd2.[89].*)
  13421. shlibpath_overrides_runpath=no
  13422. ;;
  13423. *)
  13424. shlibpath_overrides_runpath=yes
  13425. ;;
  13426. esac
  13427. else
  13428. shlibpath_overrides_runpath=yes
  13429. fi
  13430. ;;
  13431. os2*)
  13432. libname_spec='$name'
  13433. shrext_cmds=".dll"
  13434. need_lib_prefix=no
  13435. library_names_spec='$libname${shared_ext} $libname.a'
  13436. dynamic_linker='OS/2 ld.exe'
  13437. shlibpath_var=LIBPATH
  13438. ;;
  13439. osf3* | osf4* | osf5*)
  13440. version_type=osf
  13441. need_lib_prefix=no
  13442. need_version=no
  13443. soname_spec='${libname}${release}${shared_ext}$major'
  13444. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13445. shlibpath_var=LD_LIBRARY_PATH
  13446. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13447. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13448. ;;
  13449. rdos*)
  13450. dynamic_linker=no
  13451. ;;
  13452. solaris*)
  13453. version_type=linux # correct to gnu/linux during the next big refactor
  13454. need_lib_prefix=no
  13455. need_version=no
  13456. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13457. soname_spec='${libname}${release}${shared_ext}$major'
  13458. shlibpath_var=LD_LIBRARY_PATH
  13459. shlibpath_overrides_runpath=yes
  13460. hardcode_into_libs=yes
  13461. # ldd complains unless libraries are executable
  13462. postinstall_cmds='chmod +x $lib'
  13463. ;;
  13464. sunos4*)
  13465. version_type=sunos
  13466. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13467. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13468. shlibpath_var=LD_LIBRARY_PATH
  13469. shlibpath_overrides_runpath=yes
  13470. if test "$with_gnu_ld" = yes; then
  13471. need_lib_prefix=no
  13472. fi
  13473. need_version=yes
  13474. ;;
  13475. sysv4 | sysv4.3*)
  13476. version_type=linux # correct to gnu/linux during the next big refactor
  13477. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13478. soname_spec='${libname}${release}${shared_ext}$major'
  13479. shlibpath_var=LD_LIBRARY_PATH
  13480. case $host_vendor in
  13481. sni)
  13482. shlibpath_overrides_runpath=no
  13483. need_lib_prefix=no
  13484. runpath_var=LD_RUN_PATH
  13485. ;;
  13486. siemens)
  13487. need_lib_prefix=no
  13488. ;;
  13489. motorola)
  13490. need_lib_prefix=no
  13491. need_version=no
  13492. shlibpath_overrides_runpath=no
  13493. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13494. ;;
  13495. esac
  13496. ;;
  13497. sysv4*MP*)
  13498. if test -d /usr/nec ;then
  13499. version_type=linux # correct to gnu/linux during the next big refactor
  13500. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13501. soname_spec='$libname${shared_ext}.$major'
  13502. shlibpath_var=LD_LIBRARY_PATH
  13503. fi
  13504. ;;
  13505. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13506. version_type=freebsd-elf
  13507. need_lib_prefix=no
  13508. need_version=no
  13509. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13510. soname_spec='${libname}${release}${shared_ext}$major'
  13511. shlibpath_var=LD_LIBRARY_PATH
  13512. shlibpath_overrides_runpath=yes
  13513. hardcode_into_libs=yes
  13514. if test "$with_gnu_ld" = yes; then
  13515. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13516. else
  13517. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13518. case $host_os in
  13519. sco3.2v5*)
  13520. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13521. ;;
  13522. esac
  13523. fi
  13524. sys_lib_dlsearch_path_spec='/usr/lib'
  13525. ;;
  13526. tpf*)
  13527. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13528. version_type=linux # correct to gnu/linux during the next big refactor
  13529. need_lib_prefix=no
  13530. need_version=no
  13531. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13532. shlibpath_var=LD_LIBRARY_PATH
  13533. shlibpath_overrides_runpath=no
  13534. hardcode_into_libs=yes
  13535. ;;
  13536. uts4*)
  13537. version_type=linux # correct to gnu/linux during the next big refactor
  13538. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13539. soname_spec='${libname}${release}${shared_ext}$major'
  13540. shlibpath_var=LD_LIBRARY_PATH
  13541. ;;
  13542. *)
  13543. dynamic_linker=no
  13544. ;;
  13545. esac
  13546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13547. $as_echo "$dynamic_linker" >&6; }
  13548. test "$dynamic_linker" = no && can_build_shared=no
  13549. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13550. if test "$GCC" = yes; then
  13551. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13552. fi
  13553. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13554. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13555. fi
  13556. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13557. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13558. fi
  13559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13560. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13561. hardcode_action_CXX=
  13562. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13563. test -n "$runpath_var_CXX" ||
  13564. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13565. # We can hardcode non-existent directories.
  13566. if test "$hardcode_direct_CXX" != no &&
  13567. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13568. # have to relink, otherwise we might link with an installed library
  13569. # when we should be linking with a yet-to-be-installed one
  13570. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13571. test "$hardcode_minus_L_CXX" != no; then
  13572. # Linking always hardcodes the temporary library directory.
  13573. hardcode_action_CXX=relink
  13574. else
  13575. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13576. hardcode_action_CXX=immediate
  13577. fi
  13578. else
  13579. # We cannot hardcode anything, or else we can only hardcode existing
  13580. # directories.
  13581. hardcode_action_CXX=unsupported
  13582. fi
  13583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13584. $as_echo "$hardcode_action_CXX" >&6; }
  13585. if test "$hardcode_action_CXX" = relink ||
  13586. test "$inherit_rpath_CXX" = yes; then
  13587. # Fast installation is not supported
  13588. enable_fast_install=no
  13589. elif test "$shlibpath_overrides_runpath" = yes ||
  13590. test "$enable_shared" = no; then
  13591. # Fast installation is not necessary
  13592. enable_fast_install=needless
  13593. fi
  13594. fi # test -n "$compiler"
  13595. CC=$lt_save_CC
  13596. CFLAGS=$lt_save_CFLAGS
  13597. LDCXX=$LD
  13598. LD=$lt_save_LD
  13599. GCC=$lt_save_GCC
  13600. with_gnu_ld=$lt_save_with_gnu_ld
  13601. lt_cv_path_LDCXX=$lt_cv_path_LD
  13602. lt_cv_path_LD=$lt_save_path_LD
  13603. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13604. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13605. fi # test "$_lt_caught_CXX_error" != yes
  13606. ac_ext=c
  13607. ac_cpp='$CPP $CPPFLAGS'
  13608. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13609. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13610. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13611. # Find a good install program. We prefer a C program (faster),
  13612. # so one script is as good as another. But avoid the broken or
  13613. # incompatible versions:
  13614. # SysV /etc/install, /usr/sbin/install
  13615. # SunOS /usr/etc/install
  13616. # IRIX /sbin/install
  13617. # AIX /bin/install
  13618. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13619. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13620. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13621. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13622. # OS/2's system install, which has a completely different semantic
  13623. # ./install, which can be erroneously created by make from ./install.sh.
  13624. # Reject install programs that cannot install multiple files.
  13625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13626. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13627. if test -z "$INSTALL"; then
  13628. if ${ac_cv_path_install+:} false; then :
  13629. $as_echo_n "(cached) " >&6
  13630. else
  13631. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13632. for as_dir in $PATH
  13633. do
  13634. IFS=$as_save_IFS
  13635. test -z "$as_dir" && as_dir=.
  13636. # Account for people who put trailing slashes in PATH elements.
  13637. case $as_dir/ in #((
  13638. ./ | .// | /[cC]/* | \
  13639. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13640. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13641. /usr/ucb/* ) ;;
  13642. *)
  13643. # OSF1 and SCO ODT 3.0 have their own names for install.
  13644. # Don't use installbsd from OSF since it installs stuff as root
  13645. # by default.
  13646. for ac_prog in ginstall scoinst install; do
  13647. for ac_exec_ext in '' $ac_executable_extensions; do
  13648. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13649. if test $ac_prog = install &&
  13650. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13651. # AIX install. It has an incompatible calling convention.
  13652. :
  13653. elif test $ac_prog = install &&
  13654. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13655. # program-specific install script used by HP pwplus--don't use.
  13656. :
  13657. else
  13658. rm -rf conftest.one conftest.two conftest.dir
  13659. echo one > conftest.one
  13660. echo two > conftest.two
  13661. mkdir conftest.dir
  13662. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13663. test -s conftest.one && test -s conftest.two &&
  13664. test -s conftest.dir/conftest.one &&
  13665. test -s conftest.dir/conftest.two
  13666. then
  13667. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13668. break 3
  13669. fi
  13670. fi
  13671. fi
  13672. done
  13673. done
  13674. ;;
  13675. esac
  13676. done
  13677. IFS=$as_save_IFS
  13678. rm -rf conftest.one conftest.two conftest.dir
  13679. fi
  13680. if test "${ac_cv_path_install+set}" = set; then
  13681. INSTALL=$ac_cv_path_install
  13682. else
  13683. # As a last resort, use the slow shell script. Don't cache a
  13684. # value for INSTALL within a source directory, because that will
  13685. # break other packages using the cache if that directory is
  13686. # removed, or if the value is a relative name.
  13687. INSTALL=$ac_install_sh
  13688. fi
  13689. fi
  13690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13691. $as_echo "$INSTALL" >&6; }
  13692. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13693. # It thinks the first close brace ends the variable substitution.
  13694. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13695. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13696. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13698. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13699. set x ${MAKE-make}
  13700. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13701. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13702. $as_echo_n "(cached) " >&6
  13703. else
  13704. cat >conftest.make <<\_ACEOF
  13705. SHELL = /bin/sh
  13706. all:
  13707. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13708. _ACEOF
  13709. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13710. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13711. *@@@%%%=?*=@@@%%%*)
  13712. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13713. *)
  13714. eval ac_cv_prog_make_${ac_make}_set=no;;
  13715. esac
  13716. rm -f conftest.make
  13717. fi
  13718. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13720. $as_echo "yes" >&6; }
  13721. SET_MAKE=
  13722. else
  13723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13724. $as_echo "no" >&6; }
  13725. SET_MAKE="MAKE=${MAKE-make}"
  13726. fi
  13727. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  13728. if test -n "$ac_tool_prefix"; then
  13729. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  13730. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  13731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13732. $as_echo_n "checking for $ac_word... " >&6; }
  13733. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  13734. $as_echo_n "(cached) " >&6
  13735. else
  13736. case $PKG_CONFIG in
  13737. [\\/]* | ?:[\\/]*)
  13738. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13739. ;;
  13740. *)
  13741. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13742. for as_dir in $PATH
  13743. do
  13744. IFS=$as_save_IFS
  13745. test -z "$as_dir" && as_dir=.
  13746. for ac_exec_ext in '' $ac_executable_extensions; do
  13747. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13748. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13749. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13750. break 2
  13751. fi
  13752. done
  13753. done
  13754. IFS=$as_save_IFS
  13755. ;;
  13756. esac
  13757. fi
  13758. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13759. if test -n "$PKG_CONFIG"; then
  13760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13761. $as_echo "$PKG_CONFIG" >&6; }
  13762. else
  13763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13764. $as_echo "no" >&6; }
  13765. fi
  13766. fi
  13767. if test -z "$ac_cv_path_PKG_CONFIG"; then
  13768. ac_pt_PKG_CONFIG=$PKG_CONFIG
  13769. # Extract the first word of "pkg-config", so it can be a program name with args.
  13770. set dummy pkg-config; ac_word=$2
  13771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13772. $as_echo_n "checking for $ac_word... " >&6; }
  13773. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  13774. $as_echo_n "(cached) " >&6
  13775. else
  13776. case $ac_pt_PKG_CONFIG in
  13777. [\\/]* | ?:[\\/]*)
  13778. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  13779. ;;
  13780. *)
  13781. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13782. for as_dir in $PATH
  13783. do
  13784. IFS=$as_save_IFS
  13785. test -z "$as_dir" && as_dir=.
  13786. for ac_exec_ext in '' $ac_executable_extensions; do
  13787. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13788. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13789. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13790. break 2
  13791. fi
  13792. done
  13793. done
  13794. IFS=$as_save_IFS
  13795. ;;
  13796. esac
  13797. fi
  13798. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  13799. if test -n "$ac_pt_PKG_CONFIG"; then
  13800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  13801. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  13802. else
  13803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13804. $as_echo "no" >&6; }
  13805. fi
  13806. if test "x$ac_pt_PKG_CONFIG" = x; then
  13807. PKG_CONFIG=""
  13808. else
  13809. case $cross_compiling:$ac_tool_warned in
  13810. yes:)
  13811. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13812. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13813. ac_tool_warned=yes ;;
  13814. esac
  13815. PKG_CONFIG=$ac_pt_PKG_CONFIG
  13816. fi
  13817. else
  13818. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  13819. fi
  13820. fi
  13821. if test -n "$PKG_CONFIG"; then
  13822. _pkg_min_version=0.9.0
  13823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  13824. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  13825. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  13826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13827. $as_echo "yes" >&6; }
  13828. else
  13829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13830. $as_echo "no" >&6; }
  13831. PKG_CONFIG=""
  13832. fi
  13833. fi
  13834. case "$host" in
  13835. *-*-mingw*)
  13836. # Except on msys, where make can't handle full pathnames (bug 1972)
  13837. ;;
  13838. *)
  13839. srcdir=`cd $srcdir && pwd`
  13840. ;;
  13841. esac
  13842. INCLUDE="-I$srcdir/include"
  13843. case "$host" in
  13844. *-*-nto-qnx*)
  13845. ;;
  13846. *)
  13847. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  13848. ;;
  13849. esac
  13850. if test x$srcdir != x.; then
  13851. INCLUDE="-Iinclude $INCLUDE"
  13852. elif test -d .git; then
  13853. as_fn_error $? "
  13854. *** When building from a git clone you should configure and build in a
  13855. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13856. " "$LINENO" 5
  13857. fi
  13858. BASE_CFLAGS=""
  13859. BASE_LDFLAGS=""
  13860. case "$host" in
  13861. *-*-cygwin*)
  13862. # We build SDL on cygwin without the UNIX emulation layer
  13863. save_CFLAGS="$CFLAGS"
  13864. have_no_cygwin=no
  13865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13866. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13867. CFLAGS="$save_CFLAGS -mno-cygwin"
  13868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13869. /* end confdefs.h. */
  13870. int
  13871. main ()
  13872. {
  13873. ;
  13874. return 0;
  13875. }
  13876. _ACEOF
  13877. if ac_fn_c_try_compile "$LINENO"; then :
  13878. have_no_cygwin=yes
  13879. fi
  13880. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13882. $as_echo "$have_no_cygwin" >&6; }
  13883. CFLAGS="$save_CFLAGS"
  13884. if test x$have_no_cygwin = xyes; then
  13885. BASE_CFLAGS="-mno-cygwin"
  13886. BASE_LDFLAGS="-mno-cygwin"
  13887. fi
  13888. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13889. ;;
  13890. esac
  13891. # Uncomment the following line if you want to force SDL and applications
  13892. # built with it to be compiled for a particular architecture.
  13893. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13894. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13895. # The default optimization for SDL is -O3 (Bug #31)
  13896. if test "x$orig_CFLAGS" = x; then
  13897. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13898. fi
  13899. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13900. BUILD_LDFLAGS="$LDFLAGS"
  13901. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13902. ## These are common directories to find software packages
  13903. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13904. # if test -d $path/include; then
  13905. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13906. # fi
  13907. # if test -d $path/lib; then
  13908. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13909. # fi
  13910. #done
  13911. SDL_CFLAGS="$BASE_CFLAGS"
  13912. SDL_LIBS="-lSDL2"
  13913. if test "x$BASE_LDFLAGS" != x; then
  13914. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  13915. fi
  13916. if test "x$EXTRA_CFLAGS" != x; then
  13917. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13918. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13919. fi
  13920. if test "x$EXTRA_LDFLAGS" != x; then
  13921. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13922. fi
  13923. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13924. find_lib()
  13925. {
  13926. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13927. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13928. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13929. if test "$cross_compiling" = yes; then
  13930. host_lib_path=""
  13931. else
  13932. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13933. fi
  13934. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13935. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13936. if test x$lib != x; then
  13937. echo $lib
  13938. return
  13939. fi
  13940. done
  13941. # Try again, this time allowing more than one version digit after the .so
  13942. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13943. lib=`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1`
  13944. if test x$lib != x; then
  13945. echo $lib
  13946. return
  13947. fi
  13948. done
  13949. }
  13950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13951. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13952. if ${ac_cv_c_const+:} false; then :
  13953. $as_echo_n "(cached) " >&6
  13954. else
  13955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13956. /* end confdefs.h. */
  13957. int
  13958. main ()
  13959. {
  13960. #ifndef __cplusplus
  13961. /* Ultrix mips cc rejects this sort of thing. */
  13962. typedef int charset[2];
  13963. const charset cs = { 0, 0 };
  13964. /* SunOS 4.1.1 cc rejects this. */
  13965. char const *const *pcpcc;
  13966. char **ppc;
  13967. /* NEC SVR4.0.2 mips cc rejects this. */
  13968. struct point {int x, y;};
  13969. static struct point const zero = {0,0};
  13970. /* AIX XL C 1.02.0.0 rejects this.
  13971. It does not let you subtract one const X* pointer from another in
  13972. an arm of an if-expression whose if-part is not a constant
  13973. expression */
  13974. const char *g = "string";
  13975. pcpcc = &g + (g ? g-g : 0);
  13976. /* HPUX 7.0 cc rejects these. */
  13977. ++pcpcc;
  13978. ppc = (char**) pcpcc;
  13979. pcpcc = (char const *const *) ppc;
  13980. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13981. char tx;
  13982. char *t = &tx;
  13983. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13984. *t++ = 0;
  13985. if (s) return 0;
  13986. }
  13987. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13988. int x[] = {25, 17};
  13989. const int *foo = &x[0];
  13990. ++foo;
  13991. }
  13992. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13993. typedef const int *iptr;
  13994. iptr p = 0;
  13995. ++p;
  13996. }
  13997. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13998. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13999. struct s { int j; const int *ap[3]; } bx;
  14000. struct s *b = &bx; b->j = 5;
  14001. }
  14002. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  14003. const int foo = 10;
  14004. if (!foo) return 0;
  14005. }
  14006. return !cs[0] && !zero.x;
  14007. #endif
  14008. ;
  14009. return 0;
  14010. }
  14011. _ACEOF
  14012. if ac_fn_c_try_compile "$LINENO"; then :
  14013. ac_cv_c_const=yes
  14014. else
  14015. ac_cv_c_const=no
  14016. fi
  14017. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14018. fi
  14019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  14020. $as_echo "$ac_cv_c_const" >&6; }
  14021. if test $ac_cv_c_const = no; then
  14022. $as_echo "#define const /**/" >>confdefs.h
  14023. fi
  14024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  14025. $as_echo_n "checking for inline... " >&6; }
  14026. if ${ac_cv_c_inline+:} false; then :
  14027. $as_echo_n "(cached) " >&6
  14028. else
  14029. ac_cv_c_inline=no
  14030. for ac_kw in inline __inline__ __inline; do
  14031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14032. /* end confdefs.h. */
  14033. #ifndef __cplusplus
  14034. typedef int foo_t;
  14035. static $ac_kw foo_t static_foo () {return 0; }
  14036. $ac_kw foo_t foo () {return 0; }
  14037. #endif
  14038. _ACEOF
  14039. if ac_fn_c_try_compile "$LINENO"; then :
  14040. ac_cv_c_inline=$ac_kw
  14041. fi
  14042. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14043. test "$ac_cv_c_inline" != no && break
  14044. done
  14045. fi
  14046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  14047. $as_echo "$ac_cv_c_inline" >&6; }
  14048. case $ac_cv_c_inline in
  14049. inline | yes) ;;
  14050. *)
  14051. case $ac_cv_c_inline in
  14052. no) ac_val=;;
  14053. *) ac_val=$ac_cv_c_inline;;
  14054. esac
  14055. cat >>confdefs.h <<_ACEOF
  14056. #ifndef __cplusplus
  14057. #define inline $ac_val
  14058. #endif
  14059. _ACEOF
  14060. ;;
  14061. esac
  14062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  14063. $as_echo_n "checking for working volatile... " >&6; }
  14064. if ${ac_cv_c_volatile+:} false; then :
  14065. $as_echo_n "(cached) " >&6
  14066. else
  14067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14068. /* end confdefs.h. */
  14069. int
  14070. main ()
  14071. {
  14072. volatile int x;
  14073. int * volatile y = (int *) 0;
  14074. return !x && !y;
  14075. ;
  14076. return 0;
  14077. }
  14078. _ACEOF
  14079. if ac_fn_c_try_compile "$LINENO"; then :
  14080. ac_cv_c_volatile=yes
  14081. else
  14082. ac_cv_c_volatile=no
  14083. fi
  14084. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14085. fi
  14086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  14087. $as_echo "$ac_cv_c_volatile" >&6; }
  14088. if test $ac_cv_c_volatile = no; then
  14089. $as_echo "#define volatile /**/" >>confdefs.h
  14090. fi
  14091. # Check whether --enable-assertions was given.
  14092. if test "${enable_assertions+set}" = set; then :
  14093. enableval=$enable_assertions;
  14094. else
  14095. enable_assertions=auto
  14096. fi
  14097. case "$enable_assertions" in
  14098. auto) # Use optimization settings to determine assertion level
  14099. ;;
  14100. disabled)
  14101. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  14102. ;;
  14103. release)
  14104. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  14105. ;;
  14106. enabled)
  14107. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  14108. ;;
  14109. paranoid)
  14110. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  14111. ;;
  14112. *)
  14113. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  14114. ;;
  14115. esac
  14116. # Check whether --enable-dependency-tracking was given.
  14117. if test "${enable_dependency_tracking+set}" = set; then :
  14118. enableval=$enable_dependency_tracking;
  14119. else
  14120. enable_dependency_tracking=yes
  14121. fi
  14122. if test x$enable_dependency_tracking = xyes; then
  14123. have_gcc_mmd_mt=no
  14124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  14125. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  14126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14127. /* end confdefs.h. */
  14128. #if !defined(__GNUC__) || __GNUC__ < 3
  14129. #error Dependency tracking requires GCC 3.0 or newer
  14130. #endif
  14131. int
  14132. main ()
  14133. {
  14134. ;
  14135. return 0;
  14136. }
  14137. _ACEOF
  14138. if ac_fn_c_try_compile "$LINENO"; then :
  14139. have_gcc_mmd_mt=yes
  14140. fi
  14141. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  14143. $as_echo "$have_gcc_mmd_mt" >&6; }
  14144. if test x$have_gcc_mmd_mt = xyes; then
  14145. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  14146. fi
  14147. fi
  14148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  14149. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  14150. have_no_undefined=no
  14151. case "$host" in
  14152. *-*-openbsd*)
  14153. ;;
  14154. *)
  14155. save_LDFLAGS="$LDFLAGS"
  14156. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  14157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14158. /* end confdefs.h. */
  14159. int
  14160. main ()
  14161. {
  14162. ;
  14163. return 0;
  14164. }
  14165. _ACEOF
  14166. if ac_fn_c_try_link "$LINENO"; then :
  14167. have_no_undefined=yes
  14168. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  14169. fi
  14170. rm -f core conftest.err conftest.$ac_objext \
  14171. conftest$ac_exeext conftest.$ac_ext
  14172. LDFLAGS="$save_LDFLAGS"
  14173. ;;
  14174. esac
  14175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  14176. $as_echo "$have_no_undefined" >&6; }
  14177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  14178. $as_echo_n "checking for linker option --dynamicbase... " >&6; }
  14179. have_dynamicbase=no
  14180. case "$host" in
  14181. *)
  14182. save_LDFLAGS="$LDFLAGS"
  14183. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  14184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14185. /* end confdefs.h. */
  14186. int
  14187. main ()
  14188. {
  14189. ;
  14190. return 0;
  14191. }
  14192. _ACEOF
  14193. if ac_fn_c_try_link "$LINENO"; then :
  14194. have_dynamicbase=yes
  14195. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  14196. fi
  14197. rm -f core conftest.err conftest.$ac_objext \
  14198. conftest$ac_exeext conftest.$ac_ext
  14199. LDFLAGS="$save_LDFLAGS"
  14200. ;;
  14201. esac
  14202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  14203. $as_echo "$have_dynamicbase" >&6; }
  14204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  14205. $as_echo_n "checking for linker option --nxcompat... " >&6; }
  14206. have_nxcompat=no
  14207. case "$host" in
  14208. *)
  14209. save_LDFLAGS="$LDFLAGS"
  14210. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  14211. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14212. /* end confdefs.h. */
  14213. int
  14214. main ()
  14215. {
  14216. ;
  14217. return 0;
  14218. }
  14219. _ACEOF
  14220. if ac_fn_c_try_link "$LINENO"; then :
  14221. have_nxcompat=yes
  14222. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  14223. fi
  14224. rm -f core conftest.err conftest.$ac_objext \
  14225. conftest$ac_exeext conftest.$ac_ext
  14226. LDFLAGS="$save_LDFLAGS"
  14227. ;;
  14228. esac
  14229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  14230. $as_echo "$have_nxcompat" >&6; }
  14231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  14232. $as_echo_n "checking for linker option --high-entropy-va... " >&6; }
  14233. have_high_entropy_va=no
  14234. case "$host" in
  14235. *)
  14236. save_LDFLAGS="$LDFLAGS"
  14237. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  14238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14239. /* end confdefs.h. */
  14240. int
  14241. main ()
  14242. {
  14243. ;
  14244. return 0;
  14245. }
  14246. _ACEOF
  14247. if ac_fn_c_try_link "$LINENO"; then :
  14248. have_high_entropy_va=yes
  14249. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  14250. fi
  14251. rm -f core conftest.err conftest.$ac_objext \
  14252. conftest$ac_exeext conftest.$ac_ext
  14253. LDFLAGS="$save_LDFLAGS"
  14254. ;;
  14255. esac
  14256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  14257. $as_echo "$have_high_entropy_va" >&6; }
  14258. # Check whether --enable-libc was given.
  14259. if test "${enable_libc+set}" = set; then :
  14260. enableval=$enable_libc;
  14261. else
  14262. enable_libc=yes
  14263. fi
  14264. if test x$enable_libc = xyes; then
  14265. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  14266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14267. $as_echo_n "checking for ANSI C header files... " >&6; }
  14268. if ${ac_cv_header_stdc+:} false; then :
  14269. $as_echo_n "(cached) " >&6
  14270. else
  14271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14272. /* end confdefs.h. */
  14273. #include <stdlib.h>
  14274. #include <stdarg.h>
  14275. #include <string.h>
  14276. #include <float.h>
  14277. int
  14278. main ()
  14279. {
  14280. ;
  14281. return 0;
  14282. }
  14283. _ACEOF
  14284. if ac_fn_c_try_compile "$LINENO"; then :
  14285. ac_cv_header_stdc=yes
  14286. else
  14287. ac_cv_header_stdc=no
  14288. fi
  14289. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14290. if test $ac_cv_header_stdc = yes; then
  14291. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14293. /* end confdefs.h. */
  14294. #include <string.h>
  14295. _ACEOF
  14296. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14297. $EGREP "memchr" >/dev/null 2>&1; then :
  14298. else
  14299. ac_cv_header_stdc=no
  14300. fi
  14301. rm -f conftest*
  14302. fi
  14303. if test $ac_cv_header_stdc = yes; then
  14304. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14306. /* end confdefs.h. */
  14307. #include <stdlib.h>
  14308. _ACEOF
  14309. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14310. $EGREP "free" >/dev/null 2>&1; then :
  14311. else
  14312. ac_cv_header_stdc=no
  14313. fi
  14314. rm -f conftest*
  14315. fi
  14316. if test $ac_cv_header_stdc = yes; then
  14317. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14318. if test "$cross_compiling" = yes; then :
  14319. :
  14320. else
  14321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14322. /* end confdefs.h. */
  14323. #include <ctype.h>
  14324. #include <stdlib.h>
  14325. #if ((' ' & 0x0FF) == 0x020)
  14326. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14327. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14328. #else
  14329. # define ISLOWER(c) \
  14330. (('a' <= (c) && (c) <= 'i') \
  14331. || ('j' <= (c) && (c) <= 'r') \
  14332. || ('s' <= (c) && (c) <= 'z'))
  14333. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14334. #endif
  14335. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14336. int
  14337. main ()
  14338. {
  14339. int i;
  14340. for (i = 0; i < 256; i++)
  14341. if (XOR (islower (i), ISLOWER (i))
  14342. || toupper (i) != TOUPPER (i))
  14343. return 2;
  14344. return 0;
  14345. }
  14346. _ACEOF
  14347. if ac_fn_c_try_run "$LINENO"; then :
  14348. else
  14349. ac_cv_header_stdc=no
  14350. fi
  14351. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14352. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14353. fi
  14354. fi
  14355. fi
  14356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14357. $as_echo "$ac_cv_header_stdc" >&6; }
  14358. if test $ac_cv_header_stdc = yes; then
  14359. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14360. fi
  14361. 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
  14362. do :
  14363. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14364. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14365. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14366. cat >>confdefs.h <<_ACEOF
  14367. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14368. _ACEOF
  14369. fi
  14370. done
  14371. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14372. if test "x$ac_cv_type_size_t" = xyes; then :
  14373. else
  14374. cat >>confdefs.h <<_ACEOF
  14375. #define size_t unsigned int
  14376. _ACEOF
  14377. fi
  14378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  14379. $as_echo_n "checking for M_PI in math.h... " >&6; }
  14380. if ${ac_cv_define_M_PI+:} false; then :
  14381. $as_echo_n "(cached) " >&6
  14382. else
  14383. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14384. /* end confdefs.h. */
  14385. #include <math.h>
  14386. #ifdef M_PI
  14387. YES_IS_DEFINED
  14388. #endif
  14389. _ACEOF
  14390. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14391. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  14392. ac_cv_define_M_PI=yes
  14393. else
  14394. ac_cv_define_M_PI=no
  14395. fi
  14396. rm -f conftest*
  14397. fi
  14398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14399. $as_echo "$ac_cv_define_M_PI" >&6; }
  14400. if test "$ac_cv_define_M_PI" = "yes" ; then
  14401. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14402. fi
  14403. case "$host" in
  14404. *-*-cygwin* | *-*-mingw*)
  14405. ;;
  14406. *)
  14407. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14408. # for constant arguments. Useless!
  14409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14410. $as_echo_n "checking for working alloca.h... " >&6; }
  14411. if ${ac_cv_working_alloca_h+:} false; then :
  14412. $as_echo_n "(cached) " >&6
  14413. else
  14414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14415. /* end confdefs.h. */
  14416. #include <alloca.h>
  14417. int
  14418. main ()
  14419. {
  14420. char *p = (char *) alloca (2 * sizeof (int));
  14421. if (p) return 0;
  14422. ;
  14423. return 0;
  14424. }
  14425. _ACEOF
  14426. if ac_fn_c_try_link "$LINENO"; then :
  14427. ac_cv_working_alloca_h=yes
  14428. else
  14429. ac_cv_working_alloca_h=no
  14430. fi
  14431. rm -f core conftest.err conftest.$ac_objext \
  14432. conftest$ac_exeext conftest.$ac_ext
  14433. fi
  14434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14435. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14436. if test $ac_cv_working_alloca_h = yes; then
  14437. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14438. fi
  14439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14440. $as_echo_n "checking for alloca... " >&6; }
  14441. if ${ac_cv_func_alloca_works+:} false; then :
  14442. $as_echo_n "(cached) " >&6
  14443. else
  14444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14445. /* end confdefs.h. */
  14446. #ifdef __GNUC__
  14447. # define alloca __builtin_alloca
  14448. #else
  14449. # ifdef _MSC_VER
  14450. # include <malloc.h>
  14451. # define alloca _alloca
  14452. # else
  14453. # ifdef HAVE_ALLOCA_H
  14454. # include <alloca.h>
  14455. # else
  14456. # ifdef _AIX
  14457. #pragma alloca
  14458. # else
  14459. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14460. void *alloca (size_t);
  14461. # endif
  14462. # endif
  14463. # endif
  14464. # endif
  14465. #endif
  14466. int
  14467. main ()
  14468. {
  14469. char *p = (char *) alloca (1);
  14470. if (p) return 0;
  14471. ;
  14472. return 0;
  14473. }
  14474. _ACEOF
  14475. if ac_fn_c_try_link "$LINENO"; then :
  14476. ac_cv_func_alloca_works=yes
  14477. else
  14478. ac_cv_func_alloca_works=no
  14479. fi
  14480. rm -f core conftest.err conftest.$ac_objext \
  14481. conftest$ac_exeext conftest.$ac_ext
  14482. fi
  14483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14484. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14485. if test $ac_cv_func_alloca_works = yes; then
  14486. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14487. else
  14488. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14489. # that cause trouble. Some versions do not even contain alloca or
  14490. # contain a buggy version. If you still want to use their alloca,
  14491. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14492. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14493. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14495. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14496. if ${ac_cv_os_cray+:} false; then :
  14497. $as_echo_n "(cached) " >&6
  14498. else
  14499. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14500. /* end confdefs.h. */
  14501. #if defined CRAY && ! defined CRAY2
  14502. webecray
  14503. #else
  14504. wenotbecray
  14505. #endif
  14506. _ACEOF
  14507. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14508. $EGREP "webecray" >/dev/null 2>&1; then :
  14509. ac_cv_os_cray=yes
  14510. else
  14511. ac_cv_os_cray=no
  14512. fi
  14513. rm -f conftest*
  14514. fi
  14515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14516. $as_echo "$ac_cv_os_cray" >&6; }
  14517. if test $ac_cv_os_cray = yes; then
  14518. for ac_func in _getb67 GETB67 getb67; do
  14519. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14520. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14521. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14522. cat >>confdefs.h <<_ACEOF
  14523. #define CRAY_STACKSEG_END $ac_func
  14524. _ACEOF
  14525. break
  14526. fi
  14527. done
  14528. fi
  14529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14530. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14531. if ${ac_cv_c_stack_direction+:} false; then :
  14532. $as_echo_n "(cached) " >&6
  14533. else
  14534. if test "$cross_compiling" = yes; then :
  14535. ac_cv_c_stack_direction=0
  14536. else
  14537. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14538. /* end confdefs.h. */
  14539. $ac_includes_default
  14540. int
  14541. find_stack_direction (int *addr, int depth)
  14542. {
  14543. int dir, dummy = 0;
  14544. if (! addr)
  14545. addr = &dummy;
  14546. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14547. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14548. return dir + dummy;
  14549. }
  14550. int
  14551. main (int argc, char **argv)
  14552. {
  14553. return find_stack_direction (0, argc + !argv + 20) < 0;
  14554. }
  14555. _ACEOF
  14556. if ac_fn_c_try_run "$LINENO"; then :
  14557. ac_cv_c_stack_direction=1
  14558. else
  14559. ac_cv_c_stack_direction=-1
  14560. fi
  14561. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14562. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14563. fi
  14564. fi
  14565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14566. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14567. cat >>confdefs.h <<_ACEOF
  14568. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14569. _ACEOF
  14570. fi
  14571. ;;
  14572. esac
  14573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14574. $as_echo_n "checking for working memcmp... " >&6; }
  14575. if ${ac_cv_func_memcmp_working+:} false; then :
  14576. $as_echo_n "(cached) " >&6
  14577. else
  14578. if test "$cross_compiling" = yes; then :
  14579. ac_cv_func_memcmp_working=no
  14580. else
  14581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14582. /* end confdefs.h. */
  14583. $ac_includes_default
  14584. int
  14585. main ()
  14586. {
  14587. /* Some versions of memcmp are not 8-bit clean. */
  14588. char c0 = '\100', c1 = '\200', c2 = '\201';
  14589. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14590. return 1;
  14591. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14592. or more and with at least one buffer not starting on a 4-byte boundary.
  14593. William Lewis provided this test program. */
  14594. {
  14595. char foo[21];
  14596. char bar[21];
  14597. int i;
  14598. for (i = 0; i < 4; i++)
  14599. {
  14600. char *a = foo + i;
  14601. char *b = bar + i;
  14602. strcpy (a, "--------01111111");
  14603. strcpy (b, "--------10000000");
  14604. if (memcmp (a, b, 16) >= 0)
  14605. return 1;
  14606. }
  14607. return 0;
  14608. }
  14609. ;
  14610. return 0;
  14611. }
  14612. _ACEOF
  14613. if ac_fn_c_try_run "$LINENO"; then :
  14614. ac_cv_func_memcmp_working=yes
  14615. else
  14616. ac_cv_func_memcmp_working=no
  14617. fi
  14618. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14619. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14620. fi
  14621. fi
  14622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14623. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14624. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14625. *" memcmp.$ac_objext "* ) ;;
  14626. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14627. ;;
  14628. esac
  14629. if test x$ac_cv_func_memcmp_working = xyes; then
  14630. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14631. fi
  14632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14633. $as_echo_n "checking for working strtod... " >&6; }
  14634. if ${ac_cv_func_strtod+:} false; then :
  14635. $as_echo_n "(cached) " >&6
  14636. else
  14637. if test "$cross_compiling" = yes; then :
  14638. ac_cv_func_strtod=no
  14639. else
  14640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14641. /* end confdefs.h. */
  14642. $ac_includes_default
  14643. #ifndef strtod
  14644. double strtod ();
  14645. #endif
  14646. int
  14647. main()
  14648. {
  14649. {
  14650. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14651. char *string = " +69";
  14652. char *term;
  14653. double value;
  14654. value = strtod (string, &term);
  14655. if (value != 69 || term != (string + 4))
  14656. return 1;
  14657. }
  14658. {
  14659. /* Under Solaris 2.4, strtod returns the wrong value for the
  14660. terminating character under some conditions. */
  14661. char *string = "NaN";
  14662. char *term;
  14663. strtod (string, &term);
  14664. if (term != string && *(term - 1) == 0)
  14665. return 1;
  14666. }
  14667. return 0;
  14668. }
  14669. _ACEOF
  14670. if ac_fn_c_try_run "$LINENO"; then :
  14671. ac_cv_func_strtod=yes
  14672. else
  14673. ac_cv_func_strtod=no
  14674. fi
  14675. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14676. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14677. fi
  14678. fi
  14679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14680. $as_echo "$ac_cv_func_strtod" >&6; }
  14681. if test $ac_cv_func_strtod = no; then
  14682. case " $LIBOBJS " in
  14683. *" strtod.$ac_objext "* ) ;;
  14684. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14685. ;;
  14686. esac
  14687. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14688. if test "x$ac_cv_func_pow" = xyes; then :
  14689. fi
  14690. if test $ac_cv_func_pow = no; then
  14691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14692. $as_echo_n "checking for pow in -lm... " >&6; }
  14693. if ${ac_cv_lib_m_pow+:} false; then :
  14694. $as_echo_n "(cached) " >&6
  14695. else
  14696. ac_check_lib_save_LIBS=$LIBS
  14697. LIBS="-lm $LIBS"
  14698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14699. /* end confdefs.h. */
  14700. /* Override any GCC internal prototype to avoid an error.
  14701. Use char because int might match the return type of a GCC
  14702. builtin and then its argument prototype would still apply. */
  14703. #ifdef __cplusplus
  14704. extern "C"
  14705. #endif
  14706. char pow ();
  14707. int
  14708. main ()
  14709. {
  14710. return pow ();
  14711. ;
  14712. return 0;
  14713. }
  14714. _ACEOF
  14715. if ac_fn_c_try_link "$LINENO"; then :
  14716. ac_cv_lib_m_pow=yes
  14717. else
  14718. ac_cv_lib_m_pow=no
  14719. fi
  14720. rm -f core conftest.err conftest.$ac_objext \
  14721. conftest$ac_exeext conftest.$ac_ext
  14722. LIBS=$ac_check_lib_save_LIBS
  14723. fi
  14724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14725. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14726. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14727. POW_LIB=-lm
  14728. else
  14729. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14730. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14731. fi
  14732. fi
  14733. fi
  14734. if test x$ac_cv_func_strtod = xyes; then
  14735. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14736. fi
  14737. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14738. if test "x$ac_cv_func_mprotect" = xyes; then :
  14739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14740. /* end confdefs.h. */
  14741. #include <sys/types.h>
  14742. #include <sys/mman.h>
  14743. int
  14744. main ()
  14745. {
  14746. ;
  14747. return 0;
  14748. }
  14749. _ACEOF
  14750. if ac_fn_c_try_compile "$LINENO"; then :
  14751. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14752. fi
  14753. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14754. fi
  14755. 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
  14756. do :
  14757. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14758. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14759. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14760. cat >>confdefs.h <<_ACEOF
  14761. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14762. _ACEOF
  14763. fi
  14764. done
  14765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14766. $as_echo_n "checking for pow in -lm... " >&6; }
  14767. if ${ac_cv_lib_m_pow+:} false; then :
  14768. $as_echo_n "(cached) " >&6
  14769. else
  14770. ac_check_lib_save_LIBS=$LIBS
  14771. LIBS="-lm $LIBS"
  14772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14773. /* end confdefs.h. */
  14774. /* Override any GCC internal prototype to avoid an error.
  14775. Use char because int might match the return type of a GCC
  14776. builtin and then its argument prototype would still apply. */
  14777. #ifdef __cplusplus
  14778. extern "C"
  14779. #endif
  14780. char pow ();
  14781. int
  14782. main ()
  14783. {
  14784. return pow ();
  14785. ;
  14786. return 0;
  14787. }
  14788. _ACEOF
  14789. if ac_fn_c_try_link "$LINENO"; then :
  14790. ac_cv_lib_m_pow=yes
  14791. else
  14792. ac_cv_lib_m_pow=no
  14793. fi
  14794. rm -f core conftest.err conftest.$ac_objext \
  14795. conftest$ac_exeext conftest.$ac_ext
  14796. LIBS=$ac_check_lib_save_LIBS
  14797. fi
  14798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14799. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14800. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14801. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14802. fi
  14803. 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
  14804. do :
  14805. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14806. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14807. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14808. cat >>confdefs.h <<_ACEOF
  14809. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14810. _ACEOF
  14811. fi
  14812. done
  14813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14814. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14815. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14816. $as_echo_n "(cached) " >&6
  14817. else
  14818. ac_check_lib_save_LIBS=$LIBS
  14819. LIBS="-liconv $LIBS"
  14820. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14821. /* end confdefs.h. */
  14822. /* Override any GCC internal prototype to avoid an error.
  14823. Use char because int might match the return type of a GCC
  14824. builtin and then its argument prototype would still apply. */
  14825. #ifdef __cplusplus
  14826. extern "C"
  14827. #endif
  14828. char iconv_open ();
  14829. int
  14830. main ()
  14831. {
  14832. return iconv_open ();
  14833. ;
  14834. return 0;
  14835. }
  14836. _ACEOF
  14837. if ac_fn_c_try_link "$LINENO"; then :
  14838. ac_cv_lib_iconv_iconv_open=yes
  14839. else
  14840. ac_cv_lib_iconv_iconv_open=no
  14841. fi
  14842. rm -f core conftest.err conftest.$ac_objext \
  14843. conftest$ac_exeext conftest.$ac_ext
  14844. LIBS=$ac_check_lib_save_LIBS
  14845. fi
  14846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14847. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14848. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14849. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14850. fi
  14851. for ac_func in iconv
  14852. do :
  14853. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14854. if test "x$ac_cv_func_iconv" = xyes; then :
  14855. cat >>confdefs.h <<_ACEOF
  14856. #define HAVE_ICONV 1
  14857. _ACEOF
  14858. fi
  14859. done
  14860. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14861. "
  14862. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14863. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14864. fi
  14865. for ac_header in libunwind.h
  14866. do :
  14867. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  14868. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  14869. cat >>confdefs.h <<_ACEOF
  14870. #define HAVE_LIBUNWIND_H 1
  14871. _ACEOF
  14872. fi
  14873. done
  14874. fi
  14875. # Check whether --enable-gcc-atomics was given.
  14876. if test "${enable_gcc_atomics+set}" = set; then :
  14877. enableval=$enable_gcc_atomics;
  14878. else
  14879. enable_gcc_atomics=yes
  14880. fi
  14881. if test x$enable_gcc_atomics = xyes; then
  14882. have_gcc_atomics=no
  14883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14884. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14885. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14886. /* end confdefs.h. */
  14887. int
  14888. main ()
  14889. {
  14890. int a;
  14891. void *x, *y, *z;
  14892. __sync_lock_test_and_set(&a, 4);
  14893. __sync_lock_test_and_set(&x, y);
  14894. __sync_fetch_and_add(&a, 1);
  14895. __sync_bool_compare_and_swap(&a, 5, 10);
  14896. __sync_bool_compare_and_swap(&x, y, z);
  14897. ;
  14898. return 0;
  14899. }
  14900. _ACEOF
  14901. if ac_fn_c_try_link "$LINENO"; then :
  14902. have_gcc_atomics=yes
  14903. fi
  14904. rm -f core conftest.err conftest.$ac_objext \
  14905. conftest$ac_exeext conftest.$ac_ext
  14906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14907. $as_echo "$have_gcc_atomics" >&6; }
  14908. if test x$have_gcc_atomics = xyes; then
  14909. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14910. else
  14911. # See if we have the minimum operation needed for GCC atomics
  14912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14913. /* end confdefs.h. */
  14914. int
  14915. main ()
  14916. {
  14917. int a;
  14918. __sync_lock_test_and_set(&a, 1);
  14919. __sync_lock_release(&a);
  14920. ;
  14921. return 0;
  14922. }
  14923. _ACEOF
  14924. if ac_fn_c_try_link "$LINENO"; then :
  14925. have_gcc_sync_lock_test_and_set=yes
  14926. fi
  14927. rm -f core conftest.err conftest.$ac_objext \
  14928. conftest$ac_exeext conftest.$ac_ext
  14929. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14930. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14931. fi
  14932. fi
  14933. fi
  14934. # Standard C sources
  14935. SOURCES="$SOURCES $srcdir/src/*.c"
  14936. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14937. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14938. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14939. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14940. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14941. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14942. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14943. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14944. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14945. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  14946. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14947. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14948. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14949. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14950. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  14951. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14952. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14953. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14954. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14955. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  14956. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  14957. # Check whether --enable-atomic was given.
  14958. if test "${enable_atomic+set}" = set; then :
  14959. enableval=$enable_atomic;
  14960. else
  14961. enable_atomic=yes
  14962. fi
  14963. if test x$enable_atomic != xyes; then
  14964. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14965. else
  14966. SUMMARY_modules="${SUMMARY_modules} atomic"
  14967. fi
  14968. # Check whether --enable-audio was given.
  14969. if test "${enable_audio+set}" = set; then :
  14970. enableval=$enable_audio;
  14971. else
  14972. enable_audio=yes
  14973. fi
  14974. if test x$enable_audio != xyes; then
  14975. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14976. else
  14977. SUMMARY_modules="${SUMMARY_modules} audio"
  14978. fi
  14979. # Check whether --enable-video was given.
  14980. if test "${enable_video+set}" = set; then :
  14981. enableval=$enable_video;
  14982. else
  14983. enable_video=yes
  14984. fi
  14985. if test x$enable_video != xyes; then
  14986. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14987. else
  14988. SUMMARY_modules="${SUMMARY_modules} video"
  14989. fi
  14990. # Check whether --enable-render was given.
  14991. if test "${enable_render+set}" = set; then :
  14992. enableval=$enable_render;
  14993. else
  14994. enable_render=yes
  14995. fi
  14996. if test x$enable_render != xyes; then
  14997. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14998. else
  14999. SUMMARY_modules="${SUMMARY_modules} render"
  15000. fi
  15001. # Check whether --enable-events was given.
  15002. if test "${enable_events+set}" = set; then :
  15003. enableval=$enable_events;
  15004. else
  15005. enable_events=yes
  15006. fi
  15007. if test x$enable_events != xyes; then
  15008. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  15009. else
  15010. SUMMARY_modules="${SUMMARY_modules} events"
  15011. fi
  15012. # Check whether --enable-joystick was given.
  15013. if test "${enable_joystick+set}" = set; then :
  15014. enableval=$enable_joystick;
  15015. else
  15016. enable_joystick=yes
  15017. fi
  15018. if test x$enable_joystick != xyes; then
  15019. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  15020. else
  15021. SUMMARY_modules="${SUMMARY_modules} joystick"
  15022. fi
  15023. # Check whether --enable-haptic was given.
  15024. if test "${enable_haptic+set}" = set; then :
  15025. enableval=$enable_haptic;
  15026. else
  15027. enable_haptic=yes
  15028. fi
  15029. if test x$enable_haptic != xyes; then
  15030. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  15031. else
  15032. SUMMARY_modules="${SUMMARY_modules} haptic"
  15033. fi
  15034. # Check whether --enable-sensor was given.
  15035. if test "${enable_sensor+set}" = set; then :
  15036. enableval=$enable_sensor;
  15037. else
  15038. enable_sensor=yes
  15039. fi
  15040. if test x$enable_sensor != xyes; then
  15041. $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  15042. else
  15043. SUMMARY_modules="${SUMMARY_modules} sensor"
  15044. fi
  15045. # Check whether --enable-power was given.
  15046. if test "${enable_power+set}" = set; then :
  15047. enableval=$enable_power;
  15048. else
  15049. enable_power=yes
  15050. fi
  15051. if test x$enable_power != xyes; then
  15052. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  15053. else
  15054. SUMMARY_modules="${SUMMARY_modules} power"
  15055. fi
  15056. # Check whether --enable-filesystem was given.
  15057. if test "${enable_filesystem+set}" = set; then :
  15058. enableval=$enable_filesystem;
  15059. else
  15060. enable_filesystem=yes
  15061. fi
  15062. if test x$enable_filesystem != xyes; then
  15063. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  15064. else
  15065. SUMMARY_modules="${SUMMARY_modules} filesystem"
  15066. fi
  15067. # Check whether --enable-threads was given.
  15068. if test "${enable_threads+set}" = set; then :
  15069. enableval=$enable_threads;
  15070. else
  15071. enable_threads=yes
  15072. fi
  15073. if test x$enable_threads != xyes; then
  15074. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  15075. else
  15076. SUMMARY_modules="${SUMMARY_modules} threads"
  15077. fi
  15078. # Check whether --enable-timers was given.
  15079. if test "${enable_timers+set}" = set; then :
  15080. enableval=$enable_timers;
  15081. else
  15082. enable_timers=yes
  15083. fi
  15084. if test x$enable_timers != xyes; then
  15085. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  15086. else
  15087. SUMMARY_modules="${SUMMARY_modules} timers"
  15088. fi
  15089. # Check whether --enable-file was given.
  15090. if test "${enable_file+set}" = set; then :
  15091. enableval=$enable_file;
  15092. else
  15093. enable_file=yes
  15094. fi
  15095. if test x$enable_file != xyes; then
  15096. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  15097. else
  15098. SUMMARY_modules="${SUMMARY_modules} file"
  15099. fi
  15100. # Check whether --enable-loadso was given.
  15101. if test "${enable_loadso+set}" = set; then :
  15102. enableval=$enable_loadso;
  15103. else
  15104. enable_loadso=yes
  15105. fi
  15106. if test x$enable_loadso != xyes; then
  15107. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  15108. else
  15109. SUMMARY_modules="${SUMMARY_modules} loadso"
  15110. fi
  15111. # Check whether --enable-cpuinfo was given.
  15112. if test "${enable_cpuinfo+set}" = set; then :
  15113. enableval=$enable_cpuinfo;
  15114. else
  15115. enable_cpuinfo=yes
  15116. fi
  15117. if test x$enable_cpuinfo != xyes; then
  15118. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  15119. else
  15120. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  15121. fi
  15122. # Check whether --enable-assembly was given.
  15123. if test "${enable_assembly+set}" = set; then :
  15124. enableval=$enable_assembly;
  15125. else
  15126. enable_assembly=yes
  15127. fi
  15128. if test x$enable_assembly = xyes; then
  15129. SUMMARY_modules="${SUMMARY_modules} assembly"
  15130. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  15131. # Make sure that we don't generate floating point code that would
  15132. # cause illegal instruction exceptions on older processors
  15133. case "$host" in
  15134. *-*-darwin*)
  15135. # Don't need to worry about Apple hardware, it's all SSE capable
  15136. default_ssemath=yes
  15137. ;;
  15138. *64-*-*)
  15139. # x86 64-bit architectures all have SSE instructions
  15140. default_ssemath=yes
  15141. ;;
  15142. *)
  15143. default_ssemath=no
  15144. ;;
  15145. esac
  15146. # Check whether --enable-ssemath was given.
  15147. if test "${enable_ssemath+set}" = set; then :
  15148. enableval=$enable_ssemath;
  15149. else
  15150. enable_ssemath=$default_ssemath
  15151. fi
  15152. if test x$enable_ssemath = xno; then
  15153. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  15154. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  15155. fi
  15156. fi
  15157. # Check whether --enable-mmx was given.
  15158. if test "${enable_mmx+set}" = set; then :
  15159. enableval=$enable_mmx;
  15160. else
  15161. enable_mmx=yes
  15162. fi
  15163. if test x$enable_mmx = xyes; then
  15164. save_CFLAGS="$CFLAGS"
  15165. have_gcc_mmx=no
  15166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  15167. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  15168. mmx_CFLAGS="-mmmx"
  15169. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  15170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15171. /* end confdefs.h. */
  15172. #ifdef __MINGW32__
  15173. #include <_mingw.h>
  15174. #ifdef __MINGW64_VERSION_MAJOR
  15175. #include <intrin.h>
  15176. #else
  15177. #include <mmintrin.h>
  15178. #endif
  15179. #else
  15180. #include <mmintrin.h>
  15181. #endif
  15182. #ifndef __MMX__
  15183. #error Assembler CPP flag not enabled
  15184. #endif
  15185. int
  15186. main ()
  15187. {
  15188. ;
  15189. return 0;
  15190. }
  15191. _ACEOF
  15192. if ac_fn_c_try_compile "$LINENO"; then :
  15193. have_gcc_mmx=yes
  15194. fi
  15195. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  15197. $as_echo "$have_gcc_mmx" >&6; }
  15198. CFLAGS="$save_CFLAGS"
  15199. if test x$have_gcc_mmx = xyes; then
  15200. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  15201. SUMMARY_math="${SUMMARY_math} mmx"
  15202. fi
  15203. fi
  15204. # Check whether --enable-3dnow was given.
  15205. if test "${enable_3dnow+set}" = set; then :
  15206. enableval=$enable_3dnow;
  15207. else
  15208. enable_3dnow=yes
  15209. fi
  15210. if test x$enable_3dnow = xyes; then
  15211. save_CFLAGS="$CFLAGS"
  15212. have_gcc_3dnow=no
  15213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  15214. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  15215. amd3dnow_CFLAGS="-m3dnow"
  15216. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  15217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15218. /* end confdefs.h. */
  15219. #include <mm3dnow.h>
  15220. #ifndef __3dNOW__
  15221. #error Assembler CPP flag not enabled
  15222. #endif
  15223. int
  15224. main ()
  15225. {
  15226. void *p = 0;
  15227. _m_prefetch(p);
  15228. ;
  15229. return 0;
  15230. }
  15231. _ACEOF
  15232. if ac_fn_c_try_link "$LINENO"; then :
  15233. have_gcc_3dnow=yes
  15234. fi
  15235. rm -f core conftest.err conftest.$ac_objext \
  15236. conftest$ac_exeext conftest.$ac_ext
  15237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  15238. $as_echo "$have_gcc_3dnow" >&6; }
  15239. CFLAGS="$save_CFLAGS"
  15240. if test x$have_gcc_3dnow = xyes; then
  15241. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  15242. SUMMARY_math="${SUMMARY_math} 3dnow"
  15243. fi
  15244. fi
  15245. # Check whether --enable-sse was given.
  15246. if test "${enable_sse+set}" = set; then :
  15247. enableval=$enable_sse;
  15248. else
  15249. enable_sse=yes
  15250. fi
  15251. if test x$enable_sse = xyes; then
  15252. save_CFLAGS="$CFLAGS"
  15253. have_gcc_sse=no
  15254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  15255. $as_echo_n "checking for GCC -msse option... " >&6; }
  15256. sse_CFLAGS="-msse"
  15257. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  15258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15259. /* end confdefs.h. */
  15260. #ifdef __MINGW32__
  15261. #include <_mingw.h>
  15262. #ifdef __MINGW64_VERSION_MAJOR
  15263. #include <intrin.h>
  15264. #else
  15265. #include <xmmintrin.h>
  15266. #endif
  15267. #else
  15268. #include <xmmintrin.h>
  15269. #endif
  15270. #ifndef __SSE__
  15271. #error Assembler CPP flag not enabled
  15272. #endif
  15273. int
  15274. main ()
  15275. {
  15276. ;
  15277. return 0;
  15278. }
  15279. _ACEOF
  15280. if ac_fn_c_try_compile "$LINENO"; then :
  15281. have_gcc_sse=yes
  15282. fi
  15283. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  15285. $as_echo "$have_gcc_sse" >&6; }
  15286. CFLAGS="$save_CFLAGS"
  15287. if test x$have_gcc_sse = xyes; then
  15288. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  15289. SUMMARY_math="${SUMMARY_math} sse"
  15290. fi
  15291. fi
  15292. # Check whether --enable-sse2 was given.
  15293. if test "${enable_sse2+set}" = set; then :
  15294. enableval=$enable_sse2;
  15295. else
  15296. enable_sse2=$default_ssemath
  15297. fi
  15298. if test x$enable_sse2 = xyes; then
  15299. save_CFLAGS="$CFLAGS"
  15300. have_gcc_sse2=no
  15301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  15302. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  15303. sse2_CFLAGS="-msse2"
  15304. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  15305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15306. /* end confdefs.h. */
  15307. #ifdef __MINGW32__
  15308. #include <_mingw.h>
  15309. #ifdef __MINGW64_VERSION_MAJOR
  15310. #include <intrin.h>
  15311. #else
  15312. #include <emmintrin.h>
  15313. #endif
  15314. #else
  15315. #include <emmintrin.h>
  15316. #endif
  15317. #ifndef __SSE2__
  15318. #error Assembler CPP flag not enabled
  15319. #endif
  15320. int
  15321. main ()
  15322. {
  15323. ;
  15324. return 0;
  15325. }
  15326. _ACEOF
  15327. if ac_fn_c_try_compile "$LINENO"; then :
  15328. have_gcc_sse2=yes
  15329. fi
  15330. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  15332. $as_echo "$have_gcc_sse2" >&6; }
  15333. CFLAGS="$save_CFLAGS"
  15334. if test x$have_gcc_sse2 = xyes; then
  15335. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  15336. SUMMARY_math="${SUMMARY_math} sse2"
  15337. fi
  15338. fi
  15339. # Check whether --enable-sse3 was given.
  15340. if test "${enable_sse3+set}" = set; then :
  15341. enableval=$enable_sse3;
  15342. else
  15343. enable_sse3=$default_ssemath
  15344. fi
  15345. if test x$enable_sse3 = xyes; then
  15346. save_CFLAGS="$CFLAGS"
  15347. have_gcc_sse3=no
  15348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  15349. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  15350. sse3_CFLAGS="-msse3"
  15351. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  15352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15353. /* end confdefs.h. */
  15354. #ifdef __MINGW32__
  15355. #include <_mingw.h>
  15356. #ifdef __MINGW64_VERSION_MAJOR
  15357. #include <intrin.h>
  15358. #else
  15359. #include <pmmintrin.h>
  15360. #endif
  15361. #else
  15362. #include <pmmintrin.h>
  15363. #endif
  15364. #ifndef __SSE2__
  15365. #error Assembler CPP flag not enabled
  15366. #endif
  15367. int
  15368. main ()
  15369. {
  15370. ;
  15371. return 0;
  15372. }
  15373. _ACEOF
  15374. if ac_fn_c_try_compile "$LINENO"; then :
  15375. have_gcc_sse3=yes
  15376. fi
  15377. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  15379. $as_echo "$have_gcc_sse3" >&6; }
  15380. CFLAGS="$save_CFLAGS"
  15381. if test x$have_gcc_sse3 = xyes; then
  15382. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  15383. SUMMARY_math="${SUMMARY_math} sse3"
  15384. fi
  15385. fi
  15386. ac_fn_c_check_header_mongrel "$LINENO" "immintrin.h" "ac_cv_header_immintrin_h" "$ac_includes_default"
  15387. if test "x$ac_cv_header_immintrin_h" = xyes; then :
  15388. have_immintrin_h_hdr=yes
  15389. else
  15390. have_immintrin_h_hdr=no
  15391. fi
  15392. if test x$have_immintrin_h_hdr = xyes; then
  15393. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  15394. fi
  15395. # Check whether --enable-altivec was given.
  15396. if test "${enable_altivec+set}" = set; then :
  15397. enableval=$enable_altivec;
  15398. else
  15399. enable_altivec=yes
  15400. fi
  15401. if test x$enable_altivec = xyes; then
  15402. save_CFLAGS="$CFLAGS"
  15403. have_gcc_altivec=no
  15404. have_altivec_h_hdr=no
  15405. altivec_CFLAGS="-maltivec"
  15406. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  15408. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  15409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15410. /* end confdefs.h. */
  15411. #include <altivec.h>
  15412. vector unsigned int vzero() {
  15413. return vec_splat_u32(0);
  15414. }
  15415. int
  15416. main ()
  15417. {
  15418. ;
  15419. return 0;
  15420. }
  15421. _ACEOF
  15422. if ac_fn_c_try_compile "$LINENO"; then :
  15423. have_gcc_altivec=yes
  15424. have_altivec_h_hdr=yes
  15425. fi
  15426. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15428. $as_echo "$have_gcc_altivec" >&6; }
  15429. if test x$have_gcc_altivec = xno; then
  15430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  15431. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  15432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15433. /* end confdefs.h. */
  15434. vector unsigned int vzero() {
  15435. return vec_splat_u32(0);
  15436. }
  15437. int
  15438. main ()
  15439. {
  15440. ;
  15441. return 0;
  15442. }
  15443. _ACEOF
  15444. if ac_fn_c_try_compile "$LINENO"; then :
  15445. have_gcc_altivec=yes
  15446. fi
  15447. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15449. $as_echo "$have_gcc_altivec" >&6; }
  15450. fi
  15451. if test x$have_gcc_altivec = xno; then
  15452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  15453. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  15454. altivec_CFLAGS="-faltivec"
  15455. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15457. /* end confdefs.h. */
  15458. #include <altivec.h>
  15459. vector unsigned int vzero() {
  15460. return vec_splat_u32(0);
  15461. }
  15462. int
  15463. main ()
  15464. {
  15465. ;
  15466. return 0;
  15467. }
  15468. _ACEOF
  15469. if ac_fn_c_try_compile "$LINENO"; then :
  15470. have_gcc_altivec=yes
  15471. have_altivec_h_hdr=yes
  15472. fi
  15473. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15475. $as_echo "$have_gcc_altivec" >&6; }
  15476. fi
  15477. if test x$have_gcc_altivec = xno; then
  15478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  15479. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  15480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15481. /* end confdefs.h. */
  15482. vector unsigned int vzero() {
  15483. return vec_splat_u32(0);
  15484. }
  15485. int
  15486. main ()
  15487. {
  15488. ;
  15489. return 0;
  15490. }
  15491. _ACEOF
  15492. if ac_fn_c_try_compile "$LINENO"; then :
  15493. have_gcc_altivec=yes
  15494. fi
  15495. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15497. $as_echo "$have_gcc_altivec" >&6; }
  15498. fi
  15499. CFLAGS="$save_CFLAGS"
  15500. if test x$have_gcc_altivec = xyes; then
  15501. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15502. if test x$have_altivec_h_hdr = xyes; then
  15503. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15504. fi
  15505. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15506. SUMMARY_math="${SUMMARY_math} altivec"
  15507. fi
  15508. fi
  15509. fi
  15510. CheckOSS()
  15511. {
  15512. # Check whether --enable-oss was given.
  15513. if test "${enable_oss+set}" = set; then :
  15514. enableval=$enable_oss;
  15515. else
  15516. enable_oss=maybe
  15517. fi
  15518. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15519. # use sndio instead. So on there, we default to disabled. You can force
  15520. # it on if you really want, though.
  15521. if test x$enable_oss = xmaybe; then
  15522. enable_oss=yes
  15523. case "$host" in
  15524. *-*-openbsd*)
  15525. enable_oss=no;;
  15526. esac
  15527. fi
  15528. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15530. $as_echo_n "checking for OSS audio support... " >&6; }
  15531. have_oss=no
  15532. if test x$have_oss != xyes; then
  15533. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15534. /* end confdefs.h. */
  15535. #include <sys/soundcard.h>
  15536. int
  15537. main ()
  15538. {
  15539. int arg = SNDCTL_DSP_SETFRAGMENT;
  15540. ;
  15541. return 0;
  15542. }
  15543. _ACEOF
  15544. if ac_fn_c_try_compile "$LINENO"; then :
  15545. have_oss=yes
  15546. fi
  15547. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15548. fi
  15549. if test x$have_oss != xyes; then
  15550. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15551. /* end confdefs.h. */
  15552. #include <soundcard.h>
  15553. int
  15554. main ()
  15555. {
  15556. int arg = SNDCTL_DSP_SETFRAGMENT;
  15557. ;
  15558. return 0;
  15559. }
  15560. _ACEOF
  15561. if ac_fn_c_try_compile "$LINENO"; then :
  15562. have_oss=yes
  15563. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15564. fi
  15565. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15566. fi
  15567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15568. $as_echo "$have_oss" >&6; }
  15569. if test x$have_oss = xyes; then
  15570. SUMMARY_audio="${SUMMARY_audio} oss"
  15571. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15572. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15573. have_audio=yes
  15574. # We may need to link with ossaudio emulation library
  15575. case "$host" in
  15576. *-*-openbsd*|*-*-netbsd*)
  15577. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15578. esac
  15579. fi
  15580. fi
  15581. }
  15582. CheckALSA()
  15583. {
  15584. # Check whether --enable-alsa was given.
  15585. if test "${enable_alsa+set}" = set; then :
  15586. enableval=$enable_alsa;
  15587. else
  15588. enable_alsa=yes
  15589. fi
  15590. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15591. alsa_save_CFLAGS="$CFLAGS"
  15592. alsa_save_LDFLAGS="$LDFLAGS"
  15593. alsa_save_LIBS="$LIBS"
  15594. alsa_found=yes
  15595. # Check whether --with-alsa-prefix was given.
  15596. if test "${with_alsa_prefix+set}" = set; then :
  15597. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15598. else
  15599. alsa_prefix=""
  15600. fi
  15601. # Check whether --with-alsa-inc-prefix was given.
  15602. if test "${with_alsa_inc_prefix+set}" = set; then :
  15603. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15604. else
  15605. alsa_inc_prefix=""
  15606. fi
  15607. # Check whether --enable-alsatest was given.
  15608. if test "${enable_alsatest+set}" = set; then :
  15609. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15610. else
  15611. enable_alsatest=yes
  15612. fi
  15613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15614. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15615. if test "$alsa_inc_prefix" != "" ; then
  15616. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15617. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15618. fi
  15619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15620. $as_echo "$ALSA_CFLAGS" >&6; }
  15621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15622. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15623. if test "$alsa_prefix" != "" ; then
  15624. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15625. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15626. fi
  15627. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15628. LIBS=`echo $LIBS | sed 's/-lm//'`
  15629. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15630. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15631. LIBS=`echo $LIBS | sed 's/ //'`
  15632. LIBS="$ALSA_LIBS $LIBS"
  15633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15634. $as_echo "$ALSA_LIBS" >&6; }
  15635. min_alsa_version=1.0.11
  15636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15637. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15638. no_alsa=""
  15639. alsa_min_major_version=`echo $min_alsa_version | \
  15640. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15641. alsa_min_minor_version=`echo $min_alsa_version | \
  15642. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15643. alsa_min_micro_version=`echo $min_alsa_version | \
  15644. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15645. ac_ext=c
  15646. ac_cpp='$CPP $CPPFLAGS'
  15647. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15648. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15649. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15651. /* end confdefs.h. */
  15652. #include <alsa/asoundlib.h>
  15653. int
  15654. main ()
  15655. {
  15656. /* ensure backward compatibility */
  15657. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15658. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15659. #endif
  15660. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15661. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15662. #endif
  15663. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15664. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15665. #endif
  15666. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15667. exit(0);
  15668. # else
  15669. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15670. # error not present
  15671. # endif
  15672. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15673. exit(0);
  15674. # else
  15675. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15676. # error not present
  15677. # endif
  15678. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15679. # error not present
  15680. # endif
  15681. # endif
  15682. # endif
  15683. exit(0);
  15684. ;
  15685. return 0;
  15686. }
  15687. _ACEOF
  15688. if ac_fn_c_try_compile "$LINENO"; then :
  15689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15690. $as_echo "found." >&6; }
  15691. else
  15692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15693. $as_echo "not present." >&6; }
  15694. alsa_found=no
  15695. fi
  15696. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15697. ac_ext=c
  15698. ac_cpp='$CPP $CPPFLAGS'
  15699. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15700. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15701. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15702. if test "x$enable_alsatest" = "xyes"; then
  15703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15704. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15705. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15706. $as_echo_n "(cached) " >&6
  15707. else
  15708. ac_check_lib_save_LIBS=$LIBS
  15709. LIBS="-lasound $LIBS"
  15710. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15711. /* end confdefs.h. */
  15712. /* Override any GCC internal prototype to avoid an error.
  15713. Use char because int might match the return type of a GCC
  15714. builtin and then its argument prototype would still apply. */
  15715. #ifdef __cplusplus
  15716. extern "C"
  15717. #endif
  15718. char snd_ctl_open ();
  15719. int
  15720. main ()
  15721. {
  15722. return snd_ctl_open ();
  15723. ;
  15724. return 0;
  15725. }
  15726. _ACEOF
  15727. if ac_fn_c_try_link "$LINENO"; then :
  15728. ac_cv_lib_asound_snd_ctl_open=yes
  15729. else
  15730. ac_cv_lib_asound_snd_ctl_open=no
  15731. fi
  15732. rm -f core conftest.err conftest.$ac_objext \
  15733. conftest$ac_exeext conftest.$ac_ext
  15734. LIBS=$ac_check_lib_save_LIBS
  15735. fi
  15736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15737. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15738. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15739. cat >>confdefs.h <<_ACEOF
  15740. #define HAVE_LIBASOUND 1
  15741. _ACEOF
  15742. LIBS="-lasound $LIBS"
  15743. else
  15744. alsa_found=no
  15745. fi
  15746. fi
  15747. if test "x$alsa_found" = "xyes" ; then
  15748. have_alsa=yes
  15749. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15750. LIBS=`echo $LIBS | sed 's/ //'`
  15751. LIBS="-lasound $LIBS"
  15752. fi
  15753. if test "x$alsa_found" = "xno" ; then
  15754. have_alsa=no
  15755. CFLAGS="$alsa_save_CFLAGS"
  15756. LDFLAGS="$alsa_save_LDFLAGS"
  15757. LIBS="$alsa_save_LIBS"
  15758. ALSA_CFLAGS=""
  15759. ALSA_LIBS=""
  15760. fi
  15761. # Restore all flags from before the ALSA detection runs
  15762. CFLAGS="$alsa_save_CFLAGS"
  15763. LDFLAGS="$alsa_save_LDFLAGS"
  15764. LIBS="$alsa_save_LIBS"
  15765. if test x$have_alsa = xyes; then
  15766. # Check whether --enable-alsa-shared was given.
  15767. if test "${enable_alsa_shared+set}" = set; then :
  15768. enableval=$enable_alsa_shared;
  15769. else
  15770. enable_alsa_shared=yes
  15771. fi
  15772. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15773. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15774. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15775. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15776. if test x$have_loadso != xyes && \
  15777. test x$enable_alsa_shared = xyes; then
  15778. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15779. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15780. fi
  15781. if test x$have_loadso = xyes && \
  15782. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15783. echo "-- dynamic libasound -> $alsa_lib"
  15784. cat >>confdefs.h <<_ACEOF
  15785. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15786. _ACEOF
  15787. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15788. else
  15789. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15790. SUMMARY_audio="${SUMMARY_audio} alsa"
  15791. fi
  15792. have_audio=yes
  15793. fi
  15794. fi
  15795. }
  15796. CheckJACK()
  15797. {
  15798. # Check whether --enable-jack was given.
  15799. if test "${enable_jack+set}" = set; then :
  15800. enableval=$enable_jack;
  15801. else
  15802. enable_jack=yes
  15803. fi
  15804. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  15805. pkg_failed=no
  15806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  15807. $as_echo_n "checking for jack >= 0.125... " >&6; }
  15808. if test -n "$JACK_CFLAGS"; then
  15809. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  15810. elif test -n "$PKG_CONFIG"; then
  15811. if test -n "$PKG_CONFIG" && \
  15812. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15813. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15814. ac_status=$?
  15815. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15816. test $ac_status = 0; }; then
  15817. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  15818. test "x$?" != "x0" && pkg_failed=yes
  15819. else
  15820. pkg_failed=yes
  15821. fi
  15822. else
  15823. pkg_failed=untried
  15824. fi
  15825. if test -n "$JACK_LIBS"; then
  15826. pkg_cv_JACK_LIBS="$JACK_LIBS"
  15827. elif test -n "$PKG_CONFIG"; then
  15828. if test -n "$PKG_CONFIG" && \
  15829. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15830. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15831. ac_status=$?
  15832. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15833. test $ac_status = 0; }; then
  15834. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  15835. test "x$?" != "x0" && pkg_failed=yes
  15836. else
  15837. pkg_failed=yes
  15838. fi
  15839. else
  15840. pkg_failed=untried
  15841. fi
  15842. if test $pkg_failed = yes; then
  15843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15844. $as_echo "no" >&6; }
  15845. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15846. _pkg_short_errors_supported=yes
  15847. else
  15848. _pkg_short_errors_supported=no
  15849. fi
  15850. if test $_pkg_short_errors_supported = yes; then
  15851. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  15852. else
  15853. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  15854. fi
  15855. # Put the nasty error message in config.log where it belongs
  15856. echo "$JACK_PKG_ERRORS" >&5
  15857. audio_jack=no
  15858. elif test $pkg_failed = untried; then
  15859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15860. $as_echo "no" >&6; }
  15861. audio_jack=no
  15862. else
  15863. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  15864. JACK_LIBS=$pkg_cv_JACK_LIBS
  15865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15866. $as_echo "yes" >&6; }
  15867. audio_jack=yes
  15868. fi
  15869. if test x$audio_jack = xyes; then
  15870. # Check whether --enable-jack-shared was given.
  15871. if test "${enable_jack_shared+set}" = set; then :
  15872. enableval=$enable_jack_shared;
  15873. else
  15874. enable_jack_shared=yes
  15875. fi
  15876. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15877. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  15878. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  15879. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  15880. if test x$have_loadso != xyes && \
  15881. test x$enable_jack_shared = xyes; then
  15882. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  15883. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  15884. fi
  15885. if test x$have_loadso = xyes && \
  15886. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  15887. echo "-- dynamic libjack -> $jack_lib"
  15888. cat >>confdefs.h <<_ACEOF
  15889. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  15890. _ACEOF
  15891. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  15892. case "$host" in
  15893. # On Solaris, jack must be linked deferred explicitly
  15894. # to prevent undefined symbol failures.
  15895. *-*-solaris*)
  15896. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  15897. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  15898. esac
  15899. else
  15900. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  15901. SUMMARY_audio="${SUMMARY_audio} jack"
  15902. fi
  15903. have_audio=yes
  15904. fi
  15905. fi
  15906. }
  15907. CheckESD()
  15908. {
  15909. # Check whether --enable-esd was given.
  15910. if test "${enable_esd+set}" = set; then :
  15911. enableval=$enable_esd;
  15912. else
  15913. enable_esd=yes
  15914. fi
  15915. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15916. # Check whether --with-esd-prefix was given.
  15917. if test "${with_esd_prefix+set}" = set; then :
  15918. withval=$with_esd_prefix; esd_prefix="$withval"
  15919. else
  15920. esd_prefix=""
  15921. fi
  15922. # Check whether --with-esd-exec-prefix was given.
  15923. if test "${with_esd_exec_prefix+set}" = set; then :
  15924. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15925. else
  15926. esd_exec_prefix=""
  15927. fi
  15928. # Check whether --enable-esdtest was given.
  15929. if test "${enable_esdtest+set}" = set; then :
  15930. enableval=$enable_esdtest;
  15931. else
  15932. enable_esdtest=yes
  15933. fi
  15934. if test x$esd_exec_prefix != x ; then
  15935. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15936. if test x${ESD_CONFIG+set} != xset ; then
  15937. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15938. fi
  15939. fi
  15940. if test x$esd_prefix != x ; then
  15941. esd_args="$esd_args --prefix=$esd_prefix"
  15942. if test x${ESD_CONFIG+set} != xset ; then
  15943. ESD_CONFIG=$esd_prefix/bin/esd-config
  15944. fi
  15945. fi
  15946. # Extract the first word of "esd-config", so it can be a program name with args.
  15947. set dummy esd-config; ac_word=$2
  15948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15949. $as_echo_n "checking for $ac_word... " >&6; }
  15950. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15951. $as_echo_n "(cached) " >&6
  15952. else
  15953. case $ESD_CONFIG in
  15954. [\\/]* | ?:[\\/]*)
  15955. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15956. ;;
  15957. *)
  15958. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15959. for as_dir in $PATH
  15960. do
  15961. IFS=$as_save_IFS
  15962. test -z "$as_dir" && as_dir=.
  15963. for ac_exec_ext in '' $ac_executable_extensions; do
  15964. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15965. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15966. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15967. break 2
  15968. fi
  15969. done
  15970. done
  15971. IFS=$as_save_IFS
  15972. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15973. ;;
  15974. esac
  15975. fi
  15976. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15977. if test -n "$ESD_CONFIG"; then
  15978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15979. $as_echo "$ESD_CONFIG" >&6; }
  15980. else
  15981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15982. $as_echo "no" >&6; }
  15983. fi
  15984. min_esd_version=0.2.8
  15985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15986. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15987. no_esd=""
  15988. if test "$ESD_CONFIG" = "no" ; then
  15989. no_esd=yes
  15990. else
  15991. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15992. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15993. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15994. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15995. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15996. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15997. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15998. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15999. if test "x$enable_esdtest" = "xyes" ; then
  16000. ac_ext=c
  16001. ac_cpp='$CPP $CPPFLAGS'
  16002. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16003. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16004. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16005. ac_save_CFLAGS="$CFLAGS"
  16006. ac_save_LIBS="$LIBS"
  16007. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16008. LIBS="$LIBS $ESD_LIBS"
  16009. rm -f conf.esdtest
  16010. if test "$cross_compiling" = yes; then :
  16011. echo $ac_n "cross compiling; assumed OK... $ac_c"
  16012. else
  16013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16014. /* end confdefs.h. */
  16015. #include <stdio.h>
  16016. #include <stdlib.h>
  16017. #include <esd.h>
  16018. int main (void)
  16019. {
  16020. int major, minor, micro;
  16021. FILE *fp = fopen("conf.esdtest", "w");
  16022. if (fp) fclose(fp);
  16023. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  16024. printf("%s, bad version string\n", "$min_esd_version");
  16025. exit(1);
  16026. }
  16027. if (($esd_major_version > major) ||
  16028. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  16029. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  16030. {
  16031. return 0;
  16032. }
  16033. else
  16034. {
  16035. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  16036. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  16037. printf("*** best to upgrade to the required version.\n");
  16038. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  16039. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  16040. printf("*** config.cache before re-running configure\n");
  16041. return 1;
  16042. }
  16043. }
  16044. _ACEOF
  16045. if ac_fn_c_try_run "$LINENO"; then :
  16046. else
  16047. no_esd=yes
  16048. fi
  16049. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16050. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16051. fi
  16052. CFLAGS="$ac_save_CFLAGS"
  16053. LIBS="$ac_save_LIBS"
  16054. ac_ext=c
  16055. ac_cpp='$CPP $CPPFLAGS'
  16056. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16057. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16058. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16059. fi
  16060. fi
  16061. if test "x$no_esd" = x ; then
  16062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16063. $as_echo "yes" >&6; }
  16064. have_esd=yes
  16065. else
  16066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16067. $as_echo "no" >&6; }
  16068. if test "$ESD_CONFIG" = "no" ; then
  16069. echo "*** The esd-config script installed by ESD could not be found"
  16070. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  16071. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  16072. echo "*** full path to esd-config."
  16073. else
  16074. if test -f conf.esdtest ; then
  16075. :
  16076. else
  16077. echo "*** Could not run ESD test program, checking why..."
  16078. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16079. LIBS="$LIBS $ESD_LIBS"
  16080. ac_ext=c
  16081. ac_cpp='$CPP $CPPFLAGS'
  16082. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16083. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16084. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16086. /* end confdefs.h. */
  16087. #include <stdio.h>
  16088. #include <esd.h>
  16089. int
  16090. main ()
  16091. {
  16092. return 0;
  16093. ;
  16094. return 0;
  16095. }
  16096. _ACEOF
  16097. if ac_fn_c_try_link "$LINENO"; then :
  16098. echo "*** The test program compiled, but did not run. This usually means"
  16099. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  16100. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  16101. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  16102. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  16103. echo "*** is required on your system"
  16104. echo "***"
  16105. echo "*** If you have an old version installed, it is best to remove it, although"
  16106. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  16107. else
  16108. echo "*** The test program failed to compile or link. See the file config.log for the"
  16109. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  16110. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  16111. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  16112. fi
  16113. rm -f core conftest.err conftest.$ac_objext \
  16114. conftest$ac_exeext conftest.$ac_ext
  16115. CFLAGS="$ac_save_CFLAGS"
  16116. LIBS="$ac_save_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. fi
  16123. fi
  16124. ESD_CFLAGS=""
  16125. ESD_LIBS=""
  16126. have_esd=no
  16127. fi
  16128. rm -f conf.esdtest
  16129. if test x$have_esd = xyes; then
  16130. # Check whether --enable-esd-shared was given.
  16131. if test "${enable_esd_shared+set}" = set; then :
  16132. enableval=$enable_esd_shared;
  16133. else
  16134. enable_esd_shared=yes
  16135. fi
  16136. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16137. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  16138. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  16139. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  16140. if test x$have_loadso != xyes && \
  16141. test x$enable_esd_shared = xyes; then
  16142. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  16143. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  16144. fi
  16145. if test x$have_loadso = xyes && \
  16146. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  16147. echo "-- dynamic libesd -> $esd_lib"
  16148. cat >>confdefs.h <<_ACEOF
  16149. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  16150. _ACEOF
  16151. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  16152. else
  16153. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  16154. SUMMARY_audio="${SUMMARY_audio} esd"
  16155. fi
  16156. have_audio=yes
  16157. fi
  16158. fi
  16159. }
  16160. CheckPipewire()
  16161. {
  16162. # Check whether --enable-pipewire was given.
  16163. if test "${enable_pipewire+set}" = set; then :
  16164. enableval=$enable_pipewire;
  16165. else
  16166. enable_pipewire=yes
  16167. fi
  16168. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  16169. pkg_failed=no
  16170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  16171. $as_echo_n "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  16172. if test -n "$PIPEWIRE_CFLAGS"; then
  16173. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  16174. elif test -n "$PKG_CONFIG"; then
  16175. if test -n "$PKG_CONFIG" && \
  16176. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  16177. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  16178. ac_status=$?
  16179. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16180. test $ac_status = 0; }; then
  16181. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  16182. test "x$?" != "x0" && pkg_failed=yes
  16183. else
  16184. pkg_failed=yes
  16185. fi
  16186. else
  16187. pkg_failed=untried
  16188. fi
  16189. if test -n "$PIPEWIRE_LIBS"; then
  16190. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  16191. elif test -n "$PKG_CONFIG"; then
  16192. if test -n "$PKG_CONFIG" && \
  16193. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  16194. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  16195. ac_status=$?
  16196. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16197. test $ac_status = 0; }; then
  16198. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  16199. test "x$?" != "x0" && pkg_failed=yes
  16200. else
  16201. pkg_failed=yes
  16202. fi
  16203. else
  16204. pkg_failed=untried
  16205. fi
  16206. if test $pkg_failed = yes; then
  16207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16208. $as_echo "no" >&6; }
  16209. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16210. _pkg_short_errors_supported=yes
  16211. else
  16212. _pkg_short_errors_supported=no
  16213. fi
  16214. if test $_pkg_short_errors_supported = yes; then
  16215. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  16216. else
  16217. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  16218. fi
  16219. # Put the nasty error message in config.log where it belongs
  16220. echo "$PIPEWIRE_PKG_ERRORS" >&5
  16221. audio_pipewire=no
  16222. elif test $pkg_failed = untried; then
  16223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16224. $as_echo "no" >&6; }
  16225. audio_pipewire=no
  16226. else
  16227. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  16228. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  16229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16230. $as_echo "yes" >&6; }
  16231. audio_pipewire=yes
  16232. fi
  16233. if test x$audio_pipewire = xyes; then
  16234. # Check whether --enable-pipewire-shared was given.
  16235. if test "${enable_pipewire_shared+set}" = set; then :
  16236. enableval=$enable_pipewire_shared;
  16237. else
  16238. enable_pipewire_shared=yes
  16239. fi
  16240. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16241. $as_echo "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  16242. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  16243. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  16244. if test x$have_loadso != xyes && \
  16245. test x$enable_pipewire_shared = xyes; then
  16246. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  16247. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  16248. fi
  16249. if test x$have_loadso = xyes && \
  16250. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  16251. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  16252. cat >>confdefs.h <<_ACEOF
  16253. #define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC "$pipewire_lib"
  16254. _ACEOF
  16255. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  16256. else
  16257. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  16258. SUMMARY_audio="${SUMMARY_audio} pipewire"
  16259. fi
  16260. have_audio=yes
  16261. fi
  16262. fi
  16263. }
  16264. CheckPulseAudio()
  16265. {
  16266. # Check whether --enable-pulseaudio was given.
  16267. if test "${enable_pulseaudio+set}" = set; then :
  16268. enableval=$enable_pulseaudio;
  16269. else
  16270. enable_pulseaudio=yes
  16271. fi
  16272. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  16273. pkg_failed=no
  16274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  16275. $as_echo_n "checking for libpulse-simple >= 0.9... " >&6; }
  16276. if test -n "$PULSEAUDIO_CFLAGS"; then
  16277. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  16278. elif test -n "$PKG_CONFIG"; then
  16279. if test -n "$PKG_CONFIG" && \
  16280. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16281. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16282. ac_status=$?
  16283. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16284. test $ac_status = 0; }; then
  16285. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  16286. test "x$?" != "x0" && pkg_failed=yes
  16287. else
  16288. pkg_failed=yes
  16289. fi
  16290. else
  16291. pkg_failed=untried
  16292. fi
  16293. if test -n "$PULSEAUDIO_LIBS"; then
  16294. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  16295. elif test -n "$PKG_CONFIG"; then
  16296. if test -n "$PKG_CONFIG" && \
  16297. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16298. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16299. ac_status=$?
  16300. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16301. test $ac_status = 0; }; then
  16302. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  16303. test "x$?" != "x0" && pkg_failed=yes
  16304. else
  16305. pkg_failed=yes
  16306. fi
  16307. else
  16308. pkg_failed=untried
  16309. fi
  16310. if test $pkg_failed = yes; then
  16311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16312. $as_echo "no" >&6; }
  16313. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16314. _pkg_short_errors_supported=yes
  16315. else
  16316. _pkg_short_errors_supported=no
  16317. fi
  16318. if test $_pkg_short_errors_supported = yes; then
  16319. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  16320. else
  16321. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  16322. fi
  16323. # Put the nasty error message in config.log where it belongs
  16324. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  16325. audio_pulseaudio=no
  16326. elif test $pkg_failed = untried; then
  16327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16328. $as_echo "no" >&6; }
  16329. audio_pulseaudio=no
  16330. else
  16331. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  16332. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  16333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16334. $as_echo "yes" >&6; }
  16335. audio_pulseaudio=yes
  16336. fi
  16337. if test x$audio_pulseaudio = xyes; then
  16338. # Check whether --enable-pulseaudio-shared was given.
  16339. if test "${enable_pulseaudio_shared+set}" = set; then :
  16340. enableval=$enable_pulseaudio_shared;
  16341. else
  16342. enable_pulseaudio_shared=yes
  16343. fi
  16344. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16345. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  16346. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  16347. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  16348. if test x$have_loadso != xyes && \
  16349. test x$enable_pulseaudio_shared = xyes; then
  16350. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  16351. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  16352. fi
  16353. if test x$have_loadso = xyes && \
  16354. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  16355. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  16356. cat >>confdefs.h <<_ACEOF
  16357. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  16358. _ACEOF
  16359. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  16360. case "$host" in
  16361. # On Solaris, pulseaudio must be linked deferred explicitly
  16362. # to prevent undefined symbol failures.
  16363. *-*-solaris*)
  16364. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  16365. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  16366. esac
  16367. else
  16368. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  16369. SUMMARY_audio="${SUMMARY_audio} pulse"
  16370. fi
  16371. have_audio=yes
  16372. fi
  16373. fi
  16374. }
  16375. CheckARTSC()
  16376. {
  16377. # Check whether --enable-arts was given.
  16378. if test "${enable_arts+set}" = set; then :
  16379. enableval=$enable_arts;
  16380. else
  16381. enable_arts=yes
  16382. fi
  16383. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  16384. # Extract the first word of "artsc-config", so it can be a program name with args.
  16385. set dummy artsc-config; ac_word=$2
  16386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16387. $as_echo_n "checking for $ac_word... " >&6; }
  16388. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  16389. $as_echo_n "(cached) " >&6
  16390. else
  16391. case $ARTSCONFIG in
  16392. [\\/]* | ?:[\\/]*)
  16393. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  16394. ;;
  16395. *)
  16396. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16397. for as_dir in $PATH
  16398. do
  16399. IFS=$as_save_IFS
  16400. test -z "$as_dir" && as_dir=.
  16401. for ac_exec_ext in '' $ac_executable_extensions; do
  16402. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16403. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  16404. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16405. break 2
  16406. fi
  16407. done
  16408. done
  16409. IFS=$as_save_IFS
  16410. ;;
  16411. esac
  16412. fi
  16413. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  16414. if test -n "$ARTSCONFIG"; then
  16415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  16416. $as_echo "$ARTSCONFIG" >&6; }
  16417. else
  16418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16419. $as_echo "no" >&6; }
  16420. fi
  16421. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  16422. : # arts isn't installed
  16423. else
  16424. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  16425. ARTS_LIBS=`$ARTSCONFIG --libs`
  16426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  16427. $as_echo_n "checking for aRts development environment... " >&6; }
  16428. audio_arts=no
  16429. save_CFLAGS="$CFLAGS"
  16430. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  16431. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16432. /* end confdefs.h. */
  16433. #include <artsc.h>
  16434. int
  16435. main ()
  16436. {
  16437. arts_stream_t stream;
  16438. ;
  16439. return 0;
  16440. }
  16441. _ACEOF
  16442. if ac_fn_c_try_compile "$LINENO"; then :
  16443. audio_arts=yes
  16444. fi
  16445. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16446. CFLAGS="$save_CFLAGS"
  16447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  16448. $as_echo "$audio_arts" >&6; }
  16449. if test x$audio_arts = xyes; then
  16450. # Check whether --enable-arts-shared was given.
  16451. if test "${enable_arts_shared+set}" = set; then :
  16452. enableval=$enable_arts_shared;
  16453. else
  16454. enable_arts_shared=yes
  16455. fi
  16456. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16457. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  16458. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  16459. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  16460. if test x$have_loadso != xyes && \
  16461. test x$enable_arts_shared = xyes; then
  16462. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  16463. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  16464. fi
  16465. if test x$have_loadso = xyes && \
  16466. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  16467. echo "-- dynamic libartsc -> $arts_lib"
  16468. cat >>confdefs.h <<_ACEOF
  16469. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  16470. _ACEOF
  16471. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  16472. else
  16473. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  16474. SUMMARY_audio="${SUMMARY_audio} arts"
  16475. fi
  16476. have_audio=yes
  16477. fi
  16478. fi
  16479. fi
  16480. }
  16481. CheckNAS()
  16482. {
  16483. # Check whether --enable-nas was given.
  16484. if test "${enable_nas+set}" = set; then :
  16485. enableval=$enable_nas;
  16486. else
  16487. enable_nas=yes
  16488. fi
  16489. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  16490. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  16491. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  16492. have_nas_hdr=yes
  16493. fi
  16494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  16495. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  16496. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  16497. $as_echo_n "(cached) " >&6
  16498. else
  16499. ac_check_lib_save_LIBS=$LIBS
  16500. LIBS="-laudio $LIBS"
  16501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16502. /* end confdefs.h. */
  16503. /* Override any GCC internal prototype to avoid an error.
  16504. Use char because int might match the return type of a GCC
  16505. builtin and then its argument prototype would still apply. */
  16506. #ifdef __cplusplus
  16507. extern "C"
  16508. #endif
  16509. char AuOpenServer ();
  16510. int
  16511. main ()
  16512. {
  16513. return AuOpenServer ();
  16514. ;
  16515. return 0;
  16516. }
  16517. _ACEOF
  16518. if ac_fn_c_try_link "$LINENO"; then :
  16519. ac_cv_lib_audio_AuOpenServer=yes
  16520. else
  16521. ac_cv_lib_audio_AuOpenServer=no
  16522. fi
  16523. rm -f core conftest.err conftest.$ac_objext \
  16524. conftest$ac_exeext conftest.$ac_ext
  16525. LIBS=$ac_check_lib_save_LIBS
  16526. fi
  16527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  16528. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  16529. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  16530. have_nas_lib=yes
  16531. fi
  16532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  16533. $as_echo_n "checking for NAS audio support... " >&6; }
  16534. have_nas=no
  16535. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  16536. have_nas=yes
  16537. NAS_LIBS="-laudio"
  16538. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  16539. have_nas=yes
  16540. NAS_CFLAGS="-I/usr/X11R6/include/"
  16541. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  16542. fi
  16543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  16544. $as_echo "$have_nas" >&6; }
  16545. if test x$have_nas = xyes; then
  16546. # Check whether --enable-nas-shared was given.
  16547. if test "${enable_nas_shared+set}" = set; then :
  16548. enableval=$enable_nas_shared;
  16549. else
  16550. enable_nas_shared=yes
  16551. fi
  16552. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16553. if test x$have_loadso != xyes && \
  16554. test x$enable_nas_shared = xyes; then
  16555. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  16556. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  16557. fi
  16558. if test x$have_loadso = xyes && \
  16559. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  16560. echo "-- dynamic libaudio -> $nas_lib"
  16561. cat >>confdefs.h <<_ACEOF
  16562. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  16563. _ACEOF
  16564. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  16565. else
  16566. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  16567. SUMMARY_audio="${SUMMARY_audio} nas"
  16568. fi
  16569. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  16570. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  16571. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  16572. have_audio=yes
  16573. fi
  16574. fi
  16575. }
  16576. CheckSNDIO()
  16577. {
  16578. # Check whether --enable-sndio was given.
  16579. if test "${enable_sndio+set}" = set; then :
  16580. enableval=$enable_sndio;
  16581. else
  16582. enable_sndio=yes
  16583. fi
  16584. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  16585. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  16586. if test "x$ac_cv_header_sndio_h" = xyes; then :
  16587. have_sndio_hdr=yes
  16588. fi
  16589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  16590. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  16591. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  16592. $as_echo_n "(cached) " >&6
  16593. else
  16594. ac_check_lib_save_LIBS=$LIBS
  16595. LIBS="-lsndio $LIBS"
  16596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16597. /* end confdefs.h. */
  16598. /* Override any GCC internal prototype to avoid an error.
  16599. Use char because int might match the return type of a GCC
  16600. builtin and then its argument prototype would still apply. */
  16601. #ifdef __cplusplus
  16602. extern "C"
  16603. #endif
  16604. char sio_open ();
  16605. int
  16606. main ()
  16607. {
  16608. return sio_open ();
  16609. ;
  16610. return 0;
  16611. }
  16612. _ACEOF
  16613. if ac_fn_c_try_link "$LINENO"; then :
  16614. ac_cv_lib_sndio_sio_open=yes
  16615. else
  16616. ac_cv_lib_sndio_sio_open=no
  16617. fi
  16618. rm -f core conftest.err conftest.$ac_objext \
  16619. conftest$ac_exeext conftest.$ac_ext
  16620. LIBS=$ac_check_lib_save_LIBS
  16621. fi
  16622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  16623. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  16624. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  16625. have_sndio_lib=yes
  16626. fi
  16627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  16628. $as_echo_n "checking for sndio audio support... " >&6; }
  16629. have_sndio=no
  16630. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  16631. have_sndio=yes
  16632. SNDIO_LIBS="-lsndio"
  16633. fi
  16634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  16635. $as_echo "$have_sndio" >&6; }
  16636. if test x$have_sndio = xyes; then
  16637. # Check whether --enable-sndio-shared was given.
  16638. if test "${enable_sndio_shared+set}" = set; then :
  16639. enableval=$enable_sndio_shared;
  16640. else
  16641. enable_sndio_shared=yes
  16642. fi
  16643. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16644. if test x$have_loadso != xyes && \
  16645. test x$enable_sndio_shared = xyes; then
  16646. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  16647. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  16648. fi
  16649. if test x$have_loadso = xyes && \
  16650. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  16651. echo "-- dynamic libsndio -> $sndio_lib"
  16652. cat >>confdefs.h <<_ACEOF
  16653. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  16654. _ACEOF
  16655. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  16656. else
  16657. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  16658. SUMMARY_audio="${SUMMARY_audio} sndio"
  16659. fi
  16660. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  16661. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  16662. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  16663. have_audio=yes
  16664. fi
  16665. fi
  16666. }
  16667. CheckFusionSound()
  16668. {
  16669. # Check whether --enable-fusionsound was given.
  16670. if test "${enable_fusionsound+set}" = set; then :
  16671. enableval=$enable_fusionsound;
  16672. else
  16673. enable_fusionsound=no
  16674. fi
  16675. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  16676. pkg_failed=no
  16677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  16678. $as_echo_n "checking for fusionsound >= 1.1.1... " >&6; }
  16679. if test -n "$FUSIONSOUND_CFLAGS"; then
  16680. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  16681. elif test -n "$PKG_CONFIG"; then
  16682. if test -n "$PKG_CONFIG" && \
  16683. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16684. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16685. ac_status=$?
  16686. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16687. test $ac_status = 0; }; then
  16688. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  16689. test "x$?" != "x0" && pkg_failed=yes
  16690. else
  16691. pkg_failed=yes
  16692. fi
  16693. else
  16694. pkg_failed=untried
  16695. fi
  16696. if test -n "$FUSIONSOUND_LIBS"; then
  16697. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  16698. elif test -n "$PKG_CONFIG"; then
  16699. if test -n "$PKG_CONFIG" && \
  16700. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16701. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16702. ac_status=$?
  16703. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16704. test $ac_status = 0; }; then
  16705. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  16706. test "x$?" != "x0" && pkg_failed=yes
  16707. else
  16708. pkg_failed=yes
  16709. fi
  16710. else
  16711. pkg_failed=untried
  16712. fi
  16713. if test $pkg_failed = yes; then
  16714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16715. $as_echo "no" >&6; }
  16716. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16717. _pkg_short_errors_supported=yes
  16718. else
  16719. _pkg_short_errors_supported=no
  16720. fi
  16721. if test $_pkg_short_errors_supported = yes; then
  16722. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  16723. else
  16724. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  16725. fi
  16726. # Put the nasty error message in config.log where it belongs
  16727. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  16728. fusionsound=no
  16729. elif test $pkg_failed = untried; then
  16730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16731. $as_echo "no" >&6; }
  16732. fusionsound=no
  16733. else
  16734. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  16735. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  16736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16737. $as_echo "yes" >&6; }
  16738. fusionsound=yes
  16739. fi
  16740. if test x$fusionsound = xyes; then
  16741. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  16742. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  16743. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  16744. # Check whether --enable-fusionsound-shared was given.
  16745. if test "${enable_fusionsound_shared+set}" = set; then :
  16746. enableval=$enable_fusionsound_shared;
  16747. else
  16748. enable_fusionsound_shared=yes
  16749. fi
  16750. fusionsound_shared=no
  16751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  16752. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  16753. if test x$have_loadso != xyes && \
  16754. test x$enable_fusionsound_shared = xyes; then
  16755. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  16756. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  16757. fi
  16758. if test x$have_loadso = xyes && \
  16759. test x$enable_fusionsound_shared = xyes; then
  16760. cat >>confdefs.h <<_ACEOF
  16761. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  16762. _ACEOF
  16763. fusionsound_shared=yes
  16764. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  16765. else
  16766. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  16767. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  16768. fi
  16769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  16770. $as_echo "$fusionsound_shared" >&6; }
  16771. have_audio=yes
  16772. fi
  16773. fi
  16774. }
  16775. CheckDiskAudio()
  16776. {
  16777. # Check whether --enable-diskaudio was given.
  16778. if test "${enable_diskaudio+set}" = set; then :
  16779. enableval=$enable_diskaudio;
  16780. else
  16781. enable_diskaudio=yes
  16782. fi
  16783. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  16784. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  16785. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  16786. SUMMARY_audio="${SUMMARY_audio} disk"
  16787. fi
  16788. }
  16789. CheckDummyAudio()
  16790. {
  16791. # Check whether --enable-dummyaudio was given.
  16792. if test "${enable_dummyaudio+set}" = set; then :
  16793. enableval=$enable_dummyaudio;
  16794. else
  16795. enable_dummyaudio=yes
  16796. fi
  16797. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  16798. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  16799. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  16800. SUMMARY_audio="${SUMMARY_audio} dummy"
  16801. fi
  16802. }
  16803. CheckLibSampleRate()
  16804. {
  16805. # Check whether --enable-libsamplerate was given.
  16806. if test "${enable_libsamplerate+set}" = set; then :
  16807. enableval=$enable_libsamplerate;
  16808. else
  16809. enable_libsamplerate=yes
  16810. fi
  16811. if test x$enable_libsamplerate = xyes; then
  16812. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  16813. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  16814. have_samplerate_h_hdr=yes
  16815. else
  16816. have_samplerate_h_hdr=no
  16817. fi
  16818. if test x$have_samplerate_h_hdr = xyes; then
  16819. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  16820. # Check whether --enable-libsamplerate-shared was given.
  16821. if test "${enable_libsamplerate_shared+set}" = set; then :
  16822. enableval=$enable_libsamplerate_shared;
  16823. else
  16824. enable_libsamplerate_shared=yes
  16825. fi
  16826. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  16827. if test x$have_loadso != xyes && \
  16828. test x$enable_libsamplerate_shared = xyes; then
  16829. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  16830. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  16831. fi
  16832. if test x$have_loadso = xyes && \
  16833. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  16834. echo "-- dynamic libsamplerate -> $samplerate_lib"
  16835. cat >>confdefs.h <<_ACEOF
  16836. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  16837. _ACEOF
  16838. else
  16839. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  16840. fi
  16841. fi
  16842. fi
  16843. }
  16844. CheckARM()
  16845. {
  16846. # Check whether --enable-arm-simd was given.
  16847. if test "${enable_arm_simd+set}" = set; then :
  16848. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  16849. else
  16850. enable_arm_simd=no
  16851. fi
  16852. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  16853. save_CFLAGS="$CFLAGS"
  16854. have_arm_simd=no
  16855. CFLAGS="-x assembler-with-cpp $CFLAGS"
  16856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  16857. $as_echo_n "checking for ARM SIMD... " >&6; }
  16858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16859. /* end confdefs.h. */
  16860. .text
  16861. .arch armv6
  16862. .object_arch armv4
  16863. .arm
  16864. .altmacro
  16865. #ifndef __ARM_EABI__
  16866. #error EABI is required (to be sure that calling conventions are compatible)
  16867. #endif
  16868. pld [r0]
  16869. uqadd8 r0, r0, r0
  16870. _ACEOF
  16871. if ac_fn_c_try_compile "$LINENO"; then :
  16872. have_arm_simd=yes
  16873. fi
  16874. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  16876. $as_echo "$have_arm_simd" >&6; }
  16877. CFLAGS="$save_CFLAGS"
  16878. if test x$have_arm_simd = xyes; then
  16879. $as_echo "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  16880. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  16881. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  16882. fi
  16883. fi
  16884. }
  16885. CheckNEON()
  16886. {
  16887. # Check whether --enable-arm-neon was given.
  16888. if test "${enable_arm_neon+set}" = set; then :
  16889. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  16890. else
  16891. enable_arm_neon=no
  16892. fi
  16893. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  16894. save_CFLAGS="$CFLAGS"
  16895. have_arm_neon=no
  16896. CFLAGS="-x assembler-with-cpp $CFLAGS"
  16897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  16898. $as_echo_n "checking for ARM NEON... " >&6; }
  16899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16900. /* end confdefs.h. */
  16901. .text
  16902. .fpu neon
  16903. .arch armv7a
  16904. .object_arch armv4
  16905. .eabi_attribute 10, 0
  16906. .arm
  16907. .altmacro
  16908. #ifndef __ARM_EABI__
  16909. #error EABI is required (to be sure that calling conventions are compatible)
  16910. #endif
  16911. pld [r0]
  16912. vmovn.u16 d0, q0
  16913. _ACEOF
  16914. if ac_fn_c_try_compile "$LINENO"; then :
  16915. have_arm_neon=yes
  16916. fi
  16917. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  16919. $as_echo "$have_arm_neon" >&6; }
  16920. CFLAGS="$save_CFLAGS"
  16921. if test x$have_arm_neon = xyes; then
  16922. $as_echo "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  16923. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  16924. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  16925. fi
  16926. fi
  16927. }
  16928. CheckVisibilityHidden()
  16929. {
  16930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  16931. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  16932. have_gcc_fvisibility=no
  16933. visibility_CFLAGS="-fvisibility=hidden"
  16934. save_CFLAGS="$CFLAGS"
  16935. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  16936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16937. /* end confdefs.h. */
  16938. #if !defined(__GNUC__) || __GNUC__ < 4
  16939. #error SDL only uses visibility attributes in GCC 4 or newer
  16940. #endif
  16941. int
  16942. main ()
  16943. {
  16944. ;
  16945. return 0;
  16946. }
  16947. _ACEOF
  16948. if ac_fn_c_try_compile "$LINENO"; then :
  16949. have_gcc_fvisibility=yes
  16950. fi
  16951. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  16953. $as_echo "$have_gcc_fvisibility" >&6; }
  16954. CFLAGS="$save_CFLAGS"
  16955. if test x$have_gcc_fvisibility = xyes; then
  16956. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  16957. fi
  16958. }
  16959. CheckNoStrictAliasing()
  16960. {
  16961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  16962. $as_echo_n "checking for GCC -fno-strict-aliasing option... " >&6; }
  16963. have_gcc_no_strict_aliasing=no
  16964. save_CFLAGS="$CFLAGS"
  16965. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  16966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16967. /* end confdefs.h. */
  16968. int x = 0;
  16969. int
  16970. main ()
  16971. {
  16972. ;
  16973. return 0;
  16974. }
  16975. _ACEOF
  16976. if ac_fn_c_try_compile "$LINENO"; then :
  16977. have_gcc_no_strict_aliasing=yes
  16978. fi
  16979. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  16981. $as_echo "$have_gcc_no_strict_aliasing" >&6; }
  16982. CFLAGS="$save_CFLAGS"
  16983. if test x$have_gcc_no_strict_aliasing = xyes; then
  16984. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  16985. fi
  16986. }
  16987. CheckStackBoundary()
  16988. {
  16989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  16990. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  16991. have_gcc_preferred_stack_boundary=no
  16992. save_CFLAGS="$CFLAGS"
  16993. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  16994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16995. /* end confdefs.h. */
  16996. int x = 0;
  16997. int
  16998. main ()
  16999. {
  17000. ;
  17001. return 0;
  17002. }
  17003. _ACEOF
  17004. if ac_fn_c_try_compile "$LINENO"; then :
  17005. have_gcc_preferred_stack_boundary=yes
  17006. fi
  17007. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  17009. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  17010. CFLAGS="$save_CFLAGS"
  17011. if test x$have_gcc_preferred_stack_boundary = xyes; then
  17012. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  17013. fi
  17014. }
  17015. CheckDeclarationAfterStatement()
  17016. {
  17017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  17018. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  17019. have_gcc_declaration_after_statement=no
  17020. save_CFLAGS="$CFLAGS"
  17021. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  17022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17023. /* end confdefs.h. */
  17024. int x = 0;
  17025. int
  17026. main ()
  17027. {
  17028. ;
  17029. return 0;
  17030. }
  17031. _ACEOF
  17032. if ac_fn_c_try_compile "$LINENO"; then :
  17033. have_gcc_declaration_after_statement=yes
  17034. fi
  17035. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  17037. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  17038. CFLAGS="$save_CFLAGS"
  17039. if test x$have_gcc_declaration_after_statement = xyes; then
  17040. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  17041. fi
  17042. }
  17043. CheckWarnAll()
  17044. {
  17045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  17046. $as_echo_n "checking for GCC -Wall option... " >&6; }
  17047. have_gcc_Wall=no
  17048. save_CFLAGS="$CFLAGS"
  17049. CFLAGS="$save_CFLAGS -Wall"
  17050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17051. /* end confdefs.h. */
  17052. int x = 0;
  17053. int
  17054. main ()
  17055. {
  17056. ;
  17057. return 0;
  17058. }
  17059. _ACEOF
  17060. if ac_fn_c_try_compile "$LINENO"; then :
  17061. have_gcc_Wall=yes
  17062. fi
  17063. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  17065. $as_echo "$have_gcc_Wall" >&6; }
  17066. CFLAGS="$save_CFLAGS"
  17067. if test x$have_gcc_Wall = xyes; then
  17068. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  17069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  17070. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  17071. need_gcc_Wno_multichar=no
  17072. case "$host" in
  17073. *-*-haiku*)
  17074. need_gcc_Wno_multichar=yes
  17075. ;;
  17076. esac
  17077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  17078. $as_echo "$need_gcc_Wno_multichar" >&6; }
  17079. if test x$need_gcc_Wno_multichar = xyes; then
  17080. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  17081. fi
  17082. fi
  17083. }
  17084. CheckWayland()
  17085. {
  17086. # Check whether --enable-video-wayland was given.
  17087. if test "${enable_video_wayland+set}" = set; then :
  17088. enableval=$enable_video_wayland;
  17089. else
  17090. enable_video_wayland=yes
  17091. fi
  17092. # Check whether --enable-video-wayland-qt-touch was given.
  17093. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  17094. enableval=$enable_video_wayland_qt_touch;
  17095. else
  17096. enable_video_wayland_qt_touch=yes
  17097. fi
  17098. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  17099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  17100. $as_echo_n "checking for Wayland support... " >&6; }
  17101. video_wayland=no
  17102. if test x$video_opengl_egl = xyes && \
  17103. test x$video_opengles_v2 = xyes; then
  17104. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-egl wayland-cursor egl xkbcommon ; then
  17105. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  17106. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  17107. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  17108. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'; then :
  17109. WAYLAND_SCANNER_CODE_MODE=private-code
  17110. else
  17111. WAYLAND_SCANNER_CODE_MODE=code
  17112. fi
  17113. video_wayland=yes
  17114. fi
  17115. fi
  17116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  17117. $as_echo "$video_wayland" >&6; }
  17118. if test x$video_wayland = xyes; then
  17119. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  17120. if test x$enable_video_wayland_qt_touch = xyes; then
  17121. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  17122. fi
  17123. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  17124. SOURCES="$SOURCES $WAYLAND_SOURCES"
  17125. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  17126. # Check whether --enable-wayland-shared was given.
  17127. if test "${enable_wayland_shared+set}" = set; then :
  17128. enableval=$enable_wayland_shared;
  17129. else
  17130. enable_wayland_shared=maybe
  17131. fi
  17132. case "$host" in
  17133. *)
  17134. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17135. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17136. if test x$wayland_egl_lib = x; then
  17137. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17138. fi
  17139. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17140. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17141. ;;
  17142. esac
  17143. if test x$enable_wayland_shared = xmaybe; then
  17144. enable_wayland_shared=yes
  17145. fi
  17146. if test x$have_loadso != xyes && \
  17147. test x$enable_wayland_shared = xyes; then
  17148. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  17149. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  17150. enable_wayland_shared=no
  17151. fi
  17152. if test x$have_loadso = xyes && \
  17153. test x$enable_wayland_shared = xyes && \
  17154. test x$wayland_client_lib != x && \
  17155. test x$wayland_egl_lib != x && \
  17156. test x$wayland_cursor_lib != x && \
  17157. test x$xkbcommon_lib != x; then
  17158. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  17159. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  17160. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  17161. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  17162. cat >>confdefs.h <<_ACEOF
  17163. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  17164. _ACEOF
  17165. cat >>confdefs.h <<_ACEOF
  17166. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  17167. _ACEOF
  17168. cat >>confdefs.h <<_ACEOF
  17169. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  17170. _ACEOF
  17171. cat >>confdefs.h <<_ACEOF
  17172. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  17173. _ACEOF
  17174. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  17175. else
  17176. enable_wayland_shared=no
  17177. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  17178. SUMMARY_video="${SUMMARY_video} wayland"
  17179. fi
  17180. have_video=yes
  17181. fi
  17182. fi
  17183. }
  17184. CheckNativeClient()
  17185. {
  17186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17187. /* end confdefs.h. */
  17188. #if !defined(__native_client__)
  17189. #error "NO NACL"
  17190. #endif
  17191. int
  17192. main ()
  17193. {
  17194. ;
  17195. return 0;
  17196. }
  17197. _ACEOF
  17198. if ac_fn_c_try_compile "$LINENO"; then :
  17199. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  17200. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  17201. $as_echo "#define HAVE_POW 1" >>confdefs.h
  17202. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  17203. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  17204. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  17205. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  17206. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  17207. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  17208. SUMMARY_audio="${SUMMARY_audio} nacl"
  17209. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  17210. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  17211. fi
  17212. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17213. }
  17214. CheckRPI()
  17215. {
  17216. # Check whether --enable-video-rpi was given.
  17217. if test "${enable_video_rpi+set}" = set; then :
  17218. enableval=$enable_video_rpi;
  17219. else
  17220. enable_video_rpi=yes
  17221. fi
  17222. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  17223. pkg_failed=no
  17224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  17225. $as_echo_n "checking for bcm_host brcmegl... " >&6; }
  17226. if test -n "$RPI_CFLAGS"; then
  17227. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  17228. elif test -n "$PKG_CONFIG"; then
  17229. if test -n "$PKG_CONFIG" && \
  17230. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17231. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17232. ac_status=$?
  17233. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17234. test $ac_status = 0; }; then
  17235. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  17236. test "x$?" != "x0" && pkg_failed=yes
  17237. else
  17238. pkg_failed=yes
  17239. fi
  17240. else
  17241. pkg_failed=untried
  17242. fi
  17243. if test -n "$RPI_LIBS"; then
  17244. pkg_cv_RPI_LIBS="$RPI_LIBS"
  17245. elif test -n "$PKG_CONFIG"; then
  17246. if test -n "$PKG_CONFIG" && \
  17247. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17248. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17249. ac_status=$?
  17250. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17251. test $ac_status = 0; }; then
  17252. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  17253. test "x$?" != "x0" && pkg_failed=yes
  17254. else
  17255. pkg_failed=yes
  17256. fi
  17257. else
  17258. pkg_failed=untried
  17259. fi
  17260. if test $pkg_failed = yes; then
  17261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17262. $as_echo "no" >&6; }
  17263. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17264. _pkg_short_errors_supported=yes
  17265. else
  17266. _pkg_short_errors_supported=no
  17267. fi
  17268. if test $_pkg_short_errors_supported = yes; then
  17269. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  17270. else
  17271. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  17272. fi
  17273. # Put the nasty error message in config.log where it belongs
  17274. echo "$RPI_PKG_ERRORS" >&5
  17275. video_rpi=no
  17276. elif test $pkg_failed = untried; then
  17277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17278. $as_echo "no" >&6; }
  17279. video_rpi=no
  17280. else
  17281. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  17282. RPI_LIBS=$pkg_cv_RPI_LIBS
  17283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17284. $as_echo "yes" >&6; }
  17285. video_rpi=yes
  17286. fi
  17287. if test x$video_rpi = xno; then
  17288. if test x$ARCH = xnetbsd; then
  17289. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  17290. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  17291. else
  17292. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  17293. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  17294. fi
  17295. fi
  17296. # Save the original compiler flags and libraries
  17297. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  17298. # Add the Raspberry Pi compiler flags and libraries
  17299. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  17300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi" >&5
  17301. $as_echo_n "checking for Raspberry Pi... " >&6; }
  17302. have_video_rpi=no
  17303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17304. /* end confdefs.h. */
  17305. #include <bcm_host.h>
  17306. int
  17307. main ()
  17308. {
  17309. bcm_host_init();
  17310. ;
  17311. return 0;
  17312. }
  17313. _ACEOF
  17314. if ac_fn_c_try_link "$LINENO"; then :
  17315. have_video_rpi=yes
  17316. fi
  17317. rm -f core conftest.err conftest.$ac_objext \
  17318. conftest$ac_exeext conftest.$ac_ext
  17319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  17320. $as_echo "$have_video_rpi" >&6; }
  17321. # Restore the compiler flags and libraries
  17322. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  17323. if test x$have_video_rpi = xyes; then
  17324. CFLAGS="$CFLAGS $RPI_CFLAGS"
  17325. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  17326. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  17327. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  17328. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  17329. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  17330. SUMMARY_video="${SUMMARY_video} rpi"
  17331. fi
  17332. fi
  17333. }
  17334. CheckX11()
  17335. {
  17336. # Check whether --enable-video-x11 was given.
  17337. if test "${enable_video_x11+set}" = set; then :
  17338. enableval=$enable_video_x11;
  17339. else
  17340. enable_video_x11=yes
  17341. fi
  17342. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  17343. case "$host" in
  17344. *-*-darwin*)
  17345. # This isn't necessary for X11, but fixes GLX detection
  17346. if test "x$x_includes" = xNONE && \
  17347. test "x$x_libraries" = xNONE && \
  17348. test -d /opt/X11/include && \
  17349. test -d /opt/X11/lib; then
  17350. x_includes="/opt/X11/include"
  17351. x_libraries="/opt/X11/lib"
  17352. fi
  17353. ;;
  17354. esac
  17355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  17356. $as_echo_n "checking for X... " >&6; }
  17357. # Check whether --with-x was given.
  17358. if test "${with_x+set}" = set; then :
  17359. withval=$with_x;
  17360. fi
  17361. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  17362. if test "x$with_x" = xno; then
  17363. # The user explicitly disabled X.
  17364. have_x=disabled
  17365. else
  17366. case $x_includes,$x_libraries in #(
  17367. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  17368. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  17369. $as_echo_n "(cached) " >&6
  17370. else
  17371. # One or both of the vars are not set, and there is no cached value.
  17372. ac_x_includes=no ac_x_libraries=no
  17373. rm -f -r conftest.dir
  17374. if mkdir conftest.dir; then
  17375. cd conftest.dir
  17376. cat >Imakefile <<'_ACEOF'
  17377. incroot:
  17378. @echo incroot='${INCROOT}'
  17379. usrlibdir:
  17380. @echo usrlibdir='${USRLIBDIR}'
  17381. libdir:
  17382. @echo libdir='${LIBDIR}'
  17383. _ACEOF
  17384. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  17385. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  17386. for ac_var in incroot usrlibdir libdir; do
  17387. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  17388. done
  17389. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  17390. for ac_extension in a so sl dylib la dll; do
  17391. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  17392. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  17393. ac_im_usrlibdir=$ac_im_libdir; break
  17394. fi
  17395. done
  17396. # Screen out bogus values from the imake configuration. They are
  17397. # bogus both because they are the default anyway, and because
  17398. # using them would break gcc on systems where it needs fixed includes.
  17399. case $ac_im_incroot in
  17400. /usr/include) ac_x_includes= ;;
  17401. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  17402. esac
  17403. case $ac_im_usrlibdir in
  17404. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  17405. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  17406. esac
  17407. fi
  17408. cd ..
  17409. rm -f -r conftest.dir
  17410. fi
  17411. # Standard set of common directories for X headers.
  17412. # Check X11 before X11Rn because it is often a symlink to the current release.
  17413. ac_x_header_dirs='
  17414. /usr/X11/include
  17415. /usr/X11R7/include
  17416. /usr/X11R6/include
  17417. /usr/X11R5/include
  17418. /usr/X11R4/include
  17419. /usr/include/X11
  17420. /usr/include/X11R7
  17421. /usr/include/X11R6
  17422. /usr/include/X11R5
  17423. /usr/include/X11R4
  17424. /usr/local/X11/include
  17425. /usr/local/X11R7/include
  17426. /usr/local/X11R6/include
  17427. /usr/local/X11R5/include
  17428. /usr/local/X11R4/include
  17429. /usr/local/include/X11
  17430. /usr/local/include/X11R7
  17431. /usr/local/include/X11R6
  17432. /usr/local/include/X11R5
  17433. /usr/local/include/X11R4
  17434. /usr/X386/include
  17435. /usr/x386/include
  17436. /usr/XFree86/include/X11
  17437. /usr/include
  17438. /usr/local/include
  17439. /usr/unsupported/include
  17440. /usr/athena/include
  17441. /usr/local/x11r5/include
  17442. /usr/lpp/Xamples/include
  17443. /usr/openwin/include
  17444. /usr/openwin/share/include'
  17445. if test "$ac_x_includes" = no; then
  17446. # Guess where to find include files, by looking for Xlib.h.
  17447. # First, try using that file with no special directory specified.
  17448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17449. /* end confdefs.h. */
  17450. #include <X11/Xlib.h>
  17451. _ACEOF
  17452. if ac_fn_c_try_cpp "$LINENO"; then :
  17453. # We can compile using X headers with no special include directory.
  17454. ac_x_includes=
  17455. else
  17456. for ac_dir in $ac_x_header_dirs; do
  17457. if test -r "$ac_dir/X11/Xlib.h"; then
  17458. ac_x_includes=$ac_dir
  17459. break
  17460. fi
  17461. done
  17462. fi
  17463. rm -f conftest.err conftest.i conftest.$ac_ext
  17464. fi # $ac_x_includes = no
  17465. if test "$ac_x_libraries" = no; then
  17466. # Check for the libraries.
  17467. # See if we find them without any special options.
  17468. # Don't add to $LIBS permanently.
  17469. ac_save_LIBS=$LIBS
  17470. LIBS="-lX11 $LIBS"
  17471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17472. /* end confdefs.h. */
  17473. #include <X11/Xlib.h>
  17474. int
  17475. main ()
  17476. {
  17477. XrmInitialize ()
  17478. ;
  17479. return 0;
  17480. }
  17481. _ACEOF
  17482. if ac_fn_c_try_link "$LINENO"; then :
  17483. LIBS=$ac_save_LIBS
  17484. # We can link X programs with no special library path.
  17485. ac_x_libraries=
  17486. else
  17487. LIBS=$ac_save_LIBS
  17488. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  17489. do
  17490. # Don't even attempt the hair of trying to link an X program!
  17491. for ac_extension in a so sl dylib la dll; do
  17492. if test -r "$ac_dir/libX11.$ac_extension"; then
  17493. ac_x_libraries=$ac_dir
  17494. break 2
  17495. fi
  17496. done
  17497. done
  17498. fi
  17499. rm -f core conftest.err conftest.$ac_objext \
  17500. conftest$ac_exeext conftest.$ac_ext
  17501. fi # $ac_x_libraries = no
  17502. case $ac_x_includes,$ac_x_libraries in #(
  17503. no,* | *,no | *\'*)
  17504. # Didn't find X, or a directory has "'" in its name.
  17505. ac_cv_have_x="have_x=no";; #(
  17506. *)
  17507. # Record where we found X for the cache.
  17508. ac_cv_have_x="have_x=yes\
  17509. ac_x_includes='$ac_x_includes'\
  17510. ac_x_libraries='$ac_x_libraries'"
  17511. esac
  17512. fi
  17513. ;; #(
  17514. *) have_x=yes;;
  17515. esac
  17516. eval "$ac_cv_have_x"
  17517. fi # $with_x != no
  17518. if test "$have_x" != yes; then
  17519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  17520. $as_echo "$have_x" >&6; }
  17521. no_x=yes
  17522. else
  17523. # If each of the values was on the command line, it overrides each guess.
  17524. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  17525. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  17526. # Update the cache value to reflect the command line values.
  17527. ac_cv_have_x="have_x=yes\
  17528. ac_x_includes='$x_includes'\
  17529. ac_x_libraries='$x_libraries'"
  17530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  17531. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  17532. fi
  17533. if test "$no_x" = yes; then
  17534. # Not all programs may use this symbol, but it does not hurt to define it.
  17535. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  17536. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  17537. else
  17538. if test -n "$x_includes"; then
  17539. X_CFLAGS="$X_CFLAGS -I$x_includes"
  17540. fi
  17541. # It would also be nice to do this for all -L options, not just this one.
  17542. if test -n "$x_libraries"; then
  17543. X_LIBS="$X_LIBS -L$x_libraries"
  17544. # For Solaris; some versions of Sun CC require a space after -R and
  17545. # others require no space. Words are not sufficient . . . .
  17546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  17547. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  17548. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  17549. ac_xsave_c_werror_flag=$ac_c_werror_flag
  17550. ac_c_werror_flag=yes
  17551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17552. /* end confdefs.h. */
  17553. int
  17554. main ()
  17555. {
  17556. ;
  17557. return 0;
  17558. }
  17559. _ACEOF
  17560. if ac_fn_c_try_link "$LINENO"; then :
  17561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17562. $as_echo "no" >&6; }
  17563. X_LIBS="$X_LIBS -R$x_libraries"
  17564. else
  17565. LIBS="$ac_xsave_LIBS -R $x_libraries"
  17566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17567. /* end confdefs.h. */
  17568. int
  17569. main ()
  17570. {
  17571. ;
  17572. return 0;
  17573. }
  17574. _ACEOF
  17575. if ac_fn_c_try_link "$LINENO"; then :
  17576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17577. $as_echo "yes" >&6; }
  17578. X_LIBS="$X_LIBS -R $x_libraries"
  17579. else
  17580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  17581. $as_echo "neither works" >&6; }
  17582. fi
  17583. rm -f core conftest.err conftest.$ac_objext \
  17584. conftest$ac_exeext conftest.$ac_ext
  17585. fi
  17586. rm -f core conftest.err conftest.$ac_objext \
  17587. conftest$ac_exeext conftest.$ac_ext
  17588. ac_c_werror_flag=$ac_xsave_c_werror_flag
  17589. LIBS=$ac_xsave_LIBS
  17590. fi
  17591. # Check for system-dependent libraries X programs must link with.
  17592. # Do this before checking for the system-independent R6 libraries
  17593. # (-lICE), since we may need -lsocket or whatever for X linking.
  17594. if test "$ISC" = yes; then
  17595. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  17596. else
  17597. # Martyn Johnson says this is needed for Ultrix, if the X
  17598. # libraries were built with DECnet support. And Karl Berry says
  17599. # the Alpha needs dnet_stub (dnet does not exist).
  17600. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  17601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17602. /* end confdefs.h. */
  17603. /* Override any GCC internal prototype to avoid an error.
  17604. Use char because int might match the return type of a GCC
  17605. builtin and then its argument prototype would still apply. */
  17606. #ifdef __cplusplus
  17607. extern "C"
  17608. #endif
  17609. char XOpenDisplay ();
  17610. int
  17611. main ()
  17612. {
  17613. return XOpenDisplay ();
  17614. ;
  17615. return 0;
  17616. }
  17617. _ACEOF
  17618. if ac_fn_c_try_link "$LINENO"; then :
  17619. else
  17620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  17621. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  17622. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  17623. $as_echo_n "(cached) " >&6
  17624. else
  17625. ac_check_lib_save_LIBS=$LIBS
  17626. LIBS="-ldnet $LIBS"
  17627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17628. /* end confdefs.h. */
  17629. /* Override any GCC internal prototype to avoid an error.
  17630. Use char because int might match the return type of a GCC
  17631. builtin and then its argument prototype would still apply. */
  17632. #ifdef __cplusplus
  17633. extern "C"
  17634. #endif
  17635. char dnet_ntoa ();
  17636. int
  17637. main ()
  17638. {
  17639. return dnet_ntoa ();
  17640. ;
  17641. return 0;
  17642. }
  17643. _ACEOF
  17644. if ac_fn_c_try_link "$LINENO"; then :
  17645. ac_cv_lib_dnet_dnet_ntoa=yes
  17646. else
  17647. ac_cv_lib_dnet_dnet_ntoa=no
  17648. fi
  17649. rm -f core conftest.err conftest.$ac_objext \
  17650. conftest$ac_exeext conftest.$ac_ext
  17651. LIBS=$ac_check_lib_save_LIBS
  17652. fi
  17653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  17654. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  17655. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  17656. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  17657. fi
  17658. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  17659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  17660. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  17661. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  17662. $as_echo_n "(cached) " >&6
  17663. else
  17664. ac_check_lib_save_LIBS=$LIBS
  17665. LIBS="-ldnet_stub $LIBS"
  17666. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17667. /* end confdefs.h. */
  17668. /* Override any GCC internal prototype to avoid an error.
  17669. Use char because int might match the return type of a GCC
  17670. builtin and then its argument prototype would still apply. */
  17671. #ifdef __cplusplus
  17672. extern "C"
  17673. #endif
  17674. char dnet_ntoa ();
  17675. int
  17676. main ()
  17677. {
  17678. return dnet_ntoa ();
  17679. ;
  17680. return 0;
  17681. }
  17682. _ACEOF
  17683. if ac_fn_c_try_link "$LINENO"; then :
  17684. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  17685. else
  17686. ac_cv_lib_dnet_stub_dnet_ntoa=no
  17687. fi
  17688. rm -f core conftest.err conftest.$ac_objext \
  17689. conftest$ac_exeext conftest.$ac_ext
  17690. LIBS=$ac_check_lib_save_LIBS
  17691. fi
  17692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  17693. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  17694. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  17695. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  17696. fi
  17697. fi
  17698. fi
  17699. rm -f core conftest.err conftest.$ac_objext \
  17700. conftest$ac_exeext conftest.$ac_ext
  17701. LIBS="$ac_xsave_LIBS"
  17702. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  17703. # to get the SysV transport functions.
  17704. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  17705. # needs -lnsl.
  17706. # The nsl library prevents programs from opening the X display
  17707. # on Irix 5.2, according to T.E. Dickey.
  17708. # The functions gethostbyname, getservbyname, and inet_addr are
  17709. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  17710. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  17711. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  17712. fi
  17713. if test $ac_cv_func_gethostbyname = no; then
  17714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  17715. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  17716. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  17717. $as_echo_n "(cached) " >&6
  17718. else
  17719. ac_check_lib_save_LIBS=$LIBS
  17720. LIBS="-lnsl $LIBS"
  17721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17722. /* end confdefs.h. */
  17723. /* Override any GCC internal prototype to avoid an error.
  17724. Use char because int might match the return type of a GCC
  17725. builtin and then its argument prototype would still apply. */
  17726. #ifdef __cplusplus
  17727. extern "C"
  17728. #endif
  17729. char gethostbyname ();
  17730. int
  17731. main ()
  17732. {
  17733. return gethostbyname ();
  17734. ;
  17735. return 0;
  17736. }
  17737. _ACEOF
  17738. if ac_fn_c_try_link "$LINENO"; then :
  17739. ac_cv_lib_nsl_gethostbyname=yes
  17740. else
  17741. ac_cv_lib_nsl_gethostbyname=no
  17742. fi
  17743. rm -f core conftest.err conftest.$ac_objext \
  17744. conftest$ac_exeext conftest.$ac_ext
  17745. LIBS=$ac_check_lib_save_LIBS
  17746. fi
  17747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  17748. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  17749. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  17750. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  17751. fi
  17752. if test $ac_cv_lib_nsl_gethostbyname = no; then
  17753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  17754. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  17755. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  17756. $as_echo_n "(cached) " >&6
  17757. else
  17758. ac_check_lib_save_LIBS=$LIBS
  17759. LIBS="-lbsd $LIBS"
  17760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17761. /* end confdefs.h. */
  17762. /* Override any GCC internal prototype to avoid an error.
  17763. Use char because int might match the return type of a GCC
  17764. builtin and then its argument prototype would still apply. */
  17765. #ifdef __cplusplus
  17766. extern "C"
  17767. #endif
  17768. char gethostbyname ();
  17769. int
  17770. main ()
  17771. {
  17772. return gethostbyname ();
  17773. ;
  17774. return 0;
  17775. }
  17776. _ACEOF
  17777. if ac_fn_c_try_link "$LINENO"; then :
  17778. ac_cv_lib_bsd_gethostbyname=yes
  17779. else
  17780. ac_cv_lib_bsd_gethostbyname=no
  17781. fi
  17782. rm -f core conftest.err conftest.$ac_objext \
  17783. conftest$ac_exeext conftest.$ac_ext
  17784. LIBS=$ac_check_lib_save_LIBS
  17785. fi
  17786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17787. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  17788. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  17789. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  17790. fi
  17791. fi
  17792. fi
  17793. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  17794. # socket/setsockopt and other routines are undefined under SCO ODT
  17795. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  17796. # on later versions), says Simon Leinen: it contains gethostby*
  17797. # variants that don't use the name server (or something). -lsocket
  17798. # must be given before -lnsl if both are needed. We assume that
  17799. # if connect needs -lnsl, so does gethostbyname.
  17800. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  17801. if test "x$ac_cv_func_connect" = xyes; then :
  17802. fi
  17803. if test $ac_cv_func_connect = no; then
  17804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17805. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17806. if ${ac_cv_lib_socket_connect+:} false; then :
  17807. $as_echo_n "(cached) " >&6
  17808. else
  17809. ac_check_lib_save_LIBS=$LIBS
  17810. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17812. /* end confdefs.h. */
  17813. /* Override any GCC internal prototype to avoid an error.
  17814. Use char because int might match the return type of a GCC
  17815. builtin and then its argument prototype would still apply. */
  17816. #ifdef __cplusplus
  17817. extern "C"
  17818. #endif
  17819. char connect ();
  17820. int
  17821. main ()
  17822. {
  17823. return connect ();
  17824. ;
  17825. return 0;
  17826. }
  17827. _ACEOF
  17828. if ac_fn_c_try_link "$LINENO"; then :
  17829. ac_cv_lib_socket_connect=yes
  17830. else
  17831. ac_cv_lib_socket_connect=no
  17832. fi
  17833. rm -f core conftest.err conftest.$ac_objext \
  17834. conftest$ac_exeext conftest.$ac_ext
  17835. LIBS=$ac_check_lib_save_LIBS
  17836. fi
  17837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17838. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17839. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17840. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17841. fi
  17842. fi
  17843. # Guillermo Gomez says -lposix is necessary on A/UX.
  17844. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17845. if test "x$ac_cv_func_remove" = xyes; then :
  17846. fi
  17847. if test $ac_cv_func_remove = no; then
  17848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17849. $as_echo_n "checking for remove in -lposix... " >&6; }
  17850. if ${ac_cv_lib_posix_remove+:} false; then :
  17851. $as_echo_n "(cached) " >&6
  17852. else
  17853. ac_check_lib_save_LIBS=$LIBS
  17854. LIBS="-lposix $LIBS"
  17855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17856. /* end confdefs.h. */
  17857. /* Override any GCC internal prototype to avoid an error.
  17858. Use char because int might match the return type of a GCC
  17859. builtin and then its argument prototype would still apply. */
  17860. #ifdef __cplusplus
  17861. extern "C"
  17862. #endif
  17863. char remove ();
  17864. int
  17865. main ()
  17866. {
  17867. return remove ();
  17868. ;
  17869. return 0;
  17870. }
  17871. _ACEOF
  17872. if ac_fn_c_try_link "$LINENO"; then :
  17873. ac_cv_lib_posix_remove=yes
  17874. else
  17875. ac_cv_lib_posix_remove=no
  17876. fi
  17877. rm -f core conftest.err conftest.$ac_objext \
  17878. conftest$ac_exeext conftest.$ac_ext
  17879. LIBS=$ac_check_lib_save_LIBS
  17880. fi
  17881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17882. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17883. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  17884. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17885. fi
  17886. fi
  17887. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17888. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  17889. if test "x$ac_cv_func_shmat" = xyes; then :
  17890. fi
  17891. if test $ac_cv_func_shmat = no; then
  17892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  17893. $as_echo_n "checking for shmat in -lipc... " >&6; }
  17894. if ${ac_cv_lib_ipc_shmat+:} false; then :
  17895. $as_echo_n "(cached) " >&6
  17896. else
  17897. ac_check_lib_save_LIBS=$LIBS
  17898. LIBS="-lipc $LIBS"
  17899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17900. /* end confdefs.h. */
  17901. /* Override any GCC internal prototype to avoid an error.
  17902. Use char because int might match the return type of a GCC
  17903. builtin and then its argument prototype would still apply. */
  17904. #ifdef __cplusplus
  17905. extern "C"
  17906. #endif
  17907. char shmat ();
  17908. int
  17909. main ()
  17910. {
  17911. return shmat ();
  17912. ;
  17913. return 0;
  17914. }
  17915. _ACEOF
  17916. if ac_fn_c_try_link "$LINENO"; then :
  17917. ac_cv_lib_ipc_shmat=yes
  17918. else
  17919. ac_cv_lib_ipc_shmat=no
  17920. fi
  17921. rm -f core conftest.err conftest.$ac_objext \
  17922. conftest$ac_exeext conftest.$ac_ext
  17923. LIBS=$ac_check_lib_save_LIBS
  17924. fi
  17925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  17926. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  17927. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  17928. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  17929. fi
  17930. fi
  17931. fi
  17932. # Check for libraries that X11R6 Xt/Xaw programs need.
  17933. ac_save_LDFLAGS=$LDFLAGS
  17934. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  17935. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  17936. # check for ICE first), but we must link in the order -lSM -lICE or
  17937. # we get undefined symbols. So assume we have SM if we have ICE.
  17938. # These have to be linked with before -lX11, unlike the other
  17939. # libraries we check for below, so use a different variable.
  17940. # John Interrante, Karl Berry
  17941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  17942. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  17943. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  17944. $as_echo_n "(cached) " >&6
  17945. else
  17946. ac_check_lib_save_LIBS=$LIBS
  17947. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  17948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17949. /* end confdefs.h. */
  17950. /* Override any GCC internal prototype to avoid an error.
  17951. Use char because int might match the return type of a GCC
  17952. builtin and then its argument prototype would still apply. */
  17953. #ifdef __cplusplus
  17954. extern "C"
  17955. #endif
  17956. char IceConnectionNumber ();
  17957. int
  17958. main ()
  17959. {
  17960. return IceConnectionNumber ();
  17961. ;
  17962. return 0;
  17963. }
  17964. _ACEOF
  17965. if ac_fn_c_try_link "$LINENO"; then :
  17966. ac_cv_lib_ICE_IceConnectionNumber=yes
  17967. else
  17968. ac_cv_lib_ICE_IceConnectionNumber=no
  17969. fi
  17970. rm -f core conftest.err conftest.$ac_objext \
  17971. conftest$ac_exeext conftest.$ac_ext
  17972. LIBS=$ac_check_lib_save_LIBS
  17973. fi
  17974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17975. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17976. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  17977. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17978. fi
  17979. LDFLAGS=$ac_save_LDFLAGS
  17980. fi
  17981. if test x$have_x = xyes; then
  17982. # Check whether --enable-x11-shared was given.
  17983. if test "${enable_x11_shared+set}" = set; then :
  17984. enableval=$enable_x11_shared;
  17985. else
  17986. enable_x11_shared=maybe
  17987. fi
  17988. case "$host" in
  17989. *-*-darwin*)
  17990. # Apple now puts this in /opt/X11
  17991. x11_lib='/opt/X11/lib/libX11.6.dylib'
  17992. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  17993. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  17994. xinerama_lib='/opt/X11/lib/libXinerama.1.dylib'
  17995. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  17996. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  17997. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  17998. xss_lib='/opt/X11/lib/libXss.1.dylib'
  17999. xvidmode_lib='/opt/X11/lib/libXxf86vm.1.dylib'
  18000. ;;
  18001. *-*-openbsd*)
  18002. x11_lib='libX11.so'
  18003. x11ext_lib='libXext.so'
  18004. xcursor_lib='libXcursor.so'
  18005. xinerama_lib='libXinerama.so'
  18006. xinput_lib='libXi.so'
  18007. xrandr_lib='libXrandr.so'
  18008. xrender_lib='libXrender.so'
  18009. xss_lib='libXss.so'
  18010. xvidmode_lib='libXxf86vm.so'
  18011. ;;
  18012. *)
  18013. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18014. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18015. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18016. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18017. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18018. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18019. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18020. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18021. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18022. ;;
  18023. esac
  18024. if test x$ac_cv_func_shmat != xyes; then
  18025. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  18026. fi
  18027. CFLAGS="$CFLAGS $X_CFLAGS"
  18028. LDFLAGS="$LDFLAGS $X_LIBS"
  18029. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  18030. #include <X11/Xproto.h>
  18031. "
  18032. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  18033. have_xext_h_hdr=yes
  18034. else
  18035. have_xext_h_hdr=no
  18036. fi
  18037. if test x$have_xext_h_hdr != xyes; then
  18038. as_fn_error $? "
  18039. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  18040. " "$LINENO" 5
  18041. fi
  18042. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  18043. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  18044. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  18045. # Needed so SDL applications can include SDL_syswm.h
  18046. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  18047. if test x$enable_x11_shared = xmaybe; then
  18048. enable_x11_shared=yes
  18049. fi
  18050. if test x$have_loadso != xyes && \
  18051. test x$enable_x11_shared = xyes; then
  18052. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  18053. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  18054. enable_x11_shared=no
  18055. fi
  18056. if test x$have_loadso = xyes && \
  18057. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  18058. echo "-- dynamic libX11 -> $x11_lib"
  18059. echo "-- dynamic libX11ext -> $x11ext_lib"
  18060. cat >>confdefs.h <<_ACEOF
  18061. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  18062. _ACEOF
  18063. cat >>confdefs.h <<_ACEOF
  18064. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  18065. _ACEOF
  18066. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  18067. else
  18068. enable_x11_shared=no
  18069. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  18070. SUMMARY_video="${SUMMARY_video} x11"
  18071. fi
  18072. have_video=yes
  18073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  18074. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  18075. have_const_param_XextAddDisplay=no
  18076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18077. /* end confdefs.h. */
  18078. #include <X11/Xlib.h>
  18079. #include <X11/Xproto.h>
  18080. #include <X11/extensions/Xext.h>
  18081. #include <X11/extensions/extutil.h>
  18082. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  18083. int
  18084. main ()
  18085. {
  18086. ;
  18087. return 0;
  18088. }
  18089. _ACEOF
  18090. if ac_fn_c_try_compile "$LINENO"; then :
  18091. have_const_param_XextAddDisplay=yes
  18092. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  18093. fi
  18094. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  18096. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  18097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  18098. $as_echo_n "checking for XGenericEvent... " >&6; }
  18099. have_XGenericEvent=no
  18100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18101. /* end confdefs.h. */
  18102. #include <X11/Xlib.h>
  18103. int
  18104. main ()
  18105. {
  18106. Display *display;
  18107. XEvent event;
  18108. XGenericEventCookie *cookie = &event.xcookie;
  18109. XNextEvent(display, &event);
  18110. XGetEventData(display, cookie);
  18111. XFreeEventData(display, cookie);
  18112. ;
  18113. return 0;
  18114. }
  18115. _ACEOF
  18116. if ac_fn_c_try_compile "$LINENO"; then :
  18117. have_XGenericEvent=yes
  18118. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  18119. fi
  18120. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  18122. $as_echo "$have_XGenericEvent" >&6; }
  18123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  18124. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  18125. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  18126. $as_echo_n "(cached) " >&6
  18127. else
  18128. ac_check_lib_save_LIBS=$LIBS
  18129. LIBS="-lX11 $LIBS"
  18130. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18131. /* end confdefs.h. */
  18132. /* Override any GCC internal prototype to avoid an error.
  18133. Use char because int might match the return type of a GCC
  18134. builtin and then its argument prototype would still apply. */
  18135. #ifdef __cplusplus
  18136. extern "C"
  18137. #endif
  18138. char XkbKeycodeToKeysym ();
  18139. int
  18140. main ()
  18141. {
  18142. return XkbKeycodeToKeysym ();
  18143. ;
  18144. return 0;
  18145. }
  18146. _ACEOF
  18147. if ac_fn_c_try_link "$LINENO"; then :
  18148. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  18149. else
  18150. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  18151. fi
  18152. rm -f core conftest.err conftest.$ac_objext \
  18153. conftest$ac_exeext conftest.$ac_ext
  18154. LIBS=$ac_check_lib_save_LIBS
  18155. fi
  18156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  18157. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  18158. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  18159. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  18160. fi
  18161. # Check whether --enable-video-x11-xcursor was given.
  18162. if test "${enable_video_x11_xcursor+set}" = set; then :
  18163. enableval=$enable_video_x11_xcursor;
  18164. else
  18165. enable_video_x11_xcursor=yes
  18166. fi
  18167. if test x$enable_video_x11_xcursor = xyes; then
  18168. definitely_enable_video_x11_xcursor=no
  18169. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  18170. "
  18171. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  18172. have_xcursor_h_hdr=yes
  18173. else
  18174. have_xcursor_h_hdr=no
  18175. fi
  18176. if test x$have_xcursor_h_hdr = xyes; then
  18177. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  18178. echo "-- dynamic libXcursor -> $xcursor_lib"
  18179. cat >>confdefs.h <<_ACEOF
  18180. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  18181. _ACEOF
  18182. definitely_enable_video_x11_xcursor=yes
  18183. else
  18184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  18185. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  18186. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  18187. $as_echo_n "(cached) " >&6
  18188. else
  18189. ac_check_lib_save_LIBS=$LIBS
  18190. LIBS="-lXcursor $LIBS"
  18191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18192. /* end confdefs.h. */
  18193. /* Override any GCC internal prototype to avoid an error.
  18194. Use char because int might match the return type of a GCC
  18195. builtin and then its argument prototype would still apply. */
  18196. #ifdef __cplusplus
  18197. extern "C"
  18198. #endif
  18199. char XcursorImageCreate ();
  18200. int
  18201. main ()
  18202. {
  18203. return XcursorImageCreate ();
  18204. ;
  18205. return 0;
  18206. }
  18207. _ACEOF
  18208. if ac_fn_c_try_link "$LINENO"; then :
  18209. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  18210. else
  18211. ac_cv_lib_Xcursor_XcursorImageCreate=no
  18212. fi
  18213. rm -f core conftest.err conftest.$ac_objext \
  18214. conftest$ac_exeext conftest.$ac_ext
  18215. LIBS=$ac_check_lib_save_LIBS
  18216. fi
  18217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  18218. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  18219. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  18220. have_xcursor_lib=yes
  18221. fi
  18222. if test x$have_xcursor_lib = xyes ; then
  18223. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  18224. definitely_enable_video_x11_xcursor=yes
  18225. fi
  18226. fi
  18227. fi
  18228. fi
  18229. if test x$definitely_enable_video_x11_xcursor = xyes; then
  18230. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  18231. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  18232. fi
  18233. # Check whether --enable-video-x11-xdbe was given.
  18234. if test "${enable_video_x11_xdbe+set}" = set; then :
  18235. enableval=$enable_video_x11_xdbe;
  18236. else
  18237. enable_video_x11_xdbe=yes
  18238. fi
  18239. if test x$enable_video_x11_xdbe = xyes; then
  18240. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  18241. "
  18242. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  18243. have_dbe_h_hdr=yes
  18244. else
  18245. have_dbe_h_hdr=no
  18246. fi
  18247. if test x$have_dbe_h_hdr = xyes; then
  18248. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  18249. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  18250. fi
  18251. fi
  18252. # Check whether --enable-video-x11-xinerama was given.
  18253. if test "${enable_video_x11_xinerama+set}" = set; then :
  18254. enableval=$enable_video_x11_xinerama;
  18255. else
  18256. enable_video_x11_xinerama=yes
  18257. fi
  18258. if test x$enable_video_x11_xinerama = xyes; then
  18259. definitely_enable_video_x11_xinerama=no
  18260. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  18261. "
  18262. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  18263. have_xinerama_h_hdr=yes
  18264. else
  18265. have_xinerama_h_hdr=no
  18266. fi
  18267. if test x$have_xinerama_h_hdr = xyes; then
  18268. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  18269. echo "-- dynamic libXinerama -> $xinerama_lib"
  18270. cat >>confdefs.h <<_ACEOF
  18271. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  18272. _ACEOF
  18273. definitely_enable_video_x11_xinerama=yes
  18274. else
  18275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  18276. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  18277. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  18278. $as_echo_n "(cached) " >&6
  18279. else
  18280. ac_check_lib_save_LIBS=$LIBS
  18281. LIBS="-lXinerama $LIBS"
  18282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18283. /* end confdefs.h. */
  18284. /* Override any GCC internal prototype to avoid an error.
  18285. Use char because int might match the return type of a GCC
  18286. builtin and then its argument prototype would still apply. */
  18287. #ifdef __cplusplus
  18288. extern "C"
  18289. #endif
  18290. char XineramaQueryExtension ();
  18291. int
  18292. main ()
  18293. {
  18294. return XineramaQueryExtension ();
  18295. ;
  18296. return 0;
  18297. }
  18298. _ACEOF
  18299. if ac_fn_c_try_link "$LINENO"; then :
  18300. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  18301. else
  18302. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  18303. fi
  18304. rm -f core conftest.err conftest.$ac_objext \
  18305. conftest$ac_exeext conftest.$ac_ext
  18306. LIBS=$ac_check_lib_save_LIBS
  18307. fi
  18308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  18309. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  18310. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  18311. have_xinerama_lib=yes
  18312. fi
  18313. if test x$have_xinerama_lib = xyes ; then
  18314. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  18315. definitely_enable_video_x11_xinerama=yes
  18316. fi
  18317. fi
  18318. fi
  18319. fi
  18320. if test x$definitely_enable_video_x11_xinerama = xyes; then
  18321. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  18322. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  18323. fi
  18324. # Check whether --enable-video-x11-xinput was given.
  18325. if test "${enable_video_x11_xinput+set}" = set; then :
  18326. enableval=$enable_video_x11_xinput;
  18327. else
  18328. enable_video_x11_xinput=yes
  18329. fi
  18330. if test x$enable_video_x11_xinput = xyes; then
  18331. definitely_enable_video_x11_xinput=no
  18332. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  18333. "
  18334. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  18335. have_xinput_h_hdr=yes
  18336. else
  18337. have_xinput_h_hdr=no
  18338. fi
  18339. if test x$have_xinput_h_hdr = xyes; then
  18340. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  18341. echo "-- dynamic libXi -> $xinput_lib"
  18342. cat >>confdefs.h <<_ACEOF
  18343. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  18344. _ACEOF
  18345. definitely_enable_video_x11_xinput=yes
  18346. else
  18347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  18348. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  18349. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  18350. $as_echo_n "(cached) " >&6
  18351. else
  18352. ac_check_lib_save_LIBS=$LIBS
  18353. LIBS="-lXi $LIBS"
  18354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18355. /* end confdefs.h. */
  18356. /* Override any GCC internal prototype to avoid an error.
  18357. Use char because int might match the return type of a GCC
  18358. builtin and then its argument prototype would still apply. */
  18359. #ifdef __cplusplus
  18360. extern "C"
  18361. #endif
  18362. char XOpenDevice ();
  18363. int
  18364. main ()
  18365. {
  18366. return XOpenDevice ();
  18367. ;
  18368. return 0;
  18369. }
  18370. _ACEOF
  18371. if ac_fn_c_try_link "$LINENO"; then :
  18372. ac_cv_lib_Xi_XOpenDevice=yes
  18373. else
  18374. ac_cv_lib_Xi_XOpenDevice=no
  18375. fi
  18376. rm -f core conftest.err conftest.$ac_objext \
  18377. conftest$ac_exeext conftest.$ac_ext
  18378. LIBS=$ac_check_lib_save_LIBS
  18379. fi
  18380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  18381. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  18382. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  18383. have_xinput_lib=yes
  18384. fi
  18385. if test x$have_xinput_lib = xyes ; then
  18386. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  18387. definitely_enable_video_x11_xinput=yes
  18388. fi
  18389. fi
  18390. fi
  18391. fi
  18392. if test x$definitely_enable_video_x11_xinput = xyes; then
  18393. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  18394. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  18395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  18396. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  18397. have_xinput2_multitouch=no
  18398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18399. /* end confdefs.h. */
  18400. #include <X11/Xlib.h>
  18401. #include <X11/Xproto.h>
  18402. #include <X11/extensions/XInput2.h>
  18403. int
  18404. main ()
  18405. {
  18406. int event_type = XI_TouchBegin;
  18407. XITouchClassInfo *t;
  18408. ;
  18409. return 0;
  18410. }
  18411. _ACEOF
  18412. if ac_fn_c_try_compile "$LINENO"; then :
  18413. have_xinput2_multitouch=yes
  18414. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  18415. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  18416. fi
  18417. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  18419. $as_echo "$have_xinput2_multitouch" >&6; }
  18420. fi
  18421. # Check whether --enable-video-x11-xrandr was given.
  18422. if test "${enable_video_x11_xrandr+set}" = set; then :
  18423. enableval=$enable_video_x11_xrandr;
  18424. else
  18425. enable_video_x11_xrandr=yes
  18426. fi
  18427. if test x$enable_video_x11_xrandr = xyes; then
  18428. definitely_enable_video_x11_xrandr=no
  18429. have_xrandr_h_hdr=no
  18430. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18431. /* end confdefs.h. */
  18432. #include <X11/Xlib.h>
  18433. #include <X11/extensions/Xrandr.h>
  18434. int
  18435. main ()
  18436. {
  18437. XRRScreenResources *res = NULL;
  18438. ;
  18439. return 0;
  18440. }
  18441. _ACEOF
  18442. if ac_fn_c_try_compile "$LINENO"; then :
  18443. have_xrandr_h_hdr=yes
  18444. fi
  18445. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18446. if test x$have_xrandr_h_hdr = xyes; then
  18447. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  18448. echo "-- dynamic libXrandr -> $xrandr_lib"
  18449. cat >>confdefs.h <<_ACEOF
  18450. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  18451. _ACEOF
  18452. definitely_enable_video_x11_xrandr=yes
  18453. else
  18454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  18455. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  18456. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  18457. $as_echo_n "(cached) " >&6
  18458. else
  18459. ac_check_lib_save_LIBS=$LIBS
  18460. LIBS="-lXrandr $LIBS"
  18461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18462. /* end confdefs.h. */
  18463. /* Override any GCC internal prototype to avoid an error.
  18464. Use char because int might match the return type of a GCC
  18465. builtin and then its argument prototype would still apply. */
  18466. #ifdef __cplusplus
  18467. extern "C"
  18468. #endif
  18469. char XRRQueryExtension ();
  18470. int
  18471. main ()
  18472. {
  18473. return XRRQueryExtension ();
  18474. ;
  18475. return 0;
  18476. }
  18477. _ACEOF
  18478. if ac_fn_c_try_link "$LINENO"; then :
  18479. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  18480. else
  18481. ac_cv_lib_Xrandr_XRRQueryExtension=no
  18482. fi
  18483. rm -f core conftest.err conftest.$ac_objext \
  18484. conftest$ac_exeext conftest.$ac_ext
  18485. LIBS=$ac_check_lib_save_LIBS
  18486. fi
  18487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  18488. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  18489. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  18490. have_xrandr_lib=yes
  18491. fi
  18492. if test x$have_xrandr_lib = xyes ; then
  18493. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  18494. definitely_enable_video_x11_xrandr=yes
  18495. fi
  18496. fi
  18497. fi
  18498. fi
  18499. if test x$definitely_enable_video_x11_xrandr = xyes; then
  18500. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  18501. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  18502. fi
  18503. # Check whether --enable-video-x11-scrnsaver was given.
  18504. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  18505. enableval=$enable_video_x11_scrnsaver;
  18506. else
  18507. enable_video_x11_scrnsaver=yes
  18508. fi
  18509. if test x$enable_video_x11_scrnsaver = xyes; then
  18510. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  18511. "
  18512. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  18513. have_scrnsaver_h_hdr=yes
  18514. else
  18515. have_scrnsaver_h_hdr=no
  18516. fi
  18517. if test x$have_scrnsaver_h_hdr = xyes; then
  18518. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  18519. echo "-- dynamic libXss -> $xss_lib"
  18520. cat >>confdefs.h <<_ACEOF
  18521. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  18522. _ACEOF
  18523. definitely_enable_video_x11_scrnsaver=yes
  18524. else
  18525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  18526. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  18527. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  18528. $as_echo_n "(cached) " >&6
  18529. else
  18530. ac_check_lib_save_LIBS=$LIBS
  18531. LIBS="-lXss $LIBS"
  18532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18533. /* end confdefs.h. */
  18534. /* Override any GCC internal prototype to avoid an error.
  18535. Use char because int might match the return type of a GCC
  18536. builtin and then its argument prototype would still apply. */
  18537. #ifdef __cplusplus
  18538. extern "C"
  18539. #endif
  18540. char XScreenSaverSuspend ();
  18541. int
  18542. main ()
  18543. {
  18544. return XScreenSaverSuspend ();
  18545. ;
  18546. return 0;
  18547. }
  18548. _ACEOF
  18549. if ac_fn_c_try_link "$LINENO"; then :
  18550. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  18551. else
  18552. ac_cv_lib_Xss_XScreenSaverSuspend=no
  18553. fi
  18554. rm -f core conftest.err conftest.$ac_objext \
  18555. conftest$ac_exeext conftest.$ac_ext
  18556. LIBS=$ac_check_lib_save_LIBS
  18557. fi
  18558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  18559. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  18560. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  18561. have_xss_lib=yes
  18562. fi
  18563. if test x$have_xss_lib = xyes ; then
  18564. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  18565. definitely_enable_video_x11_scrnsaver=yes
  18566. fi
  18567. fi
  18568. fi
  18569. fi
  18570. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  18571. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  18572. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  18573. fi
  18574. # Check whether --enable-video-x11-xshape was given.
  18575. if test "${enable_video_x11_xshape+set}" = set; then :
  18576. enableval=$enable_video_x11_xshape;
  18577. else
  18578. enable_video_x11_xshape=yes
  18579. fi
  18580. if test x$enable_video_x11_xshape = xyes; then
  18581. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  18582. "
  18583. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  18584. have_shape_h_hdr=yes
  18585. else
  18586. have_shape_h_hdr=no
  18587. fi
  18588. if test x$have_shape_h_hdr = xyes; then
  18589. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  18590. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  18591. fi
  18592. fi
  18593. # Check whether --enable-video-x11-vm was given.
  18594. if test "${enable_video_x11_vm+set}" = set; then :
  18595. enableval=$enable_video_x11_vm;
  18596. else
  18597. enable_video_x11_vm=yes
  18598. fi
  18599. if test x$enable_video_x11_vm = xyes; then
  18600. definitely_enable_video_x11_vm=no
  18601. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  18602. "
  18603. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  18604. have_vm_h_hdr=yes
  18605. else
  18606. have_vm_h_hdr=no
  18607. fi
  18608. if test x$have_vm_h_hdr = xyes; then
  18609. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  18610. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  18611. cat >>confdefs.h <<_ACEOF
  18612. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  18613. _ACEOF
  18614. definitely_enable_video_x11_vm=yes
  18615. else
  18616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  18617. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  18618. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  18619. $as_echo_n "(cached) " >&6
  18620. else
  18621. ac_check_lib_save_LIBS=$LIBS
  18622. LIBS="-lXxf86vm $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 XF86VidModeQueryVersion ();
  18632. int
  18633. main ()
  18634. {
  18635. return XF86VidModeQueryVersion ();
  18636. ;
  18637. return 0;
  18638. }
  18639. _ACEOF
  18640. if ac_fn_c_try_link "$LINENO"; then :
  18641. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  18642. else
  18643. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=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_Xxf86vm_XF86VidModeQueryVersion" >&5
  18650. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  18651. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  18652. have_vm_lib=yes
  18653. fi
  18654. if test x$have_vm_lib = xyes ; then
  18655. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  18656. definitely_enable_video_x11_vm=yes
  18657. fi
  18658. fi
  18659. fi
  18660. fi
  18661. if test x$definitely_enable_video_x11_vm = xyes; then
  18662. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  18663. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  18664. fi
  18665. fi
  18666. else
  18667. # Prevent Mesa from including X11 headers
  18668. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  18669. fi
  18670. }
  18671. CheckVivanteVideo()
  18672. {
  18673. # Check whether --enable-video-vivante was given.
  18674. if test "${enable_video_vivante+set}" = set; then :
  18675. enableval=$enable_video_vivante;
  18676. else
  18677. enable_video_vivante=yes
  18678. fi
  18679. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  18680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  18681. $as_echo_n "checking for Vivante VDK API... " >&6; }
  18682. have_vivante_vdk=no
  18683. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18684. /* end confdefs.h. */
  18685. #define LINUX
  18686. #define EGL_API_FB
  18687. #include <gc_vdk.h>
  18688. int
  18689. main ()
  18690. {
  18691. ;
  18692. return 0;
  18693. }
  18694. _ACEOF
  18695. if ac_fn_c_try_compile "$LINENO"; then :
  18696. have_vivante_vdk=yes
  18697. fi
  18698. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  18700. $as_echo "$have_vivante_vdk" >&6; }
  18701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  18702. $as_echo_n "checking for Vivante FB API... " >&6; }
  18703. have_vivante_egl=no
  18704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18705. /* end confdefs.h. */
  18706. #define LINUX
  18707. #define EGL_API_FB
  18708. #include <EGL/eglvivante.h>
  18709. int
  18710. main ()
  18711. {
  18712. ;
  18713. return 0;
  18714. }
  18715. _ACEOF
  18716. if ac_fn_c_try_compile "$LINENO"; then :
  18717. have_vivante_egl=yes
  18718. fi
  18719. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  18721. $as_echo "$have_vivante_egl" >&6; }
  18722. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  18723. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  18724. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  18725. if test x$have_vivante_vdk = xyes; then
  18726. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  18727. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  18728. fi
  18729. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  18730. SUMMARY_video="${SUMMARY_video} vivante"
  18731. have_video=yes
  18732. fi
  18733. fi
  18734. }
  18735. CheckHaikuVideo()
  18736. {
  18737. if test x$enable_video = xyes; then
  18738. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  18739. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  18740. have_video=yes
  18741. SUMMARY_video="${SUMMARY_video} haiku"
  18742. fi
  18743. }
  18744. CheckCOCOA()
  18745. {
  18746. # Check whether --enable-video-cocoa was given.
  18747. if test "${enable_video_cocoa+set}" = set; then :
  18748. enableval=$enable_video_cocoa;
  18749. else
  18750. enable_video_cocoa=yes
  18751. fi
  18752. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  18753. save_CFLAGS="$CFLAGS"
  18754. CFLAGS="$CFLAGS -x objective-c"
  18755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  18756. $as_echo_n "checking for Cocoa framework... " >&6; }
  18757. have_cocoa=no
  18758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18759. /* end confdefs.h. */
  18760. #import <Cocoa/Cocoa.h>
  18761. int
  18762. main ()
  18763. {
  18764. ;
  18765. return 0;
  18766. }
  18767. _ACEOF
  18768. if ac_fn_c_try_compile "$LINENO"; then :
  18769. have_cocoa=yes
  18770. fi
  18771. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  18773. $as_echo "$have_cocoa" >&6; }
  18774. CFLAGS="$save_CFLAGS"
  18775. if test x$have_cocoa = xyes; then
  18776. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  18777. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  18778. SUMMARY_video="${SUMMARY_video} cocoa"
  18779. have_video=yes
  18780. fi
  18781. fi
  18782. }
  18783. CheckMETAL()
  18784. {
  18785. # Check whether --enable-video-metal was given.
  18786. if test "${enable_video_metal+set}" = set; then :
  18787. enableval=$enable_video_metal;
  18788. else
  18789. enable_video_metal=yes
  18790. fi
  18791. # Check whether --enable-render-metal was given.
  18792. if test "${enable_render_metal+set}" = set; then :
  18793. enableval=$enable_render_metal;
  18794. else
  18795. enable_render_metal=yes
  18796. fi
  18797. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  18798. save_CFLAGS="$CFLAGS"
  18799. CFLAGS="$CFLAGS -x objective-c"
  18800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  18801. $as_echo_n "checking for Metal framework... " >&6; }
  18802. have_metal=no
  18803. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18804. /* end confdefs.h. */
  18805. #import <Cocoa/Cocoa.h>
  18806. #import <Metal/Metal.h>
  18807. #import <QuartzCore/CAMetalLayer.h>
  18808. #if TARGET_CPU_X86
  18809. #error Metal doesn't work on this configuration
  18810. #endif
  18811. int
  18812. main ()
  18813. {
  18814. ;
  18815. return 0;
  18816. }
  18817. _ACEOF
  18818. if ac_fn_c_try_compile "$LINENO"; then :
  18819. have_metal=yes
  18820. fi
  18821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18822. CFLAGS="$save_CFLAGS"
  18823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  18824. $as_echo "$have_metal" >&6; }
  18825. if test x$have_metal = xyes; then
  18826. $as_echo "#define SDL_VIDEO_METAL 1" >>confdefs.h
  18827. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  18828. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  18829. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  18830. fi
  18831. SUMMARY_video="${SUMMARY_video} metal"
  18832. else
  18833. enable_video_metal=no
  18834. enable_render_metal=no
  18835. fi
  18836. fi
  18837. }
  18838. CheckDirectFB()
  18839. {
  18840. # Check whether --enable-video-directfb was given.
  18841. if test "${enable_video_directfb+set}" = set; then :
  18842. enableval=$enable_video_directfb;
  18843. else
  18844. enable_video_directfb=no
  18845. fi
  18846. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  18847. pkg_failed=no
  18848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  18849. $as_echo_n "checking for directfb >= 1.0.0... " >&6; }
  18850. if test -n "$DIRECTFB_CFLAGS"; then
  18851. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  18852. elif test -n "$PKG_CONFIG"; then
  18853. if test -n "$PKG_CONFIG" && \
  18854. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  18855. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  18856. ac_status=$?
  18857. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18858. test $ac_status = 0; }; then
  18859. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  18860. test "x$?" != "x0" && pkg_failed=yes
  18861. else
  18862. pkg_failed=yes
  18863. fi
  18864. else
  18865. pkg_failed=untried
  18866. fi
  18867. if test -n "$DIRECTFB_LIBS"; then
  18868. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  18869. elif test -n "$PKG_CONFIG"; then
  18870. if test -n "$PKG_CONFIG" && \
  18871. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  18872. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  18873. ac_status=$?
  18874. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18875. test $ac_status = 0; }; then
  18876. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  18877. test "x$?" != "x0" && pkg_failed=yes
  18878. else
  18879. pkg_failed=yes
  18880. fi
  18881. else
  18882. pkg_failed=untried
  18883. fi
  18884. if test $pkg_failed = yes; then
  18885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18886. $as_echo "no" >&6; }
  18887. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18888. _pkg_short_errors_supported=yes
  18889. else
  18890. _pkg_short_errors_supported=no
  18891. fi
  18892. if test $_pkg_short_errors_supported = yes; then
  18893. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  18894. else
  18895. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  18896. fi
  18897. # Put the nasty error message in config.log where it belongs
  18898. echo "$DIRECTFB_PKG_ERRORS" >&5
  18899. video_directfb=no
  18900. elif test $pkg_failed = untried; then
  18901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18902. $as_echo "no" >&6; }
  18903. video_directfb=no
  18904. else
  18905. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  18906. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  18907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18908. $as_echo "yes" >&6; }
  18909. video_directfb=yes
  18910. fi
  18911. if test x$video_directfb = xyes; then
  18912. # SuSE 11.1 installs directfb-config without directfb-devel
  18913. save_CPPFLAGS="$CPPFLAGS"
  18914. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  18915. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  18916. if test "x$ac_cv_header_directfb_h" = xyes; then :
  18917. have_directfb_hdr=yes
  18918. else
  18919. have_directfb_hdr=no
  18920. fi
  18921. CPPFLAGS="$save_CPPFLAGS"
  18922. video_directfb=$have_directfb_hdr
  18923. fi
  18924. if test x$video_directfb = xyes; then
  18925. # Check whether --enable-directfb-shared was given.
  18926. if test "${enable_directfb_shared+set}" = set; then :
  18927. enableval=$enable_directfb_shared;
  18928. else
  18929. enable_directfb_shared=yes
  18930. fi
  18931. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  18932. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  18933. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  18934. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  18935. directfb_shared=no
  18936. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18937. if test x$have_loadso != xyes && \
  18938. test x$enable_directfb_shared = xyes; then
  18939. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  18940. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  18941. fi
  18942. if test x$have_loadso = xyes && \
  18943. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  18944. directfb_shared=yes
  18945. echo "-- dynamic libdirectfb -> $directfb_lib"
  18946. cat >>confdefs.h <<_ACEOF
  18947. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  18948. _ACEOF
  18949. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  18950. else
  18951. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  18952. SUMMARY_video="${SUMMARY_video} directfb"
  18953. fi
  18954. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  18955. have_video=yes
  18956. fi
  18957. fi
  18958. }
  18959. CheckKMSDRM()
  18960. {
  18961. # Check whether --enable-video-kmsdrm was given.
  18962. if test "${enable_video_kmsdrm+set}" = set; then :
  18963. enableval=$enable_video_kmsdrm;
  18964. else
  18965. enable_video_kmsdrm=no
  18966. fi
  18967. if test x$enable_video = xyes && \
  18968. test x$enable_video_kmsdrm = xyes && \
  18969. test x$video_opengl_egl = xyes; then
  18970. video_kmsdrm=no
  18971. pkg_failed=no
  18972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  18973. $as_echo_n "checking for libdrm >= 1.4.82... " >&6; }
  18974. if test -n "$LIBDRM_CFLAGS"; then
  18975. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  18976. elif test -n "$PKG_CONFIG"; then
  18977. if test -n "$PKG_CONFIG" && \
  18978. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  18979. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  18980. ac_status=$?
  18981. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18982. test $ac_status = 0; }; then
  18983. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  18984. test "x$?" != "x0" && pkg_failed=yes
  18985. else
  18986. pkg_failed=yes
  18987. fi
  18988. else
  18989. pkg_failed=untried
  18990. fi
  18991. if test -n "$LIBDRM_LIBS"; then
  18992. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  18993. elif test -n "$PKG_CONFIG"; then
  18994. if test -n "$PKG_CONFIG" && \
  18995. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  18996. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  18997. ac_status=$?
  18998. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18999. test $ac_status = 0; }; then
  19000. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  19001. test "x$?" != "x0" && pkg_failed=yes
  19002. else
  19003. pkg_failed=yes
  19004. fi
  19005. else
  19006. pkg_failed=untried
  19007. fi
  19008. if test $pkg_failed = yes; then
  19009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19010. $as_echo "no" >&6; }
  19011. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19012. _pkg_short_errors_supported=yes
  19013. else
  19014. _pkg_short_errors_supported=no
  19015. fi
  19016. if test $_pkg_short_errors_supported = yes; then
  19017. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  19018. else
  19019. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  19020. fi
  19021. # Put the nasty error message in config.log where it belongs
  19022. echo "$LIBDRM_PKG_ERRORS" >&5
  19023. libdrm_avail=no
  19024. elif test $pkg_failed = untried; then
  19025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19026. $as_echo "no" >&6; }
  19027. libdrm_avail=no
  19028. else
  19029. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  19030. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  19031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19032. $as_echo "yes" >&6; }
  19033. libdrm_avail=yes
  19034. fi
  19035. pkg_failed=no
  19036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  19037. $as_echo_n "checking for gbm >= 11.1.0... " >&6; }
  19038. if test -n "$LIBGBM_CFLAGS"; then
  19039. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  19040. elif test -n "$PKG_CONFIG"; then
  19041. if test -n "$PKG_CONFIG" && \
  19042. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  19043. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  19044. ac_status=$?
  19045. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19046. test $ac_status = 0; }; then
  19047. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  19048. test "x$?" != "x0" && pkg_failed=yes
  19049. else
  19050. pkg_failed=yes
  19051. fi
  19052. else
  19053. pkg_failed=untried
  19054. fi
  19055. if test -n "$LIBGBM_LIBS"; then
  19056. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  19057. elif test -n "$PKG_CONFIG"; then
  19058. if test -n "$PKG_CONFIG" && \
  19059. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  19060. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  19061. ac_status=$?
  19062. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19063. test $ac_status = 0; }; then
  19064. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  19065. test "x$?" != "x0" && pkg_failed=yes
  19066. else
  19067. pkg_failed=yes
  19068. fi
  19069. else
  19070. pkg_failed=untried
  19071. fi
  19072. if test $pkg_failed = yes; then
  19073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19074. $as_echo "no" >&6; }
  19075. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19076. _pkg_short_errors_supported=yes
  19077. else
  19078. _pkg_short_errors_supported=no
  19079. fi
  19080. if test $_pkg_short_errors_supported = yes; then
  19081. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  19082. else
  19083. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  19084. fi
  19085. # Put the nasty error message in config.log where it belongs
  19086. echo "$LIBGBM_PKG_ERRORS" >&5
  19087. libgbm_avail=no
  19088. elif test $pkg_failed = untried; then
  19089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19090. $as_echo "no" >&6; }
  19091. libgbm_avail=no
  19092. else
  19093. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  19094. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  19095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19096. $as_echo "yes" >&6; }
  19097. libgbm_avail=yes
  19098. fi
  19099. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  19100. video_kmsdrm=yes
  19101. fi
  19102. if test x$video_kmsdrm = xyes; then
  19103. # Check whether --enable-kmsdrm-shared was given.
  19104. if test "${enable_kmsdrm_shared+set}" = set; then :
  19105. enableval=$enable_kmsdrm_shared;
  19106. else
  19107. enable_kmsdrm_shared=yes
  19108. fi
  19109. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  19110. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  19111. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  19112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  19113. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  19114. kmsdrm_shared=no
  19115. drm_lib=`find_lib "libdrm.so.*" "$DRM_LIBS"`
  19116. gbm_lib=`find_lib "libgbm.so.*" "$DRM_LIBS"`
  19117. if test x$have_loadso != xyes && \
  19118. test x$enable_kmsdrm_shared = xyes; then
  19119. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  19120. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  19121. fi
  19122. if test x$have_loadso = xyes && \
  19123. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  19124. kmsdrm_shared=yes
  19125. cat >>confdefs.h <<_ACEOF
  19126. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  19127. _ACEOF
  19128. cat >>confdefs.h <<_ACEOF
  19129. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  19130. _ACEOF
  19131. cat >>confdefs.h <<_ACEOF
  19132. #define HAVE_KMSDRM_SHARED "TRUE"
  19133. _ACEOF
  19134. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  19135. else
  19136. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  19137. SUMMARY_video="${SUMMARY_video} kmsdrm"
  19138. fi
  19139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  19140. $as_echo "$kmsdrm_shared" >&6; }
  19141. have_video=yes
  19142. fi
  19143. fi
  19144. }
  19145. CheckDummyVideo()
  19146. {
  19147. # Check whether --enable-video-dummy was given.
  19148. if test "${enable_video_dummy+set}" = set; then :
  19149. enableval=$enable_video_dummy;
  19150. else
  19151. enable_video_dummy=yes
  19152. fi
  19153. if test x$enable_video_dummy = xyes; then
  19154. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  19155. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  19156. have_video=yes
  19157. SUMMARY_video="${SUMMARY_video} dummy"
  19158. fi
  19159. }
  19160. CheckQNXVideo()
  19161. {
  19162. if test x$enable_video = xyes; then
  19163. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  19164. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  19165. have_video=yes
  19166. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  19167. SUMMARY_video="${SUMMARY_video} qnx"
  19168. fi
  19169. }
  19170. CheckQNXAudio()
  19171. {
  19172. if test x$enable_audio = xyes; then
  19173. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  19174. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  19175. have_audio=yes
  19176. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  19177. SUMMARY_audio="${SUMMARY_audio} qsa"
  19178. fi
  19179. }
  19180. # Check whether --enable-video-opengl was given.
  19181. if test "${enable_video_opengl+set}" = set; then :
  19182. enableval=$enable_video_opengl;
  19183. else
  19184. enable_video_opengl=yes
  19185. fi
  19186. CheckOpenGLX11()
  19187. {
  19188. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  19190. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  19191. video_opengl=no
  19192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19193. /* end confdefs.h. */
  19194. #include <GL/gl.h>
  19195. #include <GL/glx.h>
  19196. int
  19197. main ()
  19198. {
  19199. ;
  19200. return 0;
  19201. }
  19202. _ACEOF
  19203. if ac_fn_c_try_compile "$LINENO"; then :
  19204. video_opengl=yes
  19205. fi
  19206. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  19208. $as_echo "$video_opengl" >&6; }
  19209. if test x$video_opengl = xyes; then
  19210. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19211. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  19212. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19213. SUMMARY_video="${SUMMARY_video} opengl(glx)"
  19214. fi
  19215. fi
  19216. }
  19217. CheckOpenGLKMSDRM()
  19218. {
  19219. if test x$enable_video = xyes -a x$enable_video_opengl = xyes -a x$enable_video_kmsdrm = xyes; then
  19220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLVND) support" >&5
  19221. $as_echo_n "checking for OpenGL (GLVND) support... " >&6; }
  19222. video_opengl=no
  19223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19224. /* end confdefs.h. */
  19225. #include <GL/gl.h>
  19226. int
  19227. main ()
  19228. {
  19229. ;
  19230. return 0;
  19231. }
  19232. _ACEOF
  19233. if ac_fn_c_try_compile "$LINENO"; then :
  19234. video_opengl=yes
  19235. fi
  19236. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  19238. $as_echo "$video_opengl" >&6; }
  19239. if test x$video_opengl = xyes; then
  19240. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19241. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19242. SUMMARY_video="${SUMMARY_video} opengl(glvnd)"
  19243. fi
  19244. fi
  19245. }
  19246. # Check whether --enable-video-opengles was given.
  19247. if test "${enable_video_opengles+set}" = set; then :
  19248. enableval=$enable_video_opengles;
  19249. else
  19250. enable_video_opengles=yes
  19251. fi
  19252. # Check whether --enable-video-opengles1 was given.
  19253. if test "${enable_video_opengles1+set}" = set; then :
  19254. enableval=$enable_video_opengles1;
  19255. else
  19256. enable_video_opengles1=yes
  19257. fi
  19258. # Check whether --enable-video-opengles2 was given.
  19259. if test "${enable_video_opengles2+set}" = set; then :
  19260. enableval=$enable_video_opengles2;
  19261. else
  19262. enable_video_opengles2=yes
  19263. fi
  19264. CheckOpenGLESX11()
  19265. {
  19266. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19268. $as_echo_n "checking for EGL support... " >&6; }
  19269. video_opengl_egl=no
  19270. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19271. /* end confdefs.h. */
  19272. #define LINUX
  19273. #define EGL_API_FB
  19274. #define MESA_EGL_NO_X11_HEADERS
  19275. #define EGL_NO_X11
  19276. #include <EGL/egl.h>
  19277. #include <EGL/eglext.h>
  19278. int
  19279. main ()
  19280. {
  19281. ;
  19282. return 0;
  19283. }
  19284. _ACEOF
  19285. if ac_fn_c_try_compile "$LINENO"; then :
  19286. video_opengl_egl=yes
  19287. fi
  19288. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19290. $as_echo "$video_opengl_egl" >&6; }
  19291. if test x$video_opengl_egl = xyes; then
  19292. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19293. fi
  19294. if test x$enable_video_opengles1 = xyes; then
  19295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  19296. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  19297. video_opengles_v1=no
  19298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19299. /* end confdefs.h. */
  19300. #include <GLES/gl.h>
  19301. #include <GLES/glext.h>
  19302. int
  19303. main ()
  19304. {
  19305. ;
  19306. return 0;
  19307. }
  19308. _ACEOF
  19309. if ac_fn_c_try_compile "$LINENO"; then :
  19310. video_opengles_v1=yes
  19311. fi
  19312. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  19314. $as_echo "$video_opengles_v1" >&6; }
  19315. if test x$video_opengles_v1 = xyes; then
  19316. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  19317. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  19318. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19319. fi
  19320. fi
  19321. if test x$enable_video_opengles2 = xyes; then
  19322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19323. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19324. video_opengles_v2=no
  19325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19326. /* end confdefs.h. */
  19327. #include <GLES2/gl2.h>
  19328. #include <GLES2/gl2ext.h>
  19329. int
  19330. main ()
  19331. {
  19332. ;
  19333. return 0;
  19334. }
  19335. _ACEOF
  19336. if ac_fn_c_try_compile "$LINENO"; then :
  19337. video_opengles_v2=yes
  19338. fi
  19339. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19341. $as_echo "$video_opengles_v2" >&6; }
  19342. if test x$video_opengles_v2 = xyes; then
  19343. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19344. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19345. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19346. fi
  19347. fi
  19348. fi
  19349. }
  19350. CheckEGLKMSDRM()
  19351. {
  19352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19353. $as_echo_n "checking for EGL support... " >&6; }
  19354. video_opengl_egl=no
  19355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19356. /* end confdefs.h. */
  19357. #define LINUX
  19358. #define EGL_API_FB
  19359. #define MESA_EGL_NO_X11_HEADERS
  19360. #define EGL_NO_X11
  19361. #include <EGL/egl.h>
  19362. #include <EGL/eglext.h>
  19363. int
  19364. main ()
  19365. {
  19366. ;
  19367. return 0;
  19368. }
  19369. _ACEOF
  19370. if ac_fn_c_try_compile "$LINENO"; then :
  19371. video_opengl_egl=yes
  19372. fi
  19373. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19375. $as_echo "$video_opengl_egl" >&6; }
  19376. if test x$video_opengl_egl = xyes; then
  19377. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19378. fi
  19379. }
  19380. CheckWINDOWSGL()
  19381. {
  19382. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19383. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19384. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  19385. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19386. SUMMARY_video="${SUMMARY_video} opengl"
  19387. fi
  19388. }
  19389. CheckWINDOWSGLES()
  19390. {
  19391. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19393. $as_echo_n "checking for EGL support... " >&6; }
  19394. video_opengl_egl=no
  19395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19396. /* end confdefs.h. */
  19397. #include <EGL/egl.h>
  19398. int
  19399. main ()
  19400. {
  19401. ;
  19402. return 0;
  19403. }
  19404. _ACEOF
  19405. if ac_fn_c_try_compile "$LINENO"; then :
  19406. video_opengl_egl=yes
  19407. fi
  19408. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19410. $as_echo "$video_opengl_egl" >&6; }
  19411. if test x$video_opengl_egl = xyes; then
  19412. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19413. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19414. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19415. fi
  19416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19417. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19418. video_opengles_v2=no
  19419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19420. /* end confdefs.h. */
  19421. #include <GLES2/gl2.h>
  19422. #include <GLES2/gl2ext.h>
  19423. int
  19424. main ()
  19425. {
  19426. ;
  19427. return 0;
  19428. }
  19429. _ACEOF
  19430. if ac_fn_c_try_compile "$LINENO"; then :
  19431. video_opengles_v2=yes
  19432. fi
  19433. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19435. $as_echo "$video_opengles_v2" >&6; }
  19436. if test x$video_opengles_v2 = xyes; then
  19437. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19438. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19439. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19440. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19441. fi
  19442. fi
  19443. }
  19444. CheckHaikuGL()
  19445. {
  19446. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19447. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19448. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  19449. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19450. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  19451. SUMMARY_video="${SUMMARY_video} opengl"
  19452. fi
  19453. }
  19454. CheckMacGL()
  19455. {
  19456. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19457. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19458. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  19459. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19460. SUMMARY_video="${SUMMARY_video} opengl"
  19461. fi
  19462. }
  19463. CheckMacGLES()
  19464. {
  19465. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19466. video_opengl_egl=yes
  19467. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19468. video_opengles_v2=yes
  19469. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19470. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19471. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19472. fi
  19473. }
  19474. CheckEmscriptenGLES()
  19475. {
  19476. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19478. $as_echo_n "checking for EGL support... " >&6; }
  19479. video_opengl_egl=no
  19480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19481. /* end confdefs.h. */
  19482. #include <EGL/egl.h>
  19483. int
  19484. main ()
  19485. {
  19486. ;
  19487. return 0;
  19488. }
  19489. _ACEOF
  19490. if ac_fn_c_try_compile "$LINENO"; then :
  19491. video_opengl_egl=yes
  19492. fi
  19493. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19495. $as_echo "$video_opengl_egl" >&6; }
  19496. if test x$video_opengl_egl = xyes; then
  19497. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19498. fi
  19499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19500. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19501. video_opengles_v2=no
  19502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19503. /* end confdefs.h. */
  19504. #include <GLES2/gl2.h>
  19505. #include <GLES2/gl2ext.h>
  19506. int
  19507. main ()
  19508. {
  19509. ;
  19510. return 0;
  19511. }
  19512. _ACEOF
  19513. if ac_fn_c_try_compile "$LINENO"; then :
  19514. video_opengles_v2=yes
  19515. fi
  19516. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19518. $as_echo "$video_opengles_v2" >&6; }
  19519. if test x$video_opengles_v2 = xyes; then
  19520. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19521. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19522. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19523. fi
  19524. fi
  19525. }
  19526. # Check whether --enable-video-vulkan was given.
  19527. if test "${enable_video_vulkan+set}" = set; then :
  19528. enableval=$enable_video_vulkan;
  19529. else
  19530. enable_video_vulkan=yes
  19531. fi
  19532. CheckVulkan()
  19533. {
  19534. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  19535. case "$host" in
  19536. *-*-android*)
  19537. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19538. /* end confdefs.h. */
  19539. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  19540. #error Vulkan doesn't work on this configuration
  19541. #endif
  19542. int
  19543. main ()
  19544. {
  19545. ;
  19546. return 0;
  19547. }
  19548. _ACEOF
  19549. if ac_fn_c_try_compile "$LINENO"; then :
  19550. else
  19551. enable_video_vulkan=no
  19552. fi
  19553. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19554. ;;
  19555. *-*-darwin*)
  19556. save_CFLAGS="$CFLAGS"
  19557. CFLAGS="$CFLAGS -x objective-c"
  19558. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19559. /* end confdefs.h. */
  19560. #include <Cocoa/Cocoa.h>
  19561. #include <Metal/Metal.h>
  19562. #include <QuartzCore/CAMetalLayer.h>
  19563. #if TARGET_CPU_X86
  19564. #error Vulkan doesn't work on this configuration
  19565. #endif
  19566. int
  19567. main ()
  19568. {
  19569. ;
  19570. return 0;
  19571. }
  19572. _ACEOF
  19573. if ac_fn_c_try_compile "$LINENO"; then :
  19574. else
  19575. enable_video_vulkan=no
  19576. fi
  19577. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19578. CFLAGS="$save_CFLAGS"
  19579. ;;
  19580. *)
  19581. ;;
  19582. esac
  19583. if test x$enable_video_vulkan = xno; then
  19584. # For reasons I am totally unable to see, I get an undefined macro error if
  19585. # I put this in the AC_TRY_COMPILE.
  19586. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  19587. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  19588. fi
  19589. fi
  19590. if test x$enable_video_vulkan = xyes; then
  19591. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  19592. SUMMARY_video="${SUMMARY_video} vulkan"
  19593. fi
  19594. }
  19595. CheckInputEvents()
  19596. {
  19597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  19598. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  19599. use_input_events=no
  19600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19601. /* end confdefs.h. */
  19602. #include <linux/input.h>
  19603. int
  19604. main ()
  19605. {
  19606. #ifndef EVIOCGNAME
  19607. #error EVIOCGNAME() ioctl not available
  19608. #endif
  19609. ;
  19610. return 0;
  19611. }
  19612. _ACEOF
  19613. if ac_fn_c_try_compile "$LINENO"; then :
  19614. use_input_events=yes
  19615. fi
  19616. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  19618. $as_echo "$use_input_events" >&6; }
  19619. if test x$use_input_events = xyes; then
  19620. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  19621. SUMMARY_input="${SUMMARY_input} linuxev"
  19622. fi
  19623. }
  19624. CheckInputKD()
  19625. {
  19626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  19627. $as_echo_n "checking for Linux kd.h... " >&6; }
  19628. use_input_kd=no
  19629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19630. /* end confdefs.h. */
  19631. #include <linux/kd.h>
  19632. #include <linux/keyboard.h>
  19633. int
  19634. main ()
  19635. {
  19636. struct kbentry kbe;
  19637. kbe.kb_table = KG_CTRL;
  19638. ioctl(0, KDGKBENT, &kbe);
  19639. ;
  19640. return 0;
  19641. }
  19642. _ACEOF
  19643. if ac_fn_c_try_compile "$LINENO"; then :
  19644. use_input_kd=yes
  19645. fi
  19646. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  19648. $as_echo "$use_input_kd" >&6; }
  19649. if test x$use_input_kd = xyes; then
  19650. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  19651. SUMMARY_input="${SUMMARY_input} linuxkd"
  19652. fi
  19653. }
  19654. CheckInputKBIO()
  19655. {
  19656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  19657. $as_echo_n "checking for FreeBSD kbio.h... " >&6; }
  19658. use_input_kbio=no
  19659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19660. /* end confdefs.h. */
  19661. #include <sys/kbio.h>
  19662. #include <sys/ioctl.h>
  19663. int
  19664. main ()
  19665. {
  19666. accentmap_t accTable;
  19667. ioctl(0, KDENABIO, 1);
  19668. ;
  19669. return 0;
  19670. }
  19671. _ACEOF
  19672. if ac_fn_c_try_compile "$LINENO"; then :
  19673. use_input_kbio=yes
  19674. fi
  19675. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  19677. $as_echo "$use_input_kbio" >&6; }
  19678. if test x$use_input_kbio = xyes; then
  19679. $as_echo "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  19680. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  19681. fi
  19682. }
  19683. CheckInputWSCONS()
  19684. {
  19685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  19686. $as_echo_n "checking for OpenBSD wscons... " >&6; }
  19687. use_input_wscons=no
  19688. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19689. /* end confdefs.h. */
  19690. #include <sys/time.h>
  19691. #include <dev/wscons/wsconsio.h>
  19692. #include <dev/wscons/wsksymdef.h>
  19693. #include <dev/wscons/wsksymvar.h>
  19694. #include <sys/ioctl.h>
  19695. int
  19696. main ()
  19697. {
  19698. struct wskbd_map_data data;
  19699. ioctl(0, WSKBDIO_GETMAP, &data);
  19700. ;
  19701. return 0;
  19702. }
  19703. _ACEOF
  19704. if ac_fn_c_try_compile "$LINENO"; then :
  19705. use_input_wscons=yes
  19706. fi
  19707. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  19709. $as_echo "$use_input_wscons" >&6; }
  19710. if test x$use_input_wscons = xyes; then
  19711. $as_echo "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  19712. SUMMARY_input="${SUMMARY_input} wscons"
  19713. fi
  19714. }
  19715. CheckLibUDev()
  19716. {
  19717. # Check whether --enable-libudev was given.
  19718. if test "${enable_libudev+set}" = set; then :
  19719. enableval=$enable_libudev;
  19720. else
  19721. enable_libudev=yes
  19722. fi
  19723. if test x$enable_libudev = xyes; then
  19724. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  19725. if test "x$ac_cv_header_libudev_h" = xyes; then :
  19726. have_libudev_h_hdr=yes
  19727. else
  19728. have_libudev_h_hdr=no
  19729. fi
  19730. if test x$have_libudev_h_hdr = xyes; then
  19731. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  19732. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19733. if test x$udev_lib != x; then
  19734. echo "-- dynamic udev -> $udev_lib"
  19735. cat >>confdefs.h <<_ACEOF
  19736. #define SDL_UDEV_DYNAMIC "$udev_lib"
  19737. _ACEOF
  19738. fi
  19739. fi
  19740. fi
  19741. }
  19742. CheckDBus()
  19743. {
  19744. # Check whether --enable-dbus was given.
  19745. if test "${enable_dbus+set}" = set; then :
  19746. enableval=$enable_dbus;
  19747. else
  19748. enable_dbus=yes
  19749. fi
  19750. if test x$enable_dbus = xyes; then
  19751. pkg_failed=no
  19752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  19753. $as_echo_n "checking for dbus-1... " >&6; }
  19754. if test -n "$DBUS_CFLAGS"; then
  19755. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  19756. elif test -n "$PKG_CONFIG"; then
  19757. if test -n "$PKG_CONFIG" && \
  19758. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19759. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19760. ac_status=$?
  19761. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19762. test $ac_status = 0; }; then
  19763. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  19764. test "x$?" != "x0" && pkg_failed=yes
  19765. else
  19766. pkg_failed=yes
  19767. fi
  19768. else
  19769. pkg_failed=untried
  19770. fi
  19771. if test -n "$DBUS_LIBS"; then
  19772. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  19773. elif test -n "$PKG_CONFIG"; then
  19774. if test -n "$PKG_CONFIG" && \
  19775. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19776. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19777. ac_status=$?
  19778. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19779. test $ac_status = 0; }; then
  19780. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  19781. test "x$?" != "x0" && pkg_failed=yes
  19782. else
  19783. pkg_failed=yes
  19784. fi
  19785. else
  19786. pkg_failed=untried
  19787. fi
  19788. if test $pkg_failed = yes; then
  19789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19790. $as_echo "no" >&6; }
  19791. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19792. _pkg_short_errors_supported=yes
  19793. else
  19794. _pkg_short_errors_supported=no
  19795. fi
  19796. if test $_pkg_short_errors_supported = yes; then
  19797. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  19798. else
  19799. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  19800. fi
  19801. # Put the nasty error message in config.log where it belongs
  19802. echo "$DBUS_PKG_ERRORS" >&5
  19803. have_dbus=no
  19804. elif test $pkg_failed = untried; then
  19805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19806. $as_echo "no" >&6; }
  19807. have_dbus=no
  19808. else
  19809. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  19810. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  19811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19812. $as_echo "yes" >&6; }
  19813. have_dbus=yes
  19814. fi
  19815. save_CPPFLAGS="$CPPFLAGS"
  19816. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  19817. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  19818. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  19819. have_dbus_dbus_h_hdr=yes
  19820. else
  19821. have_dbus_dbus_h_hdr=no
  19822. fi
  19823. CPPFLAGS="$save_CPPFLAGS"
  19824. if test x$have_dbus_dbus_h_hdr = xyes; then
  19825. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  19826. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  19827. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  19828. fi
  19829. fi
  19830. }
  19831. CheckIME()
  19832. {
  19833. # Check whether --enable-ime was given.
  19834. if test "${enable_ime+set}" = set; then :
  19835. enableval=$enable_ime;
  19836. else
  19837. enable_ime=yes
  19838. fi
  19839. if test x$enable_ime = xyes; then
  19840. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  19841. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  19842. fi
  19843. }
  19844. CheckInotify()
  19845. {
  19846. save_LIBS="$LIBS"
  19847. case "$host" in
  19848. *-*-freebsd*) LIBS="$LIBS -linotify"
  19849. ;;
  19850. esac
  19851. for ac_header in sys/inotify.h
  19852. do :
  19853. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  19854. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  19855. cat >>confdefs.h <<_ACEOF
  19856. #define HAVE_SYS_INOTIFY_H 1
  19857. _ACEOF
  19858. have_inotify_inotify_h_hdr=yes
  19859. fi
  19860. done
  19861. for ac_func in inotify_init
  19862. do :
  19863. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  19864. if test "x$ac_cv_func_inotify_init" = xyes; then :
  19865. cat >>confdefs.h <<_ACEOF
  19866. #define HAVE_INOTIFY_INIT 1
  19867. _ACEOF
  19868. have_inotify=yes
  19869. fi
  19870. done
  19871. for ac_func in inotify_init1
  19872. do :
  19873. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  19874. if test "x$ac_cv_func_inotify_init1" = xyes; then :
  19875. cat >>confdefs.h <<_ACEOF
  19876. #define HAVE_INOTIFY_INIT1 1
  19877. _ACEOF
  19878. fi
  19879. done
  19880. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  19881. $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
  19882. case "$host" in
  19883. *-*-freebsd*)
  19884. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  19885. ;;
  19886. esac
  19887. fi
  19888. LIBS="$save_LIBS"
  19889. }
  19890. CheckIBus()
  19891. {
  19892. # Check whether --enable-ibus was given.
  19893. if test "${enable_ibus+set}" = set; then :
  19894. enableval=$enable_ibus;
  19895. else
  19896. enable_ibus=yes
  19897. fi
  19898. if test x$enable_ibus = xyes; then
  19899. pkg_failed=no
  19900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  19901. $as_echo_n "checking for ibus-1.0... " >&6; }
  19902. if test -n "$IBUS_CFLAGS"; then
  19903. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  19904. elif test -n "$PKG_CONFIG"; then
  19905. if test -n "$PKG_CONFIG" && \
  19906. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  19907. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  19908. ac_status=$?
  19909. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19910. test $ac_status = 0; }; then
  19911. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  19912. test "x$?" != "x0" && pkg_failed=yes
  19913. else
  19914. pkg_failed=yes
  19915. fi
  19916. else
  19917. pkg_failed=untried
  19918. fi
  19919. if test -n "$IBUS_LIBS"; then
  19920. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  19921. elif test -n "$PKG_CONFIG"; then
  19922. if test -n "$PKG_CONFIG" && \
  19923. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  19924. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  19925. ac_status=$?
  19926. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19927. test $ac_status = 0; }; then
  19928. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  19929. test "x$?" != "x0" && pkg_failed=yes
  19930. else
  19931. pkg_failed=yes
  19932. fi
  19933. else
  19934. pkg_failed=untried
  19935. fi
  19936. if test $pkg_failed = yes; then
  19937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19938. $as_echo "no" >&6; }
  19939. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19940. _pkg_short_errors_supported=yes
  19941. else
  19942. _pkg_short_errors_supported=no
  19943. fi
  19944. if test $_pkg_short_errors_supported = yes; then
  19945. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  19946. else
  19947. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  19948. fi
  19949. # Put the nasty error message in config.log where it belongs
  19950. echo "$IBUS_PKG_ERRORS" >&5
  19951. have_ibus=no
  19952. elif test $pkg_failed = untried; then
  19953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19954. $as_echo "no" >&6; }
  19955. have_ibus=no
  19956. else
  19957. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  19958. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  19959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19960. $as_echo "yes" >&6; }
  19961. have_ibus=yes
  19962. fi
  19963. save_CPPFLAGS="$CPPFLAGS"
  19964. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  19965. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  19966. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  19967. have_ibus_ibus_h_hdr=yes
  19968. else
  19969. have_ibus_ibus_h_hdr=no
  19970. fi
  19971. CPPFLAGS="$save_CPPFLAGS"
  19972. if test x$have_ibus_ibus_h_hdr = xyes; then
  19973. if test x$enable_ime != xyes; then
  19974. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  19975. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  19976. have_ibus_ibus_h_hdr=no
  19977. elif test x$enable_dbus != xyes; then
  19978. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  19979. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  19980. have_ibus_ibus_h_hdr=no
  19981. elif test x$have_inotify_inotify_h_hdr != xyes; then
  19982. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  19983. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  19984. have_ibus_ibus_h_hdr=no
  19985. else
  19986. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  19987. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  19988. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  19989. fi
  19990. fi
  19991. fi
  19992. }
  19993. CheckFcitx()
  19994. {
  19995. # Check whether --enable-fcitx was given.
  19996. if test "${enable_fcitx+set}" = set; then :
  19997. enableval=$enable_fcitx;
  19998. else
  19999. enable_fcitx=yes
  20000. fi
  20001. if test x$enable_fcitx = xyes; then
  20002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  20003. $as_echo_n "checking for fcitx support... " >&6; }
  20004. have_fcitx=no
  20005. if test x$enable_ime != xyes; then
  20006. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  20007. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  20008. elif test x$have_dbus_dbus_h_hdr != xyes; then
  20009. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  20010. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  20011. else
  20012. have_fcitx=yes
  20013. $as_echo "#define HAVE_FCITX 1" >>confdefs.h
  20014. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  20015. fi
  20016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  20017. $as_echo "$have_fcitx" >&6; }
  20018. fi
  20019. }
  20020. CheckJoystickMFI()
  20021. {
  20022. # Check whether --enable-joystick-mfi was given.
  20023. if test "${enable_joystick_mfi+set}" = set; then :
  20024. enableval=$enable_joystick_mfi;
  20025. else
  20026. enable_joystick_mfi=yes
  20027. fi
  20028. if test x$enable_joystick_mfi = xyes; then
  20029. save_CFLAGS="$CFLAGS"
  20030. save_LDFLAGS="$LDFLAGS"
  20031. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  20032. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  20033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  20034. $as_echo_n "checking for GameController framework... " >&6; }
  20035. enable_joystick_mfi=no
  20036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20037. /* end confdefs.h. */
  20038. #include <AvailabilityMacros.h>
  20039. #include <TargetConditionals.h>
  20040. #import <GameController/GameController.h>
  20041. int
  20042. main ()
  20043. {
  20044. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  20045. #error GameController framework doesn't work on this configuration
  20046. #endif
  20047. #if TARGET_CPU_X86
  20048. #error GameController framework doesn't work on this configuration
  20049. #endif
  20050. ;
  20051. return 0;
  20052. }
  20053. _ACEOF
  20054. if ac_fn_c_try_link "$LINENO"; then :
  20055. enable_joystick_mfi=yes
  20056. fi
  20057. rm -f core conftest.err conftest.$ac_objext \
  20058. conftest$ac_exeext conftest.$ac_ext
  20059. CFLAGS="$save_CFLAGS"
  20060. LDFLAGS="$save_LDFLAGS"
  20061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  20062. $as_echo "$enable_joystick_mfi" >&6; }
  20063. if test x$enable_joystick_mfi = xyes; then
  20064. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  20065. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  20066. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  20067. fi
  20068. fi
  20069. }
  20070. CheckPTHREAD()
  20071. {
  20072. case "$host" in
  20073. *-*-emscripten*)
  20074. enable_pthreads_default=no
  20075. ;;
  20076. *)
  20077. enable_pthreads_default=yes
  20078. ;;
  20079. esac
  20080. # Check whether --enable-pthreads was given.
  20081. if test "${enable_pthreads+set}" = set; then :
  20082. enableval=$enable_pthreads;
  20083. else
  20084. enable_pthreads=maybe
  20085. fi
  20086. # Check whether --enable-pthread-sem was given.
  20087. if test "${enable_pthread_sem+set}" = set; then :
  20088. enableval=$enable_pthread_sem;
  20089. else
  20090. enable_pthread_sem=maybe
  20091. fi
  20092. if test x$enable_pthreads = xmaybe; then
  20093. enable_pthreads=$enable_pthreads_default
  20094. fi
  20095. if test x$enable_pthread_sem = xmaybe; then
  20096. enable_pthread_sem=$enable_pthreads
  20097. fi
  20098. case "$host" in
  20099. *-*-android*)
  20100. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20101. pthread_lib=""
  20102. ;;
  20103. *-*-linux*|*-*-uclinux*)
  20104. pthread_cflags="-D_REENTRANT"
  20105. pthread_lib="-lpthread"
  20106. ;;
  20107. *-*-bsdi*)
  20108. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20109. pthread_lib=""
  20110. ;;
  20111. *-*-darwin*)
  20112. pthread_cflags="-D_THREAD_SAFE"
  20113. # causes Carbon.p complaints?
  20114. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20115. ;;
  20116. *-*-freebsd*|*-*-dragonfly*)
  20117. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20118. pthread_lib="-pthread"
  20119. ;;
  20120. *-*-netbsd*)
  20121. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20122. pthread_lib="-lpthread"
  20123. ;;
  20124. *-*-openbsd*)
  20125. pthread_cflags="-D_REENTRANT"
  20126. pthread_lib="-pthread"
  20127. ;;
  20128. *-*-solaris2.9)
  20129. # From Solaris 9+, posix4's preferred name is rt.
  20130. pthread_cflags="-D_REENTRANT"
  20131. pthread_lib="-lpthread -lrt"
  20132. ;;
  20133. *-*-solaris2.10)
  20134. # Solaris 10+ merged pthread into libc.
  20135. pthread_cflags="-D_REENTRANT"
  20136. pthread_lib="-lrt"
  20137. ;;
  20138. *-*-solaris*)
  20139. # Solaris 11+ merged rt into libc.
  20140. pthread_cflags="-D_REENTRANT"
  20141. pthread_lib=""
  20142. ;;
  20143. *-*-sysv5*)
  20144. pthread_cflags="-D_REENTRANT -Kthread"
  20145. pthread_lib=""
  20146. ;;
  20147. *-*-aix*)
  20148. pthread_cflags="-D_REENTRANT -mthreads"
  20149. pthread_lib="-lpthread"
  20150. ;;
  20151. *-*-hpux11*)
  20152. pthread_cflags="-D_REENTRANT"
  20153. pthread_lib="-L/usr/lib -lpthread"
  20154. ;;
  20155. *-*-haiku*)
  20156. pthread_cflags="-D_REENTRANT"
  20157. pthread_lib=""
  20158. ;;
  20159. *-*-nto*)
  20160. pthread_cflags="-D_REENTRANT"
  20161. pthread_lib=""
  20162. ;;
  20163. *-*-emscripten*)
  20164. pthread_cflags="-D_REENTRANT -pthread"
  20165. pthread_lib="-pthread"
  20166. ;;
  20167. *)
  20168. pthread_cflags="-D_REENTRANT"
  20169. pthread_lib="-lpthread"
  20170. ;;
  20171. esac
  20172. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  20173. # Save the original compiler flags and libraries
  20174. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20175. # Add the pthread compiler flags and libraries
  20176. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  20177. # Check to see if we have pthread support on this system
  20178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  20179. $as_echo_n "checking for pthreads... " >&6; }
  20180. use_pthreads=no
  20181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20182. /* end confdefs.h. */
  20183. #include <pthread.h>
  20184. int
  20185. main ()
  20186. {
  20187. pthread_attr_t type;
  20188. pthread_attr_init(&type);
  20189. ;
  20190. return 0;
  20191. }
  20192. _ACEOF
  20193. if ac_fn_c_try_link "$LINENO"; then :
  20194. use_pthreads=yes
  20195. fi
  20196. rm -f core conftest.err conftest.$ac_objext \
  20197. conftest$ac_exeext conftest.$ac_ext
  20198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  20199. $as_echo "$use_pthreads" >&6; }
  20200. # Restore the compiler flags and libraries
  20201. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20202. # Do futher testing if we have pthread support...
  20203. if test x$use_pthreads = xyes; then
  20204. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  20205. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  20206. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  20207. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  20208. # Save the original compiler flags and libraries
  20209. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20210. # Add the pthread compiler flags and libraries
  20211. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  20212. # Check to see if recursive mutexes are available
  20213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  20214. $as_echo_n "checking for recursive mutexes... " >&6; }
  20215. has_recursive_mutexes=no
  20216. if test x$has_recursive_mutexes = xno; then
  20217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20218. /* end confdefs.h. */
  20219. #define _GNU_SOURCE 1
  20220. #include <pthread.h>
  20221. int
  20222. main ()
  20223. {
  20224. pthread_mutexattr_t attr;
  20225. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  20226. ;
  20227. return 0;
  20228. }
  20229. _ACEOF
  20230. if ac_fn_c_try_link "$LINENO"; then :
  20231. has_recursive_mutexes=yes
  20232. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  20233. fi
  20234. rm -f core conftest.err conftest.$ac_objext \
  20235. conftest$ac_exeext conftest.$ac_ext
  20236. fi
  20237. if test x$has_recursive_mutexes = xno; then
  20238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20239. /* end confdefs.h. */
  20240. #define _GNU_SOURCE 1
  20241. #include <pthread.h>
  20242. int
  20243. main ()
  20244. {
  20245. pthread_mutexattr_t attr;
  20246. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  20247. ;
  20248. return 0;
  20249. }
  20250. _ACEOF
  20251. if ac_fn_c_try_link "$LINENO"; then :
  20252. has_recursive_mutexes=yes
  20253. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  20254. fi
  20255. rm -f core conftest.err conftest.$ac_objext \
  20256. conftest$ac_exeext conftest.$ac_ext
  20257. fi
  20258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  20259. $as_echo "$has_recursive_mutexes" >&6; }
  20260. # Check to see if pthread semaphore support is missing
  20261. if test x$enable_pthread_sem = xyes; then
  20262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  20263. $as_echo_n "checking for pthread semaphores... " >&6; }
  20264. have_pthread_sem=no
  20265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20266. /* end confdefs.h. */
  20267. #include <pthread.h>
  20268. #include <semaphore.h>
  20269. int
  20270. main ()
  20271. {
  20272. ;
  20273. return 0;
  20274. }
  20275. _ACEOF
  20276. if ac_fn_c_try_compile "$LINENO"; then :
  20277. have_pthread_sem=yes
  20278. fi
  20279. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  20281. $as_echo "$have_pthread_sem" >&6; }
  20282. fi
  20283. if test x$have_pthread_sem = xyes; then
  20284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  20285. $as_echo_n "checking for sem_timedwait... " >&6; }
  20286. have_sem_timedwait=no
  20287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20288. /* end confdefs.h. */
  20289. #include <pthread.h>
  20290. #include <semaphore.h>
  20291. int
  20292. main ()
  20293. {
  20294. sem_timedwait(NULL, NULL);
  20295. ;
  20296. return 0;
  20297. }
  20298. _ACEOF
  20299. if ac_fn_c_try_link "$LINENO"; then :
  20300. have_sem_timedwait=yes
  20301. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  20302. fi
  20303. rm -f core conftest.err conftest.$ac_objext \
  20304. conftest$ac_exeext conftest.$ac_ext
  20305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  20306. $as_echo "$have_sem_timedwait" >&6; }
  20307. fi
  20308. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  20309. "
  20310. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  20311. have_pthread_np_h=yes
  20312. else
  20313. have_pthread_np_h=no
  20314. fi
  20315. if test x$have_pthread_np_h = xyes; then
  20316. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  20317. fi
  20318. # Check to see if pthread naming is available
  20319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  20320. $as_echo_n "checking for pthread_setname_np... " >&6; }
  20321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20322. /* end confdefs.h. */
  20323. /* Override any GCC internal prototype to avoid an error.
  20324. Use char because int might match the return type of a GCC
  20325. builtin and then its argument prototype would still apply. */
  20326. #ifdef __cplusplus
  20327. extern "C"
  20328. #endif
  20329. char pthread_setname_np ();
  20330. int
  20331. main ()
  20332. {
  20333. return pthread_setname_np ();
  20334. ;
  20335. return 0;
  20336. }
  20337. _ACEOF
  20338. if ac_fn_c_try_link "$LINENO"; then :
  20339. has_pthread_setname_np=yes
  20340. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  20341. else
  20342. has_pthread_setname_np=no
  20343. fi
  20344. rm -f core conftest.err conftest.$ac_objext \
  20345. conftest$ac_exeext conftest.$ac_ext
  20346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  20347. $as_echo "$has_pthread_setname_np" >&6; }
  20348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  20349. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  20350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20351. /* end confdefs.h. */
  20352. /* Override any GCC internal prototype to avoid an error.
  20353. Use char because int might match the return type of a GCC
  20354. builtin and then its argument prototype would still apply. */
  20355. #ifdef __cplusplus
  20356. extern "C"
  20357. #endif
  20358. char pthread_set_name_np ();
  20359. int
  20360. main ()
  20361. {
  20362. return pthread_set_name_np ();
  20363. ;
  20364. return 0;
  20365. }
  20366. _ACEOF
  20367. if ac_fn_c_try_link "$LINENO"; then :
  20368. has_pthread_set_name_np=yes
  20369. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  20370. else
  20371. has_pthread_set_name_np=no
  20372. fi
  20373. rm -f core conftest.err conftest.$ac_objext \
  20374. conftest$ac_exeext conftest.$ac_ext
  20375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  20376. $as_echo "$has_pthread_set_name_np" >&6; }
  20377. # Restore the compiler flags and libraries
  20378. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20379. # Basic thread creation functions
  20380. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  20381. # Semaphores
  20382. # We can fake these with mutexes and condition variables if necessary
  20383. if test x$have_pthread_sem = xyes; then
  20384. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  20385. else
  20386. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  20387. fi
  20388. # Mutexes
  20389. # We can fake these with semaphores if necessary
  20390. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  20391. # Condition variables
  20392. # We can fake these with semaphores and mutexes if necessary
  20393. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  20394. # Thread local storage
  20395. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  20396. have_threads=yes
  20397. fi
  20398. fi
  20399. }
  20400. CheckWINDOWS()
  20401. {
  20402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  20403. $as_echo_n "checking Windows compiler... " >&6; }
  20404. have_win32_gcc=no
  20405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20406. /* end confdefs.h. */
  20407. #include <windows.h>
  20408. int
  20409. main ()
  20410. {
  20411. ;
  20412. return 0;
  20413. }
  20414. _ACEOF
  20415. if ac_fn_c_try_compile "$LINENO"; then :
  20416. have_win32_gcc=yes
  20417. fi
  20418. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  20420. $as_echo "$have_win32_gcc" >&6; }
  20421. if test x$have_win32_gcc != xyes; then
  20422. as_fn_error $? "
  20423. *** Your compiler ($CC) does not produce Windows executables!
  20424. " "$LINENO" 5
  20425. fi
  20426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  20427. $as_echo_n "checking Windows CE... " >&6; }
  20428. have_wince=no
  20429. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20430. /* end confdefs.h. */
  20431. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  20432. #error This is not Windows CE
  20433. #endif
  20434. int
  20435. main ()
  20436. {
  20437. ;
  20438. return 0;
  20439. }
  20440. _ACEOF
  20441. if ac_fn_c_try_compile "$LINENO"; then :
  20442. have_wince=yes
  20443. as_fn_error $? "
  20444. *** Sorry, Windows CE is no longer supported.
  20445. " "$LINENO" 5
  20446. fi
  20447. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  20449. $as_echo "$have_wince" >&6; }
  20450. # This fixes Windows stack alignment with newer GCC
  20451. CheckStackBoundary
  20452. }
  20453. CheckDIRECTX()
  20454. {
  20455. # Check whether --enable-directx was given.
  20456. if test "${enable_directx+set}" = set; then :
  20457. enableval=$enable_directx;
  20458. else
  20459. enable_directx=yes
  20460. fi
  20461. if test x$enable_directx = xyes; then
  20462. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  20463. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  20464. have_d3d=yes
  20465. fi
  20466. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  20467. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  20468. have_d3d11=yes
  20469. fi
  20470. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  20471. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  20472. have_ddraw=yes
  20473. fi
  20474. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  20475. if test "x$ac_cv_header_dsound_h" = xyes; then :
  20476. have_dsound=yes
  20477. fi
  20478. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  20479. if test "x$ac_cv_header_dinput_h" = xyes; then :
  20480. have_dinput=yes
  20481. fi
  20482. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  20483. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  20484. have_dxgi=yes
  20485. fi
  20486. if test x$have_ddraw = xyes; then
  20487. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  20488. fi
  20489. if test x$have_dinput = xyes; then
  20490. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  20491. fi
  20492. if test x$have_dsound = xyes; then
  20493. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  20494. fi
  20495. if test x$have_dxgi = xyes; then
  20496. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  20497. fi
  20498. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  20499. # FIXME: ...so force it off for now.
  20500. case "$host" in
  20501. *-*-cygwin*)
  20502. have_dinput=false
  20503. ;;
  20504. esac
  20505. fi
  20506. # Check whether --enable-xinput was given.
  20507. if test "${enable_xinput+set}" = set; then :
  20508. enableval=$enable_xinput;
  20509. else
  20510. enable_xinput=yes
  20511. fi
  20512. if test x$enable_xinput = xyes; then
  20513. have_xinput_gamepadex=no
  20514. have_xinput_stateex=no
  20515. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  20516. if test "x$ac_cv_header_xinput_h" = xyes; then :
  20517. have_xinput=yes
  20518. fi
  20519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  20520. $as_echo_n "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  20521. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20522. /* end confdefs.h. */
  20523. #include <windows.h>
  20524. #include <xinput.h>
  20525. XINPUT_GAMEPAD_EX x1;
  20526. int
  20527. main ()
  20528. {
  20529. ;
  20530. return 0;
  20531. }
  20532. _ACEOF
  20533. if ac_fn_c_try_compile "$LINENO"; then :
  20534. have_xinput_gamepadex=yes
  20535. fi
  20536. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  20538. $as_echo "$have_xinput_gamepadex" >&6; }
  20539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  20540. $as_echo_n "checking for struct XINPUT_STATE_EX... " >&6; }
  20541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20542. /* end confdefs.h. */
  20543. #include <windows.h>
  20544. #include <xinput.h>
  20545. XINPUT_STATE_EX s1;
  20546. int
  20547. main ()
  20548. {
  20549. ;
  20550. return 0;
  20551. }
  20552. _ACEOF
  20553. if ac_fn_c_try_compile "$LINENO"; then :
  20554. have_xinput_stateex=yes
  20555. fi
  20556. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  20558. $as_echo "$have_xinput_stateex" >&6; }
  20559. if test x$have_xinput = xyes; then
  20560. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  20561. fi
  20562. if test x$have_xinput_gamepadex = xyes; then
  20563. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  20564. fi
  20565. if test x$have_xinput_stateex = xyes; then
  20566. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  20567. fi
  20568. fi
  20569. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  20570. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  20571. have_wasapi=yes
  20572. fi
  20573. if test x$have_wasapi = xyes; then
  20574. $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  20575. fi
  20576. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  20577. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  20578. else
  20579. have_wasapi=no
  20580. fi
  20581. if test x$have_wasapi = xyes; then
  20582. $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  20583. fi
  20584. # Check whether --enable-wasapi was given.
  20585. if test "${enable_wasapi+set}" = set; then :
  20586. enableval=$enable_wasapi;
  20587. else
  20588. enable_wasapi=yes
  20589. fi
  20590. }
  20591. CheckDLOPEN()
  20592. {
  20593. # Check whether --enable-sdl-dlopen was given.
  20594. if test "${enable_sdl_dlopen+set}" = set; then :
  20595. enableval=$enable_sdl_dlopen;
  20596. else
  20597. enable_sdl_dlopen=yes
  20598. fi
  20599. if test x$enable_sdl_dlopen = xyes; then
  20600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  20601. $as_echo_n "checking for dlopen... " >&6; }
  20602. have_dlopen=no
  20603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20604. /* end confdefs.h. */
  20605. #include <dlfcn.h>
  20606. int
  20607. main ()
  20608. {
  20609. void *handle = dlopen("", RTLD_NOW);
  20610. const char *loaderror = (char *) dlerror();
  20611. ;
  20612. return 0;
  20613. }
  20614. _ACEOF
  20615. if ac_fn_c_try_compile "$LINENO"; then :
  20616. have_dlopen=yes
  20617. fi
  20618. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  20620. $as_echo "$have_dlopen" >&6; }
  20621. if test x$have_dlopen = xyes; then
  20622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  20623. $as_echo_n "checking for dlopen in -lc... " >&6; }
  20624. if ${ac_cv_lib_c_dlopen+:} false; then :
  20625. $as_echo_n "(cached) " >&6
  20626. else
  20627. ac_check_lib_save_LIBS=$LIBS
  20628. LIBS="-lc $LIBS"
  20629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20630. /* end confdefs.h. */
  20631. /* Override any GCC internal prototype to avoid an error.
  20632. Use char because int might match the return type of a GCC
  20633. builtin and then its argument prototype would still apply. */
  20634. #ifdef __cplusplus
  20635. extern "C"
  20636. #endif
  20637. char dlopen ();
  20638. int
  20639. main ()
  20640. {
  20641. return dlopen ();
  20642. ;
  20643. return 0;
  20644. }
  20645. _ACEOF
  20646. if ac_fn_c_try_link "$LINENO"; then :
  20647. ac_cv_lib_c_dlopen=yes
  20648. else
  20649. ac_cv_lib_c_dlopen=no
  20650. fi
  20651. rm -f core conftest.err conftest.$ac_objext \
  20652. conftest$ac_exeext conftest.$ac_ext
  20653. LIBS=$ac_check_lib_save_LIBS
  20654. fi
  20655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  20656. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  20657. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  20658. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20659. else
  20660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  20661. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  20662. if ${ac_cv_lib_dl_dlopen+:} false; then :
  20663. $as_echo_n "(cached) " >&6
  20664. else
  20665. ac_check_lib_save_LIBS=$LIBS
  20666. LIBS="-ldl $LIBS"
  20667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20668. /* end confdefs.h. */
  20669. /* Override any GCC internal prototype to avoid an error.
  20670. Use char because int might match the return type of a GCC
  20671. builtin and then its argument prototype would still apply. */
  20672. #ifdef __cplusplus
  20673. extern "C"
  20674. #endif
  20675. char dlopen ();
  20676. int
  20677. main ()
  20678. {
  20679. return dlopen ();
  20680. ;
  20681. return 0;
  20682. }
  20683. _ACEOF
  20684. if ac_fn_c_try_link "$LINENO"; then :
  20685. ac_cv_lib_dl_dlopen=yes
  20686. else
  20687. ac_cv_lib_dl_dlopen=no
  20688. fi
  20689. rm -f core conftest.err conftest.$ac_objext \
  20690. conftest$ac_exeext conftest.$ac_ext
  20691. LIBS=$ac_check_lib_save_LIBS
  20692. fi
  20693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  20694. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  20695. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  20696. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  20697. else
  20698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  20699. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  20700. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  20701. $as_echo_n "(cached) " >&6
  20702. else
  20703. ac_check_lib_save_LIBS=$LIBS
  20704. LIBS="-lltdl $LIBS"
  20705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20706. /* end confdefs.h. */
  20707. /* Override any GCC internal prototype to avoid an error.
  20708. Use char because int might match the return type of a GCC
  20709. builtin and then its argument prototype would still apply. */
  20710. #ifdef __cplusplus
  20711. extern "C"
  20712. #endif
  20713. char dlopen ();
  20714. int
  20715. main ()
  20716. {
  20717. return dlopen ();
  20718. ;
  20719. return 0;
  20720. }
  20721. _ACEOF
  20722. if ac_fn_c_try_link "$LINENO"; then :
  20723. ac_cv_lib_ltdl_dlopen=yes
  20724. else
  20725. ac_cv_lib_ltdl_dlopen=no
  20726. fi
  20727. rm -f core conftest.err conftest.$ac_objext \
  20728. conftest$ac_exeext conftest.$ac_ext
  20729. LIBS=$ac_check_lib_save_LIBS
  20730. fi
  20731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  20732. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  20733. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  20734. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  20735. fi
  20736. fi
  20737. fi
  20738. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  20739. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  20740. have_loadso=yes
  20741. fi
  20742. fi
  20743. }
  20744. CheckUSBHID()
  20745. {
  20746. case "$host" in
  20747. *-*-*bsd*|*-*-dragonfly*)
  20748. if test x$enable_joystick = xyes; then
  20749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  20750. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  20751. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  20752. $as_echo_n "(cached) " >&6
  20753. else
  20754. ac_check_lib_save_LIBS=$LIBS
  20755. LIBS="-lusbhid $LIBS"
  20756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20757. /* end confdefs.h. */
  20758. /* Override any GCC internal prototype to avoid an error.
  20759. Use char because int might match the return type of a GCC
  20760. builtin and then its argument prototype would still apply. */
  20761. #ifdef __cplusplus
  20762. extern "C"
  20763. #endif
  20764. char hid_init ();
  20765. int
  20766. main ()
  20767. {
  20768. return hid_init ();
  20769. ;
  20770. return 0;
  20771. }
  20772. _ACEOF
  20773. if ac_fn_c_try_link "$LINENO"; then :
  20774. ac_cv_lib_usbhid_hid_init=yes
  20775. else
  20776. ac_cv_lib_usbhid_hid_init=no
  20777. fi
  20778. rm -f core conftest.err conftest.$ac_objext \
  20779. conftest$ac_exeext conftest.$ac_ext
  20780. LIBS=$ac_check_lib_save_LIBS
  20781. fi
  20782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  20783. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  20784. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  20785. have_libusbhid=yes
  20786. fi
  20787. if test x$have_libusbhid = xyes; then
  20788. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  20789. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  20790. USB_CFLAGS="-DHAVE_USBHID_H"
  20791. fi
  20792. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  20793. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  20794. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  20795. fi
  20796. USB_LIBS="$USB_LIBS -lusbhid"
  20797. else
  20798. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  20799. if test "x$ac_cv_header_usb_h" = xyes; then :
  20800. USB_CFLAGS="-DHAVE_USB_H"
  20801. fi
  20802. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20803. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20804. USB_CFLAGS="-DHAVE_LIBUSB_H"
  20805. fi
  20806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  20807. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  20808. if ${ac_cv_lib_usb_hid_init+:} false; then :
  20809. $as_echo_n "(cached) " >&6
  20810. else
  20811. ac_check_lib_save_LIBS=$LIBS
  20812. LIBS="-lusb $LIBS"
  20813. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20814. /* end confdefs.h. */
  20815. /* Override any GCC internal prototype to avoid an error.
  20816. Use char because int might match the return type of a GCC
  20817. builtin and then its argument prototype would still apply. */
  20818. #ifdef __cplusplus
  20819. extern "C"
  20820. #endif
  20821. char hid_init ();
  20822. int
  20823. main ()
  20824. {
  20825. return hid_init ();
  20826. ;
  20827. return 0;
  20828. }
  20829. _ACEOF
  20830. if ac_fn_c_try_link "$LINENO"; then :
  20831. ac_cv_lib_usb_hid_init=yes
  20832. else
  20833. ac_cv_lib_usb_hid_init=no
  20834. fi
  20835. rm -f core conftest.err conftest.$ac_objext \
  20836. conftest$ac_exeext conftest.$ac_ext
  20837. LIBS=$ac_check_lib_save_LIBS
  20838. fi
  20839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  20840. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  20841. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  20842. USB_LIBS="$USB_LIBS -lusb"
  20843. fi
  20844. fi
  20845. save_CFLAGS="$CFLAGS"
  20846. CFLAGS="$CFLAGS $USB_CFLAGS"
  20847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  20848. $as_echo_n "checking for usbhid... " >&6; }
  20849. have_usbhid=no
  20850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20851. /* end confdefs.h. */
  20852. #include <sys/types.h>
  20853. #if defined(HAVE_USB_H)
  20854. #include <usb.h>
  20855. #endif
  20856. #ifdef __DragonFly__
  20857. # include <bus/u4b/usb.h>
  20858. # include <bus/u4b/usbhid.h>
  20859. #else
  20860. # include <dev/usb/usb.h>
  20861. # include <dev/usb/usbhid.h>
  20862. #endif
  20863. #if defined(HAVE_USBHID_H)
  20864. #include <usbhid.h>
  20865. #elif defined(HAVE_LIBUSB_H)
  20866. #include <libusb.h>
  20867. #elif defined(HAVE_LIBUSBHID_H)
  20868. #include <libusbhid.h>
  20869. #endif
  20870. int
  20871. main ()
  20872. {
  20873. struct report_desc *repdesc;
  20874. struct usb_ctl_report *repbuf;
  20875. hid_kind_t hidkind;
  20876. ;
  20877. return 0;
  20878. }
  20879. _ACEOF
  20880. if ac_fn_c_try_compile "$LINENO"; then :
  20881. have_usbhid=yes
  20882. fi
  20883. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  20885. $as_echo "$have_usbhid" >&6; }
  20886. if test x$have_usbhid = xyes; then
  20887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  20888. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  20889. have_usbhid_ucr_data=no
  20890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20891. /* end confdefs.h. */
  20892. #include <sys/types.h>
  20893. #if defined(HAVE_USB_H)
  20894. #include <usb.h>
  20895. #endif
  20896. #ifdef __DragonFly__
  20897. # include <bus/u4b/usb.h>
  20898. # include <bus/u4b/usbhid.h>
  20899. #else
  20900. # include <dev/usb/usb.h>
  20901. # include <dev/usb/usbhid.h>
  20902. #endif
  20903. #if defined(HAVE_USBHID_H)
  20904. #include <usbhid.h>
  20905. #elif defined(HAVE_LIBUSB_H)
  20906. #include <libusb.h>
  20907. #elif defined(HAVE_LIBUSBHID_H)
  20908. #include <libusbhid.h>
  20909. #endif
  20910. int
  20911. main ()
  20912. {
  20913. struct usb_ctl_report buf;
  20914. if (buf.ucr_data) { }
  20915. ;
  20916. return 0;
  20917. }
  20918. _ACEOF
  20919. if ac_fn_c_try_compile "$LINENO"; then :
  20920. have_usbhid_ucr_data=yes
  20921. fi
  20922. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20923. if test x$have_usbhid_ucr_data = xyes; then
  20924. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  20925. fi
  20926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  20927. $as_echo "$have_usbhid_ucr_data" >&6; }
  20928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  20929. $as_echo_n "checking for new usbhid API... " >&6; }
  20930. have_usbhid_new=no
  20931. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20932. /* end confdefs.h. */
  20933. #include <sys/types.h>
  20934. #if defined(HAVE_USB_H)
  20935. #include <usb.h>
  20936. #endif
  20937. #ifdef __DragonFly__
  20938. #include <bus/u4b/usb.h>
  20939. #include <bus/u4b/usbhid.h>
  20940. #else
  20941. #include <dev/usb/usb.h>
  20942. #include <dev/usb/usbhid.h>
  20943. #endif
  20944. #if defined(HAVE_USBHID_H)
  20945. #include <usbhid.h>
  20946. #elif defined(HAVE_LIBUSB_H)
  20947. #include <libusb.h>
  20948. #elif defined(HAVE_LIBUSBHID_H)
  20949. #include <libusbhid.h>
  20950. #endif
  20951. int
  20952. main ()
  20953. {
  20954. report_desc_t d;
  20955. hid_start_parse(d, 1, 1);
  20956. ;
  20957. return 0;
  20958. }
  20959. _ACEOF
  20960. if ac_fn_c_try_compile "$LINENO"; then :
  20961. have_usbhid_new=yes
  20962. fi
  20963. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20964. if test x$have_usbhid_new = xyes; then
  20965. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  20966. fi
  20967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  20968. $as_echo "$have_usbhid_new" >&6; }
  20969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  20970. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  20971. have_machine_joystick=no
  20972. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20973. /* end confdefs.h. */
  20974. #include <machine/joystick.h>
  20975. int
  20976. main ()
  20977. {
  20978. struct joystick t;
  20979. ;
  20980. return 0;
  20981. }
  20982. _ACEOF
  20983. if ac_fn_c_try_compile "$LINENO"; then :
  20984. have_machine_joystick=yes
  20985. fi
  20986. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20987. if test x$have_machine_joystick = xyes; then
  20988. $as_echo "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  20989. fi
  20990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  20991. $as_echo "$have_machine_joystick" >&6; }
  20992. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  20993. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  20994. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  20995. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  20996. have_joystick=yes
  20997. fi
  20998. CFLAGS="$save_CFLAGS"
  20999. fi
  21000. ;;
  21001. esac
  21002. }
  21003. CheckHIDAPI()
  21004. {
  21005. # Check whether --enable-hidapi was given.
  21006. if test "${enable_hidapi+set}" = set; then :
  21007. enableval=$enable_hidapi;
  21008. else
  21009. enable_hidapi=yes
  21010. fi
  21011. # Check whether --enable-hidapi-libusb was given.
  21012. if test "${enable_hidapi_libusb+set}" = set; then :
  21013. enableval=$enable_hidapi_libusb;
  21014. else
  21015. enable_hidapi_libusb=maybe
  21016. fi
  21017. if test x$enable_joystick = xyes -a x$enable_hidapi = xyes; then
  21018. case "$host" in
  21019. # libusb does not support iOS
  21020. *-ios-* )
  21021. enable_hidapi_libusb=no
  21022. ;;
  21023. # On the other hand, *BSD specifically uses libusb only
  21024. *-*-*bsd* )
  21025. enable_hidapi_libusb=yes
  21026. require_hidapi_libusb=yes
  21027. ;;
  21028. # RAWINPUT is only available on Win32, but can be enabled if HIDAPI is
  21029. *-*-cygwin* | *-*-mingw*)
  21030. enable_joystick_rawinput=yes
  21031. ;;
  21032. esac
  21033. hidapi_support=yes
  21034. if test x$enable_hidapi_libusb = xyes; then
  21035. pkg_failed=no
  21036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  21037. $as_echo_n "checking for libusb-1.0... " >&6; }
  21038. if test -n "$LIBUSB_CFLAGS"; then
  21039. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  21040. elif test -n "$PKG_CONFIG"; then
  21041. if test -n "$PKG_CONFIG" && \
  21042. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  21043. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  21044. ac_status=$?
  21045. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21046. test $ac_status = 0; }; then
  21047. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  21048. test "x$?" != "x0" && pkg_failed=yes
  21049. else
  21050. pkg_failed=yes
  21051. fi
  21052. else
  21053. pkg_failed=untried
  21054. fi
  21055. if test -n "$LIBUSB_LIBS"; then
  21056. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  21057. elif test -n "$PKG_CONFIG"; then
  21058. if test -n "$PKG_CONFIG" && \
  21059. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  21060. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  21061. ac_status=$?
  21062. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21063. test $ac_status = 0; }; then
  21064. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  21065. test "x$?" != "x0" && pkg_failed=yes
  21066. else
  21067. pkg_failed=yes
  21068. fi
  21069. else
  21070. pkg_failed=untried
  21071. fi
  21072. if test $pkg_failed = yes; then
  21073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21074. $as_echo "no" >&6; }
  21075. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21076. _pkg_short_errors_supported=yes
  21077. else
  21078. _pkg_short_errors_supported=no
  21079. fi
  21080. if test $_pkg_short_errors_supported = yes; then
  21081. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  21082. else
  21083. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  21084. fi
  21085. # Put the nasty error message in config.log where it belongs
  21086. echo "$LIBUSB_PKG_ERRORS" >&5
  21087. have_libusb=no
  21088. elif test $pkg_failed = untried; then
  21089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21090. $as_echo "no" >&6; }
  21091. have_libusb=no
  21092. else
  21093. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  21094. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  21095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21096. $as_echo "yes" >&6; }
  21097. have_libusb=yes
  21098. fi
  21099. save_CPPFLAGS="$CPPFLAGS"
  21100. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  21101. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  21102. if test "x$ac_cv_header_libusb_h" = xyes; then :
  21103. have_libusb_h=yes
  21104. else
  21105. have_libusb_h=no
  21106. fi
  21107. CPPFLAGS="$save_CPPFLAGS"
  21108. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  21109. hidapi_support=no
  21110. fi
  21111. fi
  21112. if test x$hidapi_support = xyes; then
  21113. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  21114. if test x$enable_joystick_rawinput = xyes; then
  21115. $as_echo "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  21116. fi
  21117. EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
  21118. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  21119. SOURCES="$SOURCES $srcdir/src/hidapi/SDL_hidapi.c"
  21120. if test x$have_libusb_h = xyes; then
  21121. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  21122. if test x$require_hidapi_libusb = xyes; then
  21123. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  21124. else
  21125. if test x$have_loadso != xyes; then
  21126. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  21127. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  21128. fi
  21129. # libusb is loaded dynamically, so don't add it to LDFLAGS
  21130. libusb_lib=""
  21131. case "$host" in
  21132. *-*-darwin* )
  21133. libusb_lib="libusb-1.0.0.dylib"
  21134. ;;
  21135. *-*-cygwin* | *-*-mingw* )
  21136. libusb_lib="libusb-1.0.dll"
  21137. ;;
  21138. esac
  21139. if test x$libusb_lib = x; then
  21140. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  21141. fi
  21142. cat >>confdefs.h <<_ACEOF
  21143. #define SDL_LIBUSB_DYNAMIC "$libusb_lib"
  21144. _ACEOF
  21145. fi
  21146. fi
  21147. fi
  21148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi support" >&5
  21149. $as_echo_n "checking for hidapi support... " >&6; }
  21150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  21151. $as_echo "$hidapi_support" >&6; }
  21152. fi
  21153. }
  21154. CheckClockGettime()
  21155. {
  21156. # Check whether --enable-clock_gettime was given.
  21157. if test "${enable_clock_gettime+set}" = set; then :
  21158. enableval=$enable_clock_gettime;
  21159. else
  21160. enable_clock_gettime=yes
  21161. fi
  21162. if test x$enable_clock_gettime = xyes; then
  21163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  21164. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  21165. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  21166. $as_echo_n "(cached) " >&6
  21167. else
  21168. ac_check_lib_save_LIBS=$LIBS
  21169. LIBS="-lrt $LIBS"
  21170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21171. /* end confdefs.h. */
  21172. /* Override any GCC internal prototype to avoid an error.
  21173. Use char because int might match the return type of a GCC
  21174. builtin and then its argument prototype would still apply. */
  21175. #ifdef __cplusplus
  21176. extern "C"
  21177. #endif
  21178. char clock_gettime ();
  21179. int
  21180. main ()
  21181. {
  21182. return clock_gettime ();
  21183. ;
  21184. return 0;
  21185. }
  21186. _ACEOF
  21187. if ac_fn_c_try_link "$LINENO"; then :
  21188. ac_cv_lib_rt_clock_gettime=yes
  21189. else
  21190. ac_cv_lib_rt_clock_gettime=no
  21191. fi
  21192. rm -f core conftest.err conftest.$ac_objext \
  21193. conftest$ac_exeext conftest.$ac_ext
  21194. LIBS=$ac_check_lib_save_LIBS
  21195. fi
  21196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  21197. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  21198. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  21199. have_clock_gettime=yes
  21200. fi
  21201. if test x$have_clock_gettime = xyes; then
  21202. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  21203. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  21204. else
  21205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  21206. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  21207. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  21208. $as_echo_n "(cached) " >&6
  21209. else
  21210. ac_check_lib_save_LIBS=$LIBS
  21211. LIBS="-lc $LIBS"
  21212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21213. /* end confdefs.h. */
  21214. /* Override any GCC internal prototype to avoid an error.
  21215. Use char because int might match the return type of a GCC
  21216. builtin and then its argument prototype would still apply. */
  21217. #ifdef __cplusplus
  21218. extern "C"
  21219. #endif
  21220. char clock_gettime ();
  21221. int
  21222. main ()
  21223. {
  21224. return clock_gettime ();
  21225. ;
  21226. return 0;
  21227. }
  21228. _ACEOF
  21229. if ac_fn_c_try_link "$LINENO"; then :
  21230. ac_cv_lib_c_clock_gettime=yes
  21231. else
  21232. ac_cv_lib_c_clock_gettime=no
  21233. fi
  21234. rm -f core conftest.err conftest.$ac_objext \
  21235. conftest$ac_exeext conftest.$ac_ext
  21236. LIBS=$ac_check_lib_save_LIBS
  21237. fi
  21238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  21239. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  21240. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  21241. have_clock_gettime=yes
  21242. fi
  21243. if test x$have_clock_gettime = xyes; then
  21244. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  21245. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  21246. fi
  21247. fi
  21248. fi
  21249. }
  21250. CheckLinuxVersion()
  21251. {
  21252. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  21253. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  21254. have_linux_version_h=yes
  21255. fi
  21256. if test x$have_linux_version_h = xyes; then
  21257. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  21258. fi
  21259. }
  21260. CheckRPATH()
  21261. {
  21262. # Check whether --enable-rpath was given.
  21263. if test "${enable_rpath+set}" = set; then :
  21264. enableval=$enable_rpath;
  21265. else
  21266. enable_rpath=yes
  21267. fi
  21268. }
  21269. CheckEventSignals()
  21270. {
  21271. # Check whether --enable-backgrounding-signal was given.
  21272. if test "${enable_backgrounding_signal+set}" = set; then :
  21273. enableval=$enable_backgrounding_signal;
  21274. else
  21275. enable_backgrounding_signal=no
  21276. fi
  21277. if test x$enable_backgrounding_signal != xno; then
  21278. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  21279. fi
  21280. # Check whether --enable-foregrounding-signal was given.
  21281. if test "${enable_foregrounding_signal+set}" = set; then :
  21282. enableval=$enable_foregrounding_signal;
  21283. else
  21284. enable_foregrounding_signal=no
  21285. fi
  21286. if test x$enable_foregrounding_signal != xno; then
  21287. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  21288. fi
  21289. }
  21290. CheckVirtualJoystick()
  21291. {
  21292. # Check whether --enable-joystick-virtual was given.
  21293. if test "${enable_joystick_virtual+set}" = set; then :
  21294. enableval=$enable_joystick_virtual;
  21295. else
  21296. enable_joystick_virtual=yes
  21297. fi
  21298. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  21299. $as_echo "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  21300. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  21301. have_joystick_virtual=yes
  21302. fi
  21303. }
  21304. CheckWarnAll
  21305. CheckNoStrictAliasing
  21306. CheckEventSignals
  21307. have_locale=no
  21308. case "$host" in
  21309. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  21310. case "$host" in
  21311. *-*-android*)
  21312. # Android
  21313. ARCH=android
  21314. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  21315. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  21316. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  21317. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  21318. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  21319. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  21320. if test x$enable_video = xyes; then
  21321. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  21322. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  21323. SUMMARY_video="${SUMMARY_video} android"
  21324. fi
  21325. ;;
  21326. *-*-linux*) ARCH=linux ;;
  21327. *-*-uclinux*) ARCH=linux ;;
  21328. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  21329. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  21330. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  21331. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  21332. *-*-bsdi*) ARCH=bsdi ;;
  21333. *-*-freebsd*) ARCH=freebsd ;;
  21334. *-*-dragonfly*) ARCH=freebsd ;;
  21335. *-*-netbsd*) ARCH=netbsd ;;
  21336. *-*-openbsd*) ARCH=openbsd ;;
  21337. *-*-sysv5*) ARCH=sysv5 ;;
  21338. *-*-solaris*) ARCH=solaris ;;
  21339. *-*-hpux*) ARCH=hpux ;;
  21340. *-*-aix*) ARCH=aix ;;
  21341. *-*-minix*) ARCH=minix ;;
  21342. *-*-nto*) ARCH=nto
  21343. CheckQNXVideo
  21344. ;;
  21345. esac
  21346. CheckVisibilityHidden
  21347. CheckDeclarationAfterStatement
  21348. CheckDummyVideo
  21349. CheckDiskAudio
  21350. CheckDummyAudio
  21351. CheckDLOPEN
  21352. CheckARM
  21353. CheckNEON
  21354. CheckOSS
  21355. CheckALSA
  21356. CheckPipewire
  21357. CheckPulseAudio
  21358. CheckJACK
  21359. CheckARTSC
  21360. CheckESD
  21361. CheckNAS
  21362. CheckSNDIO
  21363. CheckFusionSound
  21364. CheckLibSampleRate
  21365. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  21366. CheckRPI
  21367. CheckX11
  21368. CheckDirectFB
  21369. # Need to check for EGL first because KMSDRM depends on it.
  21370. CheckEGLKMSDRM
  21371. CheckKMSDRM
  21372. CheckOpenGLKMSDRM
  21373. CheckOpenGLX11
  21374. CheckOpenGLESX11
  21375. CheckVulkan
  21376. CheckWayland
  21377. CheckInputEvents
  21378. CheckLibUDev
  21379. CheckDBus
  21380. CheckIME
  21381. CheckInotify
  21382. CheckIBus
  21383. CheckFcitx
  21384. case $ARCH in
  21385. linux)
  21386. CheckInputKD
  21387. ;;
  21388. freebsd)
  21389. CheckInputKBIO
  21390. ;;
  21391. openbsd|netbsd)
  21392. CheckInputWSCONS
  21393. ;;
  21394. esac
  21395. CheckUSBHID
  21396. CheckHIDAPI
  21397. CheckPTHREAD
  21398. CheckClockGettime
  21399. CheckLinuxVersion
  21400. CheckRPATH
  21401. CheckVivanteVideo
  21402. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  21403. have_misc=yes
  21404. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  21405. have_locale=yes
  21406. # Set up files for the audio library
  21407. if test x$enable_audio = xyes; then
  21408. case $ARCH in
  21409. sysv5|solaris|hpux)
  21410. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  21411. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  21412. SUMMARY_audio="${SUMMARY_audio} sun"
  21413. have_audio=yes
  21414. ;;
  21415. netbsd) # Don't use this on OpenBSD, it's busted.
  21416. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  21417. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  21418. SUMMARY_audio="${SUMMARY_audio} netbsd"
  21419. have_audio=yes
  21420. ;;
  21421. aix)
  21422. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  21423. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  21424. SUMMARY_audio="${SUMMARY_audio} paudio"
  21425. have_audio=yes
  21426. ;;
  21427. android)
  21428. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  21429. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  21430. SUMMARY_audio="${SUMMARY_audio} android"
  21431. have_audio=yes
  21432. ;;
  21433. nto)
  21434. CheckQNXAudio
  21435. ;;
  21436. esac
  21437. fi
  21438. # Set up files for the joystick library
  21439. if test x$enable_joystick = xyes; then
  21440. case $ARCH in
  21441. linux)
  21442. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  21443. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  21444. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21445. have_joystick=yes
  21446. ;;
  21447. freebsd)
  21448. if test x$use_input_events = xyes; then
  21449. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  21450. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  21451. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21452. have_joystick=yes
  21453. fi
  21454. ;;
  21455. android)
  21456. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  21457. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  21458. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21459. have_joystick=yes
  21460. ;;
  21461. esac
  21462. fi
  21463. # Set up files for the haptic library
  21464. if test x$enable_haptic = xyes; then
  21465. case $ARCH in
  21466. linux|freebsd)
  21467. if test x$use_input_events = xyes; then
  21468. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  21469. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  21470. have_haptic=yes
  21471. fi
  21472. ;;
  21473. android)
  21474. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  21475. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  21476. have_haptic=yes
  21477. ;;
  21478. esac
  21479. fi
  21480. # Set up files for the sensor library
  21481. if test x$enable_sensor = xyes; then
  21482. case $ARCH in
  21483. android)
  21484. $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  21485. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  21486. have_sensor=yes
  21487. ;;
  21488. esac
  21489. fi
  21490. # Set up files for the power library
  21491. if test x$enable_power = xyes; then
  21492. case $ARCH in
  21493. linux)
  21494. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  21495. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  21496. have_power=yes
  21497. ;;
  21498. android)
  21499. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  21500. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  21501. have_power=yes
  21502. ;;
  21503. esac
  21504. fi
  21505. # Set up files for the filesystem library
  21506. if test x$enable_filesystem = xyes; then
  21507. case $ARCH in
  21508. android)
  21509. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  21510. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  21511. have_filesystem=yes
  21512. ;;
  21513. *)
  21514. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  21515. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  21516. have_filesystem=yes
  21517. ;;
  21518. esac
  21519. fi
  21520. # Set up files for the timer library
  21521. if test x$enable_timers = xyes; then
  21522. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21523. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21524. have_timers=yes
  21525. fi
  21526. # Set up files for udev hotplugging support
  21527. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  21528. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  21529. fi
  21530. # Set up files for evdev input
  21531. if test x$use_input_events = xyes; then
  21532. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  21533. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  21534. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  21535. fi
  21536. # Set up files for wscons input
  21537. if test x$use_input_wscons = xyes; then
  21538. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  21539. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  21540. fi
  21541. # Set up other core UNIX files
  21542. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  21543. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  21544. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21545. ;;
  21546. *-*-cygwin* | *-*-mingw*)
  21547. ARCH=win32
  21548. if test "$build" != "$host"; then # cross-compiling
  21549. # Default cross-compile location
  21550. ac_default_prefix=/usr/local/cross-tools/$host
  21551. else
  21552. # Look for the location of the tools and install there
  21553. if test "$BUILD_PREFIX" != ""; then
  21554. ac_default_prefix=$BUILD_PREFIX
  21555. fi
  21556. fi
  21557. CheckDeclarationAfterStatement
  21558. CheckDummyVideo
  21559. CheckDiskAudio
  21560. CheckDummyAudio
  21561. CheckWINDOWS
  21562. CheckWINDOWSGL
  21563. CheckWINDOWSGLES
  21564. CheckVulkan
  21565. CheckDIRECTX
  21566. CheckHIDAPI
  21567. # Set up the core platform files
  21568. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  21569. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  21570. have_misc=yes
  21571. # Use the Windows locale APIs.
  21572. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  21573. have_locale=yes
  21574. # Set up files for the video library
  21575. if test x$enable_video = xyes; then
  21576. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  21577. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  21578. have_video=yes
  21579. # Check whether --enable-render-d3d was given.
  21580. if test "${enable_render_d3d+set}" = set; then :
  21581. enableval=$enable_render_d3d;
  21582. else
  21583. enable_render_d3d=yes
  21584. fi
  21585. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  21586. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  21587. SUMMARY_video="${SUMMARY_video} d3d9"
  21588. fi
  21589. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  21590. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  21591. SUMMARY_video="${SUMMARY_video} d3d11"
  21592. fi
  21593. fi
  21594. # Set up files for the audio library
  21595. if test x$enable_audio = xyes; then
  21596. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  21597. SUMMARY_audio="${SUMMARY_audio} winmm"
  21598. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  21599. if test x$have_dsound = xyes; then
  21600. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  21601. SUMMARY_audio="${SUMMARY_audio} directsound"
  21602. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  21603. fi
  21604. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  21605. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  21606. SUMMARY_audio="${SUMMARY_audio} wasapi"
  21607. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  21608. fi
  21609. have_audio=yes
  21610. fi
  21611. # Set up files for the joystick library
  21612. if test x$enable_joystick = xyes; then
  21613. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21614. if test x$have_xinput = xyes; then
  21615. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  21616. fi
  21617. if test x$have_dinput = xyes; then
  21618. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  21619. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  21620. fi
  21621. else
  21622. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  21623. fi
  21624. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  21625. have_joystick=yes
  21626. fi
  21627. if test x$enable_haptic = xyes; then
  21628. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21629. if test x$have_xinput = xyes; then
  21630. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  21631. fi
  21632. if test x$have_dinput = xyes; then
  21633. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  21634. fi
  21635. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  21636. have_haptic=yes
  21637. fi
  21638. fi
  21639. # Set up files for the sensor library
  21640. ac_fn_c_check_header_mongrel "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  21641. if test "x$ac_cv_header_sensorsapi_h" = xyes; then :
  21642. have_winsensors=yes
  21643. else
  21644. have_winsensors=no
  21645. fi
  21646. if test x$have_winsensors = xyes; then
  21647. $as_echo "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  21648. fi
  21649. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  21650. $as_echo "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  21651. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  21652. have_sensor=yes
  21653. fi
  21654. # Set up files for the power library
  21655. if test x$enable_power = xyes; then
  21656. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  21657. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  21658. have_power=yes
  21659. fi
  21660. # Set up files for the filesystem library
  21661. if test x$enable_filesystem = xyes; then
  21662. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  21663. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  21664. have_filesystem=yes
  21665. fi
  21666. # Set up files for the thread library
  21667. if test x$enable_threads = xyes; then
  21668. $as_echo "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  21669. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  21670. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  21671. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  21672. have_threads=yes
  21673. fi
  21674. # Set up files for the timer library
  21675. if test x$enable_timers = xyes; then
  21676. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  21677. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  21678. have_timers=yes
  21679. fi
  21680. # Set up files for the shared object loading library
  21681. if test x$enable_loadso = xyes; then
  21682. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  21683. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  21684. have_loadso=yes
  21685. fi
  21686. # Set up the system libraries we need
  21687. if test -f /lib/w32api/libuuid.a; then
  21688. LIBUUID=/lib/w32api/libuuid.a
  21689. else
  21690. LIBUUID=-luuid
  21691. fi
  21692. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID -static-libgcc"
  21693. # The Windows platform requires special setup
  21694. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  21695. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  21696. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  21697. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  21698. # Check to see if this is a mingw or cygwin build
  21699. have_mingw32=
  21700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  21701. $as_echo_n "checking for main in -lmingw32... " >&6; }
  21702. if ${ac_cv_lib_mingw32_main+:} false; then :
  21703. $as_echo_n "(cached) " >&6
  21704. else
  21705. ac_check_lib_save_LIBS=$LIBS
  21706. LIBS="-lmingw32 $LIBS"
  21707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21708. /* end confdefs.h. */
  21709. int
  21710. main ()
  21711. {
  21712. return main ();
  21713. ;
  21714. return 0;
  21715. }
  21716. _ACEOF
  21717. if ac_fn_c_try_link "$LINENO"; then :
  21718. ac_cv_lib_mingw32_main=yes
  21719. else
  21720. ac_cv_lib_mingw32_main=no
  21721. fi
  21722. rm -f core conftest.err conftest.$ac_objext \
  21723. conftest$ac_exeext conftest.$ac_ext
  21724. LIBS=$ac_check_lib_save_LIBS
  21725. fi
  21726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  21727. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  21728. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  21729. have_mingw32=yes
  21730. fi
  21731. if test x$have_mingw32 = xyes; then
  21732. SDL_LIBS="-lmingw32 $SDL_LIBS"
  21733. else
  21734. SDL_LIBS="-lcygwin $SDL_LIBS"
  21735. fi
  21736. ;;
  21737. *-*-beos*)
  21738. as_fn_error $? "
  21739. *** BeOS support has been removed as of SDL 2.0.2.
  21740. " "$LINENO" 5
  21741. ;;
  21742. *-*-haiku*)
  21743. ARCH=haiku
  21744. ac_default_prefix=/boot/system
  21745. CheckDummyVideo
  21746. CheckDiskAudio
  21747. CheckDummyAudio
  21748. CheckDLOPEN
  21749. CheckHaikuVideo
  21750. CheckHaikuGL
  21751. CheckPTHREAD
  21752. # Set up files for the audio library
  21753. if test x$enable_audio = xyes; then
  21754. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  21755. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  21756. SUMMARY_audio="${SUMMARY_audio} haiku"
  21757. have_audio=yes
  21758. fi
  21759. # Set up files for the joystick library
  21760. if test x$enable_joystick = xyes; then
  21761. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  21762. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  21763. have_joystick=yes
  21764. fi
  21765. # Set up files for the timer library
  21766. if test x$enable_timers = xyes; then
  21767. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  21768. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  21769. have_timers=yes
  21770. fi
  21771. # Set up files for the system power library
  21772. if test x$enable_power = xyes; then
  21773. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  21774. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  21775. have_power=yes
  21776. fi
  21777. # Set up files for the system filesystem library
  21778. if test x$enable_filesystem = xyes; then
  21779. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  21780. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  21781. have_filesystem=yes
  21782. fi
  21783. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  21784. have_misc=yes
  21785. # Set up files for the locale library
  21786. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  21787. have_locale=yes
  21788. # The Haiku platform requires special setup.
  21789. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  21790. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  21791. ;;
  21792. *-ios-*)
  21793. ARCH=ios
  21794. CheckVisibilityHidden
  21795. CheckDeclarationAfterStatement
  21796. CheckDummyVideo
  21797. CheckDiskAudio
  21798. CheckDummyAudio
  21799. CheckDLOPEN
  21800. CheckMETAL
  21801. CheckVulkan
  21802. CheckPTHREAD
  21803. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  21804. have_misc=yes
  21805. # Set up files for the locale library
  21806. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  21807. have_locale=yes
  21808. # Set up files for the audio library
  21809. if test x$enable_audio = xyes; then
  21810. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21811. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21812. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21813. have_audio=yes
  21814. fi
  21815. # Set up files for the joystick library
  21816. if test x$enable_joystick = xyes; then
  21817. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  21818. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21819. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21820. have_joystick=yes
  21821. else
  21822. # Need this code for accelerometer as joystick support
  21823. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21824. fi
  21825. # Set up files for the haptic library
  21826. #if test x$enable_haptic = xyes; then
  21827. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21828. # have_haptic=yes
  21829. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21830. #fi
  21831. # Set up files for the sensor library
  21832. if test x$enable_sensor = xyes; then
  21833. $as_echo "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  21834. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  21835. have_sensor=yes
  21836. fi
  21837. # Set up files for the power library
  21838. if test x$enable_power = xyes; then
  21839. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  21840. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  21841. have_power=yes
  21842. fi
  21843. # Set up files for the filesystem library
  21844. if test x$enable_filesystem = xyes; then
  21845. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21846. have_filesystem=yes
  21847. fi
  21848. # Set up additional files for the file library
  21849. if test x$enable_file = xyes; then
  21850. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21851. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21852. fi
  21853. # Set up files for the timer library
  21854. if test x$enable_timers = xyes; then
  21855. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21856. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21857. have_timers=yes
  21858. fi
  21859. # Set up other core UNIX files
  21860. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21861. # The iOS platform requires special setup.
  21862. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  21863. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21864. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  21865. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  21866. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21867. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  21868. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  21869. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  21870. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  21871. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  21872. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  21873. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  21874. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  21875. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  21876. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  21877. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  21878. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  21879. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  21880. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  21881. fi
  21882. ;;
  21883. *-*-darwin* )
  21884. # This could be either full "Mac OS X", or plain "Darwin" which is
  21885. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  21886. # Next line is broken, and a few files below require Mac OS X (full)
  21887. ARCH=macosx
  21888. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  21889. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  21890. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  21891. CheckVisibilityHidden
  21892. CheckDeclarationAfterStatement
  21893. CheckDummyVideo
  21894. CheckDiskAudio
  21895. CheckDummyAudio
  21896. CheckDLOPEN
  21897. CheckCOCOA
  21898. CheckMETAL
  21899. CheckX11
  21900. CheckMacGL
  21901. CheckMacGLES
  21902. CheckOpenGLX11
  21903. CheckVulkan
  21904. CheckPTHREAD
  21905. CheckHIDAPI
  21906. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  21907. have_misc=yes
  21908. # Set up files for the locale library
  21909. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  21910. have_locale=yes
  21911. # Set up files for the audio library
  21912. if test x$enable_audio = xyes; then
  21913. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21914. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21915. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  21916. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21917. have_audio=yes
  21918. fi
  21919. # Set up files for the joystick library
  21920. if test x$enable_joystick = xyes; then
  21921. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  21922. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  21923. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21924. CheckJoystickMFI
  21925. have_joystick=yes
  21926. fi
  21927. # Set up files for the haptic library
  21928. if test x$enable_haptic = xyes; then
  21929. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  21930. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21931. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21932. have_haptic=yes
  21933. fi
  21934. # Set up files for the power library
  21935. if test x$enable_power = xyes; then
  21936. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  21937. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  21938. have_power=yes
  21939. fi
  21940. # Set up files for the filesystem library
  21941. if test x$enable_filesystem = xyes; then
  21942. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21943. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21944. have_filesystem=yes
  21945. fi
  21946. # Set up files for the timer library
  21947. if test x$enable_timers = xyes; then
  21948. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21949. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21950. have_timers=yes
  21951. fi
  21952. # Set up additional files for the file library
  21953. if test x$enable_file = xyes; then
  21954. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21955. fi
  21956. # Set up other core UNIX files
  21957. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21958. # The Mac OS X platform requires special setup.
  21959. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  21960. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  21961. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  21962. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  21963. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  21964. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  21965. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  21966. fi
  21967. ;;
  21968. *-nacl|*-pnacl)
  21969. ARCH=nacl
  21970. CheckNativeClient
  21971. CheckDummyAudio
  21972. CheckDummyVideo
  21973. CheckInputEvents
  21974. CheckPTHREAD
  21975. # Set up files for the timer library
  21976. if test x$enable_timers = xyes; then
  21977. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21978. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21979. have_timers=yes
  21980. fi
  21981. if test x$enable_filesystem = xyes; then
  21982. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  21983. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  21984. have_filesystem=yes
  21985. fi
  21986. ;;
  21987. *-*-emscripten* )
  21988. if test x$enable_video = xyes; then
  21989. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21990. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  21991. have_video=yes
  21992. SUMMARY_video="${SUMMARY_video} emscripten"
  21993. fi
  21994. if test x$enable_audio = xyes; then
  21995. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21996. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  21997. have_audio=yes
  21998. SUMMARY_audio="${SUMMARY_audio} emscripten"
  21999. fi
  22000. CheckVisibilityHidden
  22001. CheckDeclarationAfterStatement
  22002. CheckDummyVideo
  22003. CheckDiskAudio
  22004. CheckDummyAudio
  22005. CheckPTHREAD
  22006. CheckDLOPEN
  22007. CheckClockGettime
  22008. CheckEmscriptenGLES
  22009. # Set up files for the power library
  22010. if test x$enable_power = xyes; then
  22011. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  22012. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  22013. have_power=yes
  22014. fi
  22015. # Set up files for the power library
  22016. if test x$enable_joystick = xyes; then
  22017. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  22018. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  22019. have_joystick=yes
  22020. fi
  22021. # Set up files for the filesystem library
  22022. if test x$enable_filesystem = xyes; then
  22023. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  22024. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  22025. have_filesystem=yes
  22026. fi
  22027. # Set up files for the timer library
  22028. if test x$enable_timers = xyes; then
  22029. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22030. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22031. have_timers=yes
  22032. fi
  22033. # Set up files for the locale library
  22034. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  22035. have_locale=yes
  22036. ;;
  22037. *-*-riscos*)
  22038. ARCH=riscos
  22039. CheckVisibilityHidden
  22040. CheckDeclarationAfterStatement
  22041. CheckDummyVideo
  22042. CheckDiskAudio
  22043. CheckDummyAudio
  22044. CheckDLOPEN
  22045. CheckOSS
  22046. CheckPTHREAD
  22047. CheckClockGettime
  22048. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  22049. have_misc=yes
  22050. # Set up files for the timer library
  22051. if test x$enable_timers = xyes; then
  22052. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22053. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22054. have_timers=yes
  22055. fi
  22056. ;;
  22057. *)
  22058. as_fn_error $? "
  22059. *** Unsupported host: Please add to configure.ac
  22060. " "$LINENO" 5
  22061. ;;
  22062. esac
  22063. CheckVirtualJoystick
  22064. # Check whether to install sdl2-config
  22065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  22066. $as_echo_n "checking whether to install sdl2-config... " >&6; }
  22067. # Check whether --enable-sdl2-config was given.
  22068. if test "${enable_sdl2_config+set}" = set; then :
  22069. enableval=$enable_sdl2_config; case "${enableval}" in
  22070. yes) enable_sdl2_config="TRUE" ;;
  22071. no) enable_sdl2_config="FALSE" ;;
  22072. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  22073. esac
  22074. else
  22075. enable_sdl2_config="TRUE"
  22076. fi
  22077. if test "$enable_sdl2_config" = "TRUE"; then
  22078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22079. $as_echo "yes" >&6; }
  22080. else
  22081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22082. $as_echo "no" >&6; }
  22083. fi
  22084. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  22085. # Verify that we have all the platform specific files we need
  22086. if test x$have_misc != xyes; then
  22087. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  22088. fi
  22089. if test x$have_locale != xyes; then
  22090. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  22091. fi
  22092. if test x$have_joystick != xyes; then
  22093. if test x$enable_joystick = xyes; then
  22094. $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  22095. fi
  22096. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  22097. fi
  22098. if test x$have_haptic != xyes; then
  22099. if test x$enable_haptic = xyes; then
  22100. $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  22101. fi
  22102. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  22103. fi
  22104. if test x$have_sensor != xyes; then
  22105. if test x$enable_sensor = xyes; then
  22106. $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  22107. fi
  22108. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  22109. fi
  22110. if test x$have_threads != xyes; then
  22111. if test x$enable_threads = xyes; then
  22112. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  22113. fi
  22114. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  22115. fi
  22116. if test x$have_timers != xyes; then
  22117. if test x$enable_timers = xyes; then
  22118. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  22119. fi
  22120. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  22121. fi
  22122. if test x$have_filesystem != xyes; then
  22123. if test x$enable_filesystem = xyes; then
  22124. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  22125. fi
  22126. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  22127. fi
  22128. if test x$have_loadso != xyes; then
  22129. if test x$enable_loadso = xyes; then
  22130. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  22131. fi
  22132. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  22133. fi
  22134. if test x$SDLMAIN_SOURCES = x; then
  22135. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  22136. fi
  22137. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  22138. if test x$video_wayland = xyes; then
  22139. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  22140. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  22141. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  22142. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  22143. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  22144. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  22145. echo ;\
  22146. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  22147. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  22148. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  22149. echo ;\
  22150. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  22151. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  22152. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  22153. echo ;\
  22154. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  22155. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  22156. done ;\
  22157. echo ;\
  22158. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  22159. fi
  22160. OBJECTS=`echo $SOURCES`
  22161. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  22162. for EXT in asm cc m c S; do
  22163. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  22164. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  22165. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  22166. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  22167. done
  22168. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  22169. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  22170. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  22171. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  22172. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  22173. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  22174. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  22175. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  22176. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  22177. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  22178. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  22179. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  22180. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  22181. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  22182. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  22183. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  22184. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  22185. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  22186. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  22187. # Set runtime shared library paths as needed
  22188. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  22189. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  22190. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  22191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  22192. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  22193. have_enable_new_dtags=no
  22194. save_LDFLAGS="$LDFLAGS"
  22195. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  22196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22197. /* end confdefs.h. */
  22198. int
  22199. main ()
  22200. {
  22201. ;
  22202. return 0;
  22203. }
  22204. _ACEOF
  22205. if ac_fn_c_try_link "$LINENO"; then :
  22206. have_enable_new_dtags=yes
  22207. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  22208. fi
  22209. rm -f core conftest.err conftest.$ac_objext \
  22210. conftest$ac_exeext conftest.$ac_ext
  22211. LDFLAGS="$save_LDFLAGS"
  22212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  22213. $as_echo "$have_enable_new_dtags" >&6; }
  22214. fi
  22215. if test $ARCH = solaris; then
  22216. SDL_RLD_FLAGS="-R\${libdir}"
  22217. fi
  22218. else
  22219. SDL_RLD_FLAGS=""
  22220. fi
  22221. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  22222. if test x$enable_shared = xyes; then
  22223. PKG_CONFIG_LIBS_PRIV="
  22224. Libs.private:"
  22225. ENABLE_SHARED_TRUE=
  22226. ENABLE_SHARED_FALSE="#"
  22227. else
  22228. PKG_CONFIG_LIBS_PRIV=
  22229. ENABLE_SHARED_TRUE="#"
  22230. ENABLE_SHARED_FALSE=
  22231. fi
  22232. if test x$enable_static = xyes; then
  22233. ENABLE_STATIC_TRUE=
  22234. ENABLE_STATIC_FALSE="#"
  22235. else
  22236. ENABLE_STATIC_TRUE="#"
  22237. ENABLE_STATIC_FALSE=
  22238. fi
  22239. cat >Makefile.rules <<__EOF__
  22240. # Build rules for objects
  22241. -include \$(OBJECTS:.lo=.d)
  22242. # Special dependency for SDL.c, since it depends on SDL_revision.h
  22243. $srcdir/src/SDL.c: update-revision
  22244. $DEPENDS
  22245. $VERSION_DEPENDS
  22246. $SDLMAIN_DEPENDS
  22247. $SDLTEST_DEPENDS
  22248. $WAYLAND_PROTOCOLS_DEPENDS
  22249. __EOF__
  22250. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  22251. ac_config_commands="$ac_config_commands sdl2_config"
  22252. SUMMARY="SDL2 Configure Summary:\n"
  22253. if test x$enable_shared = xyes; then
  22254. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  22255. fi
  22256. if test x$enable_static = xyes; then
  22257. SUMMARY="${SUMMARY}Building Static Libraries\n"
  22258. fi
  22259. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  22260. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  22261. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  22262. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  22263. if test x$have_x = xyes; then
  22264. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  22265. fi
  22266. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  22267. if test x$have_joystick_virtual = xyes; then
  22268. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  22269. else
  22270. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  22271. fi
  22272. if test x$have_samplerate_h_hdr = xyes; then
  22273. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  22274. else
  22275. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  22276. fi
  22277. if test x$have_libudev_h_hdr = xyes; then
  22278. SUMMARY="${SUMMARY}Using libudev : YES\n"
  22279. else
  22280. SUMMARY="${SUMMARY}Using libudev : NO\n"
  22281. fi
  22282. if test x$have_dbus_dbus_h_hdr = xyes; then
  22283. SUMMARY="${SUMMARY}Using dbus : YES\n"
  22284. else
  22285. SUMMARY="${SUMMARY}Using dbus : NO\n"
  22286. fi
  22287. if test x$enable_ime = xyes; then
  22288. SUMMARY="${SUMMARY}Using ime : YES\n"
  22289. else
  22290. SUMMARY="${SUMMARY}Using ime : NO\n"
  22291. fi
  22292. if test x$have_ibus_ibus_h_hdr = xyes; then
  22293. SUMMARY="${SUMMARY}Using ibus : YES\n"
  22294. else
  22295. SUMMARY="${SUMMARY}Using ibus : NO\n"
  22296. fi
  22297. if test x$have_fcitx = xyes; then
  22298. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  22299. else
  22300. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  22301. fi
  22302. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  22303. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  22304. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  22305. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  22306. SUMMARY="${SUMMARY}configure script with:\n"
  22307. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  22308. fi
  22309. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  22310. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  22311. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  22312. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  22313. SUMMARY="${SUMMARY}configure script with:\n"
  22314. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  22315. fi
  22316. ac_config_commands="$ac_config_commands summary"
  22317. cat >confcache <<\_ACEOF
  22318. # This file is a shell script that caches the results of configure
  22319. # tests run on this system so they can be shared between configure
  22320. # scripts and configure runs, see configure's option --config-cache.
  22321. # It is not useful on other systems. If it contains results you don't
  22322. # want to keep, you may remove or edit it.
  22323. #
  22324. # config.status only pays attention to the cache file if you give it
  22325. # the --recheck option to rerun configure.
  22326. #
  22327. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  22328. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  22329. # following values.
  22330. _ACEOF
  22331. # The following way of writing the cache mishandles newlines in values,
  22332. # but we know of no workaround that is simple, portable, and efficient.
  22333. # So, we kill variables containing newlines.
  22334. # Ultrix sh set writes to stderr and can't be redirected directly,
  22335. # and sets the high bit in the cache file unless we assign to the vars.
  22336. (
  22337. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  22338. eval ac_val=\$$ac_var
  22339. case $ac_val in #(
  22340. *${as_nl}*)
  22341. case $ac_var in #(
  22342. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  22343. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  22344. esac
  22345. case $ac_var in #(
  22346. _ | IFS | as_nl) ;; #(
  22347. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  22348. *) { eval $ac_var=; unset $ac_var;} ;;
  22349. esac ;;
  22350. esac
  22351. done
  22352. (set) 2>&1 |
  22353. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  22354. *${as_nl}ac_space=\ *)
  22355. # `set' does not quote correctly, so add quotes: double-quote
  22356. # substitution turns \\\\ into \\, and sed turns \\ into \.
  22357. sed -n \
  22358. "s/'/'\\\\''/g;
  22359. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  22360. ;; #(
  22361. *)
  22362. # `set' quotes correctly as required by POSIX, so do not add quotes.
  22363. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  22364. ;;
  22365. esac |
  22366. sort
  22367. ) |
  22368. sed '
  22369. /^ac_cv_env_/b end
  22370. t clear
  22371. :clear
  22372. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  22373. t end
  22374. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  22375. :end' >>confcache
  22376. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  22377. if test -w "$cache_file"; then
  22378. if test "x$cache_file" != "x/dev/null"; then
  22379. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  22380. $as_echo "$as_me: updating cache $cache_file" >&6;}
  22381. if test ! -f "$cache_file" || test -h "$cache_file"; then
  22382. cat confcache >"$cache_file"
  22383. else
  22384. case $cache_file in #(
  22385. */* | ?:*)
  22386. mv -f confcache "$cache_file"$$ &&
  22387. mv -f "$cache_file"$$ "$cache_file" ;; #(
  22388. *)
  22389. mv -f confcache "$cache_file" ;;
  22390. esac
  22391. fi
  22392. fi
  22393. else
  22394. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  22395. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  22396. fi
  22397. fi
  22398. rm -f confcache
  22399. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  22400. # Let make expand exec_prefix.
  22401. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  22402. DEFS=-DHAVE_CONFIG_H
  22403. ac_libobjs=
  22404. ac_ltlibobjs=
  22405. U=
  22406. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  22407. # 1. Remove the extension, and $U if already installed.
  22408. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  22409. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  22410. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  22411. # will be set to the directory where LIBOBJS objects are built.
  22412. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  22413. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  22414. done
  22415. LIBOBJS=$ac_libobjs
  22416. LTLIBOBJS=$ac_ltlibobjs
  22417. : "${CONFIG_STATUS=./config.status}"
  22418. ac_write_fail=0
  22419. ac_clean_files_save=$ac_clean_files
  22420. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  22421. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  22422. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  22423. as_write_fail=0
  22424. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  22425. #! $SHELL
  22426. # Generated by $as_me.
  22427. # Run this file to recreate the current configuration.
  22428. # Compiler output produced by configure, useful for debugging
  22429. # configure, is in config.log if it exists.
  22430. debug=false
  22431. ac_cs_recheck=false
  22432. ac_cs_silent=false
  22433. SHELL=\${CONFIG_SHELL-$SHELL}
  22434. export SHELL
  22435. _ASEOF
  22436. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  22437. ## -------------------- ##
  22438. ## M4sh Initialization. ##
  22439. ## -------------------- ##
  22440. # Be more Bourne compatible
  22441. DUALCASE=1; export DUALCASE # for MKS sh
  22442. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  22443. emulate sh
  22444. NULLCMD=:
  22445. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22446. # is contrary to our usage. Disable this feature.
  22447. alias -g '${1+"$@"}'='"$@"'
  22448. setopt NO_GLOB_SUBST
  22449. else
  22450. case `(set -o) 2>/dev/null` in #(
  22451. *posix*) :
  22452. set -o posix ;; #(
  22453. *) :
  22454. ;;
  22455. esac
  22456. fi
  22457. as_nl='
  22458. '
  22459. export as_nl
  22460. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  22461. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  22462. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  22463. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  22464. # Prefer a ksh shell builtin over an external printf program on Solaris,
  22465. # but without wasting forks for bash or zsh.
  22466. if test -z "$BASH_VERSION$ZSH_VERSION" \
  22467. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  22468. as_echo='print -r --'
  22469. as_echo_n='print -rn --'
  22470. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  22471. as_echo='printf %s\n'
  22472. as_echo_n='printf %s'
  22473. else
  22474. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  22475. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  22476. as_echo_n='/usr/ucb/echo -n'
  22477. else
  22478. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  22479. as_echo_n_body='eval
  22480. arg=$1;
  22481. case $arg in #(
  22482. *"$as_nl"*)
  22483. expr "X$arg" : "X\\(.*\\)$as_nl";
  22484. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  22485. esac;
  22486. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  22487. '
  22488. export as_echo_n_body
  22489. as_echo_n='sh -c $as_echo_n_body as_echo'
  22490. fi
  22491. export as_echo_body
  22492. as_echo='sh -c $as_echo_body as_echo'
  22493. fi
  22494. # The user is always right.
  22495. if test "${PATH_SEPARATOR+set}" != set; then
  22496. PATH_SEPARATOR=:
  22497. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  22498. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  22499. PATH_SEPARATOR=';'
  22500. }
  22501. fi
  22502. # IFS
  22503. # We need space, tab and new line, in precisely that order. Quoting is
  22504. # there to prevent editors from complaining about space-tab.
  22505. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  22506. # splitting by setting IFS to empty value.)
  22507. IFS=" "" $as_nl"
  22508. # Find who we are. Look in the path if we contain no directory separator.
  22509. as_myself=
  22510. case $0 in #((
  22511. *[\\/]* ) as_myself=$0 ;;
  22512. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22513. for as_dir in $PATH
  22514. do
  22515. IFS=$as_save_IFS
  22516. test -z "$as_dir" && as_dir=.
  22517. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  22518. done
  22519. IFS=$as_save_IFS
  22520. ;;
  22521. esac
  22522. # We did not find ourselves, most probably we were run as `sh COMMAND'
  22523. # in which case we are not to be found in the path.
  22524. if test "x$as_myself" = x; then
  22525. as_myself=$0
  22526. fi
  22527. if test ! -f "$as_myself"; then
  22528. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  22529. exit 1
  22530. fi
  22531. # Unset variables that we do not need and which cause bugs (e.g. in
  22532. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  22533. # suppresses any "Segmentation fault" message there. '((' could
  22534. # trigger a bug in pdksh 5.2.14.
  22535. for as_var in BASH_ENV ENV MAIL MAILPATH
  22536. do eval test x\${$as_var+set} = xset \
  22537. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  22538. done
  22539. PS1='$ '
  22540. PS2='> '
  22541. PS4='+ '
  22542. # NLS nuisances.
  22543. LC_ALL=C
  22544. export LC_ALL
  22545. LANGUAGE=C
  22546. export LANGUAGE
  22547. # CDPATH.
  22548. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22549. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  22550. # ----------------------------------------
  22551. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  22552. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  22553. # script with STATUS, using 1 if that was 0.
  22554. as_fn_error ()
  22555. {
  22556. as_status=$1; test $as_status -eq 0 && as_status=1
  22557. if test "$4"; then
  22558. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  22559. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  22560. fi
  22561. $as_echo "$as_me: error: $2" >&2
  22562. as_fn_exit $as_status
  22563. } # as_fn_error
  22564. # as_fn_set_status STATUS
  22565. # -----------------------
  22566. # Set $? to STATUS, without forking.
  22567. as_fn_set_status ()
  22568. {
  22569. return $1
  22570. } # as_fn_set_status
  22571. # as_fn_exit STATUS
  22572. # -----------------
  22573. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  22574. as_fn_exit ()
  22575. {
  22576. set +e
  22577. as_fn_set_status $1
  22578. exit $1
  22579. } # as_fn_exit
  22580. # as_fn_unset VAR
  22581. # ---------------
  22582. # Portably unset VAR.
  22583. as_fn_unset ()
  22584. {
  22585. { eval $1=; unset $1;}
  22586. }
  22587. as_unset=as_fn_unset
  22588. # as_fn_append VAR VALUE
  22589. # ----------------------
  22590. # Append the text in VALUE to the end of the definition contained in VAR. Take
  22591. # advantage of any shell optimizations that allow amortized linear growth over
  22592. # repeated appends, instead of the typical quadratic growth present in naive
  22593. # implementations.
  22594. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  22595. eval 'as_fn_append ()
  22596. {
  22597. eval $1+=\$2
  22598. }'
  22599. else
  22600. as_fn_append ()
  22601. {
  22602. eval $1=\$$1\$2
  22603. }
  22604. fi # as_fn_append
  22605. # as_fn_arith ARG...
  22606. # ------------------
  22607. # Perform arithmetic evaluation on the ARGs, and store the result in the
  22608. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  22609. # must be portable across $(()) and expr.
  22610. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  22611. eval 'as_fn_arith ()
  22612. {
  22613. as_val=$(( $* ))
  22614. }'
  22615. else
  22616. as_fn_arith ()
  22617. {
  22618. as_val=`expr "$@" || test $? -eq 1`
  22619. }
  22620. fi # as_fn_arith
  22621. if expr a : '\(a\)' >/dev/null 2>&1 &&
  22622. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  22623. as_expr=expr
  22624. else
  22625. as_expr=false
  22626. fi
  22627. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  22628. as_basename=basename
  22629. else
  22630. as_basename=false
  22631. fi
  22632. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  22633. as_dirname=dirname
  22634. else
  22635. as_dirname=false
  22636. fi
  22637. as_me=`$as_basename -- "$0" ||
  22638. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  22639. X"$0" : 'X\(//\)$' \| \
  22640. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  22641. $as_echo X/"$0" |
  22642. sed '/^.*\/\([^/][^/]*\)\/*$/{
  22643. s//\1/
  22644. q
  22645. }
  22646. /^X\/\(\/\/\)$/{
  22647. s//\1/
  22648. q
  22649. }
  22650. /^X\/\(\/\).*/{
  22651. s//\1/
  22652. q
  22653. }
  22654. s/.*/./; q'`
  22655. # Avoid depending upon Character Ranges.
  22656. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  22657. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  22658. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  22659. as_cr_digits='0123456789'
  22660. as_cr_alnum=$as_cr_Letters$as_cr_digits
  22661. ECHO_C= ECHO_N= ECHO_T=
  22662. case `echo -n x` in #(((((
  22663. -n*)
  22664. case `echo 'xy\c'` in
  22665. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  22666. xy) ECHO_C='\c';;
  22667. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  22668. ECHO_T=' ';;
  22669. esac;;
  22670. *)
  22671. ECHO_N='-n';;
  22672. esac
  22673. rm -f conf$$ conf$$.exe conf$$.file
  22674. if test -d conf$$.dir; then
  22675. rm -f conf$$.dir/conf$$.file
  22676. else
  22677. rm -f conf$$.dir
  22678. mkdir conf$$.dir 2>/dev/null
  22679. fi
  22680. if (echo >conf$$.file) 2>/dev/null; then
  22681. if ln -s conf$$.file conf$$ 2>/dev/null; then
  22682. as_ln_s='ln -s'
  22683. # ... but there are two gotchas:
  22684. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  22685. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  22686. # In both cases, we have to default to `cp -pR'.
  22687. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  22688. as_ln_s='cp -pR'
  22689. elif ln conf$$.file conf$$ 2>/dev/null; then
  22690. as_ln_s=ln
  22691. else
  22692. as_ln_s='cp -pR'
  22693. fi
  22694. else
  22695. as_ln_s='cp -pR'
  22696. fi
  22697. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  22698. rmdir conf$$.dir 2>/dev/null
  22699. # as_fn_mkdir_p
  22700. # -------------
  22701. # Create "$as_dir" as a directory, including parents if necessary.
  22702. as_fn_mkdir_p ()
  22703. {
  22704. case $as_dir in #(
  22705. -*) as_dir=./$as_dir;;
  22706. esac
  22707. test -d "$as_dir" || eval $as_mkdir_p || {
  22708. as_dirs=
  22709. while :; do
  22710. case $as_dir in #(
  22711. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  22712. *) as_qdir=$as_dir;;
  22713. esac
  22714. as_dirs="'$as_qdir' $as_dirs"
  22715. as_dir=`$as_dirname -- "$as_dir" ||
  22716. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22717. X"$as_dir" : 'X\(//\)[^/]' \| \
  22718. X"$as_dir" : 'X\(//\)$' \| \
  22719. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22720. $as_echo X"$as_dir" |
  22721. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22722. s//\1/
  22723. q
  22724. }
  22725. /^X\(\/\/\)[^/].*/{
  22726. s//\1/
  22727. q
  22728. }
  22729. /^X\(\/\/\)$/{
  22730. s//\1/
  22731. q
  22732. }
  22733. /^X\(\/\).*/{
  22734. s//\1/
  22735. q
  22736. }
  22737. s/.*/./; q'`
  22738. test -d "$as_dir" && break
  22739. done
  22740. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22741. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  22742. } # as_fn_mkdir_p
  22743. if mkdir -p . 2>/dev/null; then
  22744. as_mkdir_p='mkdir -p "$as_dir"'
  22745. else
  22746. test -d ./-p && rmdir ./-p
  22747. as_mkdir_p=false
  22748. fi
  22749. # as_fn_executable_p FILE
  22750. # -----------------------
  22751. # Test if FILE is an executable regular file.
  22752. as_fn_executable_p ()
  22753. {
  22754. test -f "$1" && test -x "$1"
  22755. } # as_fn_executable_p
  22756. as_test_x='test -x'
  22757. as_executable_p=as_fn_executable_p
  22758. # Sed expression to map a string onto a valid CPP name.
  22759. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  22760. # Sed expression to map a string onto a valid variable name.
  22761. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  22762. exec 6>&1
  22763. ## ----------------------------------- ##
  22764. ## Main body of $CONFIG_STATUS script. ##
  22765. ## ----------------------------------- ##
  22766. _ASEOF
  22767. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  22768. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22769. # Save the log message, to keep $0 and so on meaningful, and to
  22770. # report actual input values of CONFIG_FILES etc. instead of their
  22771. # values after options handling.
  22772. ac_log="
  22773. This file was extended by $as_me, which was
  22774. generated by GNU Autoconf 2.69. Invocation command line was
  22775. CONFIG_FILES = $CONFIG_FILES
  22776. CONFIG_HEADERS = $CONFIG_HEADERS
  22777. CONFIG_LINKS = $CONFIG_LINKS
  22778. CONFIG_COMMANDS = $CONFIG_COMMANDS
  22779. $ $0 $@
  22780. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  22781. "
  22782. _ACEOF
  22783. case $ac_config_files in *"
  22784. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  22785. esac
  22786. case $ac_config_headers in *"
  22787. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  22788. esac
  22789. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22790. # Files that config.status was made for.
  22791. config_files="$ac_config_files"
  22792. config_headers="$ac_config_headers"
  22793. config_commands="$ac_config_commands"
  22794. _ACEOF
  22795. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22796. ac_cs_usage="\
  22797. \`$as_me' instantiates files and other configuration actions
  22798. from templates according to the current configuration. Unless the files
  22799. and actions are specified as TAGs, all are instantiated by default.
  22800. Usage: $0 [OPTION]... [TAG]...
  22801. -h, --help print this help, then exit
  22802. -V, --version print version number and configuration settings, then exit
  22803. --config print configuration, then exit
  22804. -q, --quiet, --silent
  22805. do not print progress messages
  22806. -d, --debug don't remove temporary files
  22807. --recheck update $as_me by reconfiguring in the same conditions
  22808. --file=FILE[:TEMPLATE]
  22809. instantiate the configuration file FILE
  22810. --header=FILE[:TEMPLATE]
  22811. instantiate the configuration header FILE
  22812. Configuration files:
  22813. $config_files
  22814. Configuration headers:
  22815. $config_headers
  22816. Configuration commands:
  22817. $config_commands
  22818. Report bugs to the package provider."
  22819. _ACEOF
  22820. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22821. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  22822. ac_cs_version="\\
  22823. config.status
  22824. configured by $0, generated by GNU Autoconf 2.69,
  22825. with options \\"\$ac_cs_config\\"
  22826. Copyright (C) 2012 Free Software Foundation, Inc.
  22827. This config.status script is free software; the Free Software Foundation
  22828. gives unlimited permission to copy, distribute and modify it."
  22829. ac_pwd='$ac_pwd'
  22830. srcdir='$srcdir'
  22831. INSTALL='$INSTALL'
  22832. AWK='$AWK'
  22833. test -n "\$AWK" || AWK=awk
  22834. _ACEOF
  22835. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22836. # The default lists apply if the user does not specify any file.
  22837. ac_need_defaults=:
  22838. while test $# != 0
  22839. do
  22840. case $1 in
  22841. --*=?*)
  22842. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22843. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  22844. ac_shift=:
  22845. ;;
  22846. --*=)
  22847. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22848. ac_optarg=
  22849. ac_shift=:
  22850. ;;
  22851. *)
  22852. ac_option=$1
  22853. ac_optarg=$2
  22854. ac_shift=shift
  22855. ;;
  22856. esac
  22857. case $ac_option in
  22858. # Handling of the options.
  22859. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22860. ac_cs_recheck=: ;;
  22861. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  22862. $as_echo "$ac_cs_version"; exit ;;
  22863. --config | --confi | --conf | --con | --co | --c )
  22864. $as_echo "$ac_cs_config"; exit ;;
  22865. --debug | --debu | --deb | --de | --d | -d )
  22866. debug=: ;;
  22867. --file | --fil | --fi | --f )
  22868. $ac_shift
  22869. case $ac_optarg in
  22870. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22871. '') as_fn_error $? "missing file argument" ;;
  22872. esac
  22873. as_fn_append CONFIG_FILES " '$ac_optarg'"
  22874. ac_need_defaults=false;;
  22875. --header | --heade | --head | --hea )
  22876. $ac_shift
  22877. case $ac_optarg in
  22878. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22879. esac
  22880. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  22881. ac_need_defaults=false;;
  22882. --he | --h)
  22883. # Conflict between --help and --header
  22884. as_fn_error $? "ambiguous option: \`$1'
  22885. Try \`$0 --help' for more information.";;
  22886. --help | --hel | -h )
  22887. $as_echo "$ac_cs_usage"; exit ;;
  22888. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  22889. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  22890. ac_cs_silent=: ;;
  22891. # This is an error.
  22892. -*) as_fn_error $? "unrecognized option: \`$1'
  22893. Try \`$0 --help' for more information." ;;
  22894. *) as_fn_append ac_config_targets " $1"
  22895. ac_need_defaults=false ;;
  22896. esac
  22897. shift
  22898. done
  22899. ac_configure_extra_args=
  22900. if $ac_cs_silent; then
  22901. exec 6>/dev/null
  22902. ac_configure_extra_args="$ac_configure_extra_args --silent"
  22903. fi
  22904. _ACEOF
  22905. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22906. if \$ac_cs_recheck; then
  22907. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  22908. shift
  22909. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  22910. CONFIG_SHELL='$SHELL'
  22911. export CONFIG_SHELL
  22912. exec "\$@"
  22913. fi
  22914. _ACEOF
  22915. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22916. exec 5>>config.log
  22917. {
  22918. echo
  22919. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22920. ## Running $as_me. ##
  22921. _ASBOX
  22922. $as_echo "$ac_log"
  22923. } >&5
  22924. _ACEOF
  22925. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22926. #
  22927. # INIT-COMMANDS
  22928. #
  22929. # The HP-UX ksh and POSIX shell print the target directory to stdout
  22930. # if CDPATH is set.
  22931. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22932. sed_quote_subst='$sed_quote_subst'
  22933. double_quote_subst='$double_quote_subst'
  22934. delay_variable_subst='$delay_variable_subst'
  22935. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  22936. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  22937. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  22938. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  22939. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  22940. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  22941. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  22942. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  22943. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  22944. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  22945. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  22946. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  22947. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  22948. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  22949. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  22950. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  22951. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  22952. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  22953. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  22954. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  22955. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  22956. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  22957. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  22958. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  22959. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  22960. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  22961. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  22962. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  22963. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  22964. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  22965. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  22966. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  22967. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  22968. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  22969. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  22970. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  22971. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  22972. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  22973. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  22974. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  22975. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  22976. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  22977. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  22978. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  22979. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  22980. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  22981. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22982. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22983. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  22984. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  22985. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  22986. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  22987. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  22988. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  22989. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  22990. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  22991. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  22992. 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"`'
  22993. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  22994. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  22995. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  22996. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  22997. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  22998. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  22999. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  23000. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  23001. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  23002. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  23003. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  23004. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  23005. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  23006. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  23007. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  23008. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  23009. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  23010. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  23011. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  23012. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  23013. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  23014. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  23015. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  23016. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  23017. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  23018. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  23019. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  23020. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  23021. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  23022. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  23023. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  23024. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  23025. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  23026. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  23027. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  23028. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  23029. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  23030. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  23031. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  23032. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  23033. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  23034. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  23035. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  23036. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  23037. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  23038. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  23039. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  23040. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  23041. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  23042. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  23043. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  23044. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  23045. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  23046. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  23047. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  23048. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  23049. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  23050. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  23051. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  23052. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  23053. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  23054. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  23055. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  23056. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  23057. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  23058. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  23059. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  23060. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  23061. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  23062. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  23063. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  23064. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  23065. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  23066. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  23067. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  23068. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  23069. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  23070. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  23071. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  23072. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  23073. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  23074. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  23075. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23076. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23077. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23078. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23079. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23080. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  23081. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  23082. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  23083. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  23084. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  23085. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23086. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  23087. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  23088. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  23089. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  23090. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  23091. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  23092. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  23093. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  23094. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  23095. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  23096. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  23097. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  23098. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  23099. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23100. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  23101. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23102. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  23103. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  23104. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23105. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23106. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23107. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23108. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23109. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23110. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23111. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23112. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23113. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23114. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23115. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23116. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  23117. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  23118. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  23119. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23120. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  23121. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23122. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  23123. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23124. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  23125. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  23126. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  23127. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  23128. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  23129. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  23130. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  23131. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  23132. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  23133. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  23134. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  23135. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  23136. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  23137. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  23138. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  23139. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  23140. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  23141. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  23142. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23143. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23144. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  23145. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  23146. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  23147. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  23148. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23149. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23150. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23151. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23152. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  23153. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23154. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  23155. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  23156. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  23157. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  23158. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  23159. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  23160. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  23161. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  23162. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  23163. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  23164. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  23165. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  23166. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  23167. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  23168. LTCC='$LTCC'
  23169. LTCFLAGS='$LTCFLAGS'
  23170. compiler='$compiler_DEFAULT'
  23171. # A function that is used when there is no print builtin or printf.
  23172. func_fallback_echo ()
  23173. {
  23174. eval 'cat <<_LTECHO_EOF
  23175. \$1
  23176. _LTECHO_EOF'
  23177. }
  23178. # Quote evaled strings.
  23179. for var in AS \
  23180. DLLTOOL \
  23181. OBJDUMP \
  23182. SHELL \
  23183. ECHO \
  23184. PATH_SEPARATOR \
  23185. SED \
  23186. GREP \
  23187. EGREP \
  23188. FGREP \
  23189. LD \
  23190. NM \
  23191. LN_S \
  23192. lt_SP2NL \
  23193. lt_NL2SP \
  23194. reload_flag \
  23195. deplibs_check_method \
  23196. file_magic_cmd \
  23197. file_magic_glob \
  23198. want_nocaseglob \
  23199. sharedlib_from_linklib_cmd \
  23200. AR \
  23201. AR_FLAGS \
  23202. archiver_list_spec \
  23203. STRIP \
  23204. RANLIB \
  23205. CC \
  23206. CFLAGS \
  23207. compiler \
  23208. lt_cv_sys_global_symbol_pipe \
  23209. lt_cv_sys_global_symbol_to_cdecl \
  23210. lt_cv_sys_global_symbol_to_c_name_address \
  23211. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  23212. nm_file_list_spec \
  23213. lt_prog_compiler_no_builtin_flag \
  23214. lt_prog_compiler_pic \
  23215. lt_prog_compiler_wl \
  23216. lt_prog_compiler_static \
  23217. lt_cv_prog_compiler_c_o \
  23218. need_locks \
  23219. MANIFEST_TOOL \
  23220. DSYMUTIL \
  23221. NMEDIT \
  23222. LIPO \
  23223. OTOOL \
  23224. OTOOL64 \
  23225. shrext_cmds \
  23226. export_dynamic_flag_spec \
  23227. whole_archive_flag_spec \
  23228. compiler_needs_object \
  23229. with_gnu_ld \
  23230. allow_undefined_flag \
  23231. no_undefined_flag \
  23232. hardcode_libdir_flag_spec \
  23233. hardcode_libdir_separator \
  23234. exclude_expsyms \
  23235. include_expsyms \
  23236. file_list_spec \
  23237. variables_saved_for_relink \
  23238. libname_spec \
  23239. library_names_spec \
  23240. soname_spec \
  23241. install_override_mode \
  23242. finish_eval \
  23243. old_striplib \
  23244. striplib \
  23245. compiler_lib_search_dirs \
  23246. predep_objects \
  23247. postdep_objects \
  23248. predeps \
  23249. postdeps \
  23250. compiler_lib_search_path \
  23251. LD_RC \
  23252. LD_CXX \
  23253. reload_flag_RC \
  23254. reload_flag_CXX \
  23255. compiler_RC \
  23256. compiler_CXX \
  23257. lt_prog_compiler_no_builtin_flag_RC \
  23258. lt_prog_compiler_no_builtin_flag_CXX \
  23259. lt_prog_compiler_pic_RC \
  23260. lt_prog_compiler_pic_CXX \
  23261. lt_prog_compiler_wl_RC \
  23262. lt_prog_compiler_wl_CXX \
  23263. lt_prog_compiler_static_RC \
  23264. lt_prog_compiler_static_CXX \
  23265. lt_cv_prog_compiler_c_o_RC \
  23266. lt_cv_prog_compiler_c_o_CXX \
  23267. export_dynamic_flag_spec_RC \
  23268. export_dynamic_flag_spec_CXX \
  23269. whole_archive_flag_spec_RC \
  23270. whole_archive_flag_spec_CXX \
  23271. compiler_needs_object_RC \
  23272. compiler_needs_object_CXX \
  23273. with_gnu_ld_RC \
  23274. with_gnu_ld_CXX \
  23275. allow_undefined_flag_RC \
  23276. allow_undefined_flag_CXX \
  23277. no_undefined_flag_RC \
  23278. no_undefined_flag_CXX \
  23279. hardcode_libdir_flag_spec_RC \
  23280. hardcode_libdir_flag_spec_CXX \
  23281. hardcode_libdir_separator_RC \
  23282. hardcode_libdir_separator_CXX \
  23283. exclude_expsyms_RC \
  23284. exclude_expsyms_CXX \
  23285. include_expsyms_RC \
  23286. include_expsyms_CXX \
  23287. file_list_spec_RC \
  23288. file_list_spec_CXX \
  23289. compiler_lib_search_dirs_RC \
  23290. compiler_lib_search_dirs_CXX \
  23291. predep_objects_RC \
  23292. predep_objects_CXX \
  23293. postdep_objects_RC \
  23294. postdep_objects_CXX \
  23295. predeps_RC \
  23296. predeps_CXX \
  23297. postdeps_RC \
  23298. postdeps_CXX \
  23299. compiler_lib_search_path_RC \
  23300. compiler_lib_search_path_CXX; do
  23301. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  23302. *[\\\\\\\`\\"\\\$]*)
  23303. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  23304. ;;
  23305. *)
  23306. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  23307. ;;
  23308. esac
  23309. done
  23310. # Double-quote double-evaled strings.
  23311. for var in reload_cmds \
  23312. old_postinstall_cmds \
  23313. old_postuninstall_cmds \
  23314. old_archive_cmds \
  23315. extract_expsyms_cmds \
  23316. old_archive_from_new_cmds \
  23317. old_archive_from_expsyms_cmds \
  23318. archive_cmds \
  23319. archive_expsym_cmds \
  23320. module_cmds \
  23321. module_expsym_cmds \
  23322. export_symbols_cmds \
  23323. prelink_cmds \
  23324. postlink_cmds \
  23325. postinstall_cmds \
  23326. postuninstall_cmds \
  23327. finish_cmds \
  23328. sys_lib_search_path_spec \
  23329. sys_lib_dlsearch_path_spec \
  23330. reload_cmds_RC \
  23331. reload_cmds_CXX \
  23332. old_archive_cmds_RC \
  23333. old_archive_cmds_CXX \
  23334. old_archive_from_new_cmds_RC \
  23335. old_archive_from_new_cmds_CXX \
  23336. old_archive_from_expsyms_cmds_RC \
  23337. old_archive_from_expsyms_cmds_CXX \
  23338. archive_cmds_RC \
  23339. archive_cmds_CXX \
  23340. archive_expsym_cmds_RC \
  23341. archive_expsym_cmds_CXX \
  23342. module_cmds_RC \
  23343. module_cmds_CXX \
  23344. module_expsym_cmds_RC \
  23345. module_expsym_cmds_CXX \
  23346. export_symbols_cmds_RC \
  23347. export_symbols_cmds_CXX \
  23348. prelink_cmds_RC \
  23349. prelink_cmds_CXX \
  23350. postlink_cmds_RC \
  23351. postlink_cmds_CXX; do
  23352. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  23353. *[\\\\\\\`\\"\\\$]*)
  23354. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  23355. ;;
  23356. *)
  23357. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  23358. ;;
  23359. esac
  23360. done
  23361. ac_aux_dir='$ac_aux_dir'
  23362. xsi_shell='$xsi_shell'
  23363. lt_shell_append='$lt_shell_append'
  23364. # See if we are running on zsh, and set the options which allow our
  23365. # commands through without removal of \ escapes INIT.
  23366. if test -n "\${ZSH_VERSION+set}" ; then
  23367. setopt NO_GLOB_SUBST
  23368. fi
  23369. PACKAGE='$PACKAGE'
  23370. VERSION='$VERSION'
  23371. TIMESTAMP='$TIMESTAMP'
  23372. RM='$RM'
  23373. ofile='$ofile'
  23374. SUMMARY="$SUMMARY"
  23375. _ACEOF
  23376. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23377. # Handling of arguments.
  23378. for ac_config_target in $ac_config_targets
  23379. do
  23380. case $ac_config_target in
  23381. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  23382. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  23383. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  23384. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  23385. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  23386. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  23387. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  23388. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  23389. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  23390. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  23391. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  23392. esac
  23393. done
  23394. # If the user did not use the arguments to specify the items to instantiate,
  23395. # then the envvar interface is used. Set only those that are not.
  23396. # We use the long form for the default assignment because of an extremely
  23397. # bizarre bug on SunOS 4.1.3.
  23398. if $ac_need_defaults; then
  23399. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  23400. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  23401. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  23402. fi
  23403. # Have a temporary directory for convenience. Make it in the build tree
  23404. # simply because there is no reason against having it here, and in addition,
  23405. # creating and moving files from /tmp can sometimes cause problems.
  23406. # Hook for its removal unless debugging.
  23407. # Note that there is a small window in which the directory will not be cleaned:
  23408. # after its creation but before its name has been assigned to `$tmp'.
  23409. $debug ||
  23410. {
  23411. tmp= ac_tmp=
  23412. trap 'exit_status=$?
  23413. : "${ac_tmp:=$tmp}"
  23414. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  23415. ' 0
  23416. trap 'as_fn_exit 1' 1 2 13 15
  23417. }
  23418. # Create a (secure) tmp directory for tmp files.
  23419. {
  23420. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  23421. test -d "$tmp"
  23422. } ||
  23423. {
  23424. tmp=./conf$$-$RANDOM
  23425. (umask 077 && mkdir "$tmp")
  23426. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  23427. ac_tmp=$tmp
  23428. # Set up the scripts for CONFIG_FILES section.
  23429. # No need to generate them if there are no CONFIG_FILES.
  23430. # This happens for instance with `./config.status config.h'.
  23431. if test -n "$CONFIG_FILES"; then
  23432. ac_cr=`echo X | tr X '\015'`
  23433. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  23434. # But we know of no other shell where ac_cr would be empty at this
  23435. # point, so we can use a bashism as a fallback.
  23436. if test "x$ac_cr" = x; then
  23437. eval ac_cr=\$\'\\r\'
  23438. fi
  23439. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  23440. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  23441. ac_cs_awk_cr='\\r'
  23442. else
  23443. ac_cs_awk_cr=$ac_cr
  23444. fi
  23445. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  23446. _ACEOF
  23447. {
  23448. echo "cat >conf$$subs.awk <<_ACEOF" &&
  23449. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  23450. echo "_ACEOF"
  23451. } >conf$$subs.sh ||
  23452. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23453. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  23454. ac_delim='%!_!# '
  23455. for ac_last_try in false false false false false :; do
  23456. . ./conf$$subs.sh ||
  23457. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23458. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  23459. if test $ac_delim_n = $ac_delim_num; then
  23460. break
  23461. elif $ac_last_try; then
  23462. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23463. else
  23464. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23465. fi
  23466. done
  23467. rm -f conf$$subs.sh
  23468. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23469. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  23470. _ACEOF
  23471. sed -n '
  23472. h
  23473. s/^/S["/; s/!.*/"]=/
  23474. p
  23475. g
  23476. s/^[^!]*!//
  23477. :repl
  23478. t repl
  23479. s/'"$ac_delim"'$//
  23480. t delim
  23481. :nl
  23482. h
  23483. s/\(.\{148\}\)..*/\1/
  23484. t more1
  23485. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  23486. p
  23487. n
  23488. b repl
  23489. :more1
  23490. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23491. p
  23492. g
  23493. s/.\{148\}//
  23494. t nl
  23495. :delim
  23496. h
  23497. s/\(.\{148\}\)..*/\1/
  23498. t more2
  23499. s/["\\]/\\&/g; s/^/"/; s/$/"/
  23500. p
  23501. b
  23502. :more2
  23503. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23504. p
  23505. g
  23506. s/.\{148\}//
  23507. t delim
  23508. ' <conf$$subs.awk | sed '
  23509. /^[^""]/{
  23510. N
  23511. s/\n//
  23512. }
  23513. ' >>$CONFIG_STATUS || ac_write_fail=1
  23514. rm -f conf$$subs.awk
  23515. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23516. _ACAWK
  23517. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  23518. for (key in S) S_is_set[key] = 1
  23519. FS = ""
  23520. }
  23521. {
  23522. line = $ 0
  23523. nfields = split(line, field, "@")
  23524. substed = 0
  23525. len = length(field[1])
  23526. for (i = 2; i < nfields; i++) {
  23527. key = field[i]
  23528. keylen = length(key)
  23529. if (S_is_set[key]) {
  23530. value = S[key]
  23531. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  23532. len += length(value) + length(field[++i])
  23533. substed = 1
  23534. } else
  23535. len += 1 + keylen
  23536. }
  23537. print line
  23538. }
  23539. _ACAWK
  23540. _ACEOF
  23541. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23542. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  23543. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  23544. else
  23545. cat
  23546. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  23547. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  23548. _ACEOF
  23549. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  23550. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  23551. # trailing colons and then remove the whole line if VPATH becomes empty
  23552. # (actually we leave an empty line to preserve line numbers).
  23553. if test "x$srcdir" = x.; then
  23554. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  23555. h
  23556. s///
  23557. s/^/:/
  23558. s/[ ]*$/:/
  23559. s/:\$(srcdir):/:/g
  23560. s/:\${srcdir}:/:/g
  23561. s/:@srcdir@:/:/g
  23562. s/^:*//
  23563. s/:*$//
  23564. x
  23565. s/\(=[ ]*\).*/\1/
  23566. G
  23567. s/\n//
  23568. s/^[^=]*=[ ]*$//
  23569. }'
  23570. fi
  23571. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23572. fi # test -n "$CONFIG_FILES"
  23573. # Set up the scripts for CONFIG_HEADERS section.
  23574. # No need to generate them if there are no CONFIG_HEADERS.
  23575. # This happens for instance with `./config.status Makefile'.
  23576. if test -n "$CONFIG_HEADERS"; then
  23577. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  23578. BEGIN {
  23579. _ACEOF
  23580. # Transform confdefs.h into an awk script `defines.awk', embedded as
  23581. # here-document in config.status, that substitutes the proper values into
  23582. # config.h.in to produce config.h.
  23583. # Create a delimiter string that does not exist in confdefs.h, to ease
  23584. # handling of long lines.
  23585. ac_delim='%!_!# '
  23586. for ac_last_try in false false :; do
  23587. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  23588. if test -z "$ac_tt"; then
  23589. break
  23590. elif $ac_last_try; then
  23591. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  23592. else
  23593. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23594. fi
  23595. done
  23596. # For the awk script, D is an array of macro values keyed by name,
  23597. # likewise P contains macro parameters if any. Preserve backslash
  23598. # newline sequences.
  23599. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  23600. sed -n '
  23601. s/.\{148\}/&'"$ac_delim"'/g
  23602. t rset
  23603. :rset
  23604. s/^[ ]*#[ ]*define[ ][ ]*/ /
  23605. t def
  23606. d
  23607. :def
  23608. s/\\$//
  23609. t bsnl
  23610. s/["\\]/\\&/g
  23611. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23612. D["\1"]=" \3"/p
  23613. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  23614. d
  23615. :bsnl
  23616. s/["\\]/\\&/g
  23617. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23618. D["\1"]=" \3\\\\\\n"\\/p
  23619. t cont
  23620. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  23621. t cont
  23622. d
  23623. :cont
  23624. n
  23625. s/.\{148\}/&'"$ac_delim"'/g
  23626. t clear
  23627. :clear
  23628. s/\\$//
  23629. t bsnlc
  23630. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  23631. d
  23632. :bsnlc
  23633. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  23634. b cont
  23635. ' <confdefs.h | sed '
  23636. s/'"$ac_delim"'/"\\\
  23637. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  23638. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23639. for (key in D) D_is_set[key] = 1
  23640. FS = ""
  23641. }
  23642. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  23643. line = \$ 0
  23644. split(line, arg, " ")
  23645. if (arg[1] == "#") {
  23646. defundef = arg[2]
  23647. mac1 = arg[3]
  23648. } else {
  23649. defundef = substr(arg[1], 2)
  23650. mac1 = arg[2]
  23651. }
  23652. split(mac1, mac2, "(") #)
  23653. macro = mac2[1]
  23654. prefix = substr(line, 1, index(line, defundef) - 1)
  23655. if (D_is_set[macro]) {
  23656. # Preserve the white space surrounding the "#".
  23657. print prefix "define", macro P[macro] D[macro]
  23658. next
  23659. } else {
  23660. # Replace #undef with comments. This is necessary, for example,
  23661. # in the case of _POSIX_SOURCE, which is predefined and required
  23662. # on some systems where configure will not decide to define it.
  23663. if (defundef == "undef") {
  23664. print "/*", prefix defundef, macro, "*/"
  23665. next
  23666. }
  23667. }
  23668. }
  23669. { print }
  23670. _ACAWK
  23671. _ACEOF
  23672. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23673. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  23674. fi # test -n "$CONFIG_HEADERS"
  23675. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  23676. shift
  23677. for ac_tag
  23678. do
  23679. case $ac_tag in
  23680. :[FHLC]) ac_mode=$ac_tag; continue;;
  23681. esac
  23682. case $ac_mode$ac_tag in
  23683. :[FHL]*:*);;
  23684. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  23685. :[FH]-) ac_tag=-:-;;
  23686. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  23687. esac
  23688. ac_save_IFS=$IFS
  23689. IFS=:
  23690. set x $ac_tag
  23691. IFS=$ac_save_IFS
  23692. shift
  23693. ac_file=$1
  23694. shift
  23695. case $ac_mode in
  23696. :L) ac_source=$1;;
  23697. :[FH])
  23698. ac_file_inputs=
  23699. for ac_f
  23700. do
  23701. case $ac_f in
  23702. -) ac_f="$ac_tmp/stdin";;
  23703. *) # Look for the file first in the build tree, then in the source tree
  23704. # (if the path is not absolute). The absolute path cannot be DOS-style,
  23705. # because $ac_f cannot contain `:'.
  23706. test -f "$ac_f" ||
  23707. case $ac_f in
  23708. [\\/$]*) false;;
  23709. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  23710. esac ||
  23711. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  23712. esac
  23713. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  23714. as_fn_append ac_file_inputs " '$ac_f'"
  23715. done
  23716. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23717. # use $as_me), people would be surprised to read:
  23718. # /* config.h. Generated by config.status. */
  23719. configure_input='Generated from '`
  23720. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  23721. `' by configure.'
  23722. if test x"$ac_file" != x-; then
  23723. configure_input="$ac_file. $configure_input"
  23724. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  23725. $as_echo "$as_me: creating $ac_file" >&6;}
  23726. fi
  23727. # Neutralize special characters interpreted by sed in replacement strings.
  23728. case $configure_input in #(
  23729. *\&* | *\|* | *\\* )
  23730. ac_sed_conf_input=`$as_echo "$configure_input" |
  23731. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  23732. *) ac_sed_conf_input=$configure_input;;
  23733. esac
  23734. case $ac_tag in
  23735. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  23736. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  23737. esac
  23738. ;;
  23739. esac
  23740. ac_dir=`$as_dirname -- "$ac_file" ||
  23741. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23742. X"$ac_file" : 'X\(//\)[^/]' \| \
  23743. X"$ac_file" : 'X\(//\)$' \| \
  23744. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  23745. $as_echo X"$ac_file" |
  23746. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23747. s//\1/
  23748. q
  23749. }
  23750. /^X\(\/\/\)[^/].*/{
  23751. s//\1/
  23752. q
  23753. }
  23754. /^X\(\/\/\)$/{
  23755. s//\1/
  23756. q
  23757. }
  23758. /^X\(\/\).*/{
  23759. s//\1/
  23760. q
  23761. }
  23762. s/.*/./; q'`
  23763. as_dir="$ac_dir"; as_fn_mkdir_p
  23764. ac_builddir=.
  23765. case "$ac_dir" in
  23766. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23767. *)
  23768. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  23769. # A ".." for each directory in $ac_dir_suffix.
  23770. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  23771. case $ac_top_builddir_sub in
  23772. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23773. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  23774. esac ;;
  23775. esac
  23776. ac_abs_top_builddir=$ac_pwd
  23777. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  23778. # for backward compatibility:
  23779. ac_top_builddir=$ac_top_build_prefix
  23780. case $srcdir in
  23781. .) # We are building in place.
  23782. ac_srcdir=.
  23783. ac_top_srcdir=$ac_top_builddir_sub
  23784. ac_abs_top_srcdir=$ac_pwd ;;
  23785. [\\/]* | ?:[\\/]* ) # Absolute name.
  23786. ac_srcdir=$srcdir$ac_dir_suffix;
  23787. ac_top_srcdir=$srcdir
  23788. ac_abs_top_srcdir=$srcdir ;;
  23789. *) # Relative name.
  23790. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  23791. ac_top_srcdir=$ac_top_build_prefix$srcdir
  23792. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  23793. esac
  23794. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  23795. case $ac_mode in
  23796. :F)
  23797. #
  23798. # CONFIG_FILE
  23799. #
  23800. case $INSTALL in
  23801. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  23802. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  23803. esac
  23804. _ACEOF
  23805. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23806. # If the template does not know about datarootdir, expand it.
  23807. # FIXME: This hack should be removed a few years after 2.60.
  23808. ac_datarootdir_hack=; ac_datarootdir_seen=
  23809. ac_sed_dataroot='
  23810. /datarootdir/ {
  23811. p
  23812. q
  23813. }
  23814. /@datadir@/p
  23815. /@docdir@/p
  23816. /@infodir@/p
  23817. /@localedir@/p
  23818. /@mandir@/p'
  23819. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  23820. *datarootdir*) ac_datarootdir_seen=yes;;
  23821. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  23822. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  23823. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  23824. _ACEOF
  23825. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23826. ac_datarootdir_hack='
  23827. s&@datadir@&$datadir&g
  23828. s&@docdir@&$docdir&g
  23829. s&@infodir@&$infodir&g
  23830. s&@localedir@&$localedir&g
  23831. s&@mandir@&$mandir&g
  23832. s&\\\${datarootdir}&$datarootdir&g' ;;
  23833. esac
  23834. _ACEOF
  23835. # Neutralize VPATH when `$srcdir' = `.'.
  23836. # Shell code in configure.ac might set extrasub.
  23837. # FIXME: do we really want to maintain this feature?
  23838. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23839. ac_sed_extra="$ac_vpsub
  23840. $extrasub
  23841. _ACEOF
  23842. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23843. :t
  23844. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  23845. s|@configure_input@|$ac_sed_conf_input|;t t
  23846. s&@top_builddir@&$ac_top_builddir_sub&;t t
  23847. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  23848. s&@srcdir@&$ac_srcdir&;t t
  23849. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  23850. s&@top_srcdir@&$ac_top_srcdir&;t t
  23851. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  23852. s&@builddir@&$ac_builddir&;t t
  23853. s&@abs_builddir@&$ac_abs_builddir&;t t
  23854. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  23855. s&@INSTALL@&$ac_INSTALL&;t t
  23856. $ac_datarootdir_hack
  23857. "
  23858. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  23859. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23860. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  23861. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  23862. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  23863. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  23864. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23865. which seems to be undefined. Please make sure it is defined" >&5
  23866. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23867. which seems to be undefined. Please make sure it is defined" >&2;}
  23868. rm -f "$ac_tmp/stdin"
  23869. case $ac_file in
  23870. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  23871. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  23872. esac \
  23873. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23874. ;;
  23875. :H)
  23876. #
  23877. # CONFIG_HEADER
  23878. #
  23879. if test x"$ac_file" != x-; then
  23880. {
  23881. $as_echo "/* $configure_input */" \
  23882. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  23883. } >"$ac_tmp/config.h" \
  23884. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23885. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  23886. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  23887. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  23888. else
  23889. rm -f "$ac_file"
  23890. mv "$ac_tmp/config.h" "$ac_file" \
  23891. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23892. fi
  23893. else
  23894. $as_echo "/* $configure_input */" \
  23895. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  23896. || as_fn_error $? "could not create -" "$LINENO" 5
  23897. fi
  23898. ;;
  23899. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  23900. $as_echo "$as_me: executing $ac_file commands" >&6;}
  23901. ;;
  23902. esac
  23903. case $ac_file$ac_mode in
  23904. "libtool":C)
  23905. # See if we are running on zsh, and set the options which allow our
  23906. # commands through without removal of \ escapes.
  23907. if test -n "${ZSH_VERSION+set}" ; then
  23908. setopt NO_GLOB_SUBST
  23909. fi
  23910. cfgfile="${ofile}T"
  23911. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  23912. $RM "$cfgfile"
  23913. cat <<_LT_EOF >> "$cfgfile"
  23914. #! $SHELL
  23915. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  23916. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  23917. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  23918. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  23919. #
  23920. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  23921. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  23922. # Foundation, Inc.
  23923. # Written by Gordon Matzigkeit, 1996
  23924. #
  23925. # This file is part of GNU Libtool.
  23926. #
  23927. # GNU Libtool is free software; you can redistribute it and/or
  23928. # modify it under the terms of the GNU General Public License as
  23929. # published by the Free Software Foundation; either version 2 of
  23930. # the License, or (at your option) any later version.
  23931. #
  23932. # As a special exception to the GNU General Public License,
  23933. # if you distribute this file as part of a program or library that
  23934. # is built using GNU Libtool, you may include this file under the
  23935. # same distribution terms that you use for the rest of that program.
  23936. #
  23937. # GNU Libtool is distributed in the hope that it will be useful,
  23938. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23939. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23940. # GNU General Public License for more details.
  23941. #
  23942. # You should have received a copy of the GNU General Public License
  23943. # along with GNU Libtool; see the file COPYING. If not, a copy
  23944. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  23945. # obtained by writing to the Free Software Foundation, Inc.,
  23946. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23947. # The names of the tagged configurations supported by this script.
  23948. available_tags="RC CXX "
  23949. # ### BEGIN LIBTOOL CONFIG
  23950. # Which release of libtool.m4 was used?
  23951. macro_version=$macro_version
  23952. macro_revision=$macro_revision
  23953. # Assembler program.
  23954. AS=$lt_AS
  23955. # DLL creation program.
  23956. DLLTOOL=$lt_DLLTOOL
  23957. # Object dumper program.
  23958. OBJDUMP=$lt_OBJDUMP
  23959. # Whether or not to build shared libraries.
  23960. build_libtool_libs=$enable_shared
  23961. # Whether or not to build static libraries.
  23962. build_old_libs=$enable_static
  23963. # What type of objects to build.
  23964. pic_mode=$pic_mode
  23965. # Whether or not to optimize for fast installation.
  23966. fast_install=$enable_fast_install
  23967. # Shell to use when invoking shell scripts.
  23968. SHELL=$lt_SHELL
  23969. # An echo program that protects backslashes.
  23970. ECHO=$lt_ECHO
  23971. # The PATH separator for the build system.
  23972. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  23973. # The host system.
  23974. host_alias=$host_alias
  23975. host=$host
  23976. host_os=$host_os
  23977. # The build system.
  23978. build_alias=$build_alias
  23979. build=$build
  23980. build_os=$build_os
  23981. # A sed program that does not truncate output.
  23982. SED=$lt_SED
  23983. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  23984. Xsed="\$SED -e 1s/^X//"
  23985. # A grep program that handles long lines.
  23986. GREP=$lt_GREP
  23987. # An ERE matcher.
  23988. EGREP=$lt_EGREP
  23989. # A literal string matcher.
  23990. FGREP=$lt_FGREP
  23991. # A BSD- or MS-compatible name lister.
  23992. NM=$lt_NM
  23993. # Whether we need soft or hard links.
  23994. LN_S=$lt_LN_S
  23995. # What is the maximum length of a command?
  23996. max_cmd_len=$max_cmd_len
  23997. # Object file suffix (normally "o").
  23998. objext=$ac_objext
  23999. # Executable file suffix (normally "").
  24000. exeext=$exeext
  24001. # whether the shell understands "unset".
  24002. lt_unset=$lt_unset
  24003. # turn spaces into newlines.
  24004. SP2NL=$lt_lt_SP2NL
  24005. # turn newlines into spaces.
  24006. NL2SP=$lt_lt_NL2SP
  24007. # convert \$build file names to \$host format.
  24008. to_host_file_cmd=$lt_cv_to_host_file_cmd
  24009. # convert \$build files to toolchain format.
  24010. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  24011. # Method to check whether dependent libraries are shared objects.
  24012. deplibs_check_method=$lt_deplibs_check_method
  24013. # Command to use when deplibs_check_method = "file_magic".
  24014. file_magic_cmd=$lt_file_magic_cmd
  24015. # How to find potential files when deplibs_check_method = "file_magic".
  24016. file_magic_glob=$lt_file_magic_glob
  24017. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  24018. want_nocaseglob=$lt_want_nocaseglob
  24019. # Command to associate shared and link libraries.
  24020. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  24021. # The archiver.
  24022. AR=$lt_AR
  24023. # Flags to create an archive.
  24024. AR_FLAGS=$lt_AR_FLAGS
  24025. # How to feed a file listing to the archiver.
  24026. archiver_list_spec=$lt_archiver_list_spec
  24027. # A symbol stripping program.
  24028. STRIP=$lt_STRIP
  24029. # Commands used to install an old-style archive.
  24030. RANLIB=$lt_RANLIB
  24031. old_postinstall_cmds=$lt_old_postinstall_cmds
  24032. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  24033. # Whether to use a lock for old archive extraction.
  24034. lock_old_archive_extraction=$lock_old_archive_extraction
  24035. # A C compiler.
  24036. LTCC=$lt_CC
  24037. # LTCC compiler flags.
  24038. LTCFLAGS=$lt_CFLAGS
  24039. # Take the output of nm and produce a listing of raw symbols and C names.
  24040. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  24041. # Transform the output of nm in a proper C declaration.
  24042. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  24043. # Transform the output of nm in a C name address pair.
  24044. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  24045. # Transform the output of nm in a C name address pair when lib prefix is needed.
  24046. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  24047. # Specify filename containing input files for \$NM.
  24048. nm_file_list_spec=$lt_nm_file_list_spec
  24049. # The root where to search for dependent libraries,and in which our libraries should be installed.
  24050. lt_sysroot=$lt_sysroot
  24051. # The name of the directory that contains temporary libtool files.
  24052. objdir=$objdir
  24053. # Used to examine libraries when file_magic_cmd begins with "file".
  24054. MAGIC_CMD=$MAGIC_CMD
  24055. # Must we lock files when doing compilation?
  24056. need_locks=$lt_need_locks
  24057. # Manifest tool.
  24058. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  24059. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  24060. DSYMUTIL=$lt_DSYMUTIL
  24061. # Tool to change global to local symbols on Mac OS X.
  24062. NMEDIT=$lt_NMEDIT
  24063. # Tool to manipulate fat objects and archives on Mac OS X.
  24064. LIPO=$lt_LIPO
  24065. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  24066. OTOOL=$lt_OTOOL
  24067. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  24068. OTOOL64=$lt_OTOOL64
  24069. # Old archive suffix (normally "a").
  24070. libext=$libext
  24071. # Shared library suffix (normally ".so").
  24072. shrext_cmds=$lt_shrext_cmds
  24073. # The commands to extract the exported symbol list from a shared archive.
  24074. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  24075. # Variables whose values should be saved in libtool wrapper scripts and
  24076. # restored at link time.
  24077. variables_saved_for_relink=$lt_variables_saved_for_relink
  24078. # Do we need the "lib" prefix for modules?
  24079. need_lib_prefix=$need_lib_prefix
  24080. # Do we need a version for libraries?
  24081. need_version=$need_version
  24082. # Library versioning type.
  24083. version_type=$version_type
  24084. # Shared library runtime path variable.
  24085. runpath_var=$runpath_var
  24086. # Shared library path variable.
  24087. shlibpath_var=$shlibpath_var
  24088. # Is shlibpath searched before the hard-coded library search path?
  24089. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  24090. # Format of library name prefix.
  24091. libname_spec=$lt_libname_spec
  24092. # List of archive names. First name is the real one, the rest are links.
  24093. # The last name is the one that the linker finds with -lNAME
  24094. library_names_spec=$lt_library_names_spec
  24095. # The coded name of the library, if different from the real name.
  24096. soname_spec=$lt_soname_spec
  24097. # Permission mode override for installation of shared libraries.
  24098. install_override_mode=$lt_install_override_mode
  24099. # Command to use after installation of a shared archive.
  24100. postinstall_cmds=$lt_postinstall_cmds
  24101. # Command to use after uninstallation of a shared archive.
  24102. postuninstall_cmds=$lt_postuninstall_cmds
  24103. # Commands used to finish a libtool library installation in a directory.
  24104. finish_cmds=$lt_finish_cmds
  24105. # As "finish_cmds", except a single script fragment to be evaled but
  24106. # not shown.
  24107. finish_eval=$lt_finish_eval
  24108. # Whether we should hardcode library paths into libraries.
  24109. hardcode_into_libs=$hardcode_into_libs
  24110. # Compile-time system search path for libraries.
  24111. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  24112. # Run-time system search path for libraries.
  24113. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  24114. # Whether dlopen is supported.
  24115. dlopen_support=$enable_dlopen
  24116. # Whether dlopen of programs is supported.
  24117. dlopen_self=$enable_dlopen_self
  24118. # Whether dlopen of statically linked programs is supported.
  24119. dlopen_self_static=$enable_dlopen_self_static
  24120. # Commands to strip libraries.
  24121. old_striplib=$lt_old_striplib
  24122. striplib=$lt_striplib
  24123. # The linker used to build libraries.
  24124. LD=$lt_LD
  24125. # How to create reloadable object files.
  24126. reload_flag=$lt_reload_flag
  24127. reload_cmds=$lt_reload_cmds
  24128. # Commands used to build an old-style archive.
  24129. old_archive_cmds=$lt_old_archive_cmds
  24130. # A language specific compiler.
  24131. CC=$lt_compiler
  24132. # Is the compiler the GNU compiler?
  24133. with_gcc=$GCC
  24134. # Compiler flag to turn off builtin functions.
  24135. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  24136. # Additional compiler flags for building library objects.
  24137. pic_flag=$lt_lt_prog_compiler_pic
  24138. # How to pass a linker flag through the compiler.
  24139. wl=$lt_lt_prog_compiler_wl
  24140. # Compiler flag to prevent dynamic linking.
  24141. link_static_flag=$lt_lt_prog_compiler_static
  24142. # Does compiler simultaneously support -c and -o options?
  24143. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  24144. # Whether or not to add -lc for building shared libraries.
  24145. build_libtool_need_lc=$archive_cmds_need_lc
  24146. # Whether or not to disallow shared libs when runtime libs are static.
  24147. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  24148. # Compiler flag to allow reflexive dlopens.
  24149. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  24150. # Compiler flag to generate shared objects directly from archives.
  24151. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  24152. # Whether the compiler copes with passing no objects directly.
  24153. compiler_needs_object=$lt_compiler_needs_object
  24154. # Create an old-style archive from a shared archive.
  24155. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  24156. # Create a temporary old-style archive to link instead of a shared archive.
  24157. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  24158. # Commands used to build a shared archive.
  24159. archive_cmds=$lt_archive_cmds
  24160. archive_expsym_cmds=$lt_archive_expsym_cmds
  24161. # Commands used to build a loadable module if different from building
  24162. # a shared archive.
  24163. module_cmds=$lt_module_cmds
  24164. module_expsym_cmds=$lt_module_expsym_cmds
  24165. # Whether we are building with GNU ld or not.
  24166. with_gnu_ld=$lt_with_gnu_ld
  24167. # Flag that allows shared libraries with undefined symbols to be built.
  24168. allow_undefined_flag=$lt_allow_undefined_flag
  24169. # Flag that enforces no undefined symbols.
  24170. no_undefined_flag=$lt_no_undefined_flag
  24171. # Flag to hardcode \$libdir into a binary during linking.
  24172. # This must work even if \$libdir does not exist
  24173. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  24174. # Whether we need a single "-rpath" flag with a separated argument.
  24175. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  24176. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24177. # DIR into the resulting binary.
  24178. hardcode_direct=$hardcode_direct
  24179. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24180. # DIR into the resulting binary and the resulting library dependency is
  24181. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24182. # library is relocated.
  24183. hardcode_direct_absolute=$hardcode_direct_absolute
  24184. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24185. # into the resulting binary.
  24186. hardcode_minus_L=$hardcode_minus_L
  24187. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24188. # into the resulting binary.
  24189. hardcode_shlibpath_var=$hardcode_shlibpath_var
  24190. # Set to "yes" if building a shared library automatically hardcodes DIR
  24191. # into the library and all subsequent libraries and executables linked
  24192. # against it.
  24193. hardcode_automatic=$hardcode_automatic
  24194. # Set to yes if linker adds runtime paths of dependent libraries
  24195. # to runtime path list.
  24196. inherit_rpath=$inherit_rpath
  24197. # Whether libtool must link a program against all its dependency libraries.
  24198. link_all_deplibs=$link_all_deplibs
  24199. # Set to "yes" if exported symbols are required.
  24200. always_export_symbols=$always_export_symbols
  24201. # The commands to list exported symbols.
  24202. export_symbols_cmds=$lt_export_symbols_cmds
  24203. # Symbols that should not be listed in the preloaded symbols.
  24204. exclude_expsyms=$lt_exclude_expsyms
  24205. # Symbols that must always be exported.
  24206. include_expsyms=$lt_include_expsyms
  24207. # Commands necessary for linking programs (against libraries) with templates.
  24208. prelink_cmds=$lt_prelink_cmds
  24209. # Commands necessary for finishing linking programs.
  24210. postlink_cmds=$lt_postlink_cmds
  24211. # Specify filename containing input files.
  24212. file_list_spec=$lt_file_list_spec
  24213. # How to hardcode a shared library path into an executable.
  24214. hardcode_action=$hardcode_action
  24215. # The directories searched by this compiler when creating a shared library.
  24216. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  24217. # Dependencies to place before and after the objects being linked to
  24218. # create a shared library.
  24219. predep_objects=$lt_predep_objects
  24220. postdep_objects=$lt_postdep_objects
  24221. predeps=$lt_predeps
  24222. postdeps=$lt_postdeps
  24223. # The library search path used internally by the compiler when linking
  24224. # a shared library.
  24225. compiler_lib_search_path=$lt_compiler_lib_search_path
  24226. # ### END LIBTOOL CONFIG
  24227. _LT_EOF
  24228. case $host_os in
  24229. aix3*)
  24230. cat <<\_LT_EOF >> "$cfgfile"
  24231. # AIX sometimes has problems with the GCC collect2 program. For some
  24232. # reason, if we set the COLLECT_NAMES environment variable, the problems
  24233. # vanish in a puff of smoke.
  24234. if test "X${COLLECT_NAMES+set}" != Xset; then
  24235. COLLECT_NAMES=
  24236. export COLLECT_NAMES
  24237. fi
  24238. _LT_EOF
  24239. ;;
  24240. esac
  24241. ltmain="$ac_aux_dir/ltmain.sh"
  24242. # We use sed instead of cat because bash on DJGPP gets confused if
  24243. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  24244. # text mode, it properly converts lines to CR/LF. This bash problem
  24245. # is reportedly fixed, but why not run on old versions too?
  24246. sed '$q' "$ltmain" >> "$cfgfile" \
  24247. || (rm -f "$cfgfile"; exit 1)
  24248. if test x"$xsi_shell" = xyes; then
  24249. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  24250. func_dirname ()\
  24251. {\
  24252. \ case ${1} in\
  24253. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  24254. \ * ) func_dirname_result="${3}" ;;\
  24255. \ esac\
  24256. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  24257. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24258. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24259. test 0 -eq $? || _lt_function_replace_fail=:
  24260. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  24261. func_basename ()\
  24262. {\
  24263. \ func_basename_result="${1##*/}"\
  24264. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  24265. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24266. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24267. test 0 -eq $? || _lt_function_replace_fail=:
  24268. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  24269. func_dirname_and_basename ()\
  24270. {\
  24271. \ case ${1} in\
  24272. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  24273. \ * ) func_dirname_result="${3}" ;;\
  24274. \ esac\
  24275. \ func_basename_result="${1##*/}"\
  24276. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  24277. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24278. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24279. test 0 -eq $? || _lt_function_replace_fail=:
  24280. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  24281. func_stripname ()\
  24282. {\
  24283. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  24284. \ # positional parameters, so assign one to ordinary parameter first.\
  24285. \ func_stripname_result=${3}\
  24286. \ func_stripname_result=${func_stripname_result#"${1}"}\
  24287. \ func_stripname_result=${func_stripname_result%"${2}"}\
  24288. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  24289. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24290. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24291. test 0 -eq $? || _lt_function_replace_fail=:
  24292. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  24293. func_split_long_opt ()\
  24294. {\
  24295. \ func_split_long_opt_name=${1%%=*}\
  24296. \ func_split_long_opt_arg=${1#*=}\
  24297. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  24298. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24299. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24300. test 0 -eq $? || _lt_function_replace_fail=:
  24301. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  24302. func_split_short_opt ()\
  24303. {\
  24304. \ func_split_short_opt_arg=${1#??}\
  24305. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  24306. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  24307. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24308. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24309. test 0 -eq $? || _lt_function_replace_fail=:
  24310. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  24311. func_lo2o ()\
  24312. {\
  24313. \ case ${1} in\
  24314. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  24315. \ *) func_lo2o_result=${1} ;;\
  24316. \ esac\
  24317. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  24318. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24319. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24320. test 0 -eq $? || _lt_function_replace_fail=:
  24321. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  24322. func_xform ()\
  24323. {\
  24324. func_xform_result=${1%.*}.lo\
  24325. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  24326. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24327. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24328. test 0 -eq $? || _lt_function_replace_fail=:
  24329. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  24330. func_arith ()\
  24331. {\
  24332. func_arith_result=$(( $* ))\
  24333. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  24334. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24335. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24336. test 0 -eq $? || _lt_function_replace_fail=:
  24337. sed -e '/^func_len ()$/,/^} # func_len /c\
  24338. func_len ()\
  24339. {\
  24340. func_len_result=${#1}\
  24341. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  24342. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24343. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24344. test 0 -eq $? || _lt_function_replace_fail=:
  24345. fi
  24346. if test x"$lt_shell_append" = xyes; then
  24347. sed -e '/^func_append ()$/,/^} # func_append /c\
  24348. func_append ()\
  24349. {\
  24350. eval "${1}+=\\${2}"\
  24351. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  24352. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24353. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24354. test 0 -eq $? || _lt_function_replace_fail=:
  24355. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  24356. func_append_quoted ()\
  24357. {\
  24358. \ func_quote_for_eval "${2}"\
  24359. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  24360. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  24361. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24362. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24363. test 0 -eq $? || _lt_function_replace_fail=:
  24364. # Save a `func_append' function call where possible by direct use of '+='
  24365. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  24366. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24367. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24368. test 0 -eq $? || _lt_function_replace_fail=:
  24369. else
  24370. # Save a `func_append' function call even when '+=' is not available
  24371. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  24372. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24373. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24374. test 0 -eq $? || _lt_function_replace_fail=:
  24375. fi
  24376. if test x"$_lt_function_replace_fail" = x":"; then
  24377. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  24378. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  24379. fi
  24380. mv -f "$cfgfile" "$ofile" ||
  24381. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  24382. chmod +x "$ofile"
  24383. cat <<_LT_EOF >> "$ofile"
  24384. # ### BEGIN LIBTOOL TAG CONFIG: RC
  24385. # The linker used to build libraries.
  24386. LD=$lt_LD_RC
  24387. # How to create reloadable object files.
  24388. reload_flag=$lt_reload_flag_RC
  24389. reload_cmds=$lt_reload_cmds_RC
  24390. # Commands used to build an old-style archive.
  24391. old_archive_cmds=$lt_old_archive_cmds_RC
  24392. # A language specific compiler.
  24393. CC=$lt_compiler_RC
  24394. # Is the compiler the GNU compiler?
  24395. with_gcc=$GCC_RC
  24396. # Compiler flag to turn off builtin functions.
  24397. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  24398. # Additional compiler flags for building library objects.
  24399. pic_flag=$lt_lt_prog_compiler_pic_RC
  24400. # How to pass a linker flag through the compiler.
  24401. wl=$lt_lt_prog_compiler_wl_RC
  24402. # Compiler flag to prevent dynamic linking.
  24403. link_static_flag=$lt_lt_prog_compiler_static_RC
  24404. # Does compiler simultaneously support -c and -o options?
  24405. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  24406. # Whether or not to add -lc for building shared libraries.
  24407. build_libtool_need_lc=$archive_cmds_need_lc_RC
  24408. # Whether or not to disallow shared libs when runtime libs are static.
  24409. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  24410. # Compiler flag to allow reflexive dlopens.
  24411. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  24412. # Compiler flag to generate shared objects directly from archives.
  24413. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  24414. # Whether the compiler copes with passing no objects directly.
  24415. compiler_needs_object=$lt_compiler_needs_object_RC
  24416. # Create an old-style archive from a shared archive.
  24417. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  24418. # Create a temporary old-style archive to link instead of a shared archive.
  24419. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  24420. # Commands used to build a shared archive.
  24421. archive_cmds=$lt_archive_cmds_RC
  24422. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  24423. # Commands used to build a loadable module if different from building
  24424. # a shared archive.
  24425. module_cmds=$lt_module_cmds_RC
  24426. module_expsym_cmds=$lt_module_expsym_cmds_RC
  24427. # Whether we are building with GNU ld or not.
  24428. with_gnu_ld=$lt_with_gnu_ld_RC
  24429. # Flag that allows shared libraries with undefined symbols to be built.
  24430. allow_undefined_flag=$lt_allow_undefined_flag_RC
  24431. # Flag that enforces no undefined symbols.
  24432. no_undefined_flag=$lt_no_undefined_flag_RC
  24433. # Flag to hardcode \$libdir into a binary during linking.
  24434. # This must work even if \$libdir does not exist
  24435. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  24436. # Whether we need a single "-rpath" flag with a separated argument.
  24437. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  24438. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24439. # DIR into the resulting binary.
  24440. hardcode_direct=$hardcode_direct_RC
  24441. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24442. # DIR into the resulting binary and the resulting library dependency is
  24443. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24444. # library is relocated.
  24445. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  24446. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24447. # into the resulting binary.
  24448. hardcode_minus_L=$hardcode_minus_L_RC
  24449. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24450. # into the resulting binary.
  24451. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  24452. # Set to "yes" if building a shared library automatically hardcodes DIR
  24453. # into the library and all subsequent libraries and executables linked
  24454. # against it.
  24455. hardcode_automatic=$hardcode_automatic_RC
  24456. # Set to yes if linker adds runtime paths of dependent libraries
  24457. # to runtime path list.
  24458. inherit_rpath=$inherit_rpath_RC
  24459. # Whether libtool must link a program against all its dependency libraries.
  24460. link_all_deplibs=$link_all_deplibs_RC
  24461. # Set to "yes" if exported symbols are required.
  24462. always_export_symbols=$always_export_symbols_RC
  24463. # The commands to list exported symbols.
  24464. export_symbols_cmds=$lt_export_symbols_cmds_RC
  24465. # Symbols that should not be listed in the preloaded symbols.
  24466. exclude_expsyms=$lt_exclude_expsyms_RC
  24467. # Symbols that must always be exported.
  24468. include_expsyms=$lt_include_expsyms_RC
  24469. # Commands necessary for linking programs (against libraries) with templates.
  24470. prelink_cmds=$lt_prelink_cmds_RC
  24471. # Commands necessary for finishing linking programs.
  24472. postlink_cmds=$lt_postlink_cmds_RC
  24473. # Specify filename containing input files.
  24474. file_list_spec=$lt_file_list_spec_RC
  24475. # How to hardcode a shared library path into an executable.
  24476. hardcode_action=$hardcode_action_RC
  24477. # The directories searched by this compiler when creating a shared library.
  24478. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  24479. # Dependencies to place before and after the objects being linked to
  24480. # create a shared library.
  24481. predep_objects=$lt_predep_objects_RC
  24482. postdep_objects=$lt_postdep_objects_RC
  24483. predeps=$lt_predeps_RC
  24484. postdeps=$lt_postdeps_RC
  24485. # The library search path used internally by the compiler when linking
  24486. # a shared library.
  24487. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  24488. # ### END LIBTOOL TAG CONFIG: RC
  24489. _LT_EOF
  24490. cat <<_LT_EOF >> "$ofile"
  24491. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  24492. # The linker used to build libraries.
  24493. LD=$lt_LD_CXX
  24494. # How to create reloadable object files.
  24495. reload_flag=$lt_reload_flag_CXX
  24496. reload_cmds=$lt_reload_cmds_CXX
  24497. # Commands used to build an old-style archive.
  24498. old_archive_cmds=$lt_old_archive_cmds_CXX
  24499. # A language specific compiler.
  24500. CC=$lt_compiler_CXX
  24501. # Is the compiler the GNU compiler?
  24502. with_gcc=$GCC_CXX
  24503. # Compiler flag to turn off builtin functions.
  24504. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  24505. # Additional compiler flags for building library objects.
  24506. pic_flag=$lt_lt_prog_compiler_pic_CXX
  24507. # How to pass a linker flag through the compiler.
  24508. wl=$lt_lt_prog_compiler_wl_CXX
  24509. # Compiler flag to prevent dynamic linking.
  24510. link_static_flag=$lt_lt_prog_compiler_static_CXX
  24511. # Does compiler simultaneously support -c and -o options?
  24512. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  24513. # Whether or not to add -lc for building shared libraries.
  24514. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  24515. # Whether or not to disallow shared libs when runtime libs are static.
  24516. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  24517. # Compiler flag to allow reflexive dlopens.
  24518. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  24519. # Compiler flag to generate shared objects directly from archives.
  24520. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  24521. # Whether the compiler copes with passing no objects directly.
  24522. compiler_needs_object=$lt_compiler_needs_object_CXX
  24523. # Create an old-style archive from a shared archive.
  24524. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  24525. # Create a temporary old-style archive to link instead of a shared archive.
  24526. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  24527. # Commands used to build a shared archive.
  24528. archive_cmds=$lt_archive_cmds_CXX
  24529. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  24530. # Commands used to build a loadable module if different from building
  24531. # a shared archive.
  24532. module_cmds=$lt_module_cmds_CXX
  24533. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  24534. # Whether we are building with GNU ld or not.
  24535. with_gnu_ld=$lt_with_gnu_ld_CXX
  24536. # Flag that allows shared libraries with undefined symbols to be built.
  24537. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  24538. # Flag that enforces no undefined symbols.
  24539. no_undefined_flag=$lt_no_undefined_flag_CXX
  24540. # Flag to hardcode \$libdir into a binary during linking.
  24541. # This must work even if \$libdir does not exist
  24542. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  24543. # Whether we need a single "-rpath" flag with a separated argument.
  24544. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  24545. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24546. # DIR into the resulting binary.
  24547. hardcode_direct=$hardcode_direct_CXX
  24548. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24549. # DIR into the resulting binary and the resulting library dependency is
  24550. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24551. # library is relocated.
  24552. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  24553. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24554. # into the resulting binary.
  24555. hardcode_minus_L=$hardcode_minus_L_CXX
  24556. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24557. # into the resulting binary.
  24558. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  24559. # Set to "yes" if building a shared library automatically hardcodes DIR
  24560. # into the library and all subsequent libraries and executables linked
  24561. # against it.
  24562. hardcode_automatic=$hardcode_automatic_CXX
  24563. # Set to yes if linker adds runtime paths of dependent libraries
  24564. # to runtime path list.
  24565. inherit_rpath=$inherit_rpath_CXX
  24566. # Whether libtool must link a program against all its dependency libraries.
  24567. link_all_deplibs=$link_all_deplibs_CXX
  24568. # Set to "yes" if exported symbols are required.
  24569. always_export_symbols=$always_export_symbols_CXX
  24570. # The commands to list exported symbols.
  24571. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  24572. # Symbols that should not be listed in the preloaded symbols.
  24573. exclude_expsyms=$lt_exclude_expsyms_CXX
  24574. # Symbols that must always be exported.
  24575. include_expsyms=$lt_include_expsyms_CXX
  24576. # Commands necessary for linking programs (against libraries) with templates.
  24577. prelink_cmds=$lt_prelink_cmds_CXX
  24578. # Commands necessary for finishing linking programs.
  24579. postlink_cmds=$lt_postlink_cmds_CXX
  24580. # Specify filename containing input files.
  24581. file_list_spec=$lt_file_list_spec_CXX
  24582. # How to hardcode a shared library path into an executable.
  24583. hardcode_action=$hardcode_action_CXX
  24584. # The directories searched by this compiler when creating a shared library.
  24585. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  24586. # Dependencies to place before and after the objects being linked to
  24587. # create a shared library.
  24588. predep_objects=$lt_predep_objects_CXX
  24589. postdep_objects=$lt_postdep_objects_CXX
  24590. predeps=$lt_predeps_CXX
  24591. postdeps=$lt_postdeps_CXX
  24592. # The library search path used internally by the compiler when linking
  24593. # a shared library.
  24594. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  24595. # ### END LIBTOOL TAG CONFIG: CXX
  24596. _LT_EOF
  24597. ;;
  24598. "sdl2_config":C) chmod a+x sdl2-config ;;
  24599. "summary":C) printf "$SUMMARY" ;;
  24600. esac
  24601. done # for ac_tag
  24602. as_fn_exit 0
  24603. _ACEOF
  24604. ac_clean_files=$ac_clean_files_save
  24605. test $ac_write_fail = 0 ||
  24606. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  24607. # configure is writing to config.log, and then calls config.status.
  24608. # config.status does its own redirection, appending to config.log.
  24609. # Unfortunately, on DOS this fails, as config.log is still kept open
  24610. # by configure, so config.status won't be able to write to it; its
  24611. # output is simply discarded. So we exec the FD to /dev/null,
  24612. # effectively closing config.log, so it can be properly (re)opened and
  24613. # appended to by config.status. When coming back to configure, we
  24614. # need to make the FD available again.
  24615. if test "$no_create" != yes; then
  24616. ac_cs_success=:
  24617. ac_config_status_args=
  24618. test "$silent" = yes &&
  24619. ac_config_status_args="$ac_config_status_args --quiet"
  24620. exec 5>/dev/null
  24621. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  24622. exec 5>>config.log
  24623. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  24624. # would make configure fail if this is the last instruction.
  24625. $ac_cs_success || as_fn_exit 1
  24626. fi
  24627. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  24628. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  24629. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  24630. fi