configure 855 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME=
  539. PACKAGE_TARNAME=
  540. PACKAGE_VERSION=
  541. PACKAGE_STRING=
  542. PACKAGE_BUGREPORT=
  543. PACKAGE_URL=
  544. ac_unique_file="src/SDL.c"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='LTLIBOBJS
  581. WAYLAND_SCANNER_CODE_MODE
  582. WAYLAND_SCANNER
  583. EXTRA_LDFLAGS
  584. BUILD_LDFLAGS
  585. EXTRA_CFLAGS
  586. BUILD_CFLAGS
  587. SDLTEST_OBJECTS
  588. SDLMAIN_OBJECTS
  589. VERSION_OBJECTS
  590. GEN_OBJECTS
  591. GEN_HEADERS
  592. OBJECTS
  593. INCLUDE
  594. ac_aux_dir
  595. ENABLE_STATIC_FALSE
  596. ENABLE_STATIC_TRUE
  597. ENABLE_SHARED_FALSE
  598. ENABLE_SHARED_TRUE
  599. PKGCONFIG_LIBS_PRIV
  600. SDL_RLD_FLAGS
  601. SDL_STATIC_LIBS
  602. SDL_LIBS
  603. SDL_CFLAGS
  604. INSTALL_SDL2_CONFIG
  605. LIBUSB_LIBS
  606. LIBUSB_CFLAGS
  607. IBUS_LIBS
  608. IBUS_CFLAGS
  609. DBUS_LIBS
  610. DBUS_CFLAGS
  611. LIBGBM_LIBS
  612. LIBGBM_CFLAGS
  613. LIBDRM_LIBS
  614. LIBDRM_CFLAGS
  615. DIRECTFB_LIBS
  616. DIRECTFB_CFLAGS
  617. X_EXTRA_LIBS
  618. X_LIBS
  619. X_PRE_LIBS
  620. X_CFLAGS
  621. XMKMF
  622. RPI_LIBS
  623. RPI_CFLAGS
  624. FUSIONSOUND_LIBS
  625. FUSIONSOUND_CFLAGS
  626. ARTSCONFIG
  627. PULSEAUDIO_LIBS
  628. PULSEAUDIO_CFLAGS
  629. PIPEWIRE_LIBS
  630. PIPEWIRE_CFLAGS
  631. ESD_LIBS
  632. ESD_CFLAGS
  633. ESD_CONFIG
  634. JACK_LIBS
  635. JACK_CFLAGS
  636. ALSA_LIBS
  637. ALSA_CFLAGS
  638. POW_LIB
  639. LIBOBJS
  640. ALLOCA
  641. LIBTOOLLINKERTAG
  642. LINKER
  643. PKG_CONFIG_LIBDIR
  644. PKG_CONFIG_PATH
  645. PKG_CONFIG
  646. SET_MAKE
  647. INSTALL_DATA
  648. INSTALL_SCRIPT
  649. INSTALL_PROGRAM
  650. CXXCPP
  651. ac_ct_CXX
  652. CXXFLAGS
  653. CXX
  654. LT_AGE
  655. LT_REVISION
  656. LT_CURRENT
  657. LT_RELEASE
  658. RC
  659. CPP
  660. OTOOL64
  661. OTOOL
  662. LIPO
  663. NMEDIT
  664. DSYMUTIL
  665. MANIFEST_TOOL
  666. AWK
  667. RANLIB
  668. STRIP
  669. ac_ct_AR
  670. AR
  671. LN_S
  672. NM
  673. ac_ct_DUMPBIN
  674. DUMPBIN
  675. LD
  676. FGREP
  677. EGREP
  678. GREP
  679. SED
  680. OBJEXT
  681. EXEEXT
  682. ac_ct_CC
  683. CPPFLAGS
  684. LDFLAGS
  685. CFLAGS
  686. CC
  687. host_os
  688. host_vendor
  689. host_cpu
  690. host
  691. build_os
  692. build_vendor
  693. build_cpu
  694. build
  695. LIBTOOL
  696. OBJDUMP
  697. DLLTOOL
  698. AS
  699. SDL_VERSION
  700. SDL_BINARY_AGE
  701. SDL_INTERFACE_AGE
  702. SDL_MICRO_VERSION
  703. SDL_MINOR_VERSION
  704. SDL_MAJOR_VERSION
  705. target_alias
  706. host_alias
  707. build_alias
  708. LIBS
  709. ECHO_T
  710. ECHO_N
  711. ECHO_C
  712. DEFS
  713. mandir
  714. localedir
  715. libdir
  716. psdir
  717. pdfdir
  718. dvidir
  719. htmldir
  720. infodir
  721. docdir
  722. oldincludedir
  723. includedir
  724. localstatedir
  725. sharedstatedir
  726. sysconfdir
  727. datadir
  728. datarootdir
  729. libexecdir
  730. sbindir
  731. bindir
  732. program_transform_name
  733. prefix
  734. exec_prefix
  735. PACKAGE_URL
  736. PACKAGE_BUGREPORT
  737. PACKAGE_STRING
  738. PACKAGE_VERSION
  739. PACKAGE_TARNAME
  740. PACKAGE_NAME
  741. PATH_SEPARATOR
  742. SHELL'
  743. ac_subst_files=''
  744. ac_user_opts='
  745. enable_option_checking
  746. enable_shared
  747. enable_static
  748. with_pic
  749. enable_fast_install
  750. with_gnu_ld
  751. with_sysroot
  752. enable_libtool_lock
  753. enable_assertions
  754. enable_dependency_tracking
  755. enable_libc
  756. enable_gcc_atomics
  757. enable_atomic
  758. enable_audio
  759. enable_video
  760. enable_render
  761. enable_events
  762. enable_joystick
  763. enable_haptic
  764. enable_hidapi
  765. enable_sensor
  766. enable_power
  767. enable_filesystem
  768. enable_threads
  769. enable_timers
  770. enable_file
  771. enable_loadso
  772. enable_cpuinfo
  773. enable_assembly
  774. enable_ssemath
  775. enable_mmx
  776. enable_3dnow
  777. enable_sse
  778. enable_sse2
  779. enable_sse3
  780. enable_altivec
  781. enable_oss
  782. enable_alsa
  783. with_alsa_prefix
  784. with_alsa_inc_prefix
  785. enable_alsatest
  786. enable_alsa_shared
  787. enable_jack
  788. enable_jack_shared
  789. enable_esd
  790. with_esd_prefix
  791. with_esd_exec_prefix
  792. enable_esdtest
  793. enable_esd_shared
  794. enable_pipewire
  795. enable_pipewire_shared
  796. enable_pulseaudio
  797. enable_pulseaudio_shared
  798. enable_arts
  799. enable_arts_shared
  800. enable_nas
  801. enable_nas_shared
  802. enable_sndio
  803. enable_sndio_shared
  804. enable_fusionsound
  805. enable_fusionsound_shared
  806. enable_diskaudio
  807. enable_dummyaudio
  808. enable_libsamplerate
  809. enable_libsamplerate_shared
  810. enable_arm_simd
  811. enable_arm_neon
  812. enable_video_wayland
  813. enable_video_wayland_qt_touch
  814. enable_wayland_shared
  815. enable_libdecor
  816. enable_libdecor_shared
  817. enable_video_rpi
  818. enable_video_x11
  819. with_x
  820. enable_x11_shared
  821. enable_video_x11_xcursor
  822. enable_video_x11_xdbe
  823. enable_video_x11_xinerama
  824. enable_video_x11_xinput
  825. enable_video_x11_xfixes
  826. enable_video_x11_xrandr
  827. enable_video_x11_scrnsaver
  828. enable_video_x11_xshape
  829. enable_video_x11_vm
  830. enable_video_vivante
  831. enable_video_cocoa
  832. enable_video_metal
  833. enable_render_metal
  834. enable_video_directfb
  835. enable_directfb_shared
  836. enable_video_kmsdrm
  837. enable_kmsdrm_shared
  838. enable_video_dummy
  839. enable_video_offscreen
  840. enable_video_opengl
  841. enable_video_opengles
  842. enable_video_opengles1
  843. enable_video_opengles2
  844. enable_video_vulkan
  845. enable_libudev
  846. enable_dbus
  847. enable_ime
  848. enable_ibus
  849. enable_fcitx
  850. enable_joystick_mfi
  851. enable_pthreads
  852. enable_pthread_sem
  853. enable_directx
  854. enable_xinput
  855. enable_wasapi
  856. enable_hidapi_joystick
  857. enable_hidapi_libusb
  858. enable_clock_gettime
  859. enable_rpath
  860. enable_backgrounding_signal
  861. enable_foregrounding_signal
  862. enable_joystick_virtual
  863. enable_render_d3d
  864. enable_sdl2_config
  865. '
  866. ac_precious_vars='build_alias
  867. host_alias
  868. target_alias
  869. CC
  870. CFLAGS
  871. LDFLAGS
  872. LIBS
  873. CPPFLAGS
  874. CPP
  875. CXX
  876. CXXFLAGS
  877. CCC
  878. CXXCPP
  879. PKG_CONFIG
  880. PKG_CONFIG_PATH
  881. PKG_CONFIG_LIBDIR
  882. JACK_CFLAGS
  883. JACK_LIBS
  884. PIPEWIRE_CFLAGS
  885. PIPEWIRE_LIBS
  886. PULSEAUDIO_CFLAGS
  887. PULSEAUDIO_LIBS
  888. FUSIONSOUND_CFLAGS
  889. FUSIONSOUND_LIBS
  890. RPI_CFLAGS
  891. RPI_LIBS
  892. XMKMF
  893. DIRECTFB_CFLAGS
  894. DIRECTFB_LIBS
  895. LIBDRM_CFLAGS
  896. LIBDRM_LIBS
  897. LIBGBM_CFLAGS
  898. LIBGBM_LIBS
  899. DBUS_CFLAGS
  900. DBUS_LIBS
  901. IBUS_CFLAGS
  902. IBUS_LIBS
  903. LIBUSB_CFLAGS
  904. LIBUSB_LIBS'
  905. # Initialize some variables set by options.
  906. ac_init_help=
  907. ac_init_version=false
  908. ac_unrecognized_opts=
  909. ac_unrecognized_sep=
  910. # The variables have the same names as the options, with
  911. # dashes changed to underlines.
  912. cache_file=/dev/null
  913. exec_prefix=NONE
  914. no_create=
  915. no_recursion=
  916. prefix=NONE
  917. program_prefix=NONE
  918. program_suffix=NONE
  919. program_transform_name=s,x,x,
  920. silent=
  921. site=
  922. srcdir=
  923. verbose=
  924. x_includes=NONE
  925. x_libraries=NONE
  926. # Installation directory options.
  927. # These are left unexpanded so users can "make install exec_prefix=/foo"
  928. # and all the variables that are supposed to be based on exec_prefix
  929. # by default will actually change.
  930. # Use braces instead of parens because sh, perl, etc. also accept them.
  931. # (The list follows the same order as the GNU Coding Standards.)
  932. bindir='${exec_prefix}/bin'
  933. sbindir='${exec_prefix}/sbin'
  934. libexecdir='${exec_prefix}/libexec'
  935. datarootdir='${prefix}/share'
  936. datadir='${datarootdir}'
  937. sysconfdir='${prefix}/etc'
  938. sharedstatedir='${prefix}/com'
  939. localstatedir='${prefix}/var'
  940. includedir='${prefix}/include'
  941. oldincludedir='/usr/include'
  942. docdir='${datarootdir}/doc/${PACKAGE}'
  943. infodir='${datarootdir}/info'
  944. htmldir='${docdir}'
  945. dvidir='${docdir}'
  946. pdfdir='${docdir}'
  947. psdir='${docdir}'
  948. libdir='${exec_prefix}/lib'
  949. localedir='${datarootdir}/locale'
  950. mandir='${datarootdir}/man'
  951. ac_prev=
  952. ac_dashdash=
  953. for ac_option
  954. do
  955. # If the previous option needs an argument, assign it.
  956. if test -n "$ac_prev"; then
  957. eval $ac_prev=\$ac_option
  958. ac_prev=
  959. continue
  960. fi
  961. case $ac_option in
  962. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  963. *=) ac_optarg= ;;
  964. *) ac_optarg=yes ;;
  965. esac
  966. # Accept the important Cygnus configure options, so we can diagnose typos.
  967. case $ac_dashdash$ac_option in
  968. --)
  969. ac_dashdash=yes ;;
  970. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  971. ac_prev=bindir ;;
  972. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  973. bindir=$ac_optarg ;;
  974. -build | --build | --buil | --bui | --bu)
  975. ac_prev=build_alias ;;
  976. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  977. build_alias=$ac_optarg ;;
  978. -cache-file | --cache-file | --cache-fil | --cache-fi \
  979. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  980. ac_prev=cache_file ;;
  981. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  982. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  983. cache_file=$ac_optarg ;;
  984. --config-cache | -C)
  985. cache_file=config.cache ;;
  986. -datadir | --datadir | --datadi | --datad)
  987. ac_prev=datadir ;;
  988. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  989. datadir=$ac_optarg ;;
  990. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  991. | --dataroo | --dataro | --datar)
  992. ac_prev=datarootdir ;;
  993. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  994. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  995. datarootdir=$ac_optarg ;;
  996. -disable-* | --disable-*)
  997. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  998. # Reject names that are not valid shell variable names.
  999. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1000. as_fn_error $? "invalid feature name: $ac_useropt"
  1001. ac_useropt_orig=$ac_useropt
  1002. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1003. case $ac_user_opts in
  1004. *"
  1005. "enable_$ac_useropt"
  1006. "*) ;;
  1007. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1008. ac_unrecognized_sep=', ';;
  1009. esac
  1010. eval enable_$ac_useropt=no ;;
  1011. -docdir | --docdir | --docdi | --doc | --do)
  1012. ac_prev=docdir ;;
  1013. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1014. docdir=$ac_optarg ;;
  1015. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1016. ac_prev=dvidir ;;
  1017. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1018. dvidir=$ac_optarg ;;
  1019. -enable-* | --enable-*)
  1020. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1021. # Reject names that are not valid shell variable names.
  1022. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1023. as_fn_error $? "invalid feature name: $ac_useropt"
  1024. ac_useropt_orig=$ac_useropt
  1025. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1026. case $ac_user_opts in
  1027. *"
  1028. "enable_$ac_useropt"
  1029. "*) ;;
  1030. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1031. ac_unrecognized_sep=', ';;
  1032. esac
  1033. eval enable_$ac_useropt=\$ac_optarg ;;
  1034. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1035. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1036. | --exec | --exe | --ex)
  1037. ac_prev=exec_prefix ;;
  1038. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1039. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1040. | --exec=* | --exe=* | --ex=*)
  1041. exec_prefix=$ac_optarg ;;
  1042. -gas | --gas | --ga | --g)
  1043. # Obsolete; use --with-gas.
  1044. with_gas=yes ;;
  1045. -help | --help | --hel | --he | -h)
  1046. ac_init_help=long ;;
  1047. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1048. ac_init_help=recursive ;;
  1049. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1050. ac_init_help=short ;;
  1051. -host | --host | --hos | --ho)
  1052. ac_prev=host_alias ;;
  1053. -host=* | --host=* | --hos=* | --ho=*)
  1054. host_alias=$ac_optarg ;;
  1055. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1056. ac_prev=htmldir ;;
  1057. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1058. | --ht=*)
  1059. htmldir=$ac_optarg ;;
  1060. -includedir | --includedir | --includedi | --included | --include \
  1061. | --includ | --inclu | --incl | --inc)
  1062. ac_prev=includedir ;;
  1063. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1064. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1065. includedir=$ac_optarg ;;
  1066. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1067. ac_prev=infodir ;;
  1068. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1069. infodir=$ac_optarg ;;
  1070. -libdir | --libdir | --libdi | --libd)
  1071. ac_prev=libdir ;;
  1072. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1073. libdir=$ac_optarg ;;
  1074. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1075. | --libexe | --libex | --libe)
  1076. ac_prev=libexecdir ;;
  1077. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1078. | --libexe=* | --libex=* | --libe=*)
  1079. libexecdir=$ac_optarg ;;
  1080. -localedir | --localedir | --localedi | --localed | --locale)
  1081. ac_prev=localedir ;;
  1082. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1083. localedir=$ac_optarg ;;
  1084. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1085. | --localstate | --localstat | --localsta | --localst | --locals)
  1086. ac_prev=localstatedir ;;
  1087. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1088. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1089. localstatedir=$ac_optarg ;;
  1090. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1091. ac_prev=mandir ;;
  1092. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1093. mandir=$ac_optarg ;;
  1094. -nfp | --nfp | --nf)
  1095. # Obsolete; use --without-fp.
  1096. with_fp=no ;;
  1097. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1098. | --no-cr | --no-c | -n)
  1099. no_create=yes ;;
  1100. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1101. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1102. no_recursion=yes ;;
  1103. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1104. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1105. | --oldin | --oldi | --old | --ol | --o)
  1106. ac_prev=oldincludedir ;;
  1107. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1108. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1109. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1110. oldincludedir=$ac_optarg ;;
  1111. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1112. ac_prev=prefix ;;
  1113. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1114. prefix=$ac_optarg ;;
  1115. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1116. | --program-pre | --program-pr | --program-p)
  1117. ac_prev=program_prefix ;;
  1118. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1119. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1120. program_prefix=$ac_optarg ;;
  1121. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1122. | --program-suf | --program-su | --program-s)
  1123. ac_prev=program_suffix ;;
  1124. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1125. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1126. program_suffix=$ac_optarg ;;
  1127. -program-transform-name | --program-transform-name \
  1128. | --program-transform-nam | --program-transform-na \
  1129. | --program-transform-n | --program-transform- \
  1130. | --program-transform | --program-transfor \
  1131. | --program-transfo | --program-transf \
  1132. | --program-trans | --program-tran \
  1133. | --progr-tra | --program-tr | --program-t)
  1134. ac_prev=program_transform_name ;;
  1135. -program-transform-name=* | --program-transform-name=* \
  1136. | --program-transform-nam=* | --program-transform-na=* \
  1137. | --program-transform-n=* | --program-transform-=* \
  1138. | --program-transform=* | --program-transfor=* \
  1139. | --program-transfo=* | --program-transf=* \
  1140. | --program-trans=* | --program-tran=* \
  1141. | --progr-tra=* | --program-tr=* | --program-t=*)
  1142. program_transform_name=$ac_optarg ;;
  1143. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1144. ac_prev=pdfdir ;;
  1145. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1146. pdfdir=$ac_optarg ;;
  1147. -psdir | --psdir | --psdi | --psd | --ps)
  1148. ac_prev=psdir ;;
  1149. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1150. psdir=$ac_optarg ;;
  1151. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1152. | -silent | --silent | --silen | --sile | --sil)
  1153. silent=yes ;;
  1154. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1155. ac_prev=sbindir ;;
  1156. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1157. | --sbi=* | --sb=*)
  1158. sbindir=$ac_optarg ;;
  1159. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1160. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1161. | --sharedst | --shareds | --shared | --share | --shar \
  1162. | --sha | --sh)
  1163. ac_prev=sharedstatedir ;;
  1164. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1165. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1166. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1167. | --sha=* | --sh=*)
  1168. sharedstatedir=$ac_optarg ;;
  1169. -site | --site | --sit)
  1170. ac_prev=site ;;
  1171. -site=* | --site=* | --sit=*)
  1172. site=$ac_optarg ;;
  1173. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1174. ac_prev=srcdir ;;
  1175. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1176. srcdir=$ac_optarg ;;
  1177. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1178. | --syscon | --sysco | --sysc | --sys | --sy)
  1179. ac_prev=sysconfdir ;;
  1180. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1181. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1182. sysconfdir=$ac_optarg ;;
  1183. -target | --target | --targe | --targ | --tar | --ta | --t)
  1184. ac_prev=target_alias ;;
  1185. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1186. target_alias=$ac_optarg ;;
  1187. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1188. verbose=yes ;;
  1189. -version | --version | --versio | --versi | --vers | -V)
  1190. ac_init_version=: ;;
  1191. -with-* | --with-*)
  1192. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1193. # Reject names that are not valid shell variable names.
  1194. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1195. as_fn_error $? "invalid package name: $ac_useropt"
  1196. ac_useropt_orig=$ac_useropt
  1197. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1198. case $ac_user_opts in
  1199. *"
  1200. "with_$ac_useropt"
  1201. "*) ;;
  1202. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1203. ac_unrecognized_sep=', ';;
  1204. esac
  1205. eval with_$ac_useropt=\$ac_optarg ;;
  1206. -without-* | --without-*)
  1207. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1208. # Reject names that are not valid shell variable names.
  1209. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1210. as_fn_error $? "invalid package name: $ac_useropt"
  1211. ac_useropt_orig=$ac_useropt
  1212. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1213. case $ac_user_opts in
  1214. *"
  1215. "with_$ac_useropt"
  1216. "*) ;;
  1217. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1218. ac_unrecognized_sep=', ';;
  1219. esac
  1220. eval with_$ac_useropt=no ;;
  1221. --x)
  1222. # Obsolete; use --with-x.
  1223. with_x=yes ;;
  1224. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1225. | --x-incl | --x-inc | --x-in | --x-i)
  1226. ac_prev=x_includes ;;
  1227. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1228. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1229. x_includes=$ac_optarg ;;
  1230. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1231. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1232. ac_prev=x_libraries ;;
  1233. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1234. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1235. x_libraries=$ac_optarg ;;
  1236. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1237. Try \`$0 --help' for more information"
  1238. ;;
  1239. *=*)
  1240. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1241. # Reject names that are not valid shell variable names.
  1242. case $ac_envvar in #(
  1243. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1244. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1245. esac
  1246. eval $ac_envvar=\$ac_optarg
  1247. export $ac_envvar ;;
  1248. *)
  1249. # FIXME: should be removed in autoconf 3.0.
  1250. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1251. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1252. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1253. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1254. ;;
  1255. esac
  1256. done
  1257. if test -n "$ac_prev"; then
  1258. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1259. as_fn_error $? "missing argument to $ac_option"
  1260. fi
  1261. if test -n "$ac_unrecognized_opts"; then
  1262. case $enable_option_checking in
  1263. no) ;;
  1264. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1265. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1266. esac
  1267. fi
  1268. # Check all directory arguments for consistency.
  1269. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1270. datadir sysconfdir sharedstatedir localstatedir includedir \
  1271. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1272. libdir localedir mandir
  1273. do
  1274. eval ac_val=\$$ac_var
  1275. # Remove trailing slashes.
  1276. case $ac_val in
  1277. */ )
  1278. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1279. eval $ac_var=\$ac_val;;
  1280. esac
  1281. # Be sure to have absolute directory names.
  1282. case $ac_val in
  1283. [\\/$]* | ?:[\\/]* ) continue;;
  1284. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1285. esac
  1286. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1287. done
  1288. # There might be people who depend on the old broken behavior: `$host'
  1289. # used to hold the argument of --host etc.
  1290. # FIXME: To remove some day.
  1291. build=$build_alias
  1292. host=$host_alias
  1293. target=$target_alias
  1294. # FIXME: To remove some day.
  1295. if test "x$host_alias" != x; then
  1296. if test "x$build_alias" = x; then
  1297. cross_compiling=maybe
  1298. elif test "x$build_alias" != "x$host_alias"; then
  1299. cross_compiling=yes
  1300. fi
  1301. fi
  1302. ac_tool_prefix=
  1303. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1304. test "$silent" = yes && exec 6>/dev/null
  1305. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1306. ac_ls_di=`ls -di .` &&
  1307. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1308. as_fn_error $? "working directory cannot be determined"
  1309. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1310. as_fn_error $? "pwd does not report name of working directory"
  1311. # Find the source files, if location was not specified.
  1312. if test -z "$srcdir"; then
  1313. ac_srcdir_defaulted=yes
  1314. # Try the directory containing this script, then the parent directory.
  1315. ac_confdir=`$as_dirname -- "$as_myself" ||
  1316. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1317. X"$as_myself" : 'X\(//\)[^/]' \| \
  1318. X"$as_myself" : 'X\(//\)$' \| \
  1319. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1320. $as_echo X"$as_myself" |
  1321. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1322. s//\1/
  1323. q
  1324. }
  1325. /^X\(\/\/\)[^/].*/{
  1326. s//\1/
  1327. q
  1328. }
  1329. /^X\(\/\/\)$/{
  1330. s//\1/
  1331. q
  1332. }
  1333. /^X\(\/\).*/{
  1334. s//\1/
  1335. q
  1336. }
  1337. s/.*/./; q'`
  1338. srcdir=$ac_confdir
  1339. if test ! -r "$srcdir/$ac_unique_file"; then
  1340. srcdir=..
  1341. fi
  1342. else
  1343. ac_srcdir_defaulted=no
  1344. fi
  1345. if test ! -r "$srcdir/$ac_unique_file"; then
  1346. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1347. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1348. fi
  1349. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1350. ac_abs_confdir=`(
  1351. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1352. pwd)`
  1353. # When building in place, set srcdir=.
  1354. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1355. srcdir=.
  1356. fi
  1357. # Remove unnecessary trailing slashes from srcdir.
  1358. # Double slashes in file names in object file debugging info
  1359. # mess up M-x gdb in Emacs.
  1360. case $srcdir in
  1361. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1362. esac
  1363. for ac_var in $ac_precious_vars; do
  1364. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1365. eval ac_env_${ac_var}_value=\$${ac_var}
  1366. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1367. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1368. done
  1369. #
  1370. # Report the --help message.
  1371. #
  1372. if test "$ac_init_help" = "long"; then
  1373. # Omit some internal or obsolete options to make the list less imposing.
  1374. # This message is too long to be a string in the A/UX 3.1 sh.
  1375. cat <<_ACEOF
  1376. \`configure' configures this package to adapt to many kinds of systems.
  1377. Usage: $0 [OPTION]... [VAR=VALUE]...
  1378. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1379. VAR=VALUE. See below for descriptions of some of the useful variables.
  1380. Defaults for the options are specified in brackets.
  1381. Configuration:
  1382. -h, --help display this help and exit
  1383. --help=short display options specific to this package
  1384. --help=recursive display the short help of all the included packages
  1385. -V, --version display version information and exit
  1386. -q, --quiet, --silent do not print \`checking ...' messages
  1387. --cache-file=FILE cache test results in FILE [disabled]
  1388. -C, --config-cache alias for \`--cache-file=config.cache'
  1389. -n, --no-create do not create output files
  1390. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1391. Installation directories:
  1392. --prefix=PREFIX install architecture-independent files in PREFIX
  1393. [$ac_default_prefix]
  1394. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1395. [PREFIX]
  1396. By default, \`make install' will install all the files in
  1397. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1398. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1399. for instance \`--prefix=\$HOME'.
  1400. For better control, use the options below.
  1401. Fine tuning of the installation directories:
  1402. --bindir=DIR user executables [EPREFIX/bin]
  1403. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1404. --libexecdir=DIR program executables [EPREFIX/libexec]
  1405. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1406. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1407. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1408. --libdir=DIR object code libraries [EPREFIX/lib]
  1409. --includedir=DIR C header files [PREFIX/include]
  1410. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1411. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1412. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1413. --infodir=DIR info documentation [DATAROOTDIR/info]
  1414. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1415. --mandir=DIR man documentation [DATAROOTDIR/man]
  1416. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1417. --htmldir=DIR html documentation [DOCDIR]
  1418. --dvidir=DIR dvi documentation [DOCDIR]
  1419. --pdfdir=DIR pdf documentation [DOCDIR]
  1420. --psdir=DIR ps documentation [DOCDIR]
  1421. _ACEOF
  1422. cat <<\_ACEOF
  1423. X features:
  1424. --x-includes=DIR X include files are in DIR
  1425. --x-libraries=DIR X library files are in DIR
  1426. System types:
  1427. --build=BUILD configure for building on BUILD [guessed]
  1428. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1429. _ACEOF
  1430. fi
  1431. if test -n "$ac_init_help"; then
  1432. cat <<\_ACEOF
  1433. Optional Features:
  1434. --disable-option-checking ignore unrecognized --enable/--with options
  1435. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1436. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1437. --enable-shared[=PKGS] build shared libraries [default=yes]
  1438. --enable-static[=PKGS] build static libraries [default=yes]
  1439. --enable-fast-install[=PKGS]
  1440. optimize for fast installation [default=yes]
  1441. --disable-libtool-lock avoid locking (might break parallel builds)
  1442. --enable-assertions Enable internal sanity checks
  1443. (auto/disabled/release/enabled/paranoid)
  1444. [default=auto]
  1445. --enable-dependency-tracking
  1446. Use gcc -MMD -MT dependency tracking [default=yes]
  1447. --enable-libc Use the system C library [default=yes]
  1448. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1449. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1450. --enable-audio Enable the audio subsystem [default=yes]
  1451. --enable-video Enable the video subsystem [default=yes]
  1452. --enable-render Enable the render subsystem [default=yes]
  1453. --enable-events Enable the events subsystem [default=yes]
  1454. --enable-joystick Enable the joystick subsystem [default=yes]
  1455. --enable-haptic Enable the haptic (force feedback) subsystem
  1456. [default=yes]
  1457. --enable-hidapi Enable the HIDAPI subsystem [default=yes]
  1458. --enable-sensor Enable the sensor subsystem [default=yes]
  1459. --enable-power Enable the power subsystem [default=yes]
  1460. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1461. --enable-threads Enable the threading subsystem [default=yes]
  1462. --enable-timers Enable the timer subsystem [default=yes]
  1463. --enable-file Enable the file subsystem [default=yes]
  1464. --enable-loadso Enable the shared object loading subsystem
  1465. [default=yes]
  1466. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1467. --enable-assembly Enable assembly routines [default=yes]
  1468. --enable-ssemath Allow GCC to use SSE floating point math
  1469. [default=maybe]
  1470. --enable-mmx use MMX assembly routines [default=yes]
  1471. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1472. --enable-sse use SSE assembly routines [default=yes]
  1473. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1474. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1475. --enable-altivec use Altivec assembly routines [default=yes]
  1476. --enable-oss support the OSS audio API [default=maybe]
  1477. --enable-alsa support the ALSA audio API [default=yes]
  1478. --disable-alsatest Do not try to compile and run a test Alsa program
  1479. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1480. --enable-jack use JACK audio [default=yes]
  1481. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1482. --enable-esd support the Enlightened Sound Daemon [default=yes]
  1483. --disable-esdtest Do not try to compile and run a test ESD program
  1484. --enable-esd-shared dynamically load ESD audio support [default=yes]
  1485. --enable-pipewire use Pipewire audio [default=yes]
  1486. --enable-pipewire-shared
  1487. dynamically load Pipewire support [default=yes]
  1488. --enable-pulseaudio use PulseAudio [default=yes]
  1489. --enable-pulseaudio-shared
  1490. dynamically load PulseAudio support [default=yes]
  1491. --enable-arts support the Analog Real Time Synthesizer
  1492. [default=yes]
  1493. --enable-arts-shared dynamically load aRts audio support [default=yes]
  1494. --enable-nas support the NAS audio API [default=yes]
  1495. --enable-nas-shared dynamically load NAS audio support [default=yes]
  1496. --enable-sndio support the sndio audio API [default=yes]
  1497. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1498. --enable-fusionsound use FusionSound audio driver [default=no]
  1499. --enable-fusionsound-shared
  1500. dynamically load fusionsound audio support
  1501. [default=yes]
  1502. --enable-diskaudio support the disk writer audio driver [default=yes]
  1503. --enable-dummyaudio support the dummy audio driver [default=yes]
  1504. --enable-libsamplerate use libsamplerate for audio rate conversion
  1505. [default=yes]
  1506. --enable-libsamplerate-shared
  1507. dynamically load libsamplerate [default=yes]
  1508. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1509. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1510. --enable-video-wayland use Wayland video driver [default=yes]
  1511. --enable-video-wayland-qt-touch
  1512. QtWayland server support for Wayland video driver
  1513. [default=yes]
  1514. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1515. --enable-libdecor use libdecor for Wayland client-side decorations
  1516. [default=yes]
  1517. --enable-libdecor-shared
  1518. dynamically load libdecor [default=yes]
  1519. --enable-video-rpi use Raspberry Pi 2/3 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-xfixes
  1531. enable X11 Xfixes support [default=yes]
  1532. --enable-video-x11-xrandr
  1533. enable X11 Xrandr extension for fullscreen
  1534. [default=yes]
  1535. --enable-video-x11-scrnsaver
  1536. enable X11 screensaver extension [default=yes]
  1537. --enable-video-x11-xshape
  1538. enable X11 XShape support [default=yes]
  1539. --enable-video-x11-vm use X11 VM extension for fullscreen [default=yes]
  1540. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1541. --enable-video-cocoa use Cocoa video driver [default=yes]
  1542. --enable-video-metal include Metal support [default=yes]
  1543. --enable-render-metal enable the Metal render driver [default=yes]
  1544. --enable-video-directfb use DirectFB video driver [default=no]
  1545. --enable-directfb-shared
  1546. dynamically load directfb support [default=yes]
  1547. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1548. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1549. --enable-video-dummy use dummy video driver [default=yes]
  1550. --enable-video-offscreen
  1551. use offscreen video driver [default=no]
  1552. --enable-video-opengl include OpenGL support [default=yes]
  1553. --enable-video-opengles include OpenGL ES support [default=yes]
  1554. --enable-video-opengles1
  1555. include OpenGL ES 1.1 support [default=yes]
  1556. --enable-video-opengles2
  1557. include OpenGL ES 2.0 support [default=yes]
  1558. --enable-video-vulkan include Vulkan support [default=yes]
  1559. --enable-libudev enable libudev support [default=yes]
  1560. --enable-dbus enable D-Bus support [default=yes]
  1561. --enable-ime enable IME support [default=yes]
  1562. --enable-ibus enable IBus support [default=yes]
  1563. --enable-fcitx enable fcitx support [default=yes]
  1564. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1565. --enable-pthreads use POSIX threads for multi-threading
  1566. [default=maybe]
  1567. --enable-pthread-sem use pthread semaphores [default=maybe]
  1568. --enable-directx use DirectX for Windows audio/video [default=yes]
  1569. --enable-xinput use Xinput for Windows [default=yes]
  1570. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1571. --enable-hidapi-joystick
  1572. use HIDAPI for low level joystick drivers
  1573. [default=yes]
  1574. --enable-hidapi-libusb use libusb for low level joystick drivers
  1575. [default=maybe]
  1576. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1577. UNIX [default=yes]
  1578. --enable-rpath use an rpath when linking SDL [default=yes]
  1579. --enable-backgrounding-signal
  1580. number to use for magic backgrounding signal or 'no'
  1581. [default=no]
  1582. --enable-foregrounding-signal
  1583. number to use for magic foregrounding signal or 'no'
  1584. [default=no]
  1585. --enable-joystick-virtual
  1586. enable virtual joystick APIs [default=yes]
  1587. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1588. --enable-sdl2-config Install sdl2-config [default=yes]
  1589. Optional Packages:
  1590. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1591. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1592. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1593. both]
  1594. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1595. --with-sysroot=DIR Search for dependent libraries within DIR
  1596. (or the compiler's sysroot if not specified).
  1597. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1598. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1599. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1600. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1601. --with-x use the X Window System
  1602. Some influential environment variables:
  1603. CC C compiler command
  1604. CFLAGS C compiler flags
  1605. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1606. nonstandard directory <lib dir>
  1607. LIBS libraries to pass to the linker, e.g. -l<library>
  1608. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1609. you have headers in a nonstandard directory <include dir>
  1610. CPP C preprocessor
  1611. CXX C++ compiler command
  1612. CXXFLAGS C++ compiler flags
  1613. CXXCPP C++ preprocessor
  1614. PKG_CONFIG path to pkg-config utility
  1615. PKG_CONFIG_PATH
  1616. directories to add to pkg-config's search path
  1617. PKG_CONFIG_LIBDIR
  1618. path overriding pkg-config's built-in search path
  1619. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1620. JACK_LIBS linker flags for JACK, overriding pkg-config
  1621. PIPEWIRE_CFLAGS
  1622. C compiler flags for PIPEWIRE, overriding pkg-config
  1623. PIPEWIRE_LIBS
  1624. linker flags for PIPEWIRE, overriding pkg-config
  1625. PULSEAUDIO_CFLAGS
  1626. C compiler flags for PULSEAUDIO, overriding pkg-config
  1627. PULSEAUDIO_LIBS
  1628. linker flags for PULSEAUDIO, overriding pkg-config
  1629. FUSIONSOUND_CFLAGS
  1630. C compiler flags for FUSIONSOUND, overriding pkg-config
  1631. FUSIONSOUND_LIBS
  1632. linker flags for FUSIONSOUND, overriding pkg-config
  1633. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1634. RPI_LIBS linker flags for RPI, overriding pkg-config
  1635. XMKMF Path to xmkmf, Makefile generator for X Window System
  1636. DIRECTFB_CFLAGS
  1637. C compiler flags for DIRECTFB, overriding pkg-config
  1638. DIRECTFB_LIBS
  1639. linker flags for DIRECTFB, overriding pkg-config
  1640. LIBDRM_CFLAGS
  1641. C compiler flags for LIBDRM, overriding pkg-config
  1642. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1643. LIBGBM_CFLAGS
  1644. C compiler flags for LIBGBM, overriding pkg-config
  1645. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1646. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1647. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1648. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1649. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1650. LIBUSB_CFLAGS
  1651. C compiler flags for LIBUSB, overriding pkg-config
  1652. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1653. Use these variables to override the choices made by `configure' or to help
  1654. it to find libraries and programs with nonstandard names/locations.
  1655. Report bugs to the package provider.
  1656. _ACEOF
  1657. ac_status=$?
  1658. fi
  1659. if test "$ac_init_help" = "recursive"; then
  1660. # If there are subdirs, report their specific --help.
  1661. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1662. test -d "$ac_dir" ||
  1663. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1664. continue
  1665. ac_builddir=.
  1666. case "$ac_dir" in
  1667. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1668. *)
  1669. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1670. # A ".." for each directory in $ac_dir_suffix.
  1671. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1672. case $ac_top_builddir_sub in
  1673. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1674. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1675. esac ;;
  1676. esac
  1677. ac_abs_top_builddir=$ac_pwd
  1678. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1679. # for backward compatibility:
  1680. ac_top_builddir=$ac_top_build_prefix
  1681. case $srcdir in
  1682. .) # We are building in place.
  1683. ac_srcdir=.
  1684. ac_top_srcdir=$ac_top_builddir_sub
  1685. ac_abs_top_srcdir=$ac_pwd ;;
  1686. [\\/]* | ?:[\\/]* ) # Absolute name.
  1687. ac_srcdir=$srcdir$ac_dir_suffix;
  1688. ac_top_srcdir=$srcdir
  1689. ac_abs_top_srcdir=$srcdir ;;
  1690. *) # Relative name.
  1691. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1692. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1693. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1694. esac
  1695. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1696. cd "$ac_dir" || { ac_status=$?; continue; }
  1697. # Check for guested configure.
  1698. if test -f "$ac_srcdir/configure.gnu"; then
  1699. echo &&
  1700. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1701. elif test -f "$ac_srcdir/configure"; then
  1702. echo &&
  1703. $SHELL "$ac_srcdir/configure" --help=recursive
  1704. else
  1705. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1706. fi || ac_status=$?
  1707. cd "$ac_pwd" || { ac_status=$?; break; }
  1708. done
  1709. fi
  1710. test -n "$ac_init_help" && exit $ac_status
  1711. if $ac_init_version; then
  1712. cat <<\_ACEOF
  1713. configure
  1714. generated by GNU Autoconf 2.69
  1715. Copyright (C) 2012 Free Software Foundation, Inc.
  1716. This configure script is free software; the Free Software Foundation
  1717. gives unlimited permission to copy, distribute and modify it.
  1718. _ACEOF
  1719. exit
  1720. fi
  1721. ## ------------------------ ##
  1722. ## Autoconf initialization. ##
  1723. ## ------------------------ ##
  1724. # ac_fn_c_try_compile LINENO
  1725. # --------------------------
  1726. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1727. ac_fn_c_try_compile ()
  1728. {
  1729. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1730. rm -f conftest.$ac_objext
  1731. if { { ac_try="$ac_compile"
  1732. case "(($ac_try" in
  1733. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1734. *) ac_try_echo=$ac_try;;
  1735. esac
  1736. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1737. $as_echo "$ac_try_echo"; } >&5
  1738. (eval "$ac_compile") 2>conftest.err
  1739. ac_status=$?
  1740. if test -s conftest.err; then
  1741. grep -v '^ *+' conftest.err >conftest.er1
  1742. cat conftest.er1 >&5
  1743. mv -f conftest.er1 conftest.err
  1744. fi
  1745. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1746. test $ac_status = 0; } && {
  1747. test -z "$ac_c_werror_flag" ||
  1748. test ! -s conftest.err
  1749. } && test -s conftest.$ac_objext; then :
  1750. ac_retval=0
  1751. else
  1752. $as_echo "$as_me: failed program was:" >&5
  1753. sed 's/^/| /' conftest.$ac_ext >&5
  1754. ac_retval=1
  1755. fi
  1756. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1757. as_fn_set_status $ac_retval
  1758. } # ac_fn_c_try_compile
  1759. # ac_fn_c_try_link LINENO
  1760. # -----------------------
  1761. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1762. ac_fn_c_try_link ()
  1763. {
  1764. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1765. rm -f conftest.$ac_objext conftest$ac_exeext
  1766. if { { ac_try="$ac_link"
  1767. case "(($ac_try" in
  1768. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1769. *) ac_try_echo=$ac_try;;
  1770. esac
  1771. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1772. $as_echo "$ac_try_echo"; } >&5
  1773. (eval "$ac_link") 2>conftest.err
  1774. ac_status=$?
  1775. if test -s conftest.err; then
  1776. grep -v '^ *+' conftest.err >conftest.er1
  1777. cat conftest.er1 >&5
  1778. mv -f conftest.er1 conftest.err
  1779. fi
  1780. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1781. test $ac_status = 0; } && {
  1782. test -z "$ac_c_werror_flag" ||
  1783. test ! -s conftest.err
  1784. } && test -s conftest$ac_exeext && {
  1785. test "$cross_compiling" = yes ||
  1786. test -x conftest$ac_exeext
  1787. }; then :
  1788. ac_retval=0
  1789. else
  1790. $as_echo "$as_me: failed program was:" >&5
  1791. sed 's/^/| /' conftest.$ac_ext >&5
  1792. ac_retval=1
  1793. fi
  1794. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1795. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1796. # interfere with the next link command; also delete a directory that is
  1797. # left behind by Apple's compiler. We do this before executing the actions.
  1798. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1799. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1800. as_fn_set_status $ac_retval
  1801. } # ac_fn_c_try_link
  1802. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1803. # -------------------------------------------------------
  1804. # Tests whether HEADER exists and can be compiled using the include files in
  1805. # INCLUDES, setting the cache variable VAR accordingly.
  1806. ac_fn_c_check_header_compile ()
  1807. {
  1808. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1810. $as_echo_n "checking for $2... " >&6; }
  1811. if eval \${$3+:} false; then :
  1812. $as_echo_n "(cached) " >&6
  1813. else
  1814. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1815. /* end confdefs.h. */
  1816. $4
  1817. #include <$2>
  1818. _ACEOF
  1819. if ac_fn_c_try_compile "$LINENO"; then :
  1820. eval "$3=yes"
  1821. else
  1822. eval "$3=no"
  1823. fi
  1824. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1825. fi
  1826. eval ac_res=\$$3
  1827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1828. $as_echo "$ac_res" >&6; }
  1829. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1830. } # ac_fn_c_check_header_compile
  1831. # ac_fn_c_try_cpp LINENO
  1832. # ----------------------
  1833. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1834. ac_fn_c_try_cpp ()
  1835. {
  1836. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1837. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1838. case "(($ac_try" in
  1839. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1840. *) ac_try_echo=$ac_try;;
  1841. esac
  1842. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1843. $as_echo "$ac_try_echo"; } >&5
  1844. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1845. ac_status=$?
  1846. if test -s conftest.err; then
  1847. grep -v '^ *+' conftest.err >conftest.er1
  1848. cat conftest.er1 >&5
  1849. mv -f conftest.er1 conftest.err
  1850. fi
  1851. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1852. test $ac_status = 0; } > conftest.i && {
  1853. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1854. test ! -s conftest.err
  1855. }; then :
  1856. ac_retval=0
  1857. else
  1858. $as_echo "$as_me: failed program was:" >&5
  1859. sed 's/^/| /' conftest.$ac_ext >&5
  1860. ac_retval=1
  1861. fi
  1862. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1863. as_fn_set_status $ac_retval
  1864. } # ac_fn_c_try_cpp
  1865. # ac_fn_c_try_run LINENO
  1866. # ----------------------
  1867. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1868. # that executables *can* be run.
  1869. ac_fn_c_try_run ()
  1870. {
  1871. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1872. if { { ac_try="$ac_link"
  1873. case "(($ac_try" in
  1874. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1875. *) ac_try_echo=$ac_try;;
  1876. esac
  1877. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1878. $as_echo "$ac_try_echo"; } >&5
  1879. (eval "$ac_link") 2>&5
  1880. ac_status=$?
  1881. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1882. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1883. { { case "(($ac_try" in
  1884. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1885. *) ac_try_echo=$ac_try;;
  1886. esac
  1887. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1888. $as_echo "$ac_try_echo"; } >&5
  1889. (eval "$ac_try") 2>&5
  1890. ac_status=$?
  1891. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1892. test $ac_status = 0; }; }; then :
  1893. ac_retval=0
  1894. else
  1895. $as_echo "$as_me: program exited with status $ac_status" >&5
  1896. $as_echo "$as_me: failed program was:" >&5
  1897. sed 's/^/| /' conftest.$ac_ext >&5
  1898. ac_retval=$ac_status
  1899. fi
  1900. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1901. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1902. as_fn_set_status $ac_retval
  1903. } # ac_fn_c_try_run
  1904. # ac_fn_c_check_func LINENO FUNC VAR
  1905. # ----------------------------------
  1906. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1907. ac_fn_c_check_func ()
  1908. {
  1909. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1911. $as_echo_n "checking for $2... " >&6; }
  1912. if eval \${$3+:} false; then :
  1913. $as_echo_n "(cached) " >&6
  1914. else
  1915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1916. /* end confdefs.h. */
  1917. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1918. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1919. #define $2 innocuous_$2
  1920. /* System header to define __stub macros and hopefully few prototypes,
  1921. which can conflict with char $2 (); below.
  1922. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1923. <limits.h> exists even on freestanding compilers. */
  1924. #ifdef __STDC__
  1925. # include <limits.h>
  1926. #else
  1927. # include <assert.h>
  1928. #endif
  1929. #undef $2
  1930. /* Override any GCC internal prototype to avoid an error.
  1931. Use char because int might match the return type of a GCC
  1932. builtin and then its argument prototype would still apply. */
  1933. #ifdef __cplusplus
  1934. extern "C"
  1935. #endif
  1936. char $2 ();
  1937. /* The GNU C library defines this for functions which it implements
  1938. to always fail with ENOSYS. Some functions are actually named
  1939. something starting with __ and the normal name is an alias. */
  1940. #if defined __stub_$2 || defined __stub___$2
  1941. choke me
  1942. #endif
  1943. int
  1944. main ()
  1945. {
  1946. return $2 ();
  1947. ;
  1948. return 0;
  1949. }
  1950. _ACEOF
  1951. if ac_fn_c_try_link "$LINENO"; then :
  1952. eval "$3=yes"
  1953. else
  1954. eval "$3=no"
  1955. fi
  1956. rm -f core conftest.err conftest.$ac_objext \
  1957. conftest$ac_exeext conftest.$ac_ext
  1958. fi
  1959. eval ac_res=\$$3
  1960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1961. $as_echo "$ac_res" >&6; }
  1962. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1963. } # ac_fn_c_check_func
  1964. # ac_fn_cxx_try_compile LINENO
  1965. # ----------------------------
  1966. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1967. ac_fn_cxx_try_compile ()
  1968. {
  1969. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1970. rm -f conftest.$ac_objext
  1971. if { { ac_try="$ac_compile"
  1972. case "(($ac_try" in
  1973. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1974. *) ac_try_echo=$ac_try;;
  1975. esac
  1976. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1977. $as_echo "$ac_try_echo"; } >&5
  1978. (eval "$ac_compile") 2>conftest.err
  1979. ac_status=$?
  1980. if test -s conftest.err; then
  1981. grep -v '^ *+' conftest.err >conftest.er1
  1982. cat conftest.er1 >&5
  1983. mv -f conftest.er1 conftest.err
  1984. fi
  1985. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1986. test $ac_status = 0; } && {
  1987. test -z "$ac_cxx_werror_flag" ||
  1988. test ! -s conftest.err
  1989. } && test -s conftest.$ac_objext; then :
  1990. ac_retval=0
  1991. else
  1992. $as_echo "$as_me: failed program was:" >&5
  1993. sed 's/^/| /' conftest.$ac_ext >&5
  1994. ac_retval=1
  1995. fi
  1996. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1997. as_fn_set_status $ac_retval
  1998. } # ac_fn_cxx_try_compile
  1999. # ac_fn_cxx_try_cpp LINENO
  2000. # ------------------------
  2001. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2002. ac_fn_cxx_try_cpp ()
  2003. {
  2004. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2005. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2006. case "(($ac_try" in
  2007. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2008. *) ac_try_echo=$ac_try;;
  2009. esac
  2010. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2011. $as_echo "$ac_try_echo"; } >&5
  2012. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2013. ac_status=$?
  2014. if test -s conftest.err; then
  2015. grep -v '^ *+' conftest.err >conftest.er1
  2016. cat conftest.er1 >&5
  2017. mv -f conftest.er1 conftest.err
  2018. fi
  2019. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2020. test $ac_status = 0; } > conftest.i && {
  2021. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2022. test ! -s conftest.err
  2023. }; then :
  2024. ac_retval=0
  2025. else
  2026. $as_echo "$as_me: failed program was:" >&5
  2027. sed 's/^/| /' conftest.$ac_ext >&5
  2028. ac_retval=1
  2029. fi
  2030. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2031. as_fn_set_status $ac_retval
  2032. } # ac_fn_cxx_try_cpp
  2033. # ac_fn_cxx_try_link LINENO
  2034. # -------------------------
  2035. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2036. ac_fn_cxx_try_link ()
  2037. {
  2038. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2039. rm -f conftest.$ac_objext conftest$ac_exeext
  2040. if { { ac_try="$ac_link"
  2041. case "(($ac_try" in
  2042. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2043. *) ac_try_echo=$ac_try;;
  2044. esac
  2045. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2046. $as_echo "$ac_try_echo"; } >&5
  2047. (eval "$ac_link") 2>conftest.err
  2048. ac_status=$?
  2049. if test -s conftest.err; then
  2050. grep -v '^ *+' conftest.err >conftest.er1
  2051. cat conftest.er1 >&5
  2052. mv -f conftest.er1 conftest.err
  2053. fi
  2054. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2055. test $ac_status = 0; } && {
  2056. test -z "$ac_cxx_werror_flag" ||
  2057. test ! -s conftest.err
  2058. } && test -s conftest$ac_exeext && {
  2059. test "$cross_compiling" = yes ||
  2060. test -x conftest$ac_exeext
  2061. }; then :
  2062. ac_retval=0
  2063. else
  2064. $as_echo "$as_me: failed program was:" >&5
  2065. sed 's/^/| /' conftest.$ac_ext >&5
  2066. ac_retval=1
  2067. fi
  2068. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2069. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2070. # interfere with the next link command; also delete a directory that is
  2071. # left behind by Apple's compiler. We do this before executing the actions.
  2072. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2073. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2074. as_fn_set_status $ac_retval
  2075. } # ac_fn_cxx_try_link
  2076. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2077. # -------------------------------------------------------
  2078. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2079. # the include files in INCLUDES and setting the cache variable VAR
  2080. # accordingly.
  2081. ac_fn_c_check_header_mongrel ()
  2082. {
  2083. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2084. if eval \${$3+:} false; then :
  2085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2086. $as_echo_n "checking for $2... " >&6; }
  2087. if eval \${$3+:} false; then :
  2088. $as_echo_n "(cached) " >&6
  2089. fi
  2090. eval ac_res=\$$3
  2091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2092. $as_echo "$ac_res" >&6; }
  2093. else
  2094. # Is the header compilable?
  2095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2096. $as_echo_n "checking $2 usability... " >&6; }
  2097. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2098. /* end confdefs.h. */
  2099. $4
  2100. #include <$2>
  2101. _ACEOF
  2102. if ac_fn_c_try_compile "$LINENO"; then :
  2103. ac_header_compiler=yes
  2104. else
  2105. ac_header_compiler=no
  2106. fi
  2107. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2109. $as_echo "$ac_header_compiler" >&6; }
  2110. # Is the header present?
  2111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2112. $as_echo_n "checking $2 presence... " >&6; }
  2113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2114. /* end confdefs.h. */
  2115. #include <$2>
  2116. _ACEOF
  2117. if ac_fn_c_try_cpp "$LINENO"; then :
  2118. ac_header_preproc=yes
  2119. else
  2120. ac_header_preproc=no
  2121. fi
  2122. rm -f conftest.err conftest.i conftest.$ac_ext
  2123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2124. $as_echo "$ac_header_preproc" >&6; }
  2125. # So? What about this header?
  2126. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2127. yes:no: )
  2128. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2129. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2130. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2131. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2132. ;;
  2133. no:yes:* )
  2134. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2135. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2136. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2137. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2138. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2139. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2140. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2141. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2142. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2143. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2144. ;;
  2145. esac
  2146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2147. $as_echo_n "checking for $2... " >&6; }
  2148. if eval \${$3+:} false; then :
  2149. $as_echo_n "(cached) " >&6
  2150. else
  2151. eval "$3=\$ac_header_compiler"
  2152. fi
  2153. eval ac_res=\$$3
  2154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2155. $as_echo "$ac_res" >&6; }
  2156. fi
  2157. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2158. } # ac_fn_c_check_header_mongrel
  2159. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2160. # -------------------------------------------
  2161. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2162. # variable VAR accordingly.
  2163. ac_fn_c_check_type ()
  2164. {
  2165. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2167. $as_echo_n "checking for $2... " >&6; }
  2168. if eval \${$3+:} false; then :
  2169. $as_echo_n "(cached) " >&6
  2170. else
  2171. eval "$3=no"
  2172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2173. /* end confdefs.h. */
  2174. $4
  2175. int
  2176. main ()
  2177. {
  2178. if (sizeof ($2))
  2179. return 0;
  2180. ;
  2181. return 0;
  2182. }
  2183. _ACEOF
  2184. if ac_fn_c_try_compile "$LINENO"; then :
  2185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2186. /* end confdefs.h. */
  2187. $4
  2188. int
  2189. main ()
  2190. {
  2191. if (sizeof (($2)))
  2192. return 0;
  2193. ;
  2194. return 0;
  2195. }
  2196. _ACEOF
  2197. if ac_fn_c_try_compile "$LINENO"; then :
  2198. else
  2199. eval "$3=yes"
  2200. fi
  2201. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2202. fi
  2203. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2204. fi
  2205. eval ac_res=\$$3
  2206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2207. $as_echo "$ac_res" >&6; }
  2208. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2209. } # ac_fn_c_check_type
  2210. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2211. # ----------------------------------------------------
  2212. # Tries to find if the field MEMBER exists in type AGGR, after including
  2213. # INCLUDES, setting cache variable VAR accordingly.
  2214. ac_fn_c_check_member ()
  2215. {
  2216. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2218. $as_echo_n "checking for $2.$3... " >&6; }
  2219. if eval \${$4+:} false; then :
  2220. $as_echo_n "(cached) " >&6
  2221. else
  2222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2223. /* end confdefs.h. */
  2224. $5
  2225. int
  2226. main ()
  2227. {
  2228. static $2 ac_aggr;
  2229. if (ac_aggr.$3)
  2230. return 0;
  2231. ;
  2232. return 0;
  2233. }
  2234. _ACEOF
  2235. if ac_fn_c_try_compile "$LINENO"; then :
  2236. eval "$4=yes"
  2237. else
  2238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2239. /* end confdefs.h. */
  2240. $5
  2241. int
  2242. main ()
  2243. {
  2244. static $2 ac_aggr;
  2245. if (sizeof ac_aggr.$3)
  2246. return 0;
  2247. ;
  2248. return 0;
  2249. }
  2250. _ACEOF
  2251. if ac_fn_c_try_compile "$LINENO"; then :
  2252. eval "$4=yes"
  2253. else
  2254. eval "$4=no"
  2255. fi
  2256. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2257. fi
  2258. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2259. fi
  2260. eval ac_res=\$$4
  2261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2262. $as_echo "$ac_res" >&6; }
  2263. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2264. } # ac_fn_c_check_member
  2265. cat >config.log <<_ACEOF
  2266. This file contains any messages produced by compilers while
  2267. running configure, to aid debugging if configure makes a mistake.
  2268. It was created by $as_me, which was
  2269. generated by GNU Autoconf 2.69. Invocation command line was
  2270. $ $0 $@
  2271. _ACEOF
  2272. exec 5>>config.log
  2273. {
  2274. cat <<_ASUNAME
  2275. ## --------- ##
  2276. ## Platform. ##
  2277. ## --------- ##
  2278. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2279. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2280. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2281. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2282. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2283. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2284. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2285. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2286. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2287. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2288. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2289. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2290. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2291. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2292. _ASUNAME
  2293. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2294. for as_dir in $PATH
  2295. do
  2296. IFS=$as_save_IFS
  2297. test -z "$as_dir" && as_dir=.
  2298. $as_echo "PATH: $as_dir"
  2299. done
  2300. IFS=$as_save_IFS
  2301. } >&5
  2302. cat >&5 <<_ACEOF
  2303. ## ----------- ##
  2304. ## Core tests. ##
  2305. ## ----------- ##
  2306. _ACEOF
  2307. # Keep a trace of the command line.
  2308. # Strip out --no-create and --no-recursion so they do not pile up.
  2309. # Strip out --silent because we don't want to record it for future runs.
  2310. # Also quote any args containing shell meta-characters.
  2311. # Make two passes to allow for proper duplicate-argument suppression.
  2312. ac_configure_args=
  2313. ac_configure_args0=
  2314. ac_configure_args1=
  2315. ac_must_keep_next=false
  2316. for ac_pass in 1 2
  2317. do
  2318. for ac_arg
  2319. do
  2320. case $ac_arg in
  2321. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2322. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2323. | -silent | --silent | --silen | --sile | --sil)
  2324. continue ;;
  2325. *\'*)
  2326. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2327. esac
  2328. case $ac_pass in
  2329. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2330. 2)
  2331. as_fn_append ac_configure_args1 " '$ac_arg'"
  2332. if test $ac_must_keep_next = true; then
  2333. ac_must_keep_next=false # Got value, back to normal.
  2334. else
  2335. case $ac_arg in
  2336. *=* | --config-cache | -C | -disable-* | --disable-* \
  2337. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2338. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2339. | -with-* | --with-* | -without-* | --without-* | --x)
  2340. case "$ac_configure_args0 " in
  2341. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2342. esac
  2343. ;;
  2344. -* ) ac_must_keep_next=true ;;
  2345. esac
  2346. fi
  2347. as_fn_append ac_configure_args " '$ac_arg'"
  2348. ;;
  2349. esac
  2350. done
  2351. done
  2352. { ac_configure_args0=; unset ac_configure_args0;}
  2353. { ac_configure_args1=; unset ac_configure_args1;}
  2354. # When interrupted or exit'd, cleanup temporary files, and complete
  2355. # config.log. We remove comments because anyway the quotes in there
  2356. # would cause problems or look ugly.
  2357. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2358. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2359. trap 'exit_status=$?
  2360. # Save into config.log some information that might help in debugging.
  2361. {
  2362. echo
  2363. $as_echo "## ---------------- ##
  2364. ## Cache variables. ##
  2365. ## ---------------- ##"
  2366. echo
  2367. # The following way of writing the cache mishandles newlines in values,
  2368. (
  2369. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2370. eval ac_val=\$$ac_var
  2371. case $ac_val in #(
  2372. *${as_nl}*)
  2373. case $ac_var in #(
  2374. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2375. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2376. esac
  2377. case $ac_var in #(
  2378. _ | IFS | as_nl) ;; #(
  2379. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2380. *) { eval $ac_var=; unset $ac_var;} ;;
  2381. esac ;;
  2382. esac
  2383. done
  2384. (set) 2>&1 |
  2385. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2386. *${as_nl}ac_space=\ *)
  2387. sed -n \
  2388. "s/'\''/'\''\\\\'\'''\''/g;
  2389. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2390. ;; #(
  2391. *)
  2392. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2393. ;;
  2394. esac |
  2395. sort
  2396. )
  2397. echo
  2398. $as_echo "## ----------------- ##
  2399. ## Output variables. ##
  2400. ## ----------------- ##"
  2401. echo
  2402. for ac_var in $ac_subst_vars
  2403. do
  2404. eval ac_val=\$$ac_var
  2405. case $ac_val in
  2406. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2407. esac
  2408. $as_echo "$ac_var='\''$ac_val'\''"
  2409. done | sort
  2410. echo
  2411. if test -n "$ac_subst_files"; then
  2412. $as_echo "## ------------------- ##
  2413. ## File substitutions. ##
  2414. ## ------------------- ##"
  2415. echo
  2416. for ac_var in $ac_subst_files
  2417. do
  2418. eval ac_val=\$$ac_var
  2419. case $ac_val in
  2420. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2421. esac
  2422. $as_echo "$ac_var='\''$ac_val'\''"
  2423. done | sort
  2424. echo
  2425. fi
  2426. if test -s confdefs.h; then
  2427. $as_echo "## ----------- ##
  2428. ## confdefs.h. ##
  2429. ## ----------- ##"
  2430. echo
  2431. cat confdefs.h
  2432. echo
  2433. fi
  2434. test "$ac_signal" != 0 &&
  2435. $as_echo "$as_me: caught signal $ac_signal"
  2436. $as_echo "$as_me: exit $exit_status"
  2437. } >&5
  2438. rm -f core *.core core.conftest.* &&
  2439. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2440. exit $exit_status
  2441. ' 0
  2442. for ac_signal in 1 2 13 15; do
  2443. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2444. done
  2445. ac_signal=0
  2446. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2447. rm -f -r conftest* confdefs.h
  2448. $as_echo "/* confdefs.h */" > confdefs.h
  2449. # Predefined preprocessor variables.
  2450. cat >>confdefs.h <<_ACEOF
  2451. #define PACKAGE_NAME "$PACKAGE_NAME"
  2452. _ACEOF
  2453. cat >>confdefs.h <<_ACEOF
  2454. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2455. _ACEOF
  2456. cat >>confdefs.h <<_ACEOF
  2457. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2458. _ACEOF
  2459. cat >>confdefs.h <<_ACEOF
  2460. #define PACKAGE_STRING "$PACKAGE_STRING"
  2461. _ACEOF
  2462. cat >>confdefs.h <<_ACEOF
  2463. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2464. _ACEOF
  2465. cat >>confdefs.h <<_ACEOF
  2466. #define PACKAGE_URL "$PACKAGE_URL"
  2467. _ACEOF
  2468. # Let the site file select an alternate cache file if it wants to.
  2469. # Prefer an explicitly selected file to automatically selected ones.
  2470. ac_site_file1=NONE
  2471. ac_site_file2=NONE
  2472. if test -n "$CONFIG_SITE"; then
  2473. # We do not want a PATH search for config.site.
  2474. case $CONFIG_SITE in #((
  2475. -*) ac_site_file1=./$CONFIG_SITE;;
  2476. */*) ac_site_file1=$CONFIG_SITE;;
  2477. *) ac_site_file1=./$CONFIG_SITE;;
  2478. esac
  2479. elif test "x$prefix" != xNONE; then
  2480. ac_site_file1=$prefix/share/config.site
  2481. ac_site_file2=$prefix/etc/config.site
  2482. else
  2483. ac_site_file1=$ac_default_prefix/share/config.site
  2484. ac_site_file2=$ac_default_prefix/etc/config.site
  2485. fi
  2486. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2487. do
  2488. test "x$ac_site_file" = xNONE && continue
  2489. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2490. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2491. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2492. sed 's/^/| /' "$ac_site_file" >&5
  2493. . "$ac_site_file" \
  2494. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2495. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2496. as_fn_error $? "failed to load site script $ac_site_file
  2497. See \`config.log' for more details" "$LINENO" 5; }
  2498. fi
  2499. done
  2500. if test -r "$cache_file"; then
  2501. # Some versions of bash will fail to source /dev/null (special files
  2502. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2503. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2504. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2505. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2506. case $cache_file in
  2507. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2508. *) . "./$cache_file";;
  2509. esac
  2510. fi
  2511. else
  2512. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2513. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2514. >$cache_file
  2515. fi
  2516. # Check that the precious variables saved in the cache have kept the same
  2517. # value.
  2518. ac_cache_corrupted=false
  2519. for ac_var in $ac_precious_vars; do
  2520. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2521. eval ac_new_set=\$ac_env_${ac_var}_set
  2522. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2523. eval ac_new_val=\$ac_env_${ac_var}_value
  2524. case $ac_old_set,$ac_new_set in
  2525. set,)
  2526. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2527. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2528. ac_cache_corrupted=: ;;
  2529. ,set)
  2530. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2531. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2532. ac_cache_corrupted=: ;;
  2533. ,);;
  2534. *)
  2535. if test "x$ac_old_val" != "x$ac_new_val"; then
  2536. # differences in whitespace do not lead to failure.
  2537. ac_old_val_w=`echo x $ac_old_val`
  2538. ac_new_val_w=`echo x $ac_new_val`
  2539. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2540. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2541. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2542. ac_cache_corrupted=:
  2543. else
  2544. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2545. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2546. eval $ac_var=\$ac_old_val
  2547. fi
  2548. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2549. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2550. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2551. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2552. fi;;
  2553. esac
  2554. # Pass precious variables to config.status.
  2555. if test "$ac_new_set" = set; then
  2556. case $ac_new_val in
  2557. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2558. *) ac_arg=$ac_var=$ac_new_val ;;
  2559. esac
  2560. case " $ac_configure_args " in
  2561. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2562. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2563. esac
  2564. fi
  2565. done
  2566. if $ac_cache_corrupted; then
  2567. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2568. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2569. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2570. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2571. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2572. fi
  2573. ## -------------------- ##
  2574. ## Main body of script. ##
  2575. ## -------------------- ##
  2576. ac_ext=c
  2577. ac_cpp='$CPP $CPPFLAGS'
  2578. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2579. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2580. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2581. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2582. ac_aux_dir=
  2583. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2584. if 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/install.sh"; then
  2589. ac_aux_dir=$ac_dir
  2590. ac_install_sh="$ac_aux_dir/install.sh -c"
  2591. break
  2592. elif test -f "$ac_dir/shtool"; then
  2593. ac_aux_dir=$ac_dir
  2594. ac_install_sh="$ac_aux_dir/shtool install -c"
  2595. break
  2596. fi
  2597. done
  2598. if test -z "$ac_aux_dir"; then
  2599. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2600. fi
  2601. # These three variables are undocumented and unsupported,
  2602. # and are intended to be withdrawn in a future Autoconf release.
  2603. # They can cause serious problems if a builder's source tree is in a directory
  2604. # whose full name contains unusual characters.
  2605. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2606. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2607. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2608. orig_CFLAGS="$CFLAGS"
  2609. #
  2610. # Making releases:
  2611. # Edit include/SDL_version.h and change the version, then:
  2612. # SDL_MICRO_VERSION += 1;
  2613. # SDL_INTERFACE_AGE += 1;
  2614. # SDL_BINARY_AGE += 1;
  2615. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2616. # if backwards compatibility has been broken,
  2617. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2618. #
  2619. SDL_MAJOR_VERSION=2
  2620. SDL_MINOR_VERSION=0
  2621. SDL_MICRO_VERSION=18
  2622. SDL_INTERFACE_AGE=0
  2623. SDL_BINARY_AGE=18
  2624. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2625. # libtool versioning
  2626. case `pwd` in
  2627. *\ * | *\ *)
  2628. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2629. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2630. esac
  2631. macro_version='2.4.2'
  2632. macro_revision='1.3337'
  2633. ltmain="$ac_aux_dir/ltmain.sh"
  2634. # Make sure we can run config.sub.
  2635. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2636. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2638. $as_echo_n "checking build system type... " >&6; }
  2639. if ${ac_cv_build+:} false; then :
  2640. $as_echo_n "(cached) " >&6
  2641. else
  2642. ac_build_alias=$build_alias
  2643. test "x$ac_build_alias" = x &&
  2644. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2645. test "x$ac_build_alias" = x &&
  2646. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2647. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2648. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2649. fi
  2650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2651. $as_echo "$ac_cv_build" >&6; }
  2652. case $ac_cv_build in
  2653. *-*-*) ;;
  2654. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2655. esac
  2656. build=$ac_cv_build
  2657. ac_save_IFS=$IFS; IFS='-'
  2658. set x $ac_cv_build
  2659. shift
  2660. build_cpu=$1
  2661. build_vendor=$2
  2662. shift; shift
  2663. # Remember, the first character of IFS is used to create $*,
  2664. # except with old shells:
  2665. build_os=$*
  2666. IFS=$ac_save_IFS
  2667. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2669. $as_echo_n "checking host system type... " >&6; }
  2670. if ${ac_cv_host+:} false; then :
  2671. $as_echo_n "(cached) " >&6
  2672. else
  2673. if test "x$host_alias" = x; then
  2674. ac_cv_host=$ac_cv_build
  2675. else
  2676. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2677. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2678. fi
  2679. fi
  2680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2681. $as_echo "$ac_cv_host" >&6; }
  2682. case $ac_cv_host in
  2683. *-*-*) ;;
  2684. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2685. esac
  2686. host=$ac_cv_host
  2687. ac_save_IFS=$IFS; IFS='-'
  2688. set x $ac_cv_host
  2689. shift
  2690. host_cpu=$1
  2691. host_vendor=$2
  2692. shift; shift
  2693. # Remember, the first character of IFS is used to create $*,
  2694. # except with old shells:
  2695. host_os=$*
  2696. IFS=$ac_save_IFS
  2697. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2698. # Backslashify metacharacters that are still active within
  2699. # double-quoted strings.
  2700. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2701. # Same as above, but do not quote variable references.
  2702. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2703. # Sed substitution to delay expansion of an escaped shell variable in a
  2704. # double_quote_subst'ed string.
  2705. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2706. # Sed substitution to delay expansion of an escaped single quote.
  2707. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2708. # Sed substitution to avoid accidental globbing in evaled expressions
  2709. no_glob_subst='s/\*/\\\*/g'
  2710. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2711. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2712. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2714. $as_echo_n "checking how to print strings... " >&6; }
  2715. # Test print first, because it will be a builtin if present.
  2716. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2717. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2718. ECHO='print -r --'
  2719. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2720. ECHO='printf %s\n'
  2721. else
  2722. # Use this function as a fallback that always works.
  2723. func_fallback_echo ()
  2724. {
  2725. eval 'cat <<_LTECHO_EOF
  2726. $1
  2727. _LTECHO_EOF'
  2728. }
  2729. ECHO='func_fallback_echo'
  2730. fi
  2731. # func_echo_all arg...
  2732. # Invoke $ECHO with all args, space-separated.
  2733. func_echo_all ()
  2734. {
  2735. $ECHO ""
  2736. }
  2737. case "$ECHO" in
  2738. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2739. $as_echo "printf" >&6; } ;;
  2740. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2741. $as_echo "print -r" >&6; } ;;
  2742. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2743. $as_echo "cat" >&6; } ;;
  2744. esac
  2745. ac_ext=c
  2746. ac_cpp='$CPP $CPPFLAGS'
  2747. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2748. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2749. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2750. if test -n "$ac_tool_prefix"; then
  2751. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2752. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2754. $as_echo_n "checking for $ac_word... " >&6; }
  2755. if ${ac_cv_prog_CC+:} false; then :
  2756. $as_echo_n "(cached) " >&6
  2757. else
  2758. if test -n "$CC"; then
  2759. ac_cv_prog_CC="$CC" # Let the user override the test.
  2760. else
  2761. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2762. for as_dir in $PATH
  2763. do
  2764. IFS=$as_save_IFS
  2765. test -z "$as_dir" && as_dir=.
  2766. for ac_exec_ext in '' $ac_executable_extensions; do
  2767. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2768. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2769. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2770. break 2
  2771. fi
  2772. done
  2773. done
  2774. IFS=$as_save_IFS
  2775. fi
  2776. fi
  2777. CC=$ac_cv_prog_CC
  2778. if test -n "$CC"; then
  2779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2780. $as_echo "$CC" >&6; }
  2781. else
  2782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2783. $as_echo "no" >&6; }
  2784. fi
  2785. fi
  2786. if test -z "$ac_cv_prog_CC"; then
  2787. ac_ct_CC=$CC
  2788. # Extract the first word of "gcc", so it can be a program name with args.
  2789. set dummy gcc; ac_word=$2
  2790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2791. $as_echo_n "checking for $ac_word... " >&6; }
  2792. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2793. $as_echo_n "(cached) " >&6
  2794. else
  2795. if test -n "$ac_ct_CC"; then
  2796. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2797. else
  2798. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2799. for as_dir in $PATH
  2800. do
  2801. IFS=$as_save_IFS
  2802. test -z "$as_dir" && as_dir=.
  2803. for ac_exec_ext in '' $ac_executable_extensions; do
  2804. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2805. ac_cv_prog_ac_ct_CC="gcc"
  2806. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2807. break 2
  2808. fi
  2809. done
  2810. done
  2811. IFS=$as_save_IFS
  2812. fi
  2813. fi
  2814. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2815. if test -n "$ac_ct_CC"; then
  2816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2817. $as_echo "$ac_ct_CC" >&6; }
  2818. else
  2819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2820. $as_echo "no" >&6; }
  2821. fi
  2822. if test "x$ac_ct_CC" = x; then
  2823. CC=""
  2824. else
  2825. case $cross_compiling:$ac_tool_warned in
  2826. yes:)
  2827. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2828. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2829. ac_tool_warned=yes ;;
  2830. esac
  2831. CC=$ac_ct_CC
  2832. fi
  2833. else
  2834. CC="$ac_cv_prog_CC"
  2835. fi
  2836. if test -z "$CC"; then
  2837. if test -n "$ac_tool_prefix"; then
  2838. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2839. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2841. $as_echo_n "checking for $ac_word... " >&6; }
  2842. if ${ac_cv_prog_CC+:} false; then :
  2843. $as_echo_n "(cached) " >&6
  2844. else
  2845. if test -n "$CC"; then
  2846. ac_cv_prog_CC="$CC" # Let the user override the test.
  2847. else
  2848. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2849. for as_dir in $PATH
  2850. do
  2851. IFS=$as_save_IFS
  2852. test -z "$as_dir" && as_dir=.
  2853. for ac_exec_ext in '' $ac_executable_extensions; do
  2854. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2855. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2856. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2857. break 2
  2858. fi
  2859. done
  2860. done
  2861. IFS=$as_save_IFS
  2862. fi
  2863. fi
  2864. CC=$ac_cv_prog_CC
  2865. if test -n "$CC"; then
  2866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2867. $as_echo "$CC" >&6; }
  2868. else
  2869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2870. $as_echo "no" >&6; }
  2871. fi
  2872. fi
  2873. fi
  2874. if test -z "$CC"; then
  2875. # Extract the first word of "cc", so it can be a program name with args.
  2876. set dummy cc; ac_word=$2
  2877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2878. $as_echo_n "checking for $ac_word... " >&6; }
  2879. if ${ac_cv_prog_CC+:} false; then :
  2880. $as_echo_n "(cached) " >&6
  2881. else
  2882. if test -n "$CC"; then
  2883. ac_cv_prog_CC="$CC" # Let the user override the test.
  2884. else
  2885. ac_prog_rejected=no
  2886. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2887. for as_dir in $PATH
  2888. do
  2889. IFS=$as_save_IFS
  2890. test -z "$as_dir" && as_dir=.
  2891. for ac_exec_ext in '' $ac_executable_extensions; do
  2892. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2893. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2894. ac_prog_rejected=yes
  2895. continue
  2896. fi
  2897. ac_cv_prog_CC="cc"
  2898. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2899. break 2
  2900. fi
  2901. done
  2902. done
  2903. IFS=$as_save_IFS
  2904. if test $ac_prog_rejected = yes; then
  2905. # We found a bogon in the path, so make sure we never use it.
  2906. set dummy $ac_cv_prog_CC
  2907. shift
  2908. if test $# != 0; then
  2909. # We chose a different compiler from the bogus one.
  2910. # However, it has the same basename, so the bogon will be chosen
  2911. # first if we set CC to just the basename; use the full file name.
  2912. shift
  2913. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2914. fi
  2915. fi
  2916. fi
  2917. fi
  2918. CC=$ac_cv_prog_CC
  2919. if test -n "$CC"; then
  2920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2921. $as_echo "$CC" >&6; }
  2922. else
  2923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2924. $as_echo "no" >&6; }
  2925. fi
  2926. fi
  2927. if test -z "$CC"; then
  2928. if test -n "$ac_tool_prefix"; then
  2929. for ac_prog in cl.exe
  2930. do
  2931. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2932. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2934. $as_echo_n "checking for $ac_word... " >&6; }
  2935. if ${ac_cv_prog_CC+:} false; then :
  2936. $as_echo_n "(cached) " >&6
  2937. else
  2938. if test -n "$CC"; then
  2939. ac_cv_prog_CC="$CC" # Let the user override the test.
  2940. else
  2941. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2942. for as_dir in $PATH
  2943. do
  2944. IFS=$as_save_IFS
  2945. test -z "$as_dir" && as_dir=.
  2946. for ac_exec_ext in '' $ac_executable_extensions; do
  2947. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2948. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2949. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2950. break 2
  2951. fi
  2952. done
  2953. done
  2954. IFS=$as_save_IFS
  2955. fi
  2956. fi
  2957. CC=$ac_cv_prog_CC
  2958. if test -n "$CC"; then
  2959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2960. $as_echo "$CC" >&6; }
  2961. else
  2962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2963. $as_echo "no" >&6; }
  2964. fi
  2965. test -n "$CC" && break
  2966. done
  2967. fi
  2968. if test -z "$CC"; then
  2969. ac_ct_CC=$CC
  2970. for ac_prog in cl.exe
  2971. do
  2972. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2973. set dummy $ac_prog; ac_word=$2
  2974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2975. $as_echo_n "checking for $ac_word... " >&6; }
  2976. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2977. $as_echo_n "(cached) " >&6
  2978. else
  2979. if test -n "$ac_ct_CC"; then
  2980. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2981. else
  2982. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2983. for as_dir in $PATH
  2984. do
  2985. IFS=$as_save_IFS
  2986. test -z "$as_dir" && as_dir=.
  2987. for ac_exec_ext in '' $ac_executable_extensions; do
  2988. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2989. ac_cv_prog_ac_ct_CC="$ac_prog"
  2990. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2991. break 2
  2992. fi
  2993. done
  2994. done
  2995. IFS=$as_save_IFS
  2996. fi
  2997. fi
  2998. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2999. if test -n "$ac_ct_CC"; then
  3000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3001. $as_echo "$ac_ct_CC" >&6; }
  3002. else
  3003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3004. $as_echo "no" >&6; }
  3005. fi
  3006. test -n "$ac_ct_CC" && break
  3007. done
  3008. if test "x$ac_ct_CC" = x; then
  3009. CC=""
  3010. else
  3011. case $cross_compiling:$ac_tool_warned in
  3012. yes:)
  3013. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3014. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3015. ac_tool_warned=yes ;;
  3016. esac
  3017. CC=$ac_ct_CC
  3018. fi
  3019. fi
  3020. fi
  3021. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3022. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3023. as_fn_error $? "no acceptable C compiler found in \$PATH
  3024. See \`config.log' for more details" "$LINENO" 5; }
  3025. # Provide some information about the compiler.
  3026. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3027. set X $ac_compile
  3028. ac_compiler=$2
  3029. for ac_option in --version -v -V -qversion; do
  3030. { { ac_try="$ac_compiler $ac_option >&5"
  3031. case "(($ac_try" in
  3032. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3033. *) ac_try_echo=$ac_try;;
  3034. esac
  3035. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3036. $as_echo "$ac_try_echo"; } >&5
  3037. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3038. ac_status=$?
  3039. if test -s conftest.err; then
  3040. sed '10a\
  3041. ... rest of stderr output deleted ...
  3042. 10q' conftest.err >conftest.er1
  3043. cat conftest.er1 >&5
  3044. fi
  3045. rm -f conftest.er1 conftest.err
  3046. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3047. test $ac_status = 0; }
  3048. done
  3049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3050. /* end confdefs.h. */
  3051. int
  3052. main ()
  3053. {
  3054. ;
  3055. return 0;
  3056. }
  3057. _ACEOF
  3058. ac_clean_files_save=$ac_clean_files
  3059. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3060. # Try to create an executable without -o first, disregard a.out.
  3061. # It will help us diagnose broken compilers, and finding out an intuition
  3062. # of exeext.
  3063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3064. $as_echo_n "checking whether the C compiler works... " >&6; }
  3065. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3066. # The possible output files:
  3067. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3068. ac_rmfiles=
  3069. for ac_file in $ac_files
  3070. do
  3071. case $ac_file in
  3072. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3073. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3074. esac
  3075. done
  3076. rm -f $ac_rmfiles
  3077. if { { ac_try="$ac_link_default"
  3078. case "(($ac_try" in
  3079. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3080. *) ac_try_echo=$ac_try;;
  3081. esac
  3082. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3083. $as_echo "$ac_try_echo"; } >&5
  3084. (eval "$ac_link_default") 2>&5
  3085. ac_status=$?
  3086. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3087. test $ac_status = 0; }; then :
  3088. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3089. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3090. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3091. # so that the user can short-circuit this test for compilers unknown to
  3092. # Autoconf.
  3093. for ac_file in $ac_files ''
  3094. do
  3095. test -f "$ac_file" || continue
  3096. case $ac_file in
  3097. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3098. ;;
  3099. [ab].out )
  3100. # We found the default executable, but exeext='' is most
  3101. # certainly right.
  3102. break;;
  3103. *.* )
  3104. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3105. then :; else
  3106. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3107. fi
  3108. # We set ac_cv_exeext here because the later test for it is not
  3109. # safe: cross compilers may not add the suffix if given an `-o'
  3110. # argument, so we may need to know it at that point already.
  3111. # Even if this section looks crufty: it has the advantage of
  3112. # actually working.
  3113. break;;
  3114. * )
  3115. break;;
  3116. esac
  3117. done
  3118. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3119. else
  3120. ac_file=''
  3121. fi
  3122. if test -z "$ac_file"; then :
  3123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3124. $as_echo "no" >&6; }
  3125. $as_echo "$as_me: failed program was:" >&5
  3126. sed 's/^/| /' conftest.$ac_ext >&5
  3127. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3128. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3129. as_fn_error 77 "C compiler cannot create executables
  3130. See \`config.log' for more details" "$LINENO" 5; }
  3131. else
  3132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3133. $as_echo "yes" >&6; }
  3134. fi
  3135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3136. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3138. $as_echo "$ac_file" >&6; }
  3139. ac_exeext=$ac_cv_exeext
  3140. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3141. ac_clean_files=$ac_clean_files_save
  3142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3143. $as_echo_n "checking for suffix of executables... " >&6; }
  3144. if { { ac_try="$ac_link"
  3145. case "(($ac_try" in
  3146. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3147. *) ac_try_echo=$ac_try;;
  3148. esac
  3149. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3150. $as_echo "$ac_try_echo"; } >&5
  3151. (eval "$ac_link") 2>&5
  3152. ac_status=$?
  3153. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3154. test $ac_status = 0; }; then :
  3155. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3156. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3157. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3158. # `rm'.
  3159. for ac_file in conftest.exe conftest conftest.*; do
  3160. test -f "$ac_file" || continue
  3161. case $ac_file in
  3162. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3163. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3164. break;;
  3165. * ) break;;
  3166. esac
  3167. done
  3168. else
  3169. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3170. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3171. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3172. See \`config.log' for more details" "$LINENO" 5; }
  3173. fi
  3174. rm -f conftest conftest$ac_cv_exeext
  3175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3176. $as_echo "$ac_cv_exeext" >&6; }
  3177. rm -f conftest.$ac_ext
  3178. EXEEXT=$ac_cv_exeext
  3179. ac_exeext=$EXEEXT
  3180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3181. /* end confdefs.h. */
  3182. #include <stdio.h>
  3183. int
  3184. main ()
  3185. {
  3186. FILE *f = fopen ("conftest.out", "w");
  3187. return ferror (f) || fclose (f) != 0;
  3188. ;
  3189. return 0;
  3190. }
  3191. _ACEOF
  3192. ac_clean_files="$ac_clean_files conftest.out"
  3193. # Check that the compiler produces executables we can run. If not, either
  3194. # the compiler is broken, or we cross compile.
  3195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3196. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3197. if test "$cross_compiling" != yes; then
  3198. { { ac_try="$ac_link"
  3199. case "(($ac_try" in
  3200. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3201. *) ac_try_echo=$ac_try;;
  3202. esac
  3203. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3204. $as_echo "$ac_try_echo"; } >&5
  3205. (eval "$ac_link") 2>&5
  3206. ac_status=$?
  3207. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3208. test $ac_status = 0; }
  3209. if { ac_try='./conftest$ac_cv_exeext'
  3210. { { case "(($ac_try" in
  3211. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3212. *) ac_try_echo=$ac_try;;
  3213. esac
  3214. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3215. $as_echo "$ac_try_echo"; } >&5
  3216. (eval "$ac_try") 2>&5
  3217. ac_status=$?
  3218. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3219. test $ac_status = 0; }; }; then
  3220. cross_compiling=no
  3221. else
  3222. if test "$cross_compiling" = maybe; then
  3223. cross_compiling=yes
  3224. else
  3225. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3226. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3227. as_fn_error $? "cannot run C compiled programs.
  3228. If you meant to cross compile, use \`--host'.
  3229. See \`config.log' for more details" "$LINENO" 5; }
  3230. fi
  3231. fi
  3232. fi
  3233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3234. $as_echo "$cross_compiling" >&6; }
  3235. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3236. ac_clean_files=$ac_clean_files_save
  3237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3238. $as_echo_n "checking for suffix of object files... " >&6; }
  3239. if ${ac_cv_objext+:} false; then :
  3240. $as_echo_n "(cached) " >&6
  3241. else
  3242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3243. /* end confdefs.h. */
  3244. int
  3245. main ()
  3246. {
  3247. ;
  3248. return 0;
  3249. }
  3250. _ACEOF
  3251. rm -f conftest.o conftest.obj
  3252. if { { ac_try="$ac_compile"
  3253. case "(($ac_try" in
  3254. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3255. *) ac_try_echo=$ac_try;;
  3256. esac
  3257. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3258. $as_echo "$ac_try_echo"; } >&5
  3259. (eval "$ac_compile") 2>&5
  3260. ac_status=$?
  3261. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3262. test $ac_status = 0; }; then :
  3263. for ac_file in conftest.o conftest.obj conftest.*; do
  3264. test -f "$ac_file" || continue;
  3265. case $ac_file in
  3266. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3267. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3268. break;;
  3269. esac
  3270. done
  3271. else
  3272. $as_echo "$as_me: failed program was:" >&5
  3273. sed 's/^/| /' conftest.$ac_ext >&5
  3274. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3275. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3276. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3277. See \`config.log' for more details" "$LINENO" 5; }
  3278. fi
  3279. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3280. fi
  3281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3282. $as_echo "$ac_cv_objext" >&6; }
  3283. OBJEXT=$ac_cv_objext
  3284. ac_objext=$OBJEXT
  3285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3286. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3287. if ${ac_cv_c_compiler_gnu+:} false; then :
  3288. $as_echo_n "(cached) " >&6
  3289. else
  3290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3291. /* end confdefs.h. */
  3292. int
  3293. main ()
  3294. {
  3295. #ifndef __GNUC__
  3296. choke me
  3297. #endif
  3298. ;
  3299. return 0;
  3300. }
  3301. _ACEOF
  3302. if ac_fn_c_try_compile "$LINENO"; then :
  3303. ac_compiler_gnu=yes
  3304. else
  3305. ac_compiler_gnu=no
  3306. fi
  3307. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3308. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3309. fi
  3310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3311. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3312. if test $ac_compiler_gnu = yes; then
  3313. GCC=yes
  3314. else
  3315. GCC=
  3316. fi
  3317. ac_test_CFLAGS=${CFLAGS+set}
  3318. ac_save_CFLAGS=$CFLAGS
  3319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3320. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3321. if ${ac_cv_prog_cc_g+:} false; then :
  3322. $as_echo_n "(cached) " >&6
  3323. else
  3324. ac_save_c_werror_flag=$ac_c_werror_flag
  3325. ac_c_werror_flag=yes
  3326. ac_cv_prog_cc_g=no
  3327. CFLAGS="-g"
  3328. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3329. /* end confdefs.h. */
  3330. int
  3331. main ()
  3332. {
  3333. ;
  3334. return 0;
  3335. }
  3336. _ACEOF
  3337. if ac_fn_c_try_compile "$LINENO"; then :
  3338. ac_cv_prog_cc_g=yes
  3339. else
  3340. CFLAGS=""
  3341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3342. /* end confdefs.h. */
  3343. int
  3344. main ()
  3345. {
  3346. ;
  3347. return 0;
  3348. }
  3349. _ACEOF
  3350. if ac_fn_c_try_compile "$LINENO"; then :
  3351. else
  3352. ac_c_werror_flag=$ac_save_c_werror_flag
  3353. CFLAGS="-g"
  3354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3355. /* end confdefs.h. */
  3356. int
  3357. main ()
  3358. {
  3359. ;
  3360. return 0;
  3361. }
  3362. _ACEOF
  3363. if ac_fn_c_try_compile "$LINENO"; then :
  3364. ac_cv_prog_cc_g=yes
  3365. fi
  3366. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3367. fi
  3368. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3369. fi
  3370. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3371. ac_c_werror_flag=$ac_save_c_werror_flag
  3372. fi
  3373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3374. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3375. if test "$ac_test_CFLAGS" = set; then
  3376. CFLAGS=$ac_save_CFLAGS
  3377. elif test $ac_cv_prog_cc_g = yes; then
  3378. if test "$GCC" = yes; then
  3379. CFLAGS="-g -O2"
  3380. else
  3381. CFLAGS="-g"
  3382. fi
  3383. else
  3384. if test "$GCC" = yes; then
  3385. CFLAGS="-O2"
  3386. else
  3387. CFLAGS=
  3388. fi
  3389. fi
  3390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3391. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3392. if ${ac_cv_prog_cc_c89+:} false; then :
  3393. $as_echo_n "(cached) " >&6
  3394. else
  3395. ac_cv_prog_cc_c89=no
  3396. ac_save_CC=$CC
  3397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3398. /* end confdefs.h. */
  3399. #include <stdarg.h>
  3400. #include <stdio.h>
  3401. struct stat;
  3402. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3403. struct buf { int x; };
  3404. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3405. static char *e (p, i)
  3406. char **p;
  3407. int i;
  3408. {
  3409. return p[i];
  3410. }
  3411. static char *f (char * (*g) (char **, int), char **p, ...)
  3412. {
  3413. char *s;
  3414. va_list v;
  3415. va_start (v,p);
  3416. s = g (p, va_arg (v,int));
  3417. va_end (v);
  3418. return s;
  3419. }
  3420. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3421. function prototypes and stuff, but not '\xHH' hex character constants.
  3422. These don't provoke an error unfortunately, instead are silently treated
  3423. as 'x'. The following induces an error, until -std is added to get
  3424. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3425. array size at least. It's necessary to write '\x00'==0 to get something
  3426. that's true only with -std. */
  3427. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3428. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3429. inside strings and character constants. */
  3430. #define FOO(x) 'x'
  3431. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3432. int test (int i, double x);
  3433. struct s1 {int (*f) (int a);};
  3434. struct s2 {int (*f) (double a);};
  3435. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3436. int argc;
  3437. char **argv;
  3438. int
  3439. main ()
  3440. {
  3441. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3442. ;
  3443. return 0;
  3444. }
  3445. _ACEOF
  3446. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3447. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3448. do
  3449. CC="$ac_save_CC $ac_arg"
  3450. if ac_fn_c_try_compile "$LINENO"; then :
  3451. ac_cv_prog_cc_c89=$ac_arg
  3452. fi
  3453. rm -f core conftest.err conftest.$ac_objext
  3454. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3455. done
  3456. rm -f conftest.$ac_ext
  3457. CC=$ac_save_CC
  3458. fi
  3459. # AC_CACHE_VAL
  3460. case "x$ac_cv_prog_cc_c89" in
  3461. x)
  3462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3463. $as_echo "none needed" >&6; } ;;
  3464. xno)
  3465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3466. $as_echo "unsupported" >&6; } ;;
  3467. *)
  3468. CC="$CC $ac_cv_prog_cc_c89"
  3469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3470. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3471. esac
  3472. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3473. fi
  3474. ac_ext=c
  3475. ac_cpp='$CPP $CPPFLAGS'
  3476. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3477. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3478. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3480. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3481. if ${ac_cv_path_SED+:} false; then :
  3482. $as_echo_n "(cached) " >&6
  3483. else
  3484. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3485. for ac_i in 1 2 3 4 5 6 7; do
  3486. ac_script="$ac_script$as_nl$ac_script"
  3487. done
  3488. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3489. { ac_script=; unset ac_script;}
  3490. if test -z "$SED"; then
  3491. ac_path_SED_found=false
  3492. # Loop through the user's path and test for each of PROGNAME-LIST
  3493. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3494. for as_dir in $PATH
  3495. do
  3496. IFS=$as_save_IFS
  3497. test -z "$as_dir" && as_dir=.
  3498. for ac_prog in sed gsed; do
  3499. for ac_exec_ext in '' $ac_executable_extensions; do
  3500. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3501. as_fn_executable_p "$ac_path_SED" || continue
  3502. # Check for GNU ac_path_SED and select it if it is found.
  3503. # Check for GNU $ac_path_SED
  3504. case `"$ac_path_SED" --version 2>&1` in
  3505. *GNU*)
  3506. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3507. *)
  3508. ac_count=0
  3509. $as_echo_n 0123456789 >"conftest.in"
  3510. while :
  3511. do
  3512. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3513. mv "conftest.tmp" "conftest.in"
  3514. cp "conftest.in" "conftest.nl"
  3515. $as_echo '' >> "conftest.nl"
  3516. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3517. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3518. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3519. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3520. # Best one so far, save it but keep looking for a better one
  3521. ac_cv_path_SED="$ac_path_SED"
  3522. ac_path_SED_max=$ac_count
  3523. fi
  3524. # 10*(2^10) chars as input seems more than enough
  3525. test $ac_count -gt 10 && break
  3526. done
  3527. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3528. esac
  3529. $ac_path_SED_found && break 3
  3530. done
  3531. done
  3532. done
  3533. IFS=$as_save_IFS
  3534. if test -z "$ac_cv_path_SED"; then
  3535. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3536. fi
  3537. else
  3538. ac_cv_path_SED=$SED
  3539. fi
  3540. fi
  3541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3542. $as_echo "$ac_cv_path_SED" >&6; }
  3543. SED="$ac_cv_path_SED"
  3544. rm -f conftest.sed
  3545. test -z "$SED" && SED=sed
  3546. Xsed="$SED -e 1s/^X//"
  3547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3548. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3549. if ${ac_cv_path_GREP+:} false; then :
  3550. $as_echo_n "(cached) " >&6
  3551. else
  3552. if test -z "$GREP"; then
  3553. ac_path_GREP_found=false
  3554. # Loop through the user's path and test for each of PROGNAME-LIST
  3555. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3556. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3557. do
  3558. IFS=$as_save_IFS
  3559. test -z "$as_dir" && as_dir=.
  3560. for ac_prog in grep ggrep; do
  3561. for ac_exec_ext in '' $ac_executable_extensions; do
  3562. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3563. as_fn_executable_p "$ac_path_GREP" || continue
  3564. # Check for GNU ac_path_GREP and select it if it is found.
  3565. # Check for GNU $ac_path_GREP
  3566. case `"$ac_path_GREP" --version 2>&1` in
  3567. *GNU*)
  3568. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3569. *)
  3570. ac_count=0
  3571. $as_echo_n 0123456789 >"conftest.in"
  3572. while :
  3573. do
  3574. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3575. mv "conftest.tmp" "conftest.in"
  3576. cp "conftest.in" "conftest.nl"
  3577. $as_echo 'GREP' >> "conftest.nl"
  3578. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3579. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3580. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3581. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3582. # Best one so far, save it but keep looking for a better one
  3583. ac_cv_path_GREP="$ac_path_GREP"
  3584. ac_path_GREP_max=$ac_count
  3585. fi
  3586. # 10*(2^10) chars as input seems more than enough
  3587. test $ac_count -gt 10 && break
  3588. done
  3589. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3590. esac
  3591. $ac_path_GREP_found && break 3
  3592. done
  3593. done
  3594. done
  3595. IFS=$as_save_IFS
  3596. if test -z "$ac_cv_path_GREP"; then
  3597. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3598. fi
  3599. else
  3600. ac_cv_path_GREP=$GREP
  3601. fi
  3602. fi
  3603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3604. $as_echo "$ac_cv_path_GREP" >&6; }
  3605. GREP="$ac_cv_path_GREP"
  3606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3607. $as_echo_n "checking for egrep... " >&6; }
  3608. if ${ac_cv_path_EGREP+:} false; then :
  3609. $as_echo_n "(cached) " >&6
  3610. else
  3611. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3612. then ac_cv_path_EGREP="$GREP -E"
  3613. else
  3614. if test -z "$EGREP"; then
  3615. ac_path_EGREP_found=false
  3616. # Loop through the user's path and test for each of PROGNAME-LIST
  3617. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3618. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3619. do
  3620. IFS=$as_save_IFS
  3621. test -z "$as_dir" && as_dir=.
  3622. for ac_prog in egrep; do
  3623. for ac_exec_ext in '' $ac_executable_extensions; do
  3624. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3625. as_fn_executable_p "$ac_path_EGREP" || continue
  3626. # Check for GNU ac_path_EGREP and select it if it is found.
  3627. # Check for GNU $ac_path_EGREP
  3628. case `"$ac_path_EGREP" --version 2>&1` in
  3629. *GNU*)
  3630. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3631. *)
  3632. ac_count=0
  3633. $as_echo_n 0123456789 >"conftest.in"
  3634. while :
  3635. do
  3636. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3637. mv "conftest.tmp" "conftest.in"
  3638. cp "conftest.in" "conftest.nl"
  3639. $as_echo 'EGREP' >> "conftest.nl"
  3640. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3641. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3642. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3643. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3644. # Best one so far, save it but keep looking for a better one
  3645. ac_cv_path_EGREP="$ac_path_EGREP"
  3646. ac_path_EGREP_max=$ac_count
  3647. fi
  3648. # 10*(2^10) chars as input seems more than enough
  3649. test $ac_count -gt 10 && break
  3650. done
  3651. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3652. esac
  3653. $ac_path_EGREP_found && break 3
  3654. done
  3655. done
  3656. done
  3657. IFS=$as_save_IFS
  3658. if test -z "$ac_cv_path_EGREP"; then
  3659. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3660. fi
  3661. else
  3662. ac_cv_path_EGREP=$EGREP
  3663. fi
  3664. fi
  3665. fi
  3666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3667. $as_echo "$ac_cv_path_EGREP" >&6; }
  3668. EGREP="$ac_cv_path_EGREP"
  3669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3670. $as_echo_n "checking for fgrep... " >&6; }
  3671. if ${ac_cv_path_FGREP+:} false; then :
  3672. $as_echo_n "(cached) " >&6
  3673. else
  3674. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3675. then ac_cv_path_FGREP="$GREP -F"
  3676. else
  3677. if test -z "$FGREP"; then
  3678. ac_path_FGREP_found=false
  3679. # Loop through the user's path and test for each of PROGNAME-LIST
  3680. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3681. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3682. do
  3683. IFS=$as_save_IFS
  3684. test -z "$as_dir" && as_dir=.
  3685. for ac_prog in fgrep; do
  3686. for ac_exec_ext in '' $ac_executable_extensions; do
  3687. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3688. as_fn_executable_p "$ac_path_FGREP" || continue
  3689. # Check for GNU ac_path_FGREP and select it if it is found.
  3690. # Check for GNU $ac_path_FGREP
  3691. case `"$ac_path_FGREP" --version 2>&1` in
  3692. *GNU*)
  3693. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3694. *)
  3695. ac_count=0
  3696. $as_echo_n 0123456789 >"conftest.in"
  3697. while :
  3698. do
  3699. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3700. mv "conftest.tmp" "conftest.in"
  3701. cp "conftest.in" "conftest.nl"
  3702. $as_echo 'FGREP' >> "conftest.nl"
  3703. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3704. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3705. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3706. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3707. # Best one so far, save it but keep looking for a better one
  3708. ac_cv_path_FGREP="$ac_path_FGREP"
  3709. ac_path_FGREP_max=$ac_count
  3710. fi
  3711. # 10*(2^10) chars as input seems more than enough
  3712. test $ac_count -gt 10 && break
  3713. done
  3714. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3715. esac
  3716. $ac_path_FGREP_found && break 3
  3717. done
  3718. done
  3719. done
  3720. IFS=$as_save_IFS
  3721. if test -z "$ac_cv_path_FGREP"; then
  3722. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3723. fi
  3724. else
  3725. ac_cv_path_FGREP=$FGREP
  3726. fi
  3727. fi
  3728. fi
  3729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3730. $as_echo "$ac_cv_path_FGREP" >&6; }
  3731. FGREP="$ac_cv_path_FGREP"
  3732. test -z "$GREP" && GREP=grep
  3733. # Check whether --with-gnu-ld was given.
  3734. if test "${with_gnu_ld+set}" = set; then :
  3735. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3736. else
  3737. with_gnu_ld=no
  3738. fi
  3739. ac_prog=ld
  3740. if test "$GCC" = yes; then
  3741. # Check if gcc -print-prog-name=ld gives a path.
  3742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3743. $as_echo_n "checking for ld used by $CC... " >&6; }
  3744. case $host in
  3745. *-*-mingw*)
  3746. # gcc leaves a trailing carriage return which upsets mingw
  3747. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3748. *)
  3749. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3750. esac
  3751. case $ac_prog in
  3752. # Accept absolute paths.
  3753. [\\/]* | ?:[\\/]*)
  3754. re_direlt='/[^/][^/]*/\.\./'
  3755. # Canonicalize the pathname of ld
  3756. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3757. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3758. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3759. done
  3760. test -z "$LD" && LD="$ac_prog"
  3761. ;;
  3762. "")
  3763. # If it fails, then pretend we aren't using GCC.
  3764. ac_prog=ld
  3765. ;;
  3766. *)
  3767. # If it is relative, then search for the first ld in PATH.
  3768. with_gnu_ld=unknown
  3769. ;;
  3770. esac
  3771. elif test "$with_gnu_ld" = yes; then
  3772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3773. $as_echo_n "checking for GNU ld... " >&6; }
  3774. else
  3775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3776. $as_echo_n "checking for non-GNU ld... " >&6; }
  3777. fi
  3778. if ${lt_cv_path_LD+:} false; then :
  3779. $as_echo_n "(cached) " >&6
  3780. else
  3781. if test -z "$LD"; then
  3782. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3783. for ac_dir in $PATH; do
  3784. IFS="$lt_save_ifs"
  3785. test -z "$ac_dir" && ac_dir=.
  3786. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3787. lt_cv_path_LD="$ac_dir/$ac_prog"
  3788. # Check to see if the program is GNU ld. I'd rather use --version,
  3789. # but apparently some variants of GNU ld only accept -v.
  3790. # Break only if it was the GNU/non-GNU ld that we prefer.
  3791. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3792. *GNU* | *'with BFD'*)
  3793. test "$with_gnu_ld" != no && break
  3794. ;;
  3795. *)
  3796. test "$with_gnu_ld" != yes && break
  3797. ;;
  3798. esac
  3799. fi
  3800. done
  3801. IFS="$lt_save_ifs"
  3802. else
  3803. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3804. fi
  3805. fi
  3806. LD="$lt_cv_path_LD"
  3807. if test -n "$LD"; then
  3808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3809. $as_echo "$LD" >&6; }
  3810. else
  3811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3812. $as_echo "no" >&6; }
  3813. fi
  3814. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3816. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3817. if ${lt_cv_prog_gnu_ld+:} false; then :
  3818. $as_echo_n "(cached) " >&6
  3819. else
  3820. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3821. case `$LD -v 2>&1 </dev/null` in
  3822. *GNU* | *'with BFD'*)
  3823. lt_cv_prog_gnu_ld=yes
  3824. ;;
  3825. *)
  3826. lt_cv_prog_gnu_ld=no
  3827. ;;
  3828. esac
  3829. fi
  3830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3831. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3832. with_gnu_ld=$lt_cv_prog_gnu_ld
  3833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3834. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3835. if ${lt_cv_path_NM+:} false; then :
  3836. $as_echo_n "(cached) " >&6
  3837. else
  3838. if test -n "$NM"; then
  3839. # Let the user override the test.
  3840. lt_cv_path_NM="$NM"
  3841. else
  3842. lt_nm_to_check="${ac_tool_prefix}nm"
  3843. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3844. lt_nm_to_check="$lt_nm_to_check nm"
  3845. fi
  3846. for lt_tmp_nm in $lt_nm_to_check; do
  3847. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3848. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3849. IFS="$lt_save_ifs"
  3850. test -z "$ac_dir" && ac_dir=.
  3851. tmp_nm="$ac_dir/$lt_tmp_nm"
  3852. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3853. # Check to see if the nm accepts a BSD-compat flag.
  3854. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3855. # nm: unknown option "B" ignored
  3856. # Tru64's nm complains that /dev/null is an invalid object file
  3857. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3858. */dev/null* | *'Invalid file or object type'*)
  3859. lt_cv_path_NM="$tmp_nm -B"
  3860. break
  3861. ;;
  3862. *)
  3863. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3864. */dev/null*)
  3865. lt_cv_path_NM="$tmp_nm -p"
  3866. break
  3867. ;;
  3868. *)
  3869. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3870. continue # so that we can try to find one that supports BSD flags
  3871. ;;
  3872. esac
  3873. ;;
  3874. esac
  3875. fi
  3876. done
  3877. IFS="$lt_save_ifs"
  3878. done
  3879. : ${lt_cv_path_NM=no}
  3880. fi
  3881. fi
  3882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3883. $as_echo "$lt_cv_path_NM" >&6; }
  3884. if test "$lt_cv_path_NM" != "no"; then
  3885. NM="$lt_cv_path_NM"
  3886. else
  3887. # Didn't find any BSD compatible name lister, look for dumpbin.
  3888. if test -n "$DUMPBIN"; then :
  3889. # Let the user override the test.
  3890. else
  3891. if test -n "$ac_tool_prefix"; then
  3892. for ac_prog in dumpbin "link -dump"
  3893. do
  3894. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3895. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3897. $as_echo_n "checking for $ac_word... " >&6; }
  3898. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3899. $as_echo_n "(cached) " >&6
  3900. else
  3901. if test -n "$DUMPBIN"; then
  3902. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3903. else
  3904. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3905. for as_dir in $PATH
  3906. do
  3907. IFS=$as_save_IFS
  3908. test -z "$as_dir" && as_dir=.
  3909. for ac_exec_ext in '' $ac_executable_extensions; do
  3910. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3911. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3912. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3913. break 2
  3914. fi
  3915. done
  3916. done
  3917. IFS=$as_save_IFS
  3918. fi
  3919. fi
  3920. DUMPBIN=$ac_cv_prog_DUMPBIN
  3921. if test -n "$DUMPBIN"; then
  3922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3923. $as_echo "$DUMPBIN" >&6; }
  3924. else
  3925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3926. $as_echo "no" >&6; }
  3927. fi
  3928. test -n "$DUMPBIN" && break
  3929. done
  3930. fi
  3931. if test -z "$DUMPBIN"; then
  3932. ac_ct_DUMPBIN=$DUMPBIN
  3933. for ac_prog in dumpbin "link -dump"
  3934. do
  3935. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3936. set dummy $ac_prog; ac_word=$2
  3937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3938. $as_echo_n "checking for $ac_word... " >&6; }
  3939. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3940. $as_echo_n "(cached) " >&6
  3941. else
  3942. if test -n "$ac_ct_DUMPBIN"; then
  3943. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3944. else
  3945. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3946. for as_dir in $PATH
  3947. do
  3948. IFS=$as_save_IFS
  3949. test -z "$as_dir" && as_dir=.
  3950. for ac_exec_ext in '' $ac_executable_extensions; do
  3951. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3952. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3953. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3954. break 2
  3955. fi
  3956. done
  3957. done
  3958. IFS=$as_save_IFS
  3959. fi
  3960. fi
  3961. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3962. if test -n "$ac_ct_DUMPBIN"; then
  3963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3964. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3965. else
  3966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3967. $as_echo "no" >&6; }
  3968. fi
  3969. test -n "$ac_ct_DUMPBIN" && break
  3970. done
  3971. if test "x$ac_ct_DUMPBIN" = x; then
  3972. DUMPBIN=":"
  3973. else
  3974. case $cross_compiling:$ac_tool_warned in
  3975. yes:)
  3976. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3977. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3978. ac_tool_warned=yes ;;
  3979. esac
  3980. DUMPBIN=$ac_ct_DUMPBIN
  3981. fi
  3982. fi
  3983. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3984. *COFF*)
  3985. DUMPBIN="$DUMPBIN -symbols"
  3986. ;;
  3987. *)
  3988. DUMPBIN=:
  3989. ;;
  3990. esac
  3991. fi
  3992. if test "$DUMPBIN" != ":"; then
  3993. NM="$DUMPBIN"
  3994. fi
  3995. fi
  3996. test -z "$NM" && NM=nm
  3997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3998. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3999. if ${lt_cv_nm_interface+:} false; then :
  4000. $as_echo_n "(cached) " >&6
  4001. else
  4002. lt_cv_nm_interface="BSD nm"
  4003. echo "int some_variable = 0;" > conftest.$ac_ext
  4004. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4005. (eval "$ac_compile" 2>conftest.err)
  4006. cat conftest.err >&5
  4007. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4008. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4009. cat conftest.err >&5
  4010. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4011. cat conftest.out >&5
  4012. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4013. lt_cv_nm_interface="MS dumpbin"
  4014. fi
  4015. rm -f conftest*
  4016. fi
  4017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4018. $as_echo "$lt_cv_nm_interface" >&6; }
  4019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4020. $as_echo_n "checking whether ln -s works... " >&6; }
  4021. LN_S=$as_ln_s
  4022. if test "$LN_S" = "ln -s"; then
  4023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4024. $as_echo "yes" >&6; }
  4025. else
  4026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4027. $as_echo "no, using $LN_S" >&6; }
  4028. fi
  4029. # find the maximum length of command line arguments
  4030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4031. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4032. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4033. $as_echo_n "(cached) " >&6
  4034. else
  4035. i=0
  4036. teststring="ABCD"
  4037. case $build_os in
  4038. msdosdjgpp*)
  4039. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4040. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4041. # during glob expansion). Even if it were fixed, the result of this
  4042. # check would be larger than it should be.
  4043. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4044. ;;
  4045. gnu*)
  4046. # Under GNU Hurd, this test is not required because there is
  4047. # no limit to the length of command line arguments.
  4048. # Libtool will interpret -1 as no limit whatsoever
  4049. lt_cv_sys_max_cmd_len=-1;
  4050. ;;
  4051. cygwin* | mingw* | cegcc*)
  4052. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4053. # about 5 minutes as the teststring grows exponentially.
  4054. # Worse, since 9x/ME are not pre-emptively multitasking,
  4055. # you end up with a "frozen" computer, even though with patience
  4056. # the test eventually succeeds (with a max line length of 256k).
  4057. # Instead, let's just punt: use the minimum linelength reported by
  4058. # all of the supported platforms: 8192 (on NT/2K/XP).
  4059. lt_cv_sys_max_cmd_len=8192;
  4060. ;;
  4061. mint*)
  4062. # On MiNT this can take a long time and run out of memory.
  4063. lt_cv_sys_max_cmd_len=8192;
  4064. ;;
  4065. amigaos*)
  4066. # On AmigaOS with pdksh, this test takes hours, literally.
  4067. # So we just punt and use a minimum line length of 8192.
  4068. lt_cv_sys_max_cmd_len=8192;
  4069. ;;
  4070. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4071. # This has been around since 386BSD, at least. Likely further.
  4072. if test -x /sbin/sysctl; then
  4073. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4074. elif test -x /usr/sbin/sysctl; then
  4075. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4076. else
  4077. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4078. fi
  4079. # And add a safety zone
  4080. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4081. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4082. ;;
  4083. interix*)
  4084. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4085. lt_cv_sys_max_cmd_len=196608
  4086. ;;
  4087. os2*)
  4088. # The test takes a long time on OS/2.
  4089. lt_cv_sys_max_cmd_len=8192
  4090. ;;
  4091. osf*)
  4092. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4093. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4094. # nice to cause kernel panics so lets avoid the loop below.
  4095. # First set a reasonable default.
  4096. lt_cv_sys_max_cmd_len=16384
  4097. #
  4098. if test -x /sbin/sysconfig; then
  4099. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4100. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4101. esac
  4102. fi
  4103. ;;
  4104. sco3.2v5*)
  4105. lt_cv_sys_max_cmd_len=102400
  4106. ;;
  4107. sysv5* | sco5v6* | sysv4.2uw2*)
  4108. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4109. if test -n "$kargmax"; then
  4110. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4111. else
  4112. lt_cv_sys_max_cmd_len=32768
  4113. fi
  4114. ;;
  4115. *)
  4116. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4117. if test -n "$lt_cv_sys_max_cmd_len"; then
  4118. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4119. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4120. else
  4121. # Make teststring a little bigger before we do anything with it.
  4122. # a 1K string should be a reasonable start.
  4123. for i in 1 2 3 4 5 6 7 8 ; do
  4124. teststring=$teststring$teststring
  4125. done
  4126. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4127. # If test is not a shell built-in, we'll probably end up computing a
  4128. # maximum length that is only half of the actual maximum length, but
  4129. # we can't tell.
  4130. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4131. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4132. test $i != 17 # 1/2 MB should be enough
  4133. do
  4134. i=`expr $i + 1`
  4135. teststring=$teststring$teststring
  4136. done
  4137. # Only check the string length outside the loop.
  4138. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4139. teststring=
  4140. # Add a significant safety factor because C++ compilers can tack on
  4141. # massive amounts of additional arguments before passing them to the
  4142. # linker. It appears as though 1/2 is a usable value.
  4143. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4144. fi
  4145. ;;
  4146. esac
  4147. fi
  4148. if test -n $lt_cv_sys_max_cmd_len ; then
  4149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4150. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4151. else
  4152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4153. $as_echo "none" >&6; }
  4154. fi
  4155. max_cmd_len=$lt_cv_sys_max_cmd_len
  4156. : ${CP="cp -f"}
  4157. : ${MV="mv -f"}
  4158. : ${RM="rm -f"}
  4159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4160. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4161. # Try some XSI features
  4162. xsi_shell=no
  4163. ( _lt_dummy="a/b/c"
  4164. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4165. = c,a/b,b/c, \
  4166. && eval 'test $(( 1 + 1 )) -eq 2 \
  4167. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4168. && xsi_shell=yes
  4169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4170. $as_echo "$xsi_shell" >&6; }
  4171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4172. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4173. lt_shell_append=no
  4174. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4175. >/dev/null 2>&1 \
  4176. && lt_shell_append=yes
  4177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4178. $as_echo "$lt_shell_append" >&6; }
  4179. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4180. lt_unset=unset
  4181. else
  4182. lt_unset=false
  4183. fi
  4184. # test EBCDIC or ASCII
  4185. case `echo X|tr X '\101'` in
  4186. A) # ASCII based system
  4187. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4188. lt_SP2NL='tr \040 \012'
  4189. lt_NL2SP='tr \015\012 \040\040'
  4190. ;;
  4191. *) # EBCDIC based system
  4192. lt_SP2NL='tr \100 \n'
  4193. lt_NL2SP='tr \r\n \100\100'
  4194. ;;
  4195. esac
  4196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4197. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4198. if ${lt_cv_to_host_file_cmd+:} false; then :
  4199. $as_echo_n "(cached) " >&6
  4200. else
  4201. case $host in
  4202. *-*-mingw* )
  4203. case $build in
  4204. *-*-mingw* ) # actually msys
  4205. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4206. ;;
  4207. *-*-cygwin* )
  4208. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4209. ;;
  4210. * ) # otherwise, assume *nix
  4211. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4212. ;;
  4213. esac
  4214. ;;
  4215. *-*-cygwin* )
  4216. case $build in
  4217. *-*-mingw* ) # actually msys
  4218. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4219. ;;
  4220. *-*-cygwin* )
  4221. lt_cv_to_host_file_cmd=func_convert_file_noop
  4222. ;;
  4223. * ) # otherwise, assume *nix
  4224. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4225. ;;
  4226. esac
  4227. ;;
  4228. * ) # unhandled hosts (and "normal" native builds)
  4229. lt_cv_to_host_file_cmd=func_convert_file_noop
  4230. ;;
  4231. esac
  4232. fi
  4233. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4235. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4237. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4238. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4239. $as_echo_n "(cached) " >&6
  4240. else
  4241. #assume ordinary cross tools, or native build.
  4242. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4243. case $host in
  4244. *-*-mingw* )
  4245. case $build in
  4246. *-*-mingw* ) # actually msys
  4247. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4248. ;;
  4249. esac
  4250. ;;
  4251. esac
  4252. fi
  4253. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4255. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4257. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4258. if ${lt_cv_ld_reload_flag+:} false; then :
  4259. $as_echo_n "(cached) " >&6
  4260. else
  4261. lt_cv_ld_reload_flag='-r'
  4262. fi
  4263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4264. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4265. reload_flag=$lt_cv_ld_reload_flag
  4266. case $reload_flag in
  4267. "" | " "*) ;;
  4268. *) reload_flag=" $reload_flag" ;;
  4269. esac
  4270. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4271. case $host_os in
  4272. cygwin* | mingw* | pw32* | cegcc*)
  4273. if test "$GCC" != yes; then
  4274. reload_cmds=false
  4275. fi
  4276. ;;
  4277. darwin*)
  4278. if test "$GCC" = yes; then
  4279. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4280. else
  4281. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4282. fi
  4283. ;;
  4284. esac
  4285. if test -n "$ac_tool_prefix"; then
  4286. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4287. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4289. $as_echo_n "checking for $ac_word... " >&6; }
  4290. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4291. $as_echo_n "(cached) " >&6
  4292. else
  4293. if test -n "$OBJDUMP"; then
  4294. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4295. else
  4296. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4297. for as_dir in $PATH
  4298. do
  4299. IFS=$as_save_IFS
  4300. test -z "$as_dir" && as_dir=.
  4301. for ac_exec_ext in '' $ac_executable_extensions; do
  4302. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4303. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4304. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4305. break 2
  4306. fi
  4307. done
  4308. done
  4309. IFS=$as_save_IFS
  4310. fi
  4311. fi
  4312. OBJDUMP=$ac_cv_prog_OBJDUMP
  4313. if test -n "$OBJDUMP"; then
  4314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4315. $as_echo "$OBJDUMP" >&6; }
  4316. else
  4317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4318. $as_echo "no" >&6; }
  4319. fi
  4320. fi
  4321. if test -z "$ac_cv_prog_OBJDUMP"; then
  4322. ac_ct_OBJDUMP=$OBJDUMP
  4323. # Extract the first word of "objdump", so it can be a program name with args.
  4324. set dummy objdump; ac_word=$2
  4325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4326. $as_echo_n "checking for $ac_word... " >&6; }
  4327. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4328. $as_echo_n "(cached) " >&6
  4329. else
  4330. if test -n "$ac_ct_OBJDUMP"; then
  4331. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4332. else
  4333. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4334. for as_dir in $PATH
  4335. do
  4336. IFS=$as_save_IFS
  4337. test -z "$as_dir" && as_dir=.
  4338. for ac_exec_ext in '' $ac_executable_extensions; do
  4339. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4340. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4341. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4342. break 2
  4343. fi
  4344. done
  4345. done
  4346. IFS=$as_save_IFS
  4347. fi
  4348. fi
  4349. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4350. if test -n "$ac_ct_OBJDUMP"; then
  4351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4352. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4353. else
  4354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4355. $as_echo "no" >&6; }
  4356. fi
  4357. if test "x$ac_ct_OBJDUMP" = x; then
  4358. OBJDUMP="false"
  4359. else
  4360. case $cross_compiling:$ac_tool_warned in
  4361. yes:)
  4362. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4363. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4364. ac_tool_warned=yes ;;
  4365. esac
  4366. OBJDUMP=$ac_ct_OBJDUMP
  4367. fi
  4368. else
  4369. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4370. fi
  4371. test -z "$OBJDUMP" && OBJDUMP=objdump
  4372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4373. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4374. if ${lt_cv_deplibs_check_method+:} false; then :
  4375. $as_echo_n "(cached) " >&6
  4376. else
  4377. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4378. lt_cv_file_magic_test_file=
  4379. lt_cv_deplibs_check_method='unknown'
  4380. # Need to set the preceding variable on all platforms that support
  4381. # interlibrary dependencies.
  4382. # 'none' -- dependencies not supported.
  4383. # `unknown' -- same as none, but documents that we really don't know.
  4384. # 'pass_all' -- all dependencies passed with no checks.
  4385. # 'test_compile' -- check by making test program.
  4386. # 'file_magic [[regex]]' -- check by looking for files in library path
  4387. # which responds to the $file_magic_cmd with a given extended regex.
  4388. # If you have `file' or equivalent on your system and you're not sure
  4389. # whether `pass_all' will *always* work, you probably want this one.
  4390. case $host_os in
  4391. aix[4-9]*)
  4392. lt_cv_deplibs_check_method=pass_all
  4393. ;;
  4394. beos*)
  4395. lt_cv_deplibs_check_method=pass_all
  4396. ;;
  4397. bsdi[45]*)
  4398. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4399. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4400. lt_cv_file_magic_test_file=/shlib/libc.so
  4401. ;;
  4402. cygwin*)
  4403. # func_win32_libid is a shell function defined in ltmain.sh
  4404. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4405. lt_cv_file_magic_cmd='func_win32_libid'
  4406. lt_cv_deplibs_check_method=pass_all
  4407. ;;
  4408. mingw* | pw32*)
  4409. # Base MSYS/MinGW do not provide the 'file' command needed by
  4410. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4411. # unless we find 'file', for example because we are cross-compiling.
  4412. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4413. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4414. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4415. lt_cv_file_magic_cmd='func_win32_libid'
  4416. else
  4417. # Keep this pattern in sync with the one in func_win32_libid.
  4418. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4419. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4420. fi
  4421. lt_cv_deplibs_check_method=pass_all
  4422. ;;
  4423. cegcc*)
  4424. # use the weaker test based on 'objdump'. See mingw*.
  4425. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4426. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4427. ;;
  4428. darwin* | rhapsody*)
  4429. lt_cv_deplibs_check_method=pass_all
  4430. ;;
  4431. freebsd* | dragonfly*)
  4432. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4433. case $host_cpu in
  4434. i*86 )
  4435. # Not sure whether the presence of OpenBSD here was a mistake.
  4436. # Let's accept both of them until this is cleared up.
  4437. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4438. lt_cv_file_magic_cmd=/usr/bin/file
  4439. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4440. ;;
  4441. esac
  4442. else
  4443. lt_cv_deplibs_check_method=pass_all
  4444. fi
  4445. ;;
  4446. gnu*)
  4447. lt_cv_deplibs_check_method=pass_all
  4448. ;;
  4449. haiku*)
  4450. lt_cv_deplibs_check_method=pass_all
  4451. ;;
  4452. hpux10.20* | hpux11*)
  4453. lt_cv_file_magic_cmd=/usr/bin/file
  4454. case $host_cpu in
  4455. ia64*)
  4456. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4457. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4458. ;;
  4459. hppa*64*)
  4460. 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]'
  4461. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4462. ;;
  4463. *)
  4464. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4465. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4466. ;;
  4467. esac
  4468. ;;
  4469. interix[3-9]*)
  4470. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4471. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4472. ;;
  4473. irix5* | irix6* | nonstopux*)
  4474. case $LD in
  4475. *-32|*"-32 ") libmagic=32-bit;;
  4476. *-n32|*"-n32 ") libmagic=N32;;
  4477. *-64|*"-64 ") libmagic=64-bit;;
  4478. *) libmagic=never-match;;
  4479. esac
  4480. lt_cv_deplibs_check_method=pass_all
  4481. ;;
  4482. # This must be glibc/ELF.
  4483. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4484. lt_cv_deplibs_check_method=pass_all
  4485. ;;
  4486. netbsd*)
  4487. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4488. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4489. else
  4490. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4491. fi
  4492. ;;
  4493. newos6*)
  4494. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4495. lt_cv_file_magic_cmd=/usr/bin/file
  4496. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4497. ;;
  4498. *nto* | *qnx*)
  4499. lt_cv_deplibs_check_method=pass_all
  4500. ;;
  4501. openbsd*)
  4502. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4503. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4504. else
  4505. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4506. fi
  4507. ;;
  4508. osf3* | osf4* | osf5*)
  4509. lt_cv_deplibs_check_method=pass_all
  4510. ;;
  4511. rdos*)
  4512. lt_cv_deplibs_check_method=pass_all
  4513. ;;
  4514. solaris*)
  4515. lt_cv_deplibs_check_method=pass_all
  4516. ;;
  4517. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4518. lt_cv_deplibs_check_method=pass_all
  4519. ;;
  4520. sysv4 | sysv4.3*)
  4521. case $host_vendor in
  4522. motorola)
  4523. 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]'
  4524. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4525. ;;
  4526. ncr)
  4527. lt_cv_deplibs_check_method=pass_all
  4528. ;;
  4529. sequent)
  4530. lt_cv_file_magic_cmd='/bin/file'
  4531. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4532. ;;
  4533. sni)
  4534. lt_cv_file_magic_cmd='/bin/file'
  4535. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4536. lt_cv_file_magic_test_file=/lib/libc.so
  4537. ;;
  4538. siemens)
  4539. lt_cv_deplibs_check_method=pass_all
  4540. ;;
  4541. pc)
  4542. lt_cv_deplibs_check_method=pass_all
  4543. ;;
  4544. esac
  4545. ;;
  4546. tpf*)
  4547. lt_cv_deplibs_check_method=pass_all
  4548. ;;
  4549. esac
  4550. fi
  4551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4552. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4553. file_magic_glob=
  4554. want_nocaseglob=no
  4555. if test "$build" = "$host"; then
  4556. case $host_os in
  4557. mingw* | pw32*)
  4558. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4559. want_nocaseglob=yes
  4560. else
  4561. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4562. fi
  4563. ;;
  4564. esac
  4565. fi
  4566. file_magic_cmd=$lt_cv_file_magic_cmd
  4567. deplibs_check_method=$lt_cv_deplibs_check_method
  4568. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4569. if test -n "$ac_tool_prefix"; then
  4570. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4571. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4573. $as_echo_n "checking for $ac_word... " >&6; }
  4574. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4575. $as_echo_n "(cached) " >&6
  4576. else
  4577. if test -n "$DLLTOOL"; then
  4578. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4579. else
  4580. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4581. for as_dir in $PATH
  4582. do
  4583. IFS=$as_save_IFS
  4584. test -z "$as_dir" && as_dir=.
  4585. for ac_exec_ext in '' $ac_executable_extensions; do
  4586. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4587. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4588. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4589. break 2
  4590. fi
  4591. done
  4592. done
  4593. IFS=$as_save_IFS
  4594. fi
  4595. fi
  4596. DLLTOOL=$ac_cv_prog_DLLTOOL
  4597. if test -n "$DLLTOOL"; then
  4598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4599. $as_echo "$DLLTOOL" >&6; }
  4600. else
  4601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4602. $as_echo "no" >&6; }
  4603. fi
  4604. fi
  4605. if test -z "$ac_cv_prog_DLLTOOL"; then
  4606. ac_ct_DLLTOOL=$DLLTOOL
  4607. # Extract the first word of "dlltool", so it can be a program name with args.
  4608. set dummy dlltool; ac_word=$2
  4609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4610. $as_echo_n "checking for $ac_word... " >&6; }
  4611. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4612. $as_echo_n "(cached) " >&6
  4613. else
  4614. if test -n "$ac_ct_DLLTOOL"; then
  4615. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4616. else
  4617. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4618. for as_dir in $PATH
  4619. do
  4620. IFS=$as_save_IFS
  4621. test -z "$as_dir" && as_dir=.
  4622. for ac_exec_ext in '' $ac_executable_extensions; do
  4623. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4624. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4625. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4626. break 2
  4627. fi
  4628. done
  4629. done
  4630. IFS=$as_save_IFS
  4631. fi
  4632. fi
  4633. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4634. if test -n "$ac_ct_DLLTOOL"; then
  4635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4636. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4637. else
  4638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4639. $as_echo "no" >&6; }
  4640. fi
  4641. if test "x$ac_ct_DLLTOOL" = x; then
  4642. DLLTOOL="false"
  4643. else
  4644. case $cross_compiling:$ac_tool_warned in
  4645. yes:)
  4646. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4647. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4648. ac_tool_warned=yes ;;
  4649. esac
  4650. DLLTOOL=$ac_ct_DLLTOOL
  4651. fi
  4652. else
  4653. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4654. fi
  4655. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4657. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4658. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4659. $as_echo_n "(cached) " >&6
  4660. else
  4661. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4662. case $host_os in
  4663. cygwin* | mingw* | pw32* | cegcc*)
  4664. # two different shell functions defined in ltmain.sh
  4665. # decide which to use based on capabilities of $DLLTOOL
  4666. case `$DLLTOOL --help 2>&1` in
  4667. *--identify-strict*)
  4668. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4669. ;;
  4670. *)
  4671. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4672. ;;
  4673. esac
  4674. ;;
  4675. *)
  4676. # fallback: assume linklib IS sharedlib
  4677. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4678. ;;
  4679. esac
  4680. fi
  4681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4682. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4683. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4684. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4685. if test -n "$ac_tool_prefix"; then
  4686. for ac_prog in ar
  4687. do
  4688. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4689. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4691. $as_echo_n "checking for $ac_word... " >&6; }
  4692. if ${ac_cv_prog_AR+:} false; then :
  4693. $as_echo_n "(cached) " >&6
  4694. else
  4695. if test -n "$AR"; then
  4696. ac_cv_prog_AR="$AR" # Let the user override the test.
  4697. else
  4698. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4699. for as_dir in $PATH
  4700. do
  4701. IFS=$as_save_IFS
  4702. test -z "$as_dir" && as_dir=.
  4703. for ac_exec_ext in '' $ac_executable_extensions; do
  4704. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4705. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4706. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4707. break 2
  4708. fi
  4709. done
  4710. done
  4711. IFS=$as_save_IFS
  4712. fi
  4713. fi
  4714. AR=$ac_cv_prog_AR
  4715. if test -n "$AR"; then
  4716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4717. $as_echo "$AR" >&6; }
  4718. else
  4719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4720. $as_echo "no" >&6; }
  4721. fi
  4722. test -n "$AR" && break
  4723. done
  4724. fi
  4725. if test -z "$AR"; then
  4726. ac_ct_AR=$AR
  4727. for ac_prog in ar
  4728. do
  4729. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4730. set dummy $ac_prog; ac_word=$2
  4731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4732. $as_echo_n "checking for $ac_word... " >&6; }
  4733. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4734. $as_echo_n "(cached) " >&6
  4735. else
  4736. if test -n "$ac_ct_AR"; then
  4737. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4738. else
  4739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4740. for as_dir in $PATH
  4741. do
  4742. IFS=$as_save_IFS
  4743. test -z "$as_dir" && as_dir=.
  4744. for ac_exec_ext in '' $ac_executable_extensions; do
  4745. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4746. ac_cv_prog_ac_ct_AR="$ac_prog"
  4747. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4748. break 2
  4749. fi
  4750. done
  4751. done
  4752. IFS=$as_save_IFS
  4753. fi
  4754. fi
  4755. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4756. if test -n "$ac_ct_AR"; then
  4757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4758. $as_echo "$ac_ct_AR" >&6; }
  4759. else
  4760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4761. $as_echo "no" >&6; }
  4762. fi
  4763. test -n "$ac_ct_AR" && break
  4764. done
  4765. if test "x$ac_ct_AR" = x; then
  4766. AR="false"
  4767. else
  4768. case $cross_compiling:$ac_tool_warned in
  4769. yes:)
  4770. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4771. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4772. ac_tool_warned=yes ;;
  4773. esac
  4774. AR=$ac_ct_AR
  4775. fi
  4776. fi
  4777. : ${AR=ar}
  4778. : ${AR_FLAGS=cru}
  4779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4780. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4781. if ${lt_cv_ar_at_file+:} false; then :
  4782. $as_echo_n "(cached) " >&6
  4783. else
  4784. lt_cv_ar_at_file=no
  4785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4786. /* end confdefs.h. */
  4787. int
  4788. main ()
  4789. {
  4790. ;
  4791. return 0;
  4792. }
  4793. _ACEOF
  4794. if ac_fn_c_try_compile "$LINENO"; then :
  4795. echo conftest.$ac_objext > conftest.lst
  4796. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4797. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4798. (eval $lt_ar_try) 2>&5
  4799. ac_status=$?
  4800. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4801. test $ac_status = 0; }
  4802. if test "$ac_status" -eq 0; then
  4803. # Ensure the archiver fails upon bogus file names.
  4804. rm -f conftest.$ac_objext libconftest.a
  4805. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4806. (eval $lt_ar_try) 2>&5
  4807. ac_status=$?
  4808. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4809. test $ac_status = 0; }
  4810. if test "$ac_status" -ne 0; then
  4811. lt_cv_ar_at_file=@
  4812. fi
  4813. fi
  4814. rm -f conftest.* libconftest.a
  4815. fi
  4816. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4817. fi
  4818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4819. $as_echo "$lt_cv_ar_at_file" >&6; }
  4820. if test "x$lt_cv_ar_at_file" = xno; then
  4821. archiver_list_spec=
  4822. else
  4823. archiver_list_spec=$lt_cv_ar_at_file
  4824. fi
  4825. if test -n "$ac_tool_prefix"; then
  4826. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4827. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4829. $as_echo_n "checking for $ac_word... " >&6; }
  4830. if ${ac_cv_prog_STRIP+:} false; then :
  4831. $as_echo_n "(cached) " >&6
  4832. else
  4833. if test -n "$STRIP"; then
  4834. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4835. else
  4836. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4837. for as_dir in $PATH
  4838. do
  4839. IFS=$as_save_IFS
  4840. test -z "$as_dir" && as_dir=.
  4841. for ac_exec_ext in '' $ac_executable_extensions; do
  4842. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4843. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4844. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4845. break 2
  4846. fi
  4847. done
  4848. done
  4849. IFS=$as_save_IFS
  4850. fi
  4851. fi
  4852. STRIP=$ac_cv_prog_STRIP
  4853. if test -n "$STRIP"; then
  4854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4855. $as_echo "$STRIP" >&6; }
  4856. else
  4857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4858. $as_echo "no" >&6; }
  4859. fi
  4860. fi
  4861. if test -z "$ac_cv_prog_STRIP"; then
  4862. ac_ct_STRIP=$STRIP
  4863. # Extract the first word of "strip", so it can be a program name with args.
  4864. set dummy strip; ac_word=$2
  4865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4866. $as_echo_n "checking for $ac_word... " >&6; }
  4867. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4868. $as_echo_n "(cached) " >&6
  4869. else
  4870. if test -n "$ac_ct_STRIP"; then
  4871. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4872. else
  4873. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4874. for as_dir in $PATH
  4875. do
  4876. IFS=$as_save_IFS
  4877. test -z "$as_dir" && as_dir=.
  4878. for ac_exec_ext in '' $ac_executable_extensions; do
  4879. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4880. ac_cv_prog_ac_ct_STRIP="strip"
  4881. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4882. break 2
  4883. fi
  4884. done
  4885. done
  4886. IFS=$as_save_IFS
  4887. fi
  4888. fi
  4889. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4890. if test -n "$ac_ct_STRIP"; then
  4891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4892. $as_echo "$ac_ct_STRIP" >&6; }
  4893. else
  4894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4895. $as_echo "no" >&6; }
  4896. fi
  4897. if test "x$ac_ct_STRIP" = x; then
  4898. STRIP=":"
  4899. else
  4900. case $cross_compiling:$ac_tool_warned in
  4901. yes:)
  4902. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4903. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4904. ac_tool_warned=yes ;;
  4905. esac
  4906. STRIP=$ac_ct_STRIP
  4907. fi
  4908. else
  4909. STRIP="$ac_cv_prog_STRIP"
  4910. fi
  4911. test -z "$STRIP" && STRIP=:
  4912. if test -n "$ac_tool_prefix"; then
  4913. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4914. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4916. $as_echo_n "checking for $ac_word... " >&6; }
  4917. if ${ac_cv_prog_RANLIB+:} false; then :
  4918. $as_echo_n "(cached) " >&6
  4919. else
  4920. if test -n "$RANLIB"; then
  4921. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4922. else
  4923. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4924. for as_dir in $PATH
  4925. do
  4926. IFS=$as_save_IFS
  4927. test -z "$as_dir" && as_dir=.
  4928. for ac_exec_ext in '' $ac_executable_extensions; do
  4929. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4930. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4931. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4932. break 2
  4933. fi
  4934. done
  4935. done
  4936. IFS=$as_save_IFS
  4937. fi
  4938. fi
  4939. RANLIB=$ac_cv_prog_RANLIB
  4940. if test -n "$RANLIB"; then
  4941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4942. $as_echo "$RANLIB" >&6; }
  4943. else
  4944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4945. $as_echo "no" >&6; }
  4946. fi
  4947. fi
  4948. if test -z "$ac_cv_prog_RANLIB"; then
  4949. ac_ct_RANLIB=$RANLIB
  4950. # Extract the first word of "ranlib", so it can be a program name with args.
  4951. set dummy ranlib; ac_word=$2
  4952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4953. $as_echo_n "checking for $ac_word... " >&6; }
  4954. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4955. $as_echo_n "(cached) " >&6
  4956. else
  4957. if test -n "$ac_ct_RANLIB"; then
  4958. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4959. else
  4960. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4961. for as_dir in $PATH
  4962. do
  4963. IFS=$as_save_IFS
  4964. test -z "$as_dir" && as_dir=.
  4965. for ac_exec_ext in '' $ac_executable_extensions; do
  4966. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4967. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4968. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4969. break 2
  4970. fi
  4971. done
  4972. done
  4973. IFS=$as_save_IFS
  4974. fi
  4975. fi
  4976. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4977. if test -n "$ac_ct_RANLIB"; then
  4978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4979. $as_echo "$ac_ct_RANLIB" >&6; }
  4980. else
  4981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4982. $as_echo "no" >&6; }
  4983. fi
  4984. if test "x$ac_ct_RANLIB" = x; then
  4985. RANLIB=":"
  4986. else
  4987. case $cross_compiling:$ac_tool_warned in
  4988. yes:)
  4989. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4990. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4991. ac_tool_warned=yes ;;
  4992. esac
  4993. RANLIB=$ac_ct_RANLIB
  4994. fi
  4995. else
  4996. RANLIB="$ac_cv_prog_RANLIB"
  4997. fi
  4998. test -z "$RANLIB" && RANLIB=:
  4999. # Determine commands to create old-style static archives.
  5000. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5001. old_postinstall_cmds='chmod 644 $oldlib'
  5002. old_postuninstall_cmds=
  5003. if test -n "$RANLIB"; then
  5004. case $host_os in
  5005. openbsd*)
  5006. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5007. ;;
  5008. *)
  5009. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5010. ;;
  5011. esac
  5012. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5013. fi
  5014. case $host_os in
  5015. darwin*)
  5016. lock_old_archive_extraction=yes ;;
  5017. *)
  5018. lock_old_archive_extraction=no ;;
  5019. esac
  5020. for ac_prog in gawk mawk nawk awk
  5021. do
  5022. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5023. set dummy $ac_prog; ac_word=$2
  5024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5025. $as_echo_n "checking for $ac_word... " >&6; }
  5026. if ${ac_cv_prog_AWK+:} false; then :
  5027. $as_echo_n "(cached) " >&6
  5028. else
  5029. if test -n "$AWK"; then
  5030. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5031. else
  5032. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5033. for as_dir in $PATH
  5034. do
  5035. IFS=$as_save_IFS
  5036. test -z "$as_dir" && as_dir=.
  5037. for ac_exec_ext in '' $ac_executable_extensions; do
  5038. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5039. ac_cv_prog_AWK="$ac_prog"
  5040. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5041. break 2
  5042. fi
  5043. done
  5044. done
  5045. IFS=$as_save_IFS
  5046. fi
  5047. fi
  5048. AWK=$ac_cv_prog_AWK
  5049. if test -n "$AWK"; then
  5050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5051. $as_echo "$AWK" >&6; }
  5052. else
  5053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5054. $as_echo "no" >&6; }
  5055. fi
  5056. test -n "$AWK" && break
  5057. done
  5058. # If no C compiler was specified, use CC.
  5059. LTCC=${LTCC-"$CC"}
  5060. # If no C compiler flags were specified, use CFLAGS.
  5061. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5062. # Allow CC to be a program name with arguments.
  5063. compiler=$CC
  5064. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5066. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5067. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5068. $as_echo_n "(cached) " >&6
  5069. else
  5070. # These are sane defaults that work on at least a few old systems.
  5071. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5072. # Character class describing NM global symbol codes.
  5073. symcode='[BCDEGRST]'
  5074. # Regexp to match symbols that can be accessed directly from C.
  5075. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5076. # Define system-specific variables.
  5077. case $host_os in
  5078. aix*)
  5079. symcode='[BCDT]'
  5080. ;;
  5081. cygwin* | mingw* | pw32* | cegcc*)
  5082. symcode='[ABCDGISTW]'
  5083. ;;
  5084. hpux*)
  5085. if test "$host_cpu" = ia64; then
  5086. symcode='[ABCDEGRST]'
  5087. fi
  5088. ;;
  5089. irix* | nonstopux*)
  5090. symcode='[BCDEGRST]'
  5091. ;;
  5092. osf*)
  5093. symcode='[BCDEGQRST]'
  5094. ;;
  5095. solaris*)
  5096. symcode='[BDRT]'
  5097. ;;
  5098. sco3.2v5*)
  5099. symcode='[DT]'
  5100. ;;
  5101. sysv4.2uw2*)
  5102. symcode='[DT]'
  5103. ;;
  5104. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5105. symcode='[ABDT]'
  5106. ;;
  5107. sysv4)
  5108. symcode='[DFNSTU]'
  5109. ;;
  5110. esac
  5111. # If we're using GNU nm, then use its standard symbol codes.
  5112. case `$NM -V 2>&1` in
  5113. *GNU* | *'with BFD'*)
  5114. symcode='[ABCDGIRSTW]' ;;
  5115. esac
  5116. # Transform an extracted symbol line into a proper C declaration.
  5117. # Some systems (esp. on ia64) link data and code symbols differently,
  5118. # so use this general approach.
  5119. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5120. # Transform an extracted symbol line into symbol name and symbol address
  5121. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5122. 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'"
  5123. # Handle CRLF in mingw tool chain
  5124. opt_cr=
  5125. case $build_os in
  5126. mingw*)
  5127. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5128. ;;
  5129. esac
  5130. # Try without a prefix underscore, then with it.
  5131. for ac_symprfx in "" "_"; do
  5132. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5133. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5134. # Write the raw and C identifiers.
  5135. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5136. # Fake it for dumpbin and say T for any non-static function
  5137. # and D for any global variable.
  5138. # Also find C++ and __fastcall symbols from MSVC++,
  5139. # which start with @ or ?.
  5140. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5141. " {last_section=section; section=\$ 3};"\
  5142. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5143. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5144. " \$ 0!~/External *\|/{next};"\
  5145. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5146. " {if(hide[section]) next};"\
  5147. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5148. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5149. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5150. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5151. " ' prfx=^$ac_symprfx"
  5152. else
  5153. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5154. fi
  5155. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5156. # Check to see that the pipe works correctly.
  5157. pipe_works=no
  5158. rm -f conftest*
  5159. cat > conftest.$ac_ext <<_LT_EOF
  5160. #ifdef __cplusplus
  5161. extern "C" {
  5162. #endif
  5163. char nm_test_var;
  5164. void nm_test_func(void);
  5165. void nm_test_func(void){}
  5166. #ifdef __cplusplus
  5167. }
  5168. #endif
  5169. int main(){nm_test_var='a';nm_test_func();return(0);}
  5170. _LT_EOF
  5171. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5172. (eval $ac_compile) 2>&5
  5173. ac_status=$?
  5174. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5175. test $ac_status = 0; }; then
  5176. # Now try to grab the symbols.
  5177. nlist=conftest.nm
  5178. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5179. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5180. ac_status=$?
  5181. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5182. test $ac_status = 0; } && test -s "$nlist"; then
  5183. # Try sorting and uniquifying the output.
  5184. if sort "$nlist" | uniq > "$nlist"T; then
  5185. mv -f "$nlist"T "$nlist"
  5186. else
  5187. rm -f "$nlist"T
  5188. fi
  5189. # Make sure that we snagged all the symbols we need.
  5190. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5191. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5192. cat <<_LT_EOF > conftest.$ac_ext
  5193. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5194. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5195. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5196. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5197. # define LT_DLSYM_CONST
  5198. #elif defined(__osf__)
  5199. /* This system does not cope well with relocations in const data. */
  5200. # define LT_DLSYM_CONST
  5201. #else
  5202. # define LT_DLSYM_CONST const
  5203. #endif
  5204. #ifdef __cplusplus
  5205. extern "C" {
  5206. #endif
  5207. _LT_EOF
  5208. # Now generate the symbol file.
  5209. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5210. cat <<_LT_EOF >> conftest.$ac_ext
  5211. /* The mapping between symbol names and symbols. */
  5212. LT_DLSYM_CONST struct {
  5213. const char *name;
  5214. void *address;
  5215. }
  5216. lt__PROGRAM__LTX_preloaded_symbols[] =
  5217. {
  5218. { "@PROGRAM@", (void *) 0 },
  5219. _LT_EOF
  5220. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5221. cat <<\_LT_EOF >> conftest.$ac_ext
  5222. {0, (void *) 0}
  5223. };
  5224. /* This works around a problem in FreeBSD linker */
  5225. #ifdef FREEBSD_WORKAROUND
  5226. static const void *lt_preloaded_setup() {
  5227. return lt__PROGRAM__LTX_preloaded_symbols;
  5228. }
  5229. #endif
  5230. #ifdef __cplusplus
  5231. }
  5232. #endif
  5233. _LT_EOF
  5234. # Now try linking the two files.
  5235. mv conftest.$ac_objext conftstm.$ac_objext
  5236. lt_globsym_save_LIBS=$LIBS
  5237. lt_globsym_save_CFLAGS=$CFLAGS
  5238. LIBS="conftstm.$ac_objext"
  5239. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5240. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5241. (eval $ac_link) 2>&5
  5242. ac_status=$?
  5243. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5244. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5245. pipe_works=yes
  5246. fi
  5247. LIBS=$lt_globsym_save_LIBS
  5248. CFLAGS=$lt_globsym_save_CFLAGS
  5249. else
  5250. echo "cannot find nm_test_func in $nlist" >&5
  5251. fi
  5252. else
  5253. echo "cannot find nm_test_var in $nlist" >&5
  5254. fi
  5255. else
  5256. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5257. fi
  5258. else
  5259. echo "$progname: failed program was:" >&5
  5260. cat conftest.$ac_ext >&5
  5261. fi
  5262. rm -rf conftest* conftst*
  5263. # Do not use the global_symbol_pipe unless it works.
  5264. if test "$pipe_works" = yes; then
  5265. break
  5266. else
  5267. lt_cv_sys_global_symbol_pipe=
  5268. fi
  5269. done
  5270. fi
  5271. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5272. lt_cv_sys_global_symbol_to_cdecl=
  5273. fi
  5274. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5276. $as_echo "failed" >&6; }
  5277. else
  5278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5279. $as_echo "ok" >&6; }
  5280. fi
  5281. # Response file support.
  5282. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5283. nm_file_list_spec='@'
  5284. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5285. nm_file_list_spec='@'
  5286. fi
  5287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5288. $as_echo_n "checking for sysroot... " >&6; }
  5289. # Check whether --with-sysroot was given.
  5290. if test "${with_sysroot+set}" = set; then :
  5291. withval=$with_sysroot;
  5292. else
  5293. with_sysroot=no
  5294. fi
  5295. lt_sysroot=
  5296. case ${with_sysroot} in #(
  5297. yes)
  5298. if test "$GCC" = yes; then
  5299. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5300. fi
  5301. ;; #(
  5302. /*)
  5303. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5304. ;; #(
  5305. no|'')
  5306. ;; #(
  5307. *)
  5308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5309. $as_echo "${with_sysroot}" >&6; }
  5310. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5311. ;;
  5312. esac
  5313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5314. $as_echo "${lt_sysroot:-no}" >&6; }
  5315. # Check whether --enable-libtool-lock was given.
  5316. if test "${enable_libtool_lock+set}" = set; then :
  5317. enableval=$enable_libtool_lock;
  5318. fi
  5319. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5320. # Some flags need to be propagated to the compiler or linker for good
  5321. # libtool support.
  5322. case $host in
  5323. ia64-*-hpux*)
  5324. # Find out which ABI we are using.
  5325. echo 'int i;' > conftest.$ac_ext
  5326. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5327. (eval $ac_compile) 2>&5
  5328. ac_status=$?
  5329. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5330. test $ac_status = 0; }; then
  5331. case `/usr/bin/file conftest.$ac_objext` in
  5332. *ELF-32*)
  5333. HPUX_IA64_MODE="32"
  5334. ;;
  5335. *ELF-64*)
  5336. HPUX_IA64_MODE="64"
  5337. ;;
  5338. esac
  5339. fi
  5340. rm -rf conftest*
  5341. ;;
  5342. *-*-irix6*)
  5343. # Find out which ABI we are using.
  5344. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5345. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5346. (eval $ac_compile) 2>&5
  5347. ac_status=$?
  5348. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5349. test $ac_status = 0; }; then
  5350. if test "$lt_cv_prog_gnu_ld" = yes; then
  5351. case `/usr/bin/file conftest.$ac_objext` in
  5352. *32-bit*)
  5353. LD="${LD-ld} -melf32bsmip"
  5354. ;;
  5355. *N32*)
  5356. LD="${LD-ld} -melf32bmipn32"
  5357. ;;
  5358. *64-bit*)
  5359. LD="${LD-ld} -melf64bmip"
  5360. ;;
  5361. esac
  5362. else
  5363. case `/usr/bin/file conftest.$ac_objext` in
  5364. *32-bit*)
  5365. LD="${LD-ld} -32"
  5366. ;;
  5367. *N32*)
  5368. LD="${LD-ld} -n32"
  5369. ;;
  5370. *64-bit*)
  5371. LD="${LD-ld} -64"
  5372. ;;
  5373. esac
  5374. fi
  5375. fi
  5376. rm -rf conftest*
  5377. ;;
  5378. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5379. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5380. # Find out which ABI we are using.
  5381. echo 'int i;' > conftest.$ac_ext
  5382. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5383. (eval $ac_compile) 2>&5
  5384. ac_status=$?
  5385. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5386. test $ac_status = 0; }; then
  5387. case `/usr/bin/file conftest.o` in
  5388. *32-bit*)
  5389. case $host in
  5390. x86_64-*kfreebsd*-gnu)
  5391. LD="${LD-ld} -m elf_i386_fbsd"
  5392. ;;
  5393. x86_64-*linux*)
  5394. LD="${LD-ld} -m elf_i386"
  5395. ;;
  5396. ppc64-*linux*|powerpc64-*linux*)
  5397. LD="${LD-ld} -m elf32ppclinux"
  5398. ;;
  5399. s390x-*linux*)
  5400. LD="${LD-ld} -m elf_s390"
  5401. ;;
  5402. sparc64-*linux*)
  5403. LD="${LD-ld} -m elf32_sparc"
  5404. ;;
  5405. esac
  5406. ;;
  5407. *64-bit*)
  5408. case $host in
  5409. x86_64-*kfreebsd*-gnu)
  5410. LD="${LD-ld} -m elf_x86_64_fbsd"
  5411. ;;
  5412. x86_64-*linux*)
  5413. LD="${LD-ld} -m elf_x86_64"
  5414. ;;
  5415. powerpc64le-*linux*)
  5416. LD="${LD-ld} -m elf64lppc"
  5417. ;;
  5418. powerpc64-*linux*)
  5419. LD="${LD-ld} -m elf64ppc"
  5420. ;;
  5421. s390*-*linux*|s390*-*tpf*)
  5422. LD="${LD-ld} -m elf64_s390"
  5423. ;;
  5424. sparc*-*linux*)
  5425. LD="${LD-ld} -m elf64_sparc"
  5426. ;;
  5427. esac
  5428. ;;
  5429. esac
  5430. fi
  5431. rm -rf conftest*
  5432. ;;
  5433. *-*-sco3.2v5*)
  5434. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5435. SAVE_CFLAGS="$CFLAGS"
  5436. CFLAGS="$CFLAGS -belf"
  5437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5438. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5439. if ${lt_cv_cc_needs_belf+:} false; then :
  5440. $as_echo_n "(cached) " >&6
  5441. else
  5442. ac_ext=c
  5443. ac_cpp='$CPP $CPPFLAGS'
  5444. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5445. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5446. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5448. /* end confdefs.h. */
  5449. int
  5450. main ()
  5451. {
  5452. ;
  5453. return 0;
  5454. }
  5455. _ACEOF
  5456. if ac_fn_c_try_link "$LINENO"; then :
  5457. lt_cv_cc_needs_belf=yes
  5458. else
  5459. lt_cv_cc_needs_belf=no
  5460. fi
  5461. rm -f core conftest.err conftest.$ac_objext \
  5462. conftest$ac_exeext conftest.$ac_ext
  5463. ac_ext=c
  5464. ac_cpp='$CPP $CPPFLAGS'
  5465. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5466. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5467. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5468. fi
  5469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5470. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5471. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5472. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5473. CFLAGS="$SAVE_CFLAGS"
  5474. fi
  5475. ;;
  5476. *-*solaris*)
  5477. # Find out which ABI we are using.
  5478. echo 'int i;' > conftest.$ac_ext
  5479. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5480. (eval $ac_compile) 2>&5
  5481. ac_status=$?
  5482. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5483. test $ac_status = 0; }; then
  5484. case `/usr/bin/file conftest.o` in
  5485. *64-bit*)
  5486. case $lt_cv_prog_gnu_ld in
  5487. yes*)
  5488. case $host in
  5489. i?86-*-solaris*)
  5490. LD="${LD-ld} -m elf_x86_64"
  5491. ;;
  5492. sparc*-*-solaris*)
  5493. LD="${LD-ld} -m elf64_sparc"
  5494. ;;
  5495. esac
  5496. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5497. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5498. LD="${LD-ld}_sol2"
  5499. fi
  5500. ;;
  5501. *)
  5502. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5503. LD="${LD-ld} -64"
  5504. fi
  5505. ;;
  5506. esac
  5507. ;;
  5508. esac
  5509. fi
  5510. rm -rf conftest*
  5511. ;;
  5512. esac
  5513. need_locks="$enable_libtool_lock"
  5514. if test -n "$ac_tool_prefix"; then
  5515. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5516. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5518. $as_echo_n "checking for $ac_word... " >&6; }
  5519. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5520. $as_echo_n "(cached) " >&6
  5521. else
  5522. if test -n "$MANIFEST_TOOL"; then
  5523. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5524. else
  5525. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5526. for as_dir in $PATH
  5527. do
  5528. IFS=$as_save_IFS
  5529. test -z "$as_dir" && as_dir=.
  5530. for ac_exec_ext in '' $ac_executable_extensions; do
  5531. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5532. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5533. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5534. break 2
  5535. fi
  5536. done
  5537. done
  5538. IFS=$as_save_IFS
  5539. fi
  5540. fi
  5541. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5542. if test -n "$MANIFEST_TOOL"; then
  5543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5544. $as_echo "$MANIFEST_TOOL" >&6; }
  5545. else
  5546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5547. $as_echo "no" >&6; }
  5548. fi
  5549. fi
  5550. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5551. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5552. # Extract the first word of "mt", so it can be a program name with args.
  5553. set dummy mt; ac_word=$2
  5554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5555. $as_echo_n "checking for $ac_word... " >&6; }
  5556. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5557. $as_echo_n "(cached) " >&6
  5558. else
  5559. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5560. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5561. else
  5562. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5563. for as_dir in $PATH
  5564. do
  5565. IFS=$as_save_IFS
  5566. test -z "$as_dir" && as_dir=.
  5567. for ac_exec_ext in '' $ac_executable_extensions; do
  5568. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5569. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5570. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5571. break 2
  5572. fi
  5573. done
  5574. done
  5575. IFS=$as_save_IFS
  5576. fi
  5577. fi
  5578. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5579. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5581. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5582. else
  5583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5584. $as_echo "no" >&6; }
  5585. fi
  5586. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5587. MANIFEST_TOOL=":"
  5588. else
  5589. case $cross_compiling:$ac_tool_warned in
  5590. yes:)
  5591. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5592. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5593. ac_tool_warned=yes ;;
  5594. esac
  5595. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5596. fi
  5597. else
  5598. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5599. fi
  5600. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5602. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5603. if ${lt_cv_path_mainfest_tool+:} false; then :
  5604. $as_echo_n "(cached) " >&6
  5605. else
  5606. lt_cv_path_mainfest_tool=no
  5607. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5608. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5609. cat conftest.err >&5
  5610. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5611. lt_cv_path_mainfest_tool=yes
  5612. fi
  5613. rm -f conftest*
  5614. fi
  5615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5616. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5617. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5618. MANIFEST_TOOL=:
  5619. fi
  5620. case $host_os in
  5621. rhapsody* | darwin*)
  5622. if test -n "$ac_tool_prefix"; then
  5623. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5624. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5626. $as_echo_n "checking for $ac_word... " >&6; }
  5627. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5628. $as_echo_n "(cached) " >&6
  5629. else
  5630. if test -n "$DSYMUTIL"; then
  5631. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5632. else
  5633. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5634. for as_dir in $PATH
  5635. do
  5636. IFS=$as_save_IFS
  5637. test -z "$as_dir" && as_dir=.
  5638. for ac_exec_ext in '' $ac_executable_extensions; do
  5639. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5640. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5641. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5642. break 2
  5643. fi
  5644. done
  5645. done
  5646. IFS=$as_save_IFS
  5647. fi
  5648. fi
  5649. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5650. if test -n "$DSYMUTIL"; then
  5651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5652. $as_echo "$DSYMUTIL" >&6; }
  5653. else
  5654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5655. $as_echo "no" >&6; }
  5656. fi
  5657. fi
  5658. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5659. ac_ct_DSYMUTIL=$DSYMUTIL
  5660. # Extract the first word of "dsymutil", so it can be a program name with args.
  5661. set dummy dsymutil; ac_word=$2
  5662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5663. $as_echo_n "checking for $ac_word... " >&6; }
  5664. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5665. $as_echo_n "(cached) " >&6
  5666. else
  5667. if test -n "$ac_ct_DSYMUTIL"; then
  5668. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5669. else
  5670. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5671. for as_dir in $PATH
  5672. do
  5673. IFS=$as_save_IFS
  5674. test -z "$as_dir" && as_dir=.
  5675. for ac_exec_ext in '' $ac_executable_extensions; do
  5676. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5677. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5678. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5679. break 2
  5680. fi
  5681. done
  5682. done
  5683. IFS=$as_save_IFS
  5684. fi
  5685. fi
  5686. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5687. if test -n "$ac_ct_DSYMUTIL"; then
  5688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5689. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5690. else
  5691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5692. $as_echo "no" >&6; }
  5693. fi
  5694. if test "x$ac_ct_DSYMUTIL" = x; then
  5695. DSYMUTIL=":"
  5696. else
  5697. case $cross_compiling:$ac_tool_warned in
  5698. yes:)
  5699. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5700. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5701. ac_tool_warned=yes ;;
  5702. esac
  5703. DSYMUTIL=$ac_ct_DSYMUTIL
  5704. fi
  5705. else
  5706. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5707. fi
  5708. if test -n "$ac_tool_prefix"; then
  5709. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5710. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5712. $as_echo_n "checking for $ac_word... " >&6; }
  5713. if ${ac_cv_prog_NMEDIT+:} false; then :
  5714. $as_echo_n "(cached) " >&6
  5715. else
  5716. if test -n "$NMEDIT"; then
  5717. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5718. else
  5719. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5720. for as_dir in $PATH
  5721. do
  5722. IFS=$as_save_IFS
  5723. test -z "$as_dir" && as_dir=.
  5724. for ac_exec_ext in '' $ac_executable_extensions; do
  5725. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5726. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5727. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5728. break 2
  5729. fi
  5730. done
  5731. done
  5732. IFS=$as_save_IFS
  5733. fi
  5734. fi
  5735. NMEDIT=$ac_cv_prog_NMEDIT
  5736. if test -n "$NMEDIT"; then
  5737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5738. $as_echo "$NMEDIT" >&6; }
  5739. else
  5740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5741. $as_echo "no" >&6; }
  5742. fi
  5743. fi
  5744. if test -z "$ac_cv_prog_NMEDIT"; then
  5745. ac_ct_NMEDIT=$NMEDIT
  5746. # Extract the first word of "nmedit", so it can be a program name with args.
  5747. set dummy nmedit; ac_word=$2
  5748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5749. $as_echo_n "checking for $ac_word... " >&6; }
  5750. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5751. $as_echo_n "(cached) " >&6
  5752. else
  5753. if test -n "$ac_ct_NMEDIT"; then
  5754. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5755. else
  5756. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5757. for as_dir in $PATH
  5758. do
  5759. IFS=$as_save_IFS
  5760. test -z "$as_dir" && as_dir=.
  5761. for ac_exec_ext in '' $ac_executable_extensions; do
  5762. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5763. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5764. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5765. break 2
  5766. fi
  5767. done
  5768. done
  5769. IFS=$as_save_IFS
  5770. fi
  5771. fi
  5772. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5773. if test -n "$ac_ct_NMEDIT"; then
  5774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5775. $as_echo "$ac_ct_NMEDIT" >&6; }
  5776. else
  5777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5778. $as_echo "no" >&6; }
  5779. fi
  5780. if test "x$ac_ct_NMEDIT" = x; then
  5781. NMEDIT=":"
  5782. else
  5783. case $cross_compiling:$ac_tool_warned in
  5784. yes:)
  5785. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5786. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5787. ac_tool_warned=yes ;;
  5788. esac
  5789. NMEDIT=$ac_ct_NMEDIT
  5790. fi
  5791. else
  5792. NMEDIT="$ac_cv_prog_NMEDIT"
  5793. fi
  5794. if test -n "$ac_tool_prefix"; then
  5795. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5796. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5798. $as_echo_n "checking for $ac_word... " >&6; }
  5799. if ${ac_cv_prog_LIPO+:} false; then :
  5800. $as_echo_n "(cached) " >&6
  5801. else
  5802. if test -n "$LIPO"; then
  5803. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5804. else
  5805. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5806. for as_dir in $PATH
  5807. do
  5808. IFS=$as_save_IFS
  5809. test -z "$as_dir" && as_dir=.
  5810. for ac_exec_ext in '' $ac_executable_extensions; do
  5811. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5812. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5813. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5814. break 2
  5815. fi
  5816. done
  5817. done
  5818. IFS=$as_save_IFS
  5819. fi
  5820. fi
  5821. LIPO=$ac_cv_prog_LIPO
  5822. if test -n "$LIPO"; then
  5823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5824. $as_echo "$LIPO" >&6; }
  5825. else
  5826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5827. $as_echo "no" >&6; }
  5828. fi
  5829. fi
  5830. if test -z "$ac_cv_prog_LIPO"; then
  5831. ac_ct_LIPO=$LIPO
  5832. # Extract the first word of "lipo", so it can be a program name with args.
  5833. set dummy lipo; ac_word=$2
  5834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5835. $as_echo_n "checking for $ac_word... " >&6; }
  5836. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5837. $as_echo_n "(cached) " >&6
  5838. else
  5839. if test -n "$ac_ct_LIPO"; then
  5840. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5841. else
  5842. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5843. for as_dir in $PATH
  5844. do
  5845. IFS=$as_save_IFS
  5846. test -z "$as_dir" && as_dir=.
  5847. for ac_exec_ext in '' $ac_executable_extensions; do
  5848. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5849. ac_cv_prog_ac_ct_LIPO="lipo"
  5850. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5851. break 2
  5852. fi
  5853. done
  5854. done
  5855. IFS=$as_save_IFS
  5856. fi
  5857. fi
  5858. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5859. if test -n "$ac_ct_LIPO"; then
  5860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5861. $as_echo "$ac_ct_LIPO" >&6; }
  5862. else
  5863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5864. $as_echo "no" >&6; }
  5865. fi
  5866. if test "x$ac_ct_LIPO" = x; then
  5867. LIPO=":"
  5868. else
  5869. case $cross_compiling:$ac_tool_warned in
  5870. yes:)
  5871. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5872. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5873. ac_tool_warned=yes ;;
  5874. esac
  5875. LIPO=$ac_ct_LIPO
  5876. fi
  5877. else
  5878. LIPO="$ac_cv_prog_LIPO"
  5879. fi
  5880. if test -n "$ac_tool_prefix"; then
  5881. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5882. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5884. $as_echo_n "checking for $ac_word... " >&6; }
  5885. if ${ac_cv_prog_OTOOL+:} false; then :
  5886. $as_echo_n "(cached) " >&6
  5887. else
  5888. if test -n "$OTOOL"; then
  5889. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5890. else
  5891. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5892. for as_dir in $PATH
  5893. do
  5894. IFS=$as_save_IFS
  5895. test -z "$as_dir" && as_dir=.
  5896. for ac_exec_ext in '' $ac_executable_extensions; do
  5897. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5898. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5899. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5900. break 2
  5901. fi
  5902. done
  5903. done
  5904. IFS=$as_save_IFS
  5905. fi
  5906. fi
  5907. OTOOL=$ac_cv_prog_OTOOL
  5908. if test -n "$OTOOL"; then
  5909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5910. $as_echo "$OTOOL" >&6; }
  5911. else
  5912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5913. $as_echo "no" >&6; }
  5914. fi
  5915. fi
  5916. if test -z "$ac_cv_prog_OTOOL"; then
  5917. ac_ct_OTOOL=$OTOOL
  5918. # Extract the first word of "otool", so it can be a program name with args.
  5919. set dummy otool; ac_word=$2
  5920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5921. $as_echo_n "checking for $ac_word... " >&6; }
  5922. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5923. $as_echo_n "(cached) " >&6
  5924. else
  5925. if test -n "$ac_ct_OTOOL"; then
  5926. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5927. else
  5928. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5929. for as_dir in $PATH
  5930. do
  5931. IFS=$as_save_IFS
  5932. test -z "$as_dir" && as_dir=.
  5933. for ac_exec_ext in '' $ac_executable_extensions; do
  5934. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5935. ac_cv_prog_ac_ct_OTOOL="otool"
  5936. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5937. break 2
  5938. fi
  5939. done
  5940. done
  5941. IFS=$as_save_IFS
  5942. fi
  5943. fi
  5944. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5945. if test -n "$ac_ct_OTOOL"; then
  5946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5947. $as_echo "$ac_ct_OTOOL" >&6; }
  5948. else
  5949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5950. $as_echo "no" >&6; }
  5951. fi
  5952. if test "x$ac_ct_OTOOL" = x; then
  5953. OTOOL=":"
  5954. else
  5955. case $cross_compiling:$ac_tool_warned in
  5956. yes:)
  5957. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5958. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5959. ac_tool_warned=yes ;;
  5960. esac
  5961. OTOOL=$ac_ct_OTOOL
  5962. fi
  5963. else
  5964. OTOOL="$ac_cv_prog_OTOOL"
  5965. fi
  5966. if test -n "$ac_tool_prefix"; then
  5967. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5968. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5970. $as_echo_n "checking for $ac_word... " >&6; }
  5971. if ${ac_cv_prog_OTOOL64+:} false; then :
  5972. $as_echo_n "(cached) " >&6
  5973. else
  5974. if test -n "$OTOOL64"; then
  5975. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5976. else
  5977. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5978. for as_dir in $PATH
  5979. do
  5980. IFS=$as_save_IFS
  5981. test -z "$as_dir" && as_dir=.
  5982. for ac_exec_ext in '' $ac_executable_extensions; do
  5983. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5984. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5985. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5986. break 2
  5987. fi
  5988. done
  5989. done
  5990. IFS=$as_save_IFS
  5991. fi
  5992. fi
  5993. OTOOL64=$ac_cv_prog_OTOOL64
  5994. if test -n "$OTOOL64"; then
  5995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5996. $as_echo "$OTOOL64" >&6; }
  5997. else
  5998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5999. $as_echo "no" >&6; }
  6000. fi
  6001. fi
  6002. if test -z "$ac_cv_prog_OTOOL64"; then
  6003. ac_ct_OTOOL64=$OTOOL64
  6004. # Extract the first word of "otool64", so it can be a program name with args.
  6005. set dummy otool64; ac_word=$2
  6006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6007. $as_echo_n "checking for $ac_word... " >&6; }
  6008. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6009. $as_echo_n "(cached) " >&6
  6010. else
  6011. if test -n "$ac_ct_OTOOL64"; then
  6012. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6013. else
  6014. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6015. for as_dir in $PATH
  6016. do
  6017. IFS=$as_save_IFS
  6018. test -z "$as_dir" && as_dir=.
  6019. for ac_exec_ext in '' $ac_executable_extensions; do
  6020. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6021. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6022. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6023. break 2
  6024. fi
  6025. done
  6026. done
  6027. IFS=$as_save_IFS
  6028. fi
  6029. fi
  6030. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6031. if test -n "$ac_ct_OTOOL64"; then
  6032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6033. $as_echo "$ac_ct_OTOOL64" >&6; }
  6034. else
  6035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6036. $as_echo "no" >&6; }
  6037. fi
  6038. if test "x$ac_ct_OTOOL64" = x; then
  6039. OTOOL64=":"
  6040. else
  6041. case $cross_compiling:$ac_tool_warned in
  6042. yes:)
  6043. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6044. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6045. ac_tool_warned=yes ;;
  6046. esac
  6047. OTOOL64=$ac_ct_OTOOL64
  6048. fi
  6049. else
  6050. OTOOL64="$ac_cv_prog_OTOOL64"
  6051. fi
  6052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6053. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6054. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6055. $as_echo_n "(cached) " >&6
  6056. else
  6057. lt_cv_apple_cc_single_mod=no
  6058. if test -z "${LT_MULTI_MODULE}"; then
  6059. # By default we will add the -single_module flag. You can override
  6060. # by either setting the environment variable LT_MULTI_MODULE
  6061. # non-empty at configure time, or by adding -multi_module to the
  6062. # link flags.
  6063. rm -rf libconftest.dylib*
  6064. echo "int foo(void){return 1;}" > conftest.c
  6065. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6066. -dynamiclib -Wl,-single_module conftest.c" >&5
  6067. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6068. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6069. _lt_result=$?
  6070. # If there is a non-empty error log, and "single_module"
  6071. # appears in it, assume the flag caused a linker warning
  6072. if test -s conftest.err && $GREP single_module conftest.err; then
  6073. cat conftest.err >&5
  6074. # Otherwise, if the output was created with a 0 exit code from
  6075. # the compiler, it worked.
  6076. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6077. lt_cv_apple_cc_single_mod=yes
  6078. else
  6079. cat conftest.err >&5
  6080. fi
  6081. rm -rf libconftest.dylib*
  6082. rm -f conftest.*
  6083. fi
  6084. fi
  6085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6086. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6088. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6089. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6090. $as_echo_n "(cached) " >&6
  6091. else
  6092. lt_cv_ld_exported_symbols_list=no
  6093. save_LDFLAGS=$LDFLAGS
  6094. echo "_main" > conftest.sym
  6095. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6097. /* end confdefs.h. */
  6098. int
  6099. main ()
  6100. {
  6101. ;
  6102. return 0;
  6103. }
  6104. _ACEOF
  6105. if ac_fn_c_try_link "$LINENO"; then :
  6106. lt_cv_ld_exported_symbols_list=yes
  6107. else
  6108. lt_cv_ld_exported_symbols_list=no
  6109. fi
  6110. rm -f core conftest.err conftest.$ac_objext \
  6111. conftest$ac_exeext conftest.$ac_ext
  6112. LDFLAGS="$save_LDFLAGS"
  6113. fi
  6114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6115. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6117. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6118. if ${lt_cv_ld_force_load+:} false; then :
  6119. $as_echo_n "(cached) " >&6
  6120. else
  6121. lt_cv_ld_force_load=no
  6122. cat > conftest.c << _LT_EOF
  6123. int forced_loaded() { return 2;}
  6124. _LT_EOF
  6125. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6126. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6127. echo "$AR cru libconftest.a conftest.o" >&5
  6128. $AR cru libconftest.a conftest.o 2>&5
  6129. echo "$RANLIB libconftest.a" >&5
  6130. $RANLIB libconftest.a 2>&5
  6131. cat > conftest.c << _LT_EOF
  6132. int main() { return 0;}
  6133. _LT_EOF
  6134. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6135. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6136. _lt_result=$?
  6137. if test -s conftest.err && $GREP force_load conftest.err; then
  6138. cat conftest.err >&5
  6139. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6140. lt_cv_ld_force_load=yes
  6141. else
  6142. cat conftest.err >&5
  6143. fi
  6144. rm -f conftest.err libconftest.a conftest conftest.c
  6145. rm -rf conftest.dSYM
  6146. fi
  6147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6148. $as_echo "$lt_cv_ld_force_load" >&6; }
  6149. case $host_os in
  6150. rhapsody* | darwin1.[012])
  6151. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6152. darwin1.*)
  6153. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6154. darwin*)
  6155. case $MACOSX_DEPLOYMENT_TARGET,$host in
  6156. 10.[012],*|,*powerpc*-darwin[5-8]*)
  6157. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6158. *)
  6159. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6160. esac
  6161. ;;
  6162. esac
  6163. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6164. _lt_dar_single_mod='$single_module'
  6165. fi
  6166. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6167. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6168. else
  6169. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6170. fi
  6171. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6172. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6173. else
  6174. _lt_dsymutil=
  6175. fi
  6176. ;;
  6177. esac
  6178. ac_ext=c
  6179. ac_cpp='$CPP $CPPFLAGS'
  6180. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6181. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6182. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6184. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6185. # On Suns, sometimes $CPP names a directory.
  6186. if test -n "$CPP" && test -d "$CPP"; then
  6187. CPP=
  6188. fi
  6189. if test -z "$CPP"; then
  6190. if ${ac_cv_prog_CPP+:} false; then :
  6191. $as_echo_n "(cached) " >&6
  6192. else
  6193. # Double quotes because CPP needs to be expanded
  6194. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6195. do
  6196. ac_preproc_ok=false
  6197. for ac_c_preproc_warn_flag in '' yes
  6198. do
  6199. # Use a header file that comes with gcc, so configuring glibc
  6200. # with a fresh cross-compiler works.
  6201. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6202. # <limits.h> exists even on freestanding compilers.
  6203. # On the NeXT, cc -E runs the code through the compiler's parser,
  6204. # not just through cpp. "Syntax error" is here to catch this case.
  6205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6206. /* end confdefs.h. */
  6207. #ifdef __STDC__
  6208. # include <limits.h>
  6209. #else
  6210. # include <assert.h>
  6211. #endif
  6212. Syntax error
  6213. _ACEOF
  6214. if ac_fn_c_try_cpp "$LINENO"; then :
  6215. else
  6216. # Broken: fails on valid input.
  6217. continue
  6218. fi
  6219. rm -f conftest.err conftest.i conftest.$ac_ext
  6220. # OK, works on sane cases. Now check whether nonexistent headers
  6221. # can be detected and how.
  6222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6223. /* end confdefs.h. */
  6224. #include <ac_nonexistent.h>
  6225. _ACEOF
  6226. if ac_fn_c_try_cpp "$LINENO"; then :
  6227. # Broken: success on invalid input.
  6228. continue
  6229. else
  6230. # Passes both tests.
  6231. ac_preproc_ok=:
  6232. break
  6233. fi
  6234. rm -f conftest.err conftest.i conftest.$ac_ext
  6235. done
  6236. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6237. rm -f conftest.i conftest.err conftest.$ac_ext
  6238. if $ac_preproc_ok; then :
  6239. break
  6240. fi
  6241. done
  6242. ac_cv_prog_CPP=$CPP
  6243. fi
  6244. CPP=$ac_cv_prog_CPP
  6245. else
  6246. ac_cv_prog_CPP=$CPP
  6247. fi
  6248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6249. $as_echo "$CPP" >&6; }
  6250. ac_preproc_ok=false
  6251. for ac_c_preproc_warn_flag in '' yes
  6252. do
  6253. # Use a header file that comes with gcc, so configuring glibc
  6254. # with a fresh cross-compiler works.
  6255. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6256. # <limits.h> exists even on freestanding compilers.
  6257. # On the NeXT, cc -E runs the code through the compiler's parser,
  6258. # not just through cpp. "Syntax error" is here to catch this case.
  6259. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6260. /* end confdefs.h. */
  6261. #ifdef __STDC__
  6262. # include <limits.h>
  6263. #else
  6264. # include <assert.h>
  6265. #endif
  6266. Syntax error
  6267. _ACEOF
  6268. if ac_fn_c_try_cpp "$LINENO"; then :
  6269. else
  6270. # Broken: fails on valid input.
  6271. continue
  6272. fi
  6273. rm -f conftest.err conftest.i conftest.$ac_ext
  6274. # OK, works on sane cases. Now check whether nonexistent headers
  6275. # can be detected and how.
  6276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6277. /* end confdefs.h. */
  6278. #include <ac_nonexistent.h>
  6279. _ACEOF
  6280. if ac_fn_c_try_cpp "$LINENO"; then :
  6281. # Broken: success on invalid input.
  6282. continue
  6283. else
  6284. # Passes both tests.
  6285. ac_preproc_ok=:
  6286. break
  6287. fi
  6288. rm -f conftest.err conftest.i conftest.$ac_ext
  6289. done
  6290. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6291. rm -f conftest.i conftest.err conftest.$ac_ext
  6292. if $ac_preproc_ok; then :
  6293. else
  6294. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6295. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6296. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6297. See \`config.log' for more details" "$LINENO" 5; }
  6298. fi
  6299. ac_ext=c
  6300. ac_cpp='$CPP $CPPFLAGS'
  6301. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6302. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6303. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6305. $as_echo_n "checking for ANSI C header files... " >&6; }
  6306. if ${ac_cv_header_stdc+:} false; then :
  6307. $as_echo_n "(cached) " >&6
  6308. else
  6309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6310. /* end confdefs.h. */
  6311. #include <stdlib.h>
  6312. #include <stdarg.h>
  6313. #include <string.h>
  6314. #include <float.h>
  6315. int
  6316. main ()
  6317. {
  6318. ;
  6319. return 0;
  6320. }
  6321. _ACEOF
  6322. if ac_fn_c_try_compile "$LINENO"; then :
  6323. ac_cv_header_stdc=yes
  6324. else
  6325. ac_cv_header_stdc=no
  6326. fi
  6327. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6328. if test $ac_cv_header_stdc = yes; then
  6329. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6331. /* end confdefs.h. */
  6332. #include <string.h>
  6333. _ACEOF
  6334. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6335. $EGREP "memchr" >/dev/null 2>&1; then :
  6336. else
  6337. ac_cv_header_stdc=no
  6338. fi
  6339. rm -f conftest*
  6340. fi
  6341. if test $ac_cv_header_stdc = yes; then
  6342. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6344. /* end confdefs.h. */
  6345. #include <stdlib.h>
  6346. _ACEOF
  6347. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6348. $EGREP "free" >/dev/null 2>&1; then :
  6349. else
  6350. ac_cv_header_stdc=no
  6351. fi
  6352. rm -f conftest*
  6353. fi
  6354. if test $ac_cv_header_stdc = yes; then
  6355. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6356. if test "$cross_compiling" = yes; then :
  6357. :
  6358. else
  6359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6360. /* end confdefs.h. */
  6361. #include <ctype.h>
  6362. #include <stdlib.h>
  6363. #if ((' ' & 0x0FF) == 0x020)
  6364. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6365. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6366. #else
  6367. # define ISLOWER(c) \
  6368. (('a' <= (c) && (c) <= 'i') \
  6369. || ('j' <= (c) && (c) <= 'r') \
  6370. || ('s' <= (c) && (c) <= 'z'))
  6371. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6372. #endif
  6373. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6374. int
  6375. main ()
  6376. {
  6377. int i;
  6378. for (i = 0; i < 256; i++)
  6379. if (XOR (islower (i), ISLOWER (i))
  6380. || toupper (i) != TOUPPER (i))
  6381. return 2;
  6382. return 0;
  6383. }
  6384. _ACEOF
  6385. if ac_fn_c_try_run "$LINENO"; then :
  6386. else
  6387. ac_cv_header_stdc=no
  6388. fi
  6389. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6390. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6391. fi
  6392. fi
  6393. fi
  6394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6395. $as_echo "$ac_cv_header_stdc" >&6; }
  6396. if test $ac_cv_header_stdc = yes; then
  6397. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6398. fi
  6399. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6400. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6401. inttypes.h stdint.h unistd.h
  6402. do :
  6403. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6404. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6405. "
  6406. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6407. cat >>confdefs.h <<_ACEOF
  6408. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6409. _ACEOF
  6410. fi
  6411. done
  6412. for ac_header in dlfcn.h
  6413. do :
  6414. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6415. "
  6416. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6417. cat >>confdefs.h <<_ACEOF
  6418. #define HAVE_DLFCN_H 1
  6419. _ACEOF
  6420. fi
  6421. done
  6422. # Set options
  6423. enable_win32_dll=yes
  6424. case $host in
  6425. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6426. if test -n "$ac_tool_prefix"; then
  6427. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6428. set dummy ${ac_tool_prefix}as; ac_word=$2
  6429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6430. $as_echo_n "checking for $ac_word... " >&6; }
  6431. if ${ac_cv_prog_AS+:} false; then :
  6432. $as_echo_n "(cached) " >&6
  6433. else
  6434. if test -n "$AS"; then
  6435. ac_cv_prog_AS="$AS" # Let the user override the test.
  6436. else
  6437. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6438. for as_dir in $PATH
  6439. do
  6440. IFS=$as_save_IFS
  6441. test -z "$as_dir" && as_dir=.
  6442. for ac_exec_ext in '' $ac_executable_extensions; do
  6443. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6444. ac_cv_prog_AS="${ac_tool_prefix}as"
  6445. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6446. break 2
  6447. fi
  6448. done
  6449. done
  6450. IFS=$as_save_IFS
  6451. fi
  6452. fi
  6453. AS=$ac_cv_prog_AS
  6454. if test -n "$AS"; then
  6455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6456. $as_echo "$AS" >&6; }
  6457. else
  6458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6459. $as_echo "no" >&6; }
  6460. fi
  6461. fi
  6462. if test -z "$ac_cv_prog_AS"; then
  6463. ac_ct_AS=$AS
  6464. # Extract the first word of "as", so it can be a program name with args.
  6465. set dummy as; ac_word=$2
  6466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6467. $as_echo_n "checking for $ac_word... " >&6; }
  6468. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6469. $as_echo_n "(cached) " >&6
  6470. else
  6471. if test -n "$ac_ct_AS"; then
  6472. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6473. else
  6474. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6475. for as_dir in $PATH
  6476. do
  6477. IFS=$as_save_IFS
  6478. test -z "$as_dir" && as_dir=.
  6479. for ac_exec_ext in '' $ac_executable_extensions; do
  6480. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6481. ac_cv_prog_ac_ct_AS="as"
  6482. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6483. break 2
  6484. fi
  6485. done
  6486. done
  6487. IFS=$as_save_IFS
  6488. fi
  6489. fi
  6490. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6491. if test -n "$ac_ct_AS"; then
  6492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6493. $as_echo "$ac_ct_AS" >&6; }
  6494. else
  6495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6496. $as_echo "no" >&6; }
  6497. fi
  6498. if test "x$ac_ct_AS" = x; then
  6499. AS="false"
  6500. else
  6501. case $cross_compiling:$ac_tool_warned in
  6502. yes:)
  6503. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6504. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6505. ac_tool_warned=yes ;;
  6506. esac
  6507. AS=$ac_ct_AS
  6508. fi
  6509. else
  6510. AS="$ac_cv_prog_AS"
  6511. fi
  6512. if test -n "$ac_tool_prefix"; then
  6513. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6514. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6516. $as_echo_n "checking for $ac_word... " >&6; }
  6517. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6518. $as_echo_n "(cached) " >&6
  6519. else
  6520. if test -n "$DLLTOOL"; then
  6521. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6522. else
  6523. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6524. for as_dir in $PATH
  6525. do
  6526. IFS=$as_save_IFS
  6527. test -z "$as_dir" && as_dir=.
  6528. for ac_exec_ext in '' $ac_executable_extensions; do
  6529. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6530. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6531. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6532. break 2
  6533. fi
  6534. done
  6535. done
  6536. IFS=$as_save_IFS
  6537. fi
  6538. fi
  6539. DLLTOOL=$ac_cv_prog_DLLTOOL
  6540. if test -n "$DLLTOOL"; then
  6541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6542. $as_echo "$DLLTOOL" >&6; }
  6543. else
  6544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6545. $as_echo "no" >&6; }
  6546. fi
  6547. fi
  6548. if test -z "$ac_cv_prog_DLLTOOL"; then
  6549. ac_ct_DLLTOOL=$DLLTOOL
  6550. # Extract the first word of "dlltool", so it can be a program name with args.
  6551. set dummy dlltool; ac_word=$2
  6552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6553. $as_echo_n "checking for $ac_word... " >&6; }
  6554. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6555. $as_echo_n "(cached) " >&6
  6556. else
  6557. if test -n "$ac_ct_DLLTOOL"; then
  6558. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6559. else
  6560. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6561. for as_dir in $PATH
  6562. do
  6563. IFS=$as_save_IFS
  6564. test -z "$as_dir" && as_dir=.
  6565. for ac_exec_ext in '' $ac_executable_extensions; do
  6566. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6567. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6568. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6569. break 2
  6570. fi
  6571. done
  6572. done
  6573. IFS=$as_save_IFS
  6574. fi
  6575. fi
  6576. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6577. if test -n "$ac_ct_DLLTOOL"; then
  6578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6579. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6580. else
  6581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6582. $as_echo "no" >&6; }
  6583. fi
  6584. if test "x$ac_ct_DLLTOOL" = x; then
  6585. DLLTOOL="false"
  6586. else
  6587. case $cross_compiling:$ac_tool_warned in
  6588. yes:)
  6589. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6590. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6591. ac_tool_warned=yes ;;
  6592. esac
  6593. DLLTOOL=$ac_ct_DLLTOOL
  6594. fi
  6595. else
  6596. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6597. fi
  6598. if test -n "$ac_tool_prefix"; then
  6599. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6600. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6602. $as_echo_n "checking for $ac_word... " >&6; }
  6603. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6604. $as_echo_n "(cached) " >&6
  6605. else
  6606. if test -n "$OBJDUMP"; then
  6607. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6608. else
  6609. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6610. for as_dir in $PATH
  6611. do
  6612. IFS=$as_save_IFS
  6613. test -z "$as_dir" && as_dir=.
  6614. for ac_exec_ext in '' $ac_executable_extensions; do
  6615. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6616. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6617. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6618. break 2
  6619. fi
  6620. done
  6621. done
  6622. IFS=$as_save_IFS
  6623. fi
  6624. fi
  6625. OBJDUMP=$ac_cv_prog_OBJDUMP
  6626. if test -n "$OBJDUMP"; then
  6627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6628. $as_echo "$OBJDUMP" >&6; }
  6629. else
  6630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6631. $as_echo "no" >&6; }
  6632. fi
  6633. fi
  6634. if test -z "$ac_cv_prog_OBJDUMP"; then
  6635. ac_ct_OBJDUMP=$OBJDUMP
  6636. # Extract the first word of "objdump", so it can be a program name with args.
  6637. set dummy objdump; ac_word=$2
  6638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6639. $as_echo_n "checking for $ac_word... " >&6; }
  6640. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6641. $as_echo_n "(cached) " >&6
  6642. else
  6643. if test -n "$ac_ct_OBJDUMP"; then
  6644. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6645. else
  6646. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6647. for as_dir in $PATH
  6648. do
  6649. IFS=$as_save_IFS
  6650. test -z "$as_dir" && as_dir=.
  6651. for ac_exec_ext in '' $ac_executable_extensions; do
  6652. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6653. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6654. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6655. break 2
  6656. fi
  6657. done
  6658. done
  6659. IFS=$as_save_IFS
  6660. fi
  6661. fi
  6662. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6663. if test -n "$ac_ct_OBJDUMP"; then
  6664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6665. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6666. else
  6667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6668. $as_echo "no" >&6; }
  6669. fi
  6670. if test "x$ac_ct_OBJDUMP" = x; then
  6671. OBJDUMP="false"
  6672. else
  6673. case $cross_compiling:$ac_tool_warned in
  6674. yes:)
  6675. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6676. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6677. ac_tool_warned=yes ;;
  6678. esac
  6679. OBJDUMP=$ac_ct_OBJDUMP
  6680. fi
  6681. else
  6682. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6683. fi
  6684. ;;
  6685. esac
  6686. test -z "$AS" && AS=as
  6687. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6688. test -z "$OBJDUMP" && OBJDUMP=objdump
  6689. enable_dlopen=no
  6690. # Check whether --enable-shared was given.
  6691. if test "${enable_shared+set}" = set; then :
  6692. enableval=$enable_shared; p=${PACKAGE-default}
  6693. case $enableval in
  6694. yes) enable_shared=yes ;;
  6695. no) enable_shared=no ;;
  6696. *)
  6697. enable_shared=no
  6698. # Look at the argument we got. We use all the common list separators.
  6699. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6700. for pkg in $enableval; do
  6701. IFS="$lt_save_ifs"
  6702. if test "X$pkg" = "X$p"; then
  6703. enable_shared=yes
  6704. fi
  6705. done
  6706. IFS="$lt_save_ifs"
  6707. ;;
  6708. esac
  6709. else
  6710. enable_shared=yes
  6711. fi
  6712. # Check whether --enable-static was given.
  6713. if test "${enable_static+set}" = set; then :
  6714. enableval=$enable_static; p=${PACKAGE-default}
  6715. case $enableval in
  6716. yes) enable_static=yes ;;
  6717. no) enable_static=no ;;
  6718. *)
  6719. enable_static=no
  6720. # Look at the argument we got. We use all the common list separators.
  6721. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6722. for pkg in $enableval; do
  6723. IFS="$lt_save_ifs"
  6724. if test "X$pkg" = "X$p"; then
  6725. enable_static=yes
  6726. fi
  6727. done
  6728. IFS="$lt_save_ifs"
  6729. ;;
  6730. esac
  6731. else
  6732. enable_static=yes
  6733. fi
  6734. # Check whether --with-pic was given.
  6735. if test "${with_pic+set}" = set; then :
  6736. withval=$with_pic; lt_p=${PACKAGE-default}
  6737. case $withval in
  6738. yes|no) pic_mode=$withval ;;
  6739. *)
  6740. pic_mode=default
  6741. # Look at the argument we got. We use all the common list separators.
  6742. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6743. for lt_pkg in $withval; do
  6744. IFS="$lt_save_ifs"
  6745. if test "X$lt_pkg" = "X$lt_p"; then
  6746. pic_mode=yes
  6747. fi
  6748. done
  6749. IFS="$lt_save_ifs"
  6750. ;;
  6751. esac
  6752. else
  6753. pic_mode=default
  6754. fi
  6755. test -z "$pic_mode" && pic_mode=default
  6756. # Check whether --enable-fast-install was given.
  6757. if test "${enable_fast_install+set}" = set; then :
  6758. enableval=$enable_fast_install; p=${PACKAGE-default}
  6759. case $enableval in
  6760. yes) enable_fast_install=yes ;;
  6761. no) enable_fast_install=no ;;
  6762. *)
  6763. enable_fast_install=no
  6764. # Look at the argument we got. We use all the common list separators.
  6765. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6766. for pkg in $enableval; do
  6767. IFS="$lt_save_ifs"
  6768. if test "X$pkg" = "X$p"; then
  6769. enable_fast_install=yes
  6770. fi
  6771. done
  6772. IFS="$lt_save_ifs"
  6773. ;;
  6774. esac
  6775. else
  6776. enable_fast_install=yes
  6777. fi
  6778. # This can be used to rebuild libtool when needed
  6779. LIBTOOL_DEPS="$ltmain"
  6780. # Always use our own libtool.
  6781. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6782. test -z "$LN_S" && LN_S="ln -s"
  6783. if test -n "${ZSH_VERSION+set}" ; then
  6784. setopt NO_GLOB_SUBST
  6785. fi
  6786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6787. $as_echo_n "checking for objdir... " >&6; }
  6788. if ${lt_cv_objdir+:} false; then :
  6789. $as_echo_n "(cached) " >&6
  6790. else
  6791. rm -f .libs 2>/dev/null
  6792. mkdir .libs 2>/dev/null
  6793. if test -d .libs; then
  6794. lt_cv_objdir=.libs
  6795. else
  6796. # MS-DOS does not allow filenames that begin with a dot.
  6797. lt_cv_objdir=_libs
  6798. fi
  6799. rmdir .libs 2>/dev/null
  6800. fi
  6801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6802. $as_echo "$lt_cv_objdir" >&6; }
  6803. objdir=$lt_cv_objdir
  6804. cat >>confdefs.h <<_ACEOF
  6805. #define LT_OBJDIR "$lt_cv_objdir/"
  6806. _ACEOF
  6807. case $host_os in
  6808. aix3*)
  6809. # AIX sometimes has problems with the GCC collect2 program. For some
  6810. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6811. # vanish in a puff of smoke.
  6812. if test "X${COLLECT_NAMES+set}" != Xset; then
  6813. COLLECT_NAMES=
  6814. export COLLECT_NAMES
  6815. fi
  6816. ;;
  6817. esac
  6818. # Global variables:
  6819. ofile=libtool
  6820. can_build_shared=yes
  6821. # All known linkers require a `.a' archive for static linking (except MSVC,
  6822. # which needs '.lib').
  6823. libext=a
  6824. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6825. old_CC="$CC"
  6826. old_CFLAGS="$CFLAGS"
  6827. # Set sane defaults for various variables
  6828. test -z "$CC" && CC=cc
  6829. test -z "$LTCC" && LTCC=$CC
  6830. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6831. test -z "$LD" && LD=ld
  6832. test -z "$ac_objext" && ac_objext=o
  6833. for cc_temp in $compiler""; do
  6834. case $cc_temp in
  6835. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6836. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6837. \-*) ;;
  6838. *) break;;
  6839. esac
  6840. done
  6841. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6842. # Only perform the check for file, if the check method requires it
  6843. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6844. case $deplibs_check_method in
  6845. file_magic*)
  6846. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6848. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6849. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6850. $as_echo_n "(cached) " >&6
  6851. else
  6852. case $MAGIC_CMD in
  6853. [\\/*] | ?:[\\/]*)
  6854. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6855. ;;
  6856. *)
  6857. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6858. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6859. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6860. for ac_dir in $ac_dummy; do
  6861. IFS="$lt_save_ifs"
  6862. test -z "$ac_dir" && ac_dir=.
  6863. if test -f $ac_dir/${ac_tool_prefix}file; then
  6864. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6865. if test -n "$file_magic_test_file"; then
  6866. case $deplibs_check_method in
  6867. "file_magic "*)
  6868. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6869. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6870. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6871. $EGREP "$file_magic_regex" > /dev/null; then
  6872. :
  6873. else
  6874. cat <<_LT_EOF 1>&2
  6875. *** Warning: the command libtool uses to detect shared libraries,
  6876. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6877. *** The result is that libtool may fail to recognize shared libraries
  6878. *** as such. This will affect the creation of libtool libraries that
  6879. *** depend on shared libraries, but programs linked with such libtool
  6880. *** libraries will work regardless of this problem. Nevertheless, you
  6881. *** may want to report the problem to your system manager and/or to
  6882. *** bug-libtool@gnu.org
  6883. _LT_EOF
  6884. fi ;;
  6885. esac
  6886. fi
  6887. break
  6888. fi
  6889. done
  6890. IFS="$lt_save_ifs"
  6891. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6892. ;;
  6893. esac
  6894. fi
  6895. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6896. if test -n "$MAGIC_CMD"; then
  6897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6898. $as_echo "$MAGIC_CMD" >&6; }
  6899. else
  6900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6901. $as_echo "no" >&6; }
  6902. fi
  6903. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6904. if test -n "$ac_tool_prefix"; then
  6905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6906. $as_echo_n "checking for file... " >&6; }
  6907. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6908. $as_echo_n "(cached) " >&6
  6909. else
  6910. case $MAGIC_CMD in
  6911. [\\/*] | ?:[\\/]*)
  6912. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6913. ;;
  6914. *)
  6915. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6916. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6917. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6918. for ac_dir in $ac_dummy; do
  6919. IFS="$lt_save_ifs"
  6920. test -z "$ac_dir" && ac_dir=.
  6921. if test -f $ac_dir/file; then
  6922. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6923. if test -n "$file_magic_test_file"; then
  6924. case $deplibs_check_method in
  6925. "file_magic "*)
  6926. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6927. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6928. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6929. $EGREP "$file_magic_regex" > /dev/null; then
  6930. :
  6931. else
  6932. cat <<_LT_EOF 1>&2
  6933. *** Warning: the command libtool uses to detect shared libraries,
  6934. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6935. *** The result is that libtool may fail to recognize shared libraries
  6936. *** as such. This will affect the creation of libtool libraries that
  6937. *** depend on shared libraries, but programs linked with such libtool
  6938. *** libraries will work regardless of this problem. Nevertheless, you
  6939. *** may want to report the problem to your system manager and/or to
  6940. *** bug-libtool@gnu.org
  6941. _LT_EOF
  6942. fi ;;
  6943. esac
  6944. fi
  6945. break
  6946. fi
  6947. done
  6948. IFS="$lt_save_ifs"
  6949. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6950. ;;
  6951. esac
  6952. fi
  6953. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6954. if test -n "$MAGIC_CMD"; then
  6955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6956. $as_echo "$MAGIC_CMD" >&6; }
  6957. else
  6958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6959. $as_echo "no" >&6; }
  6960. fi
  6961. else
  6962. MAGIC_CMD=:
  6963. fi
  6964. fi
  6965. fi
  6966. ;;
  6967. esac
  6968. # Use C for the default configuration in the libtool script
  6969. lt_save_CC="$CC"
  6970. ac_ext=c
  6971. ac_cpp='$CPP $CPPFLAGS'
  6972. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6973. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6974. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6975. # Source file extension for C test sources.
  6976. ac_ext=c
  6977. # Object file extension for compiled C test sources.
  6978. objext=o
  6979. objext=$objext
  6980. # Code to be used in simple compile tests
  6981. lt_simple_compile_test_code="int some_variable = 0;"
  6982. # Code to be used in simple link tests
  6983. lt_simple_link_test_code='int main(){return(0);}'
  6984. # If no C compiler was specified, use CC.
  6985. LTCC=${LTCC-"$CC"}
  6986. # If no C compiler flags were specified, use CFLAGS.
  6987. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6988. # Allow CC to be a program name with arguments.
  6989. compiler=$CC
  6990. # Save the default compiler, since it gets overwritten when the other
  6991. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6992. compiler_DEFAULT=$CC
  6993. # save warnings/boilerplate of simple test code
  6994. ac_outfile=conftest.$ac_objext
  6995. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6996. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6997. _lt_compiler_boilerplate=`cat conftest.err`
  6998. $RM conftest*
  6999. ac_outfile=conftest.$ac_objext
  7000. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7001. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7002. _lt_linker_boilerplate=`cat conftest.err`
  7003. $RM -r conftest*
  7004. ## CAVEAT EMPTOR:
  7005. ## There is no encapsulation within the following macros, do not change
  7006. ## the running order or otherwise move them around unless you know exactly
  7007. ## what you are doing...
  7008. if test -n "$compiler"; then
  7009. lt_prog_compiler_no_builtin_flag=
  7010. if test "$GCC" = yes; then
  7011. case $cc_basename in
  7012. nvcc*)
  7013. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7014. *)
  7015. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7016. esac
  7017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7018. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7019. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7020. $as_echo_n "(cached) " >&6
  7021. else
  7022. lt_cv_prog_compiler_rtti_exceptions=no
  7023. ac_outfile=conftest.$ac_objext
  7024. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7025. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7026. # Insert the option either (1) after the last *FLAGS variable, or
  7027. # (2) before a word containing "conftest.", or (3) at the end.
  7028. # Note that $ac_compile itself does not contain backslashes and begins
  7029. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7030. # The option is referenced via a variable to avoid confusing sed.
  7031. lt_compile=`echo "$ac_compile" | $SED \
  7032. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7033. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7034. -e 's:$: $lt_compiler_flag:'`
  7035. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7036. (eval "$lt_compile" 2>conftest.err)
  7037. ac_status=$?
  7038. cat conftest.err >&5
  7039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7040. if (exit $ac_status) && test -s "$ac_outfile"; then
  7041. # The compiler can only warn and ignore the option if not recognized
  7042. # So say no if there are warnings other than the usual output.
  7043. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7044. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7045. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7046. lt_cv_prog_compiler_rtti_exceptions=yes
  7047. fi
  7048. fi
  7049. $RM conftest*
  7050. fi
  7051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7052. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7053. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7054. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7055. else
  7056. :
  7057. fi
  7058. fi
  7059. lt_prog_compiler_wl=
  7060. lt_prog_compiler_pic=
  7061. lt_prog_compiler_static=
  7062. if test "$GCC" = yes; then
  7063. lt_prog_compiler_wl='-Wl,'
  7064. lt_prog_compiler_static='-static'
  7065. case $host_os in
  7066. aix*)
  7067. # All AIX code is PIC.
  7068. if test "$host_cpu" = ia64; then
  7069. # AIX 5 now supports IA64 processor
  7070. lt_prog_compiler_static='-Bstatic'
  7071. fi
  7072. ;;
  7073. amigaos*)
  7074. case $host_cpu in
  7075. powerpc)
  7076. # see comment about AmigaOS4 .so support
  7077. lt_prog_compiler_pic='-fPIC'
  7078. ;;
  7079. m68k)
  7080. # FIXME: we need at least 68020 code to build shared libraries, but
  7081. # adding the `-m68020' flag to GCC prevents building anything better,
  7082. # like `-m68040'.
  7083. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7084. ;;
  7085. esac
  7086. ;;
  7087. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7088. # PIC is the default for these OSes.
  7089. ;;
  7090. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7091. # This hack is so that the source file can tell whether it is being
  7092. # built for inclusion in a dll (and should export symbols for example).
  7093. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7094. # (--disable-auto-import) libraries
  7095. lt_prog_compiler_pic='-DDLL_EXPORT'
  7096. ;;
  7097. darwin* | rhapsody*)
  7098. # PIC is the default on this platform
  7099. # Common symbols not allowed in MH_DYLIB files
  7100. lt_prog_compiler_pic='-fno-common'
  7101. ;;
  7102. haiku*)
  7103. # PIC is the default for Haiku.
  7104. # The "-static" flag exists, but is broken.
  7105. lt_prog_compiler_static=
  7106. ;;
  7107. hpux*)
  7108. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7109. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7110. # sets the default TLS model and affects inlining.
  7111. case $host_cpu in
  7112. hppa*64*)
  7113. # +Z the default
  7114. ;;
  7115. *)
  7116. lt_prog_compiler_pic='-fPIC'
  7117. ;;
  7118. esac
  7119. ;;
  7120. interix[3-9]*)
  7121. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7122. # Instead, we relocate shared libraries at runtime.
  7123. ;;
  7124. msdosdjgpp*)
  7125. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7126. # on systems that don't support them.
  7127. lt_prog_compiler_can_build_shared=no
  7128. enable_shared=no
  7129. ;;
  7130. *nto* | *qnx*)
  7131. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7132. # it will coredump.
  7133. lt_prog_compiler_pic='-fPIC -shared'
  7134. ;;
  7135. sysv4*MP*)
  7136. if test -d /usr/nec; then
  7137. lt_prog_compiler_pic=-Kconform_pic
  7138. fi
  7139. ;;
  7140. *)
  7141. lt_prog_compiler_pic='-fPIC'
  7142. ;;
  7143. esac
  7144. case $cc_basename in
  7145. nvcc*) # Cuda Compiler Driver 2.2
  7146. lt_prog_compiler_wl='-Xlinker '
  7147. if test -n "$lt_prog_compiler_pic"; then
  7148. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7149. fi
  7150. ;;
  7151. esac
  7152. else
  7153. # PORTME Check for flag to pass linker flags through the system compiler.
  7154. case $host_os in
  7155. aix*)
  7156. lt_prog_compiler_wl='-Wl,'
  7157. if test "$host_cpu" = ia64; then
  7158. # AIX 5 now supports IA64 processor
  7159. lt_prog_compiler_static='-Bstatic'
  7160. else
  7161. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7162. fi
  7163. ;;
  7164. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7165. # This hack is so that the source file can tell whether it is being
  7166. # built for inclusion in a dll (and should export symbols for example).
  7167. lt_prog_compiler_pic='-DDLL_EXPORT'
  7168. ;;
  7169. hpux9* | hpux10* | hpux11*)
  7170. lt_prog_compiler_wl='-Wl,'
  7171. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7172. # not for PA HP-UX.
  7173. case $host_cpu in
  7174. hppa*64*|ia64*)
  7175. # +Z the default
  7176. ;;
  7177. *)
  7178. lt_prog_compiler_pic='+Z'
  7179. ;;
  7180. esac
  7181. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7182. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7183. ;;
  7184. irix5* | irix6* | nonstopux*)
  7185. lt_prog_compiler_wl='-Wl,'
  7186. # PIC (with -KPIC) is the default.
  7187. lt_prog_compiler_static='-non_shared'
  7188. ;;
  7189. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7190. case $cc_basename in
  7191. # old Intel for x86_64 which still supported -KPIC.
  7192. ecc*)
  7193. lt_prog_compiler_wl='-Wl,'
  7194. lt_prog_compiler_pic='-KPIC'
  7195. lt_prog_compiler_static='-static'
  7196. ;;
  7197. # icc used to be incompatible with GCC.
  7198. # ICC 10 doesn't accept -KPIC any more.
  7199. icc* | ifort*)
  7200. lt_prog_compiler_wl='-Wl,'
  7201. lt_prog_compiler_pic='-fPIC'
  7202. lt_prog_compiler_static='-static'
  7203. ;;
  7204. # Lahey Fortran 8.1.
  7205. lf95*)
  7206. lt_prog_compiler_wl='-Wl,'
  7207. lt_prog_compiler_pic='--shared'
  7208. lt_prog_compiler_static='--static'
  7209. ;;
  7210. nagfor*)
  7211. # NAG Fortran compiler
  7212. lt_prog_compiler_wl='-Wl,-Wl,,'
  7213. lt_prog_compiler_pic='-PIC'
  7214. lt_prog_compiler_static='-Bstatic'
  7215. ;;
  7216. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7217. # Portland Group compilers (*not* the Pentium gcc compiler,
  7218. # which looks to be a dead project)
  7219. lt_prog_compiler_wl='-Wl,'
  7220. lt_prog_compiler_pic='-fpic'
  7221. lt_prog_compiler_static='-Bstatic'
  7222. ;;
  7223. ccc*)
  7224. lt_prog_compiler_wl='-Wl,'
  7225. # All Alpha code is PIC.
  7226. lt_prog_compiler_static='-non_shared'
  7227. ;;
  7228. xl* | bgxl* | bgf* | mpixl*)
  7229. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7230. lt_prog_compiler_wl='-Wl,'
  7231. lt_prog_compiler_pic='-qpic'
  7232. lt_prog_compiler_static='-qstaticlink'
  7233. ;;
  7234. *)
  7235. case `$CC -V 2>&1 | sed 5q` in
  7236. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7237. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7238. lt_prog_compiler_pic='-KPIC'
  7239. lt_prog_compiler_static='-Bstatic'
  7240. lt_prog_compiler_wl=''
  7241. ;;
  7242. *Sun\ F* | *Sun*Fortran*)
  7243. lt_prog_compiler_pic='-KPIC'
  7244. lt_prog_compiler_static='-Bstatic'
  7245. lt_prog_compiler_wl='-Qoption ld '
  7246. ;;
  7247. *Sun\ C*)
  7248. # Sun C 5.9
  7249. lt_prog_compiler_pic='-KPIC'
  7250. lt_prog_compiler_static='-Bstatic'
  7251. lt_prog_compiler_wl='-Wl,'
  7252. ;;
  7253. *Intel*\ [CF]*Compiler*)
  7254. lt_prog_compiler_wl='-Wl,'
  7255. lt_prog_compiler_pic='-fPIC'
  7256. lt_prog_compiler_static='-static'
  7257. ;;
  7258. *Portland\ Group*)
  7259. lt_prog_compiler_wl='-Wl,'
  7260. lt_prog_compiler_pic='-fpic'
  7261. lt_prog_compiler_static='-Bstatic'
  7262. ;;
  7263. esac
  7264. ;;
  7265. esac
  7266. ;;
  7267. newsos6)
  7268. lt_prog_compiler_pic='-KPIC'
  7269. lt_prog_compiler_static='-Bstatic'
  7270. ;;
  7271. *nto* | *qnx*)
  7272. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7273. # it will coredump.
  7274. lt_prog_compiler_pic='-fPIC -shared'
  7275. ;;
  7276. osf3* | osf4* | osf5*)
  7277. lt_prog_compiler_wl='-Wl,'
  7278. # All OSF/1 code is PIC.
  7279. lt_prog_compiler_static='-non_shared'
  7280. ;;
  7281. rdos*)
  7282. lt_prog_compiler_static='-non_shared'
  7283. ;;
  7284. solaris*)
  7285. lt_prog_compiler_pic='-KPIC'
  7286. lt_prog_compiler_static='-Bstatic'
  7287. case $cc_basename in
  7288. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7289. lt_prog_compiler_wl='-Qoption ld ';;
  7290. *)
  7291. lt_prog_compiler_wl='-Wl,';;
  7292. esac
  7293. ;;
  7294. sunos4*)
  7295. lt_prog_compiler_wl='-Qoption ld '
  7296. lt_prog_compiler_pic='-PIC'
  7297. lt_prog_compiler_static='-Bstatic'
  7298. ;;
  7299. sysv4 | sysv4.2uw2* | sysv4.3*)
  7300. lt_prog_compiler_wl='-Wl,'
  7301. lt_prog_compiler_pic='-KPIC'
  7302. lt_prog_compiler_static='-Bstatic'
  7303. ;;
  7304. sysv4*MP*)
  7305. if test -d /usr/nec ;then
  7306. lt_prog_compiler_pic='-Kconform_pic'
  7307. lt_prog_compiler_static='-Bstatic'
  7308. fi
  7309. ;;
  7310. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7311. lt_prog_compiler_wl='-Wl,'
  7312. lt_prog_compiler_pic='-KPIC'
  7313. lt_prog_compiler_static='-Bstatic'
  7314. ;;
  7315. unicos*)
  7316. lt_prog_compiler_wl='-Wl,'
  7317. lt_prog_compiler_can_build_shared=no
  7318. ;;
  7319. uts4*)
  7320. lt_prog_compiler_pic='-pic'
  7321. lt_prog_compiler_static='-Bstatic'
  7322. ;;
  7323. *)
  7324. lt_prog_compiler_can_build_shared=no
  7325. ;;
  7326. esac
  7327. fi
  7328. case $host_os in
  7329. # For platforms which do not support PIC, -DPIC is meaningless:
  7330. *djgpp*)
  7331. lt_prog_compiler_pic=
  7332. ;;
  7333. *)
  7334. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7335. ;;
  7336. esac
  7337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7338. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7339. if ${lt_cv_prog_compiler_pic+:} false; then :
  7340. $as_echo_n "(cached) " >&6
  7341. else
  7342. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7343. fi
  7344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7345. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7346. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7347. #
  7348. # Check to make sure the PIC flag actually works.
  7349. #
  7350. if test -n "$lt_prog_compiler_pic"; then
  7351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7352. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7353. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7354. $as_echo_n "(cached) " >&6
  7355. else
  7356. lt_cv_prog_compiler_pic_works=no
  7357. ac_outfile=conftest.$ac_objext
  7358. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7359. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7360. # Insert the option either (1) after the last *FLAGS variable, or
  7361. # (2) before a word containing "conftest.", or (3) at the end.
  7362. # Note that $ac_compile itself does not contain backslashes and begins
  7363. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7364. # The option is referenced via a variable to avoid confusing sed.
  7365. lt_compile=`echo "$ac_compile" | $SED \
  7366. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7367. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7368. -e 's:$: $lt_compiler_flag:'`
  7369. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7370. (eval "$lt_compile" 2>conftest.err)
  7371. ac_status=$?
  7372. cat conftest.err >&5
  7373. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7374. if (exit $ac_status) && test -s "$ac_outfile"; then
  7375. # The compiler can only warn and ignore the option if not recognized
  7376. # So say no if there are warnings other than the usual output.
  7377. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7378. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7379. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7380. lt_cv_prog_compiler_pic_works=yes
  7381. fi
  7382. fi
  7383. $RM conftest*
  7384. fi
  7385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7386. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7387. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7388. case $lt_prog_compiler_pic in
  7389. "" | " "*) ;;
  7390. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7391. esac
  7392. else
  7393. lt_prog_compiler_pic=
  7394. lt_prog_compiler_can_build_shared=no
  7395. fi
  7396. fi
  7397. #
  7398. # Check to make sure the static flag actually works.
  7399. #
  7400. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7402. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7403. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7404. $as_echo_n "(cached) " >&6
  7405. else
  7406. lt_cv_prog_compiler_static_works=no
  7407. save_LDFLAGS="$LDFLAGS"
  7408. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7409. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7410. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7411. # The linker can only warn and ignore the option if not recognized
  7412. # So say no if there are warnings
  7413. if test -s conftest.err; then
  7414. # Append any errors to the config.log.
  7415. cat conftest.err 1>&5
  7416. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7417. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7418. if diff conftest.exp conftest.er2 >/dev/null; then
  7419. lt_cv_prog_compiler_static_works=yes
  7420. fi
  7421. else
  7422. lt_cv_prog_compiler_static_works=yes
  7423. fi
  7424. fi
  7425. $RM -r conftest*
  7426. LDFLAGS="$save_LDFLAGS"
  7427. fi
  7428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7429. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7430. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7431. :
  7432. else
  7433. lt_prog_compiler_static=
  7434. fi
  7435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7436. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7437. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7438. $as_echo_n "(cached) " >&6
  7439. else
  7440. lt_cv_prog_compiler_c_o=no
  7441. $RM -r conftest 2>/dev/null
  7442. mkdir conftest
  7443. cd conftest
  7444. mkdir out
  7445. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7446. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7447. # Insert the option either (1) after the last *FLAGS variable, or
  7448. # (2) before a word containing "conftest.", or (3) at the end.
  7449. # Note that $ac_compile itself does not contain backslashes and begins
  7450. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7451. lt_compile=`echo "$ac_compile" | $SED \
  7452. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7453. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7454. -e 's:$: $lt_compiler_flag:'`
  7455. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7456. (eval "$lt_compile" 2>out/conftest.err)
  7457. ac_status=$?
  7458. cat out/conftest.err >&5
  7459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7460. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7461. then
  7462. # The compiler can only warn and ignore the option if not recognized
  7463. # So say no if there are warnings
  7464. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7465. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7466. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7467. lt_cv_prog_compiler_c_o=yes
  7468. fi
  7469. fi
  7470. chmod u+w . 2>&5
  7471. $RM conftest*
  7472. # SGI C++ compiler will create directory out/ii_files/ for
  7473. # template instantiation
  7474. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7475. $RM out/* && rmdir out
  7476. cd ..
  7477. $RM -r conftest
  7478. $RM conftest*
  7479. fi
  7480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7481. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7483. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7484. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7485. $as_echo_n "(cached) " >&6
  7486. else
  7487. lt_cv_prog_compiler_c_o=no
  7488. $RM -r conftest 2>/dev/null
  7489. mkdir conftest
  7490. cd conftest
  7491. mkdir out
  7492. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7493. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7494. # Insert the option either (1) after the last *FLAGS variable, or
  7495. # (2) before a word containing "conftest.", or (3) at the end.
  7496. # Note that $ac_compile itself does not contain backslashes and begins
  7497. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7498. lt_compile=`echo "$ac_compile" | $SED \
  7499. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7500. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7501. -e 's:$: $lt_compiler_flag:'`
  7502. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7503. (eval "$lt_compile" 2>out/conftest.err)
  7504. ac_status=$?
  7505. cat out/conftest.err >&5
  7506. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7507. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7508. then
  7509. # The compiler can only warn and ignore the option if not recognized
  7510. # So say no if there are warnings
  7511. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7512. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7513. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7514. lt_cv_prog_compiler_c_o=yes
  7515. fi
  7516. fi
  7517. chmod u+w . 2>&5
  7518. $RM conftest*
  7519. # SGI C++ compiler will create directory out/ii_files/ for
  7520. # template instantiation
  7521. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7522. $RM out/* && rmdir out
  7523. cd ..
  7524. $RM -r conftest
  7525. $RM conftest*
  7526. fi
  7527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7528. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7529. hard_links="nottested"
  7530. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7531. # do not overwrite the value of need_locks provided by the user
  7532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7533. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7534. hard_links=yes
  7535. $RM conftest*
  7536. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7537. touch conftest.a
  7538. ln conftest.a conftest.b 2>&5 || hard_links=no
  7539. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7541. $as_echo "$hard_links" >&6; }
  7542. if test "$hard_links" = no; then
  7543. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7544. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7545. need_locks=warn
  7546. fi
  7547. else
  7548. need_locks=no
  7549. fi
  7550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7551. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7552. runpath_var=
  7553. allow_undefined_flag=
  7554. always_export_symbols=no
  7555. archive_cmds=
  7556. archive_expsym_cmds=
  7557. compiler_needs_object=no
  7558. enable_shared_with_static_runtimes=no
  7559. export_dynamic_flag_spec=
  7560. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7561. hardcode_automatic=no
  7562. hardcode_direct=no
  7563. hardcode_direct_absolute=no
  7564. hardcode_libdir_flag_spec=
  7565. hardcode_libdir_separator=
  7566. hardcode_minus_L=no
  7567. hardcode_shlibpath_var=unsupported
  7568. inherit_rpath=no
  7569. link_all_deplibs=unknown
  7570. module_cmds=
  7571. module_expsym_cmds=
  7572. old_archive_from_new_cmds=
  7573. old_archive_from_expsyms_cmds=
  7574. thread_safe_flag_spec=
  7575. whole_archive_flag_spec=
  7576. # include_expsyms should be a list of space-separated symbols to be *always*
  7577. # included in the symbol list
  7578. include_expsyms=
  7579. # exclude_expsyms can be an extended regexp of symbols to exclude
  7580. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7581. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7582. # as well as any symbol that contains `d'.
  7583. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7584. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7585. # platforms (ab)use it in PIC code, but their linkers get confused if
  7586. # the symbol is explicitly referenced. Since portable code cannot
  7587. # rely on this symbol name, it's probably fine to never include it in
  7588. # preloaded symbol tables.
  7589. # Exclude shared library initialization/finalization symbols.
  7590. extract_expsyms_cmds=
  7591. case $host_os in
  7592. cygwin* | mingw* | pw32* | cegcc*)
  7593. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7594. # When not using gcc, we currently assume that we are using
  7595. # Microsoft Visual C++.
  7596. if test "$GCC" != yes; then
  7597. with_gnu_ld=no
  7598. fi
  7599. ;;
  7600. interix*)
  7601. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7602. with_gnu_ld=yes
  7603. ;;
  7604. openbsd*)
  7605. with_gnu_ld=no
  7606. ;;
  7607. esac
  7608. ld_shlibs=yes
  7609. # On some targets, GNU ld is compatible enough with the native linker
  7610. # that we're better off using the native interface for both.
  7611. lt_use_gnu_ld_interface=no
  7612. if test "$with_gnu_ld" = yes; then
  7613. case $host_os in
  7614. aix*)
  7615. # The AIX port of GNU ld has always aspired to compatibility
  7616. # with the native linker. However, as the warning in the GNU ld
  7617. # block says, versions before 2.19.5* couldn't really create working
  7618. # shared libraries, regardless of the interface used.
  7619. case `$LD -v 2>&1` in
  7620. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7621. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7622. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7623. *)
  7624. lt_use_gnu_ld_interface=yes
  7625. ;;
  7626. esac
  7627. ;;
  7628. *)
  7629. lt_use_gnu_ld_interface=yes
  7630. ;;
  7631. esac
  7632. fi
  7633. if test "$lt_use_gnu_ld_interface" = yes; then
  7634. # If archive_cmds runs LD, not CC, wlarc should be empty
  7635. wlarc='${wl}'
  7636. # Set some defaults for GNU ld with shared library support. These
  7637. # are reset later if shared libraries are not supported. Putting them
  7638. # here allows them to be overridden if necessary.
  7639. runpath_var=LD_RUN_PATH
  7640. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7641. export_dynamic_flag_spec='${wl}--export-dynamic'
  7642. # ancient GNU ld didn't support --whole-archive et. al.
  7643. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7644. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7645. else
  7646. whole_archive_flag_spec=
  7647. fi
  7648. supports_anon_versioning=no
  7649. case `$LD -v 2>&1` in
  7650. *GNU\ gold*) supports_anon_versioning=yes ;;
  7651. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7652. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7653. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7654. *\ 2.11.*) ;; # other 2.11 versions
  7655. *) supports_anon_versioning=yes ;;
  7656. esac
  7657. # See if GNU ld supports shared libraries.
  7658. case $host_os in
  7659. aix[3-9]*)
  7660. # On AIX/PPC, the GNU linker is very broken
  7661. if test "$host_cpu" != ia64; then
  7662. ld_shlibs=no
  7663. cat <<_LT_EOF 1>&2
  7664. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7665. *** to be unable to reliably create shared libraries on AIX.
  7666. *** Therefore, libtool is disabling shared libraries support. If you
  7667. *** really care for shared libraries, you may want to install binutils
  7668. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7669. *** You will then need to restart the configuration process.
  7670. _LT_EOF
  7671. fi
  7672. ;;
  7673. amigaos*)
  7674. case $host_cpu in
  7675. powerpc)
  7676. # see comment about AmigaOS4 .so support
  7677. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7678. archive_expsym_cmds=''
  7679. ;;
  7680. m68k)
  7681. 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)'
  7682. hardcode_libdir_flag_spec='-L$libdir'
  7683. hardcode_minus_L=yes
  7684. ;;
  7685. esac
  7686. ;;
  7687. beos*)
  7688. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7689. allow_undefined_flag=unsupported
  7690. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7691. # support --undefined. This deserves some investigation. FIXME
  7692. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7693. else
  7694. ld_shlibs=no
  7695. fi
  7696. ;;
  7697. cygwin* | mingw* | pw32* | cegcc*)
  7698. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7699. # as there is no search path for DLLs.
  7700. hardcode_libdir_flag_spec='-L$libdir'
  7701. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7702. allow_undefined_flag=unsupported
  7703. always_export_symbols=no
  7704. enable_shared_with_static_runtimes=yes
  7705. 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'
  7706. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7707. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7708. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7709. # If the export-symbols file already is a .def file (1st line
  7710. # is EXPORTS), use it as is; otherwise, prepend...
  7711. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7712. cp $export_symbols $output_objdir/$soname.def;
  7713. else
  7714. echo EXPORTS > $output_objdir/$soname.def;
  7715. cat $export_symbols >> $output_objdir/$soname.def;
  7716. fi~
  7717. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7718. else
  7719. ld_shlibs=no
  7720. fi
  7721. ;;
  7722. haiku*)
  7723. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7724. link_all_deplibs=yes
  7725. ;;
  7726. interix[3-9]*)
  7727. hardcode_direct=no
  7728. hardcode_shlibpath_var=no
  7729. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7730. export_dynamic_flag_spec='${wl}-E'
  7731. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7732. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7733. # default) and relocated if they conflict, which is a slow very memory
  7734. # consuming and fragmenting process. To avoid this, we pick a random,
  7735. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7736. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7737. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7738. 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'
  7739. ;;
  7740. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7741. tmp_diet=no
  7742. if test "$host_os" = linux-dietlibc; then
  7743. case $cc_basename in
  7744. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7745. esac
  7746. fi
  7747. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7748. && test "$tmp_diet" = no
  7749. then
  7750. tmp_addflag=' $pic_flag'
  7751. tmp_sharedflag='-shared'
  7752. case $cc_basename,$host_cpu in
  7753. pgcc*) # Portland Group C compiler
  7754. 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'
  7755. tmp_addflag=' $pic_flag'
  7756. ;;
  7757. pgf77* | pgf90* | pgf95* | pgfortran*)
  7758. # Portland Group f77 and f90 compilers
  7759. 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'
  7760. tmp_addflag=' $pic_flag -Mnomain' ;;
  7761. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7762. tmp_addflag=' -i_dynamic' ;;
  7763. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7764. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7765. ifc* | ifort*) # Intel Fortran compiler
  7766. tmp_addflag=' -nofor_main' ;;
  7767. lf95*) # Lahey Fortran 8.1
  7768. whole_archive_flag_spec=
  7769. tmp_sharedflag='--shared' ;;
  7770. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7771. tmp_sharedflag='-qmkshrobj'
  7772. tmp_addflag= ;;
  7773. nvcc*) # Cuda Compiler Driver 2.2
  7774. 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'
  7775. compiler_needs_object=yes
  7776. ;;
  7777. esac
  7778. case `$CC -V 2>&1 | sed 5q` in
  7779. *Sun\ C*) # Sun C 5.9
  7780. 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'
  7781. compiler_needs_object=yes
  7782. tmp_sharedflag='-G' ;;
  7783. *Sun\ F*) # Sun Fortran 8.3
  7784. tmp_sharedflag='-G' ;;
  7785. esac
  7786. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7787. if test "x$supports_anon_versioning" = xyes; then
  7788. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7789. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7790. echo "local: *; };" >> $output_objdir/$libname.ver~
  7791. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7792. fi
  7793. case $cc_basename in
  7794. xlf* | bgf* | bgxlf* | mpixlf*)
  7795. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7796. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7797. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7798. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7799. if test "x$supports_anon_versioning" = xyes; then
  7800. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7801. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7802. echo "local: *; };" >> $output_objdir/$libname.ver~
  7803. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7804. fi
  7805. ;;
  7806. esac
  7807. else
  7808. ld_shlibs=no
  7809. fi
  7810. ;;
  7811. netbsd*)
  7812. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7813. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7814. wlarc=
  7815. else
  7816. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7817. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7818. fi
  7819. ;;
  7820. solaris*)
  7821. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7822. ld_shlibs=no
  7823. cat <<_LT_EOF 1>&2
  7824. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7825. *** create shared libraries on Solaris systems. Therefore, libtool
  7826. *** is disabling shared libraries support. We urge you to upgrade GNU
  7827. *** binutils to release 2.9.1 or newer. Another option is to modify
  7828. *** your PATH or compiler configuration so that the native linker is
  7829. *** used, and then restart.
  7830. _LT_EOF
  7831. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7832. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7833. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7834. else
  7835. ld_shlibs=no
  7836. fi
  7837. ;;
  7838. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7839. case `$LD -v 2>&1` in
  7840. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7841. ld_shlibs=no
  7842. cat <<_LT_EOF 1>&2
  7843. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7844. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7845. *** is disabling shared libraries support. We urge you to upgrade GNU
  7846. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7847. *** your PATH or compiler configuration so that the native linker is
  7848. *** used, and then restart.
  7849. _LT_EOF
  7850. ;;
  7851. *)
  7852. # For security reasons, it is highly recommended that you always
  7853. # use absolute paths for naming shared libraries, and exclude the
  7854. # DT_RUNPATH tag from executables and libraries. But doing so
  7855. # requires that you compile everything twice, which is a pain.
  7856. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7857. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7858. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7859. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7860. else
  7861. ld_shlibs=no
  7862. fi
  7863. ;;
  7864. esac
  7865. ;;
  7866. sunos4*)
  7867. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7868. wlarc=
  7869. hardcode_direct=yes
  7870. hardcode_shlibpath_var=no
  7871. ;;
  7872. *)
  7873. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7874. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7875. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7876. else
  7877. ld_shlibs=no
  7878. fi
  7879. ;;
  7880. esac
  7881. if test "$ld_shlibs" = no; then
  7882. runpath_var=
  7883. hardcode_libdir_flag_spec=
  7884. export_dynamic_flag_spec=
  7885. whole_archive_flag_spec=
  7886. fi
  7887. else
  7888. # PORTME fill in a description of your system's linker (not GNU ld)
  7889. case $host_os in
  7890. aix3*)
  7891. allow_undefined_flag=unsupported
  7892. always_export_symbols=yes
  7893. 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'
  7894. # Note: this linker hardcodes the directories in LIBPATH if there
  7895. # are no directories specified by -L.
  7896. hardcode_minus_L=yes
  7897. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7898. # Neither direct hardcoding nor static linking is supported with a
  7899. # broken collect2.
  7900. hardcode_direct=unsupported
  7901. fi
  7902. ;;
  7903. aix[4-9]*)
  7904. if test "$host_cpu" = ia64; then
  7905. # On IA64, the linker does run time linking by default, so we don't
  7906. # have to do anything special.
  7907. aix_use_runtimelinking=no
  7908. exp_sym_flag='-Bexport'
  7909. no_entry_flag=""
  7910. else
  7911. # If we're using GNU nm, then we don't want the "-C" option.
  7912. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7913. # Also, AIX nm treats weak defined symbols like other global
  7914. # defined symbols, whereas GNU nm marks them as "W".
  7915. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7916. 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'
  7917. else
  7918. 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'
  7919. fi
  7920. aix_use_runtimelinking=no
  7921. # Test if we are trying to use run time linking or normal
  7922. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7923. # need to do runtime linking.
  7924. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7925. for ld_flag in $LDFLAGS; do
  7926. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7927. aix_use_runtimelinking=yes
  7928. break
  7929. fi
  7930. done
  7931. ;;
  7932. esac
  7933. exp_sym_flag='-bexport'
  7934. no_entry_flag='-bnoentry'
  7935. fi
  7936. # When large executables or shared objects are built, AIX ld can
  7937. # have problems creating the table of contents. If linking a library
  7938. # or program results in "error TOC overflow" add -mminimal-toc to
  7939. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7940. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7941. archive_cmds=''
  7942. hardcode_direct=yes
  7943. hardcode_direct_absolute=yes
  7944. hardcode_libdir_separator=':'
  7945. link_all_deplibs=yes
  7946. file_list_spec='${wl}-f,'
  7947. if test "$GCC" = yes; then
  7948. case $host_os in aix4.[012]|aix4.[012].*)
  7949. # We only want to do this on AIX 4.2 and lower, the check
  7950. # below for broken collect2 doesn't work under 4.3+
  7951. collect2name=`${CC} -print-prog-name=collect2`
  7952. if test -f "$collect2name" &&
  7953. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7954. then
  7955. # We have reworked collect2
  7956. :
  7957. else
  7958. # We have old collect2
  7959. hardcode_direct=unsupported
  7960. # It fails to find uninstalled libraries when the uninstalled
  7961. # path is not listed in the libpath. Setting hardcode_minus_L
  7962. # to unsupported forces relinking
  7963. hardcode_minus_L=yes
  7964. hardcode_libdir_flag_spec='-L$libdir'
  7965. hardcode_libdir_separator=
  7966. fi
  7967. ;;
  7968. esac
  7969. shared_flag='-shared'
  7970. if test "$aix_use_runtimelinking" = yes; then
  7971. shared_flag="$shared_flag "'${wl}-G'
  7972. fi
  7973. else
  7974. # not using gcc
  7975. if test "$host_cpu" = ia64; then
  7976. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7977. # chokes on -Wl,-G. The following line is correct:
  7978. shared_flag='-G'
  7979. else
  7980. if test "$aix_use_runtimelinking" = yes; then
  7981. shared_flag='${wl}-G'
  7982. else
  7983. shared_flag='${wl}-bM:SRE'
  7984. fi
  7985. fi
  7986. fi
  7987. export_dynamic_flag_spec='${wl}-bexpall'
  7988. # It seems that -bexpall does not export symbols beginning with
  7989. # underscore (_), so it is better to generate a list of symbols to export.
  7990. always_export_symbols=yes
  7991. if test "$aix_use_runtimelinking" = yes; then
  7992. # Warning - without using the other runtime loading flags (-brtl),
  7993. # -berok will link without error, but may produce a broken library.
  7994. allow_undefined_flag='-berok'
  7995. # Determine the default libpath from the value encoded in an
  7996. # empty executable.
  7997. if test "${lt_cv_aix_libpath+set}" = set; then
  7998. aix_libpath=$lt_cv_aix_libpath
  7999. else
  8000. if ${lt_cv_aix_libpath_+:} false; then :
  8001. $as_echo_n "(cached) " >&6
  8002. else
  8003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8004. /* end confdefs.h. */
  8005. int
  8006. main ()
  8007. {
  8008. ;
  8009. return 0;
  8010. }
  8011. _ACEOF
  8012. if ac_fn_c_try_link "$LINENO"; then :
  8013. lt_aix_libpath_sed='
  8014. /Import File Strings/,/^$/ {
  8015. /^0/ {
  8016. s/^0 *\([^ ]*\) *$/\1/
  8017. p
  8018. }
  8019. }'
  8020. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8021. # Check for a 64-bit object if we didn't find anything.
  8022. if test -z "$lt_cv_aix_libpath_"; then
  8023. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8024. fi
  8025. fi
  8026. rm -f core conftest.err conftest.$ac_objext \
  8027. conftest$ac_exeext conftest.$ac_ext
  8028. if test -z "$lt_cv_aix_libpath_"; then
  8029. lt_cv_aix_libpath_="/usr/lib:/lib"
  8030. fi
  8031. fi
  8032. aix_libpath=$lt_cv_aix_libpath_
  8033. fi
  8034. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8035. 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"
  8036. else
  8037. if test "$host_cpu" = ia64; then
  8038. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8039. allow_undefined_flag="-z nodefs"
  8040. 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"
  8041. else
  8042. # Determine the default libpath from the value encoded in an
  8043. # empty executable.
  8044. if test "${lt_cv_aix_libpath+set}" = set; then
  8045. aix_libpath=$lt_cv_aix_libpath
  8046. else
  8047. if ${lt_cv_aix_libpath_+:} false; then :
  8048. $as_echo_n "(cached) " >&6
  8049. else
  8050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8051. /* end confdefs.h. */
  8052. int
  8053. main ()
  8054. {
  8055. ;
  8056. return 0;
  8057. }
  8058. _ACEOF
  8059. if ac_fn_c_try_link "$LINENO"; then :
  8060. lt_aix_libpath_sed='
  8061. /Import File Strings/,/^$/ {
  8062. /^0/ {
  8063. s/^0 *\([^ ]*\) *$/\1/
  8064. p
  8065. }
  8066. }'
  8067. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8068. # Check for a 64-bit object if we didn't find anything.
  8069. if test -z "$lt_cv_aix_libpath_"; then
  8070. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8071. fi
  8072. fi
  8073. rm -f core conftest.err conftest.$ac_objext \
  8074. conftest$ac_exeext conftest.$ac_ext
  8075. if test -z "$lt_cv_aix_libpath_"; then
  8076. lt_cv_aix_libpath_="/usr/lib:/lib"
  8077. fi
  8078. fi
  8079. aix_libpath=$lt_cv_aix_libpath_
  8080. fi
  8081. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8082. # Warning - without using the other run time loading flags,
  8083. # -berok will link without error, but may produce a broken library.
  8084. no_undefined_flag=' ${wl}-bernotok'
  8085. allow_undefined_flag=' ${wl}-berok'
  8086. if test "$with_gnu_ld" = yes; then
  8087. # We only use this code for GNU lds that support --whole-archive.
  8088. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8089. else
  8090. # Exported symbols can be pulled into shared objects from archives
  8091. whole_archive_flag_spec='$convenience'
  8092. fi
  8093. archive_cmds_need_lc=yes
  8094. # This is similar to how AIX traditionally builds its shared libraries.
  8095. 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'
  8096. fi
  8097. fi
  8098. ;;
  8099. amigaos*)
  8100. case $host_cpu in
  8101. powerpc)
  8102. # see comment about AmigaOS4 .so support
  8103. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8104. archive_expsym_cmds=''
  8105. ;;
  8106. m68k)
  8107. 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)'
  8108. hardcode_libdir_flag_spec='-L$libdir'
  8109. hardcode_minus_L=yes
  8110. ;;
  8111. esac
  8112. ;;
  8113. bsdi[45]*)
  8114. export_dynamic_flag_spec=-rdynamic
  8115. ;;
  8116. cygwin* | mingw* | pw32* | cegcc*)
  8117. # When not using gcc, we currently assume that we are using
  8118. # Microsoft Visual C++.
  8119. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8120. # no search path for DLLs.
  8121. case $cc_basename in
  8122. cl*)
  8123. # Native MSVC
  8124. hardcode_libdir_flag_spec=' '
  8125. allow_undefined_flag=unsupported
  8126. always_export_symbols=yes
  8127. file_list_spec='@'
  8128. # Tell ltmain to make .lib files, not .a files.
  8129. libext=lib
  8130. # Tell ltmain to make .dll files, not .so files.
  8131. shrext_cmds=".dll"
  8132. # FIXME: Setting linknames here is a bad hack.
  8133. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8134. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8135. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8136. else
  8137. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8138. fi~
  8139. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8140. linknames='
  8141. # The linker will not automatically build a static lib if we build a DLL.
  8142. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8143. enable_shared_with_static_runtimes=yes
  8144. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8145. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8146. # Don't use ranlib
  8147. old_postinstall_cmds='chmod 644 $oldlib'
  8148. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8149. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8150. case $lt_outputfile in
  8151. *.exe|*.EXE) ;;
  8152. *)
  8153. lt_outputfile="$lt_outputfile.exe"
  8154. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8155. ;;
  8156. esac~
  8157. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8158. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8159. $RM "$lt_outputfile.manifest";
  8160. fi'
  8161. ;;
  8162. *)
  8163. # Assume MSVC wrapper
  8164. hardcode_libdir_flag_spec=' '
  8165. allow_undefined_flag=unsupported
  8166. # Tell ltmain to make .lib files, not .a files.
  8167. libext=lib
  8168. # Tell ltmain to make .dll files, not .so files.
  8169. shrext_cmds=".dll"
  8170. # FIXME: Setting linknames here is a bad hack.
  8171. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8172. # The linker will automatically build a .lib file if we build a DLL.
  8173. old_archive_from_new_cmds='true'
  8174. # FIXME: Should let the user specify the lib program.
  8175. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8176. enable_shared_with_static_runtimes=yes
  8177. ;;
  8178. esac
  8179. ;;
  8180. darwin* | rhapsody*)
  8181. archive_cmds_need_lc=no
  8182. hardcode_direct=no
  8183. hardcode_automatic=yes
  8184. hardcode_shlibpath_var=unsupported
  8185. if test "$lt_cv_ld_force_load" = "yes"; then
  8186. 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\"`'
  8187. else
  8188. whole_archive_flag_spec=''
  8189. fi
  8190. link_all_deplibs=yes
  8191. allow_undefined_flag="$_lt_dar_allow_undefined"
  8192. case $cc_basename in
  8193. ifort*) _lt_dar_can_shared=yes ;;
  8194. *) _lt_dar_can_shared=$GCC ;;
  8195. esac
  8196. if test "$_lt_dar_can_shared" = "yes"; then
  8197. output_verbose_link_cmd=func_echo_all
  8198. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8199. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8200. 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}"
  8201. 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}"
  8202. else
  8203. ld_shlibs=no
  8204. fi
  8205. ;;
  8206. dgux*)
  8207. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8208. hardcode_libdir_flag_spec='-L$libdir'
  8209. hardcode_shlibpath_var=no
  8210. ;;
  8211. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8212. # support. Future versions do this automatically, but an explicit c++rt0.o
  8213. # does not break anything, and helps significantly (at the cost of a little
  8214. # extra space).
  8215. freebsd2.2*)
  8216. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8217. hardcode_libdir_flag_spec='-R$libdir'
  8218. hardcode_direct=yes
  8219. hardcode_shlibpath_var=no
  8220. ;;
  8221. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8222. freebsd2.*)
  8223. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8224. hardcode_direct=yes
  8225. hardcode_minus_L=yes
  8226. hardcode_shlibpath_var=no
  8227. ;;
  8228. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8229. freebsd* | dragonfly*)
  8230. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8231. hardcode_libdir_flag_spec='-R$libdir'
  8232. hardcode_direct=yes
  8233. hardcode_shlibpath_var=no
  8234. ;;
  8235. hpux9*)
  8236. if test "$GCC" = yes; then
  8237. 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'
  8238. else
  8239. 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'
  8240. fi
  8241. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8242. hardcode_libdir_separator=:
  8243. hardcode_direct=yes
  8244. # hardcode_minus_L: Not really in the search PATH,
  8245. # but as the default location of the library.
  8246. hardcode_minus_L=yes
  8247. export_dynamic_flag_spec='${wl}-E'
  8248. ;;
  8249. hpux10*)
  8250. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8251. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8252. else
  8253. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8254. fi
  8255. if test "$with_gnu_ld" = no; then
  8256. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8257. hardcode_libdir_separator=:
  8258. hardcode_direct=yes
  8259. hardcode_direct_absolute=yes
  8260. export_dynamic_flag_spec='${wl}-E'
  8261. # hardcode_minus_L: Not really in the search PATH,
  8262. # but as the default location of the library.
  8263. hardcode_minus_L=yes
  8264. fi
  8265. ;;
  8266. hpux11*)
  8267. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8268. case $host_cpu in
  8269. hppa*64*)
  8270. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8271. ;;
  8272. ia64*)
  8273. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8274. ;;
  8275. *)
  8276. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8277. ;;
  8278. esac
  8279. else
  8280. case $host_cpu in
  8281. hppa*64*)
  8282. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8283. ;;
  8284. ia64*)
  8285. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8286. ;;
  8287. *)
  8288. # Older versions of the 11.00 compiler do not understand -b yet
  8289. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8291. $as_echo_n "checking if $CC understands -b... " >&6; }
  8292. if ${lt_cv_prog_compiler__b+:} false; then :
  8293. $as_echo_n "(cached) " >&6
  8294. else
  8295. lt_cv_prog_compiler__b=no
  8296. save_LDFLAGS="$LDFLAGS"
  8297. LDFLAGS="$LDFLAGS -b"
  8298. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8299. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8300. # The linker can only warn and ignore the option if not recognized
  8301. # So say no if there are warnings
  8302. if test -s conftest.err; then
  8303. # Append any errors to the config.log.
  8304. cat conftest.err 1>&5
  8305. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8306. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8307. if diff conftest.exp conftest.er2 >/dev/null; then
  8308. lt_cv_prog_compiler__b=yes
  8309. fi
  8310. else
  8311. lt_cv_prog_compiler__b=yes
  8312. fi
  8313. fi
  8314. $RM -r conftest*
  8315. LDFLAGS="$save_LDFLAGS"
  8316. fi
  8317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8318. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8319. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8320. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8321. else
  8322. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8323. fi
  8324. ;;
  8325. esac
  8326. fi
  8327. if test "$with_gnu_ld" = no; then
  8328. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8329. hardcode_libdir_separator=:
  8330. case $host_cpu in
  8331. hppa*64*|ia64*)
  8332. hardcode_direct=no
  8333. hardcode_shlibpath_var=no
  8334. ;;
  8335. *)
  8336. hardcode_direct=yes
  8337. hardcode_direct_absolute=yes
  8338. export_dynamic_flag_spec='${wl}-E'
  8339. # hardcode_minus_L: Not really in the search PATH,
  8340. # but as the default location of the library.
  8341. hardcode_minus_L=yes
  8342. ;;
  8343. esac
  8344. fi
  8345. ;;
  8346. irix5* | irix6* | nonstopux*)
  8347. if test "$GCC" = yes; then
  8348. 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'
  8349. # Try to use the -exported_symbol ld option, if it does not
  8350. # work, assume that -exports_file does not work either and
  8351. # implicitly export all symbols.
  8352. # This should be the same for all languages, so no per-tag cache variable.
  8353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8354. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8355. if ${lt_cv_irix_exported_symbol+:} false; then :
  8356. $as_echo_n "(cached) " >&6
  8357. else
  8358. save_LDFLAGS="$LDFLAGS"
  8359. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8361. /* end confdefs.h. */
  8362. int foo (void) { return 0; }
  8363. _ACEOF
  8364. if ac_fn_c_try_link "$LINENO"; then :
  8365. lt_cv_irix_exported_symbol=yes
  8366. else
  8367. lt_cv_irix_exported_symbol=no
  8368. fi
  8369. rm -f core conftest.err conftest.$ac_objext \
  8370. conftest$ac_exeext conftest.$ac_ext
  8371. LDFLAGS="$save_LDFLAGS"
  8372. fi
  8373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8374. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8375. if test "$lt_cv_irix_exported_symbol" = yes; then
  8376. 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'
  8377. fi
  8378. else
  8379. 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'
  8380. 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'
  8381. fi
  8382. archive_cmds_need_lc='no'
  8383. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8384. hardcode_libdir_separator=:
  8385. inherit_rpath=yes
  8386. link_all_deplibs=yes
  8387. ;;
  8388. netbsd*)
  8389. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8390. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8391. else
  8392. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8393. fi
  8394. hardcode_libdir_flag_spec='-R$libdir'
  8395. hardcode_direct=yes
  8396. hardcode_shlibpath_var=no
  8397. ;;
  8398. newsos6)
  8399. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8400. hardcode_direct=yes
  8401. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8402. hardcode_libdir_separator=:
  8403. hardcode_shlibpath_var=no
  8404. ;;
  8405. *nto* | *qnx*)
  8406. ;;
  8407. openbsd*)
  8408. if test -f /usr/libexec/ld.so; then
  8409. hardcode_direct=yes
  8410. hardcode_shlibpath_var=no
  8411. hardcode_direct_absolute=yes
  8412. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8413. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8414. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8415. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8416. export_dynamic_flag_spec='${wl}-E'
  8417. else
  8418. case $host_os in
  8419. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8420. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8421. hardcode_libdir_flag_spec='-R$libdir'
  8422. ;;
  8423. *)
  8424. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8425. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8426. ;;
  8427. esac
  8428. fi
  8429. else
  8430. ld_shlibs=no
  8431. fi
  8432. ;;
  8433. os2*)
  8434. hardcode_libdir_flag_spec='-L$libdir'
  8435. hardcode_minus_L=yes
  8436. allow_undefined_flag=unsupported
  8437. 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'
  8438. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8439. ;;
  8440. osf3*)
  8441. if test "$GCC" = yes; then
  8442. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8443. 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'
  8444. else
  8445. allow_undefined_flag=' -expect_unresolved \*'
  8446. 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'
  8447. fi
  8448. archive_cmds_need_lc='no'
  8449. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8450. hardcode_libdir_separator=:
  8451. ;;
  8452. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8453. if test "$GCC" = yes; then
  8454. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8455. 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'
  8456. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8457. else
  8458. allow_undefined_flag=' -expect_unresolved \*'
  8459. 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'
  8460. 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~
  8461. $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'
  8462. # Both c and cxx compiler support -rpath directly
  8463. hardcode_libdir_flag_spec='-rpath $libdir'
  8464. fi
  8465. archive_cmds_need_lc='no'
  8466. hardcode_libdir_separator=:
  8467. ;;
  8468. solaris*)
  8469. no_undefined_flag=' -z defs'
  8470. if test "$GCC" = yes; then
  8471. wlarc='${wl}'
  8472. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8473. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8474. $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'
  8475. else
  8476. case `$CC -V 2>&1` in
  8477. *"Compilers 5.0"*)
  8478. wlarc=''
  8479. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8480. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8481. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8482. ;;
  8483. *)
  8484. wlarc='${wl}'
  8485. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8486. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8487. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8488. ;;
  8489. esac
  8490. fi
  8491. hardcode_libdir_flag_spec='-R$libdir'
  8492. hardcode_shlibpath_var=no
  8493. case $host_os in
  8494. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8495. *)
  8496. # The compiler driver will combine and reorder linker options,
  8497. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8498. # but is careful enough not to reorder.
  8499. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8500. if test "$GCC" = yes; then
  8501. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8502. else
  8503. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8504. fi
  8505. ;;
  8506. esac
  8507. link_all_deplibs=yes
  8508. ;;
  8509. sunos4*)
  8510. if test "x$host_vendor" = xsequent; then
  8511. # Use $CC to link under sequent, because it throws in some extra .o
  8512. # files that make .init and .fini sections work.
  8513. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8514. else
  8515. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8516. fi
  8517. hardcode_libdir_flag_spec='-L$libdir'
  8518. hardcode_direct=yes
  8519. hardcode_minus_L=yes
  8520. hardcode_shlibpath_var=no
  8521. ;;
  8522. sysv4)
  8523. case $host_vendor in
  8524. sni)
  8525. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8526. hardcode_direct=yes # is this really true???
  8527. ;;
  8528. siemens)
  8529. ## LD is ld it makes a PLAMLIB
  8530. ## CC just makes a GrossModule.
  8531. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8532. reload_cmds='$CC -r -o $output$reload_objs'
  8533. hardcode_direct=no
  8534. ;;
  8535. motorola)
  8536. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8537. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8538. ;;
  8539. esac
  8540. runpath_var='LD_RUN_PATH'
  8541. hardcode_shlibpath_var=no
  8542. ;;
  8543. sysv4.3*)
  8544. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8545. hardcode_shlibpath_var=no
  8546. export_dynamic_flag_spec='-Bexport'
  8547. ;;
  8548. sysv4*MP*)
  8549. if test -d /usr/nec; then
  8550. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8551. hardcode_shlibpath_var=no
  8552. runpath_var=LD_RUN_PATH
  8553. hardcode_runpath_var=yes
  8554. ld_shlibs=yes
  8555. fi
  8556. ;;
  8557. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8558. no_undefined_flag='${wl}-z,text'
  8559. archive_cmds_need_lc=no
  8560. hardcode_shlibpath_var=no
  8561. runpath_var='LD_RUN_PATH'
  8562. if test "$GCC" = yes; then
  8563. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8564. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8565. else
  8566. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8567. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8568. fi
  8569. ;;
  8570. sysv5* | sco3.2v5* | sco5v6*)
  8571. # Note: We can NOT use -z defs as we might desire, because we do not
  8572. # link with -lc, and that would cause any symbols used from libc to
  8573. # always be unresolved, which means just about no library would
  8574. # ever link correctly. If we're not using GNU ld we use -z text
  8575. # though, which does catch some bad symbols but isn't as heavy-handed
  8576. # as -z defs.
  8577. no_undefined_flag='${wl}-z,text'
  8578. allow_undefined_flag='${wl}-z,nodefs'
  8579. archive_cmds_need_lc=no
  8580. hardcode_shlibpath_var=no
  8581. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8582. hardcode_libdir_separator=':'
  8583. link_all_deplibs=yes
  8584. export_dynamic_flag_spec='${wl}-Bexport'
  8585. runpath_var='LD_RUN_PATH'
  8586. if test "$GCC" = yes; then
  8587. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8588. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8589. else
  8590. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8591. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8592. fi
  8593. ;;
  8594. uts4*)
  8595. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8596. hardcode_libdir_flag_spec='-L$libdir'
  8597. hardcode_shlibpath_var=no
  8598. ;;
  8599. *)
  8600. ld_shlibs=no
  8601. ;;
  8602. esac
  8603. if test x$host_vendor = xsni; then
  8604. case $host in
  8605. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8606. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8607. ;;
  8608. esac
  8609. fi
  8610. fi
  8611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8612. $as_echo "$ld_shlibs" >&6; }
  8613. test "$ld_shlibs" = no && can_build_shared=no
  8614. with_gnu_ld=$with_gnu_ld
  8615. #
  8616. # Do we need to explicitly link libc?
  8617. #
  8618. case "x$archive_cmds_need_lc" in
  8619. x|xyes)
  8620. # Assume -lc should be added
  8621. archive_cmds_need_lc=yes
  8622. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8623. case $archive_cmds in
  8624. *'~'*)
  8625. # FIXME: we may have to deal with multi-command sequences.
  8626. ;;
  8627. '$CC '*)
  8628. # Test whether the compiler implicitly links with -lc since on some
  8629. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8630. # to ld, don't add -lc before -lgcc.
  8631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8632. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8633. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8634. $as_echo_n "(cached) " >&6
  8635. else
  8636. $RM conftest*
  8637. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8638. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8639. (eval $ac_compile) 2>&5
  8640. ac_status=$?
  8641. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8642. test $ac_status = 0; } 2>conftest.err; then
  8643. soname=conftest
  8644. lib=conftest
  8645. libobjs=conftest.$ac_objext
  8646. deplibs=
  8647. wl=$lt_prog_compiler_wl
  8648. pic_flag=$lt_prog_compiler_pic
  8649. compiler_flags=-v
  8650. linker_flags=-v
  8651. verstring=
  8652. output_objdir=.
  8653. libname=conftest
  8654. lt_save_allow_undefined_flag=$allow_undefined_flag
  8655. allow_undefined_flag=
  8656. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8657. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8658. ac_status=$?
  8659. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8660. test $ac_status = 0; }
  8661. then
  8662. lt_cv_archive_cmds_need_lc=no
  8663. else
  8664. lt_cv_archive_cmds_need_lc=yes
  8665. fi
  8666. allow_undefined_flag=$lt_save_allow_undefined_flag
  8667. else
  8668. cat conftest.err 1>&5
  8669. fi
  8670. $RM conftest*
  8671. fi
  8672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8673. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8674. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8675. ;;
  8676. esac
  8677. fi
  8678. ;;
  8679. esac
  8680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8681. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8682. if test "$GCC" = yes; then
  8683. case $host_os in
  8684. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8685. *) lt_awk_arg="/^libraries:/" ;;
  8686. esac
  8687. case $host_os in
  8688. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8689. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8690. esac
  8691. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8692. case $lt_search_path_spec in
  8693. *\;*)
  8694. # if the path contains ";" then we assume it to be the separator
  8695. # otherwise default to the standard path separator (i.e. ":") - it is
  8696. # assumed that no part of a normal pathname contains ";" but that should
  8697. # okay in the real world where ";" in dirpaths is itself problematic.
  8698. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8699. ;;
  8700. *)
  8701. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8702. ;;
  8703. esac
  8704. # Ok, now we have the path, separated by spaces, we can step through it
  8705. # and add multilib dir if necessary...
  8706. lt_tmp_lt_search_path_spec=
  8707. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8708. # ...but if some path already ends with the multilib dir we assume
  8709. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8710. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8711. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8712. lt_multi_os_dir=
  8713. ;;
  8714. esac
  8715. for lt_sys_path in $lt_search_path_spec; do
  8716. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8717. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8718. elif test -n "$lt_multi_os_dir"; then
  8719. test -d "$lt_sys_path" && \
  8720. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8721. fi
  8722. done
  8723. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8724. BEGIN {RS=" "; FS="/|\n";} {
  8725. lt_foo="";
  8726. lt_count=0;
  8727. for (lt_i = NF; lt_i > 0; lt_i--) {
  8728. if ($lt_i != "" && $lt_i != ".") {
  8729. if ($lt_i == "..") {
  8730. lt_count++;
  8731. } else {
  8732. if (lt_count == 0) {
  8733. lt_foo="/" $lt_i lt_foo;
  8734. } else {
  8735. lt_count--;
  8736. }
  8737. }
  8738. }
  8739. }
  8740. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8741. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8742. }'`
  8743. # AWK program above erroneously prepends '/' to C:/dos/paths
  8744. # for these hosts.
  8745. case $host_os in
  8746. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8747. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8748. esac
  8749. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8750. else
  8751. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8752. fi
  8753. library_names_spec=
  8754. libname_spec='lib$name'
  8755. soname_spec=
  8756. shrext_cmds=".so"
  8757. postinstall_cmds=
  8758. postuninstall_cmds=
  8759. finish_cmds=
  8760. finish_eval=
  8761. shlibpath_var=
  8762. shlibpath_overrides_runpath=unknown
  8763. version_type=none
  8764. dynamic_linker="$host_os ld.so"
  8765. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8766. need_lib_prefix=unknown
  8767. hardcode_into_libs=no
  8768. # when you set need_version to no, make sure it does not cause -set_version
  8769. # flags to be left without arguments
  8770. need_version=unknown
  8771. case $host_os in
  8772. aix3*)
  8773. version_type=linux # correct to gnu/linux during the next big refactor
  8774. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8775. shlibpath_var=LIBPATH
  8776. # AIX 3 has no versioning support, so we append a major version to the name.
  8777. soname_spec='${libname}${release}${shared_ext}$major'
  8778. ;;
  8779. aix[4-9]*)
  8780. version_type=linux # correct to gnu/linux during the next big refactor
  8781. need_lib_prefix=no
  8782. need_version=no
  8783. hardcode_into_libs=yes
  8784. if test "$host_cpu" = ia64; then
  8785. # AIX 5 supports IA64
  8786. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8787. shlibpath_var=LD_LIBRARY_PATH
  8788. else
  8789. # With GCC up to 2.95.x, collect2 would create an import file
  8790. # for dependence libraries. The import file would start with
  8791. # the line `#! .'. This would cause the generated library to
  8792. # depend on `.', always an invalid library. This was fixed in
  8793. # development snapshots of GCC prior to 3.0.
  8794. case $host_os in
  8795. aix4 | aix4.[01] | aix4.[01].*)
  8796. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8797. echo ' yes '
  8798. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8799. :
  8800. else
  8801. can_build_shared=no
  8802. fi
  8803. ;;
  8804. esac
  8805. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8806. # soname into executable. Probably we can add versioning support to
  8807. # collect2, so additional links can be useful in future.
  8808. if test "$aix_use_runtimelinking" = yes; then
  8809. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8810. # instead of lib<name>.a to let people know that these are not
  8811. # typical AIX shared libraries.
  8812. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8813. else
  8814. # We preserve .a as extension for shared libraries through AIX4.2
  8815. # and later when we are not doing run time linking.
  8816. library_names_spec='${libname}${release}.a $libname.a'
  8817. soname_spec='${libname}${release}${shared_ext}$major'
  8818. fi
  8819. shlibpath_var=LIBPATH
  8820. fi
  8821. ;;
  8822. amigaos*)
  8823. case $host_cpu in
  8824. powerpc)
  8825. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8826. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8827. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8828. ;;
  8829. m68k)
  8830. library_names_spec='$libname.ixlibrary $libname.a'
  8831. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8832. 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'
  8833. ;;
  8834. esac
  8835. ;;
  8836. beos*)
  8837. library_names_spec='${libname}${shared_ext}'
  8838. dynamic_linker="$host_os ld.so"
  8839. shlibpath_var=LIBRARY_PATH
  8840. ;;
  8841. bsdi[45]*)
  8842. version_type=linux # correct to gnu/linux during the next big refactor
  8843. need_version=no
  8844. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8845. soname_spec='${libname}${release}${shared_ext}$major'
  8846. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8847. shlibpath_var=LD_LIBRARY_PATH
  8848. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8849. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8850. # the default ld.so.conf also contains /usr/contrib/lib and
  8851. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8852. # libtool to hard-code these into programs
  8853. ;;
  8854. cygwin* | mingw* | pw32* | cegcc*)
  8855. version_type=windows
  8856. shrext_cmds=".dll"
  8857. need_version=no
  8858. need_lib_prefix=no
  8859. case $GCC,$cc_basename in
  8860. yes,*)
  8861. # gcc
  8862. library_names_spec='$libname.dll.a'
  8863. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8864. postinstall_cmds='base_file=`basename \${file}`~
  8865. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8866. dldir=$destdir/`dirname \$dlpath`~
  8867. test -d \$dldir || mkdir -p \$dldir~
  8868. $install_prog $dir/$dlname \$dldir/$dlname~
  8869. chmod a+x \$dldir/$dlname~
  8870. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8871. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8872. fi'
  8873. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8874. dlpath=$dir/\$dldll~
  8875. $RM \$dlpath'
  8876. shlibpath_overrides_runpath=yes
  8877. case $host_os in
  8878. cygwin*)
  8879. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8880. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8881. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8882. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8883. ;;
  8884. mingw* | cegcc*)
  8885. # MinGW DLLs use traditional 'lib' prefix
  8886. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8887. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8888. ;;
  8889. pw32*)
  8890. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8891. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8892. ;;
  8893. esac
  8894. dynamic_linker='Win32 ld.exe'
  8895. ;;
  8896. *,cl*)
  8897. # Native MSVC
  8898. libname_spec='$name'
  8899. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8900. library_names_spec='${libname}.dll.lib'
  8901. case $build_os in
  8902. mingw*)
  8903. sys_lib_search_path_spec=
  8904. lt_save_ifs=$IFS
  8905. IFS=';'
  8906. for lt_path in $LIB
  8907. do
  8908. IFS=$lt_save_ifs
  8909. # Let DOS variable expansion print the short 8.3 style file name.
  8910. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8911. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8912. done
  8913. IFS=$lt_save_ifs
  8914. # Convert to MSYS style.
  8915. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8916. ;;
  8917. cygwin*)
  8918. # Convert to unix form, then to dos form, then back to unix form
  8919. # but this time dos style (no spaces!) so that the unix form looks
  8920. # like /cygdrive/c/PROGRA~1:/cygdr...
  8921. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8922. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8923. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8924. ;;
  8925. *)
  8926. sys_lib_search_path_spec="$LIB"
  8927. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8928. # It is most probably a Windows format PATH.
  8929. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8930. else
  8931. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8932. fi
  8933. # FIXME: find the short name or the path components, as spaces are
  8934. # common. (e.g. "Program Files" -> "PROGRA~1")
  8935. ;;
  8936. esac
  8937. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8938. postinstall_cmds='base_file=`basename \${file}`~
  8939. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8940. dldir=$destdir/`dirname \$dlpath`~
  8941. test -d \$dldir || mkdir -p \$dldir~
  8942. $install_prog $dir/$dlname \$dldir/$dlname'
  8943. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8944. dlpath=$dir/\$dldll~
  8945. $RM \$dlpath'
  8946. shlibpath_overrides_runpath=yes
  8947. dynamic_linker='Win32 link.exe'
  8948. ;;
  8949. *)
  8950. # Assume MSVC wrapper
  8951. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8952. dynamic_linker='Win32 ld.exe'
  8953. ;;
  8954. esac
  8955. # FIXME: first we should search . and the directory the executable is in
  8956. shlibpath_var=PATH
  8957. ;;
  8958. darwin* | rhapsody*)
  8959. dynamic_linker="$host_os dyld"
  8960. version_type=darwin
  8961. need_lib_prefix=no
  8962. need_version=no
  8963. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8964. soname_spec='${libname}${release}${major}$shared_ext'
  8965. shlibpath_overrides_runpath=yes
  8966. shlibpath_var=DYLD_LIBRARY_PATH
  8967. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8968. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8969. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8970. ;;
  8971. dgux*)
  8972. version_type=linux # correct to gnu/linux during the next big refactor
  8973. need_lib_prefix=no
  8974. need_version=no
  8975. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8976. soname_spec='${libname}${release}${shared_ext}$major'
  8977. shlibpath_var=LD_LIBRARY_PATH
  8978. ;;
  8979. freebsd* | dragonfly*)
  8980. # DragonFly does not have aout. When/if they implement a new
  8981. # versioning mechanism, adjust this.
  8982. if test -x /usr/bin/objformat; then
  8983. objformat=`/usr/bin/objformat`
  8984. else
  8985. case $host_os in
  8986. freebsd[23].*) objformat=aout ;;
  8987. *) objformat=elf ;;
  8988. esac
  8989. fi
  8990. version_type=freebsd-$objformat
  8991. case $version_type in
  8992. freebsd-elf*)
  8993. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8994. need_version=no
  8995. need_lib_prefix=no
  8996. ;;
  8997. freebsd-*)
  8998. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8999. need_version=yes
  9000. ;;
  9001. esac
  9002. shlibpath_var=LD_LIBRARY_PATH
  9003. case $host_os in
  9004. freebsd2.*)
  9005. shlibpath_overrides_runpath=yes
  9006. ;;
  9007. freebsd3.[01]* | freebsdelf3.[01]*)
  9008. shlibpath_overrides_runpath=yes
  9009. hardcode_into_libs=yes
  9010. ;;
  9011. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9012. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9013. shlibpath_overrides_runpath=no
  9014. hardcode_into_libs=yes
  9015. ;;
  9016. *) # from 4.6 on, and DragonFly
  9017. shlibpath_overrides_runpath=yes
  9018. hardcode_into_libs=yes
  9019. ;;
  9020. esac
  9021. ;;
  9022. gnu*)
  9023. version_type=linux # correct to gnu/linux during the next big refactor
  9024. need_lib_prefix=no
  9025. need_version=no
  9026. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9027. soname_spec='${libname}${release}${shared_ext}$major'
  9028. shlibpath_var=LD_LIBRARY_PATH
  9029. shlibpath_overrides_runpath=no
  9030. hardcode_into_libs=yes
  9031. ;;
  9032. haiku*)
  9033. version_type=linux # correct to gnu/linux during the next big refactor
  9034. need_lib_prefix=no
  9035. need_version=no
  9036. dynamic_linker="$host_os runtime_loader"
  9037. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9038. soname_spec='${libname}${release}${shared_ext}$major'
  9039. shlibpath_var=LIBRARY_PATH
  9040. shlibpath_overrides_runpath=yes
  9041. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9042. hardcode_into_libs=yes
  9043. ;;
  9044. hpux9* | hpux10* | hpux11*)
  9045. # Give a soname corresponding to the major version so that dld.sl refuses to
  9046. # link against other versions.
  9047. version_type=sunos
  9048. need_lib_prefix=no
  9049. need_version=no
  9050. case $host_cpu in
  9051. ia64*)
  9052. shrext_cmds='.so'
  9053. hardcode_into_libs=yes
  9054. dynamic_linker="$host_os dld.so"
  9055. shlibpath_var=LD_LIBRARY_PATH
  9056. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9057. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9058. soname_spec='${libname}${release}${shared_ext}$major'
  9059. if test "X$HPUX_IA64_MODE" = X32; then
  9060. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9061. else
  9062. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9063. fi
  9064. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9065. ;;
  9066. hppa*64*)
  9067. shrext_cmds='.sl'
  9068. hardcode_into_libs=yes
  9069. dynamic_linker="$host_os dld.sl"
  9070. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9071. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9072. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9073. soname_spec='${libname}${release}${shared_ext}$major'
  9074. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9075. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9076. ;;
  9077. *)
  9078. shrext_cmds='.sl'
  9079. dynamic_linker="$host_os dld.sl"
  9080. shlibpath_var=SHLIB_PATH
  9081. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9082. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9083. soname_spec='${libname}${release}${shared_ext}$major'
  9084. ;;
  9085. esac
  9086. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9087. postinstall_cmds='chmod 555 $lib'
  9088. # or fails outright, so override atomically:
  9089. install_override_mode=555
  9090. ;;
  9091. interix[3-9]*)
  9092. version_type=linux # correct to gnu/linux during the next big refactor
  9093. need_lib_prefix=no
  9094. need_version=no
  9095. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9096. soname_spec='${libname}${release}${shared_ext}$major'
  9097. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9098. shlibpath_var=LD_LIBRARY_PATH
  9099. shlibpath_overrides_runpath=no
  9100. hardcode_into_libs=yes
  9101. ;;
  9102. irix5* | irix6* | nonstopux*)
  9103. case $host_os in
  9104. nonstopux*) version_type=nonstopux ;;
  9105. *)
  9106. if test "$lt_cv_prog_gnu_ld" = yes; then
  9107. version_type=linux # correct to gnu/linux during the next big refactor
  9108. else
  9109. version_type=irix
  9110. fi ;;
  9111. esac
  9112. need_lib_prefix=no
  9113. need_version=no
  9114. soname_spec='${libname}${release}${shared_ext}$major'
  9115. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9116. case $host_os in
  9117. irix5* | nonstopux*)
  9118. libsuff= shlibsuff=
  9119. ;;
  9120. *)
  9121. case $LD in # libtool.m4 will add one of these switches to LD
  9122. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9123. libsuff= shlibsuff= libmagic=32-bit;;
  9124. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9125. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9126. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9127. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9128. *) libsuff= shlibsuff= libmagic=never-match;;
  9129. esac
  9130. ;;
  9131. esac
  9132. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9133. shlibpath_overrides_runpath=no
  9134. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9135. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9136. hardcode_into_libs=yes
  9137. ;;
  9138. # No shared lib support for Linux oldld, aout, or coff.
  9139. linux*oldld* | linux*aout* | linux*coff*)
  9140. dynamic_linker=no
  9141. ;;
  9142. # This must be glibc/ELF.
  9143. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9144. version_type=linux # correct to gnu/linux during the next big refactor
  9145. need_lib_prefix=no
  9146. need_version=no
  9147. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9148. soname_spec='${libname}${release}${shared_ext}$major'
  9149. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9150. shlibpath_var=LD_LIBRARY_PATH
  9151. shlibpath_overrides_runpath=no
  9152. # Some binutils ld are patched to set DT_RUNPATH
  9153. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9154. $as_echo_n "(cached) " >&6
  9155. else
  9156. lt_cv_shlibpath_overrides_runpath=no
  9157. save_LDFLAGS=$LDFLAGS
  9158. save_libdir=$libdir
  9159. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9160. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9162. /* end confdefs.h. */
  9163. int
  9164. main ()
  9165. {
  9166. ;
  9167. return 0;
  9168. }
  9169. _ACEOF
  9170. if ac_fn_c_try_link "$LINENO"; then :
  9171. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9172. lt_cv_shlibpath_overrides_runpath=yes
  9173. fi
  9174. fi
  9175. rm -f core conftest.err conftest.$ac_objext \
  9176. conftest$ac_exeext conftest.$ac_ext
  9177. LDFLAGS=$save_LDFLAGS
  9178. libdir=$save_libdir
  9179. fi
  9180. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9181. # This implies no fast_install, which is unacceptable.
  9182. # Some rework will be needed to allow for fast_install
  9183. # before this can be enabled.
  9184. hardcode_into_libs=yes
  9185. # Append ld.so.conf contents to the search path
  9186. if test -f /etc/ld.so.conf; then
  9187. 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' ' '`
  9188. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9189. fi
  9190. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9191. # powerpc, because MkLinux only supported shared libraries with the
  9192. # GNU dynamic linker. Since this was broken with cross compilers,
  9193. # most powerpc-linux boxes support dynamic linking these days and
  9194. # people can always --disable-shared, the test was removed, and we
  9195. # assume the GNU/Linux dynamic linker is in use.
  9196. dynamic_linker='GNU/Linux ld.so'
  9197. ;;
  9198. netbsd*)
  9199. version_type=sunos
  9200. need_lib_prefix=no
  9201. need_version=no
  9202. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9203. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9204. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9205. dynamic_linker='NetBSD (a.out) ld.so'
  9206. else
  9207. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9208. soname_spec='${libname}${release}${shared_ext}$major'
  9209. dynamic_linker='NetBSD ld.elf_so'
  9210. fi
  9211. shlibpath_var=LD_LIBRARY_PATH
  9212. shlibpath_overrides_runpath=yes
  9213. hardcode_into_libs=yes
  9214. ;;
  9215. newsos6)
  9216. version_type=linux # correct to gnu/linux during the next big refactor
  9217. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9218. shlibpath_var=LD_LIBRARY_PATH
  9219. shlibpath_overrides_runpath=yes
  9220. ;;
  9221. *nto* | *qnx*)
  9222. version_type=qnx
  9223. need_lib_prefix=no
  9224. need_version=no
  9225. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9226. soname_spec='${libname}${release}${shared_ext}$major'
  9227. shlibpath_var=LD_LIBRARY_PATH
  9228. shlibpath_overrides_runpath=no
  9229. hardcode_into_libs=yes
  9230. dynamic_linker='ldqnx.so'
  9231. ;;
  9232. openbsd*)
  9233. version_type=sunos
  9234. sys_lib_dlsearch_path_spec="/usr/lib"
  9235. need_lib_prefix=no
  9236. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9237. case $host_os in
  9238. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9239. *) need_version=no ;;
  9240. esac
  9241. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9242. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9243. shlibpath_var=LD_LIBRARY_PATH
  9244. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9245. case $host_os in
  9246. openbsd2.[89] | openbsd2.[89].*)
  9247. shlibpath_overrides_runpath=no
  9248. ;;
  9249. *)
  9250. shlibpath_overrides_runpath=yes
  9251. ;;
  9252. esac
  9253. else
  9254. shlibpath_overrides_runpath=yes
  9255. fi
  9256. ;;
  9257. os2*)
  9258. libname_spec='$name'
  9259. shrext_cmds=".dll"
  9260. need_lib_prefix=no
  9261. library_names_spec='$libname${shared_ext} $libname.a'
  9262. dynamic_linker='OS/2 ld.exe'
  9263. shlibpath_var=LIBPATH
  9264. ;;
  9265. osf3* | osf4* | osf5*)
  9266. version_type=osf
  9267. need_lib_prefix=no
  9268. need_version=no
  9269. soname_spec='${libname}${release}${shared_ext}$major'
  9270. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9271. shlibpath_var=LD_LIBRARY_PATH
  9272. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9273. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9274. ;;
  9275. rdos*)
  9276. dynamic_linker=no
  9277. ;;
  9278. solaris*)
  9279. version_type=linux # correct to gnu/linux during the next big refactor
  9280. need_lib_prefix=no
  9281. need_version=no
  9282. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9283. soname_spec='${libname}${release}${shared_ext}$major'
  9284. shlibpath_var=LD_LIBRARY_PATH
  9285. shlibpath_overrides_runpath=yes
  9286. hardcode_into_libs=yes
  9287. # ldd complains unless libraries are executable
  9288. postinstall_cmds='chmod +x $lib'
  9289. ;;
  9290. sunos4*)
  9291. version_type=sunos
  9292. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9293. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9294. shlibpath_var=LD_LIBRARY_PATH
  9295. shlibpath_overrides_runpath=yes
  9296. if test "$with_gnu_ld" = yes; then
  9297. need_lib_prefix=no
  9298. fi
  9299. need_version=yes
  9300. ;;
  9301. sysv4 | sysv4.3*)
  9302. version_type=linux # correct to gnu/linux during the next big refactor
  9303. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9304. soname_spec='${libname}${release}${shared_ext}$major'
  9305. shlibpath_var=LD_LIBRARY_PATH
  9306. case $host_vendor in
  9307. sni)
  9308. shlibpath_overrides_runpath=no
  9309. need_lib_prefix=no
  9310. runpath_var=LD_RUN_PATH
  9311. ;;
  9312. siemens)
  9313. need_lib_prefix=no
  9314. ;;
  9315. motorola)
  9316. need_lib_prefix=no
  9317. need_version=no
  9318. shlibpath_overrides_runpath=no
  9319. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9320. ;;
  9321. esac
  9322. ;;
  9323. sysv4*MP*)
  9324. if test -d /usr/nec ;then
  9325. version_type=linux # correct to gnu/linux during the next big refactor
  9326. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9327. soname_spec='$libname${shared_ext}.$major'
  9328. shlibpath_var=LD_LIBRARY_PATH
  9329. fi
  9330. ;;
  9331. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9332. version_type=freebsd-elf
  9333. need_lib_prefix=no
  9334. need_version=no
  9335. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9336. soname_spec='${libname}${release}${shared_ext}$major'
  9337. shlibpath_var=LD_LIBRARY_PATH
  9338. shlibpath_overrides_runpath=yes
  9339. hardcode_into_libs=yes
  9340. if test "$with_gnu_ld" = yes; then
  9341. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9342. else
  9343. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9344. case $host_os in
  9345. sco3.2v5*)
  9346. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9347. ;;
  9348. esac
  9349. fi
  9350. sys_lib_dlsearch_path_spec='/usr/lib'
  9351. ;;
  9352. tpf*)
  9353. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9354. version_type=linux # correct to gnu/linux during the next big refactor
  9355. need_lib_prefix=no
  9356. need_version=no
  9357. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9358. shlibpath_var=LD_LIBRARY_PATH
  9359. shlibpath_overrides_runpath=no
  9360. hardcode_into_libs=yes
  9361. ;;
  9362. uts4*)
  9363. version_type=linux # correct to gnu/linux during the next big refactor
  9364. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9365. soname_spec='${libname}${release}${shared_ext}$major'
  9366. shlibpath_var=LD_LIBRARY_PATH
  9367. ;;
  9368. *)
  9369. dynamic_linker=no
  9370. ;;
  9371. esac
  9372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9373. $as_echo "$dynamic_linker" >&6; }
  9374. test "$dynamic_linker" = no && can_build_shared=no
  9375. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9376. if test "$GCC" = yes; then
  9377. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9378. fi
  9379. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9380. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9381. fi
  9382. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9383. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9384. fi
  9385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9386. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9387. hardcode_action=
  9388. if test -n "$hardcode_libdir_flag_spec" ||
  9389. test -n "$runpath_var" ||
  9390. test "X$hardcode_automatic" = "Xyes" ; then
  9391. # We can hardcode non-existent directories.
  9392. if test "$hardcode_direct" != no &&
  9393. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9394. # have to relink, otherwise we might link with an installed library
  9395. # when we should be linking with a yet-to-be-installed one
  9396. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9397. test "$hardcode_minus_L" != no; then
  9398. # Linking always hardcodes the temporary library directory.
  9399. hardcode_action=relink
  9400. else
  9401. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9402. hardcode_action=immediate
  9403. fi
  9404. else
  9405. # We cannot hardcode anything, or else we can only hardcode existing
  9406. # directories.
  9407. hardcode_action=unsupported
  9408. fi
  9409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9410. $as_echo "$hardcode_action" >&6; }
  9411. if test "$hardcode_action" = relink ||
  9412. test "$inherit_rpath" = yes; then
  9413. # Fast installation is not supported
  9414. enable_fast_install=no
  9415. elif test "$shlibpath_overrides_runpath" = yes ||
  9416. test "$enable_shared" = no; then
  9417. # Fast installation is not necessary
  9418. enable_fast_install=needless
  9419. fi
  9420. if test "x$enable_dlopen" != xyes; then
  9421. enable_dlopen=unknown
  9422. enable_dlopen_self=unknown
  9423. enable_dlopen_self_static=unknown
  9424. else
  9425. lt_cv_dlopen=no
  9426. lt_cv_dlopen_libs=
  9427. case $host_os in
  9428. beos*)
  9429. lt_cv_dlopen="load_add_on"
  9430. lt_cv_dlopen_libs=
  9431. lt_cv_dlopen_self=yes
  9432. ;;
  9433. mingw* | pw32* | cegcc*)
  9434. lt_cv_dlopen="LoadLibrary"
  9435. lt_cv_dlopen_libs=
  9436. ;;
  9437. cygwin*)
  9438. lt_cv_dlopen="dlopen"
  9439. lt_cv_dlopen_libs=
  9440. ;;
  9441. darwin*)
  9442. # if libdl is installed we need to link against it
  9443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9444. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9445. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9446. $as_echo_n "(cached) " >&6
  9447. else
  9448. ac_check_lib_save_LIBS=$LIBS
  9449. LIBS="-ldl $LIBS"
  9450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9451. /* end confdefs.h. */
  9452. /* Override any GCC internal prototype to avoid an error.
  9453. Use char because int might match the return type of a GCC
  9454. builtin and then its argument prototype would still apply. */
  9455. #ifdef __cplusplus
  9456. extern "C"
  9457. #endif
  9458. char dlopen ();
  9459. int
  9460. main ()
  9461. {
  9462. return dlopen ();
  9463. ;
  9464. return 0;
  9465. }
  9466. _ACEOF
  9467. if ac_fn_c_try_link "$LINENO"; then :
  9468. ac_cv_lib_dl_dlopen=yes
  9469. else
  9470. ac_cv_lib_dl_dlopen=no
  9471. fi
  9472. rm -f core conftest.err conftest.$ac_objext \
  9473. conftest$ac_exeext conftest.$ac_ext
  9474. LIBS=$ac_check_lib_save_LIBS
  9475. fi
  9476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9477. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9478. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9479. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9480. else
  9481. lt_cv_dlopen="dyld"
  9482. lt_cv_dlopen_libs=
  9483. lt_cv_dlopen_self=yes
  9484. fi
  9485. ;;
  9486. *)
  9487. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9488. if test "x$ac_cv_func_shl_load" = xyes; then :
  9489. lt_cv_dlopen="shl_load"
  9490. else
  9491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9492. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9493. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9494. $as_echo_n "(cached) " >&6
  9495. else
  9496. ac_check_lib_save_LIBS=$LIBS
  9497. LIBS="-ldld $LIBS"
  9498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9499. /* end confdefs.h. */
  9500. /* Override any GCC internal prototype to avoid an error.
  9501. Use char because int might match the return type of a GCC
  9502. builtin and then its argument prototype would still apply. */
  9503. #ifdef __cplusplus
  9504. extern "C"
  9505. #endif
  9506. char shl_load ();
  9507. int
  9508. main ()
  9509. {
  9510. return shl_load ();
  9511. ;
  9512. return 0;
  9513. }
  9514. _ACEOF
  9515. if ac_fn_c_try_link "$LINENO"; then :
  9516. ac_cv_lib_dld_shl_load=yes
  9517. else
  9518. ac_cv_lib_dld_shl_load=no
  9519. fi
  9520. rm -f core conftest.err conftest.$ac_objext \
  9521. conftest$ac_exeext conftest.$ac_ext
  9522. LIBS=$ac_check_lib_save_LIBS
  9523. fi
  9524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9525. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9526. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9527. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9528. else
  9529. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9530. if test "x$ac_cv_func_dlopen" = xyes; then :
  9531. lt_cv_dlopen="dlopen"
  9532. else
  9533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9534. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9535. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9536. $as_echo_n "(cached) " >&6
  9537. else
  9538. ac_check_lib_save_LIBS=$LIBS
  9539. LIBS="-ldl $LIBS"
  9540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9541. /* end confdefs.h. */
  9542. /* Override any GCC internal prototype to avoid an error.
  9543. Use char because int might match the return type of a GCC
  9544. builtin and then its argument prototype would still apply. */
  9545. #ifdef __cplusplus
  9546. extern "C"
  9547. #endif
  9548. char dlopen ();
  9549. int
  9550. main ()
  9551. {
  9552. return dlopen ();
  9553. ;
  9554. return 0;
  9555. }
  9556. _ACEOF
  9557. if ac_fn_c_try_link "$LINENO"; then :
  9558. ac_cv_lib_dl_dlopen=yes
  9559. else
  9560. ac_cv_lib_dl_dlopen=no
  9561. fi
  9562. rm -f core conftest.err conftest.$ac_objext \
  9563. conftest$ac_exeext conftest.$ac_ext
  9564. LIBS=$ac_check_lib_save_LIBS
  9565. fi
  9566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9567. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9568. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9569. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9570. else
  9571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9572. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9573. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9574. $as_echo_n "(cached) " >&6
  9575. else
  9576. ac_check_lib_save_LIBS=$LIBS
  9577. LIBS="-lsvld $LIBS"
  9578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9579. /* end confdefs.h. */
  9580. /* Override any GCC internal prototype to avoid an error.
  9581. Use char because int might match the return type of a GCC
  9582. builtin and then its argument prototype would still apply. */
  9583. #ifdef __cplusplus
  9584. extern "C"
  9585. #endif
  9586. char dlopen ();
  9587. int
  9588. main ()
  9589. {
  9590. return dlopen ();
  9591. ;
  9592. return 0;
  9593. }
  9594. _ACEOF
  9595. if ac_fn_c_try_link "$LINENO"; then :
  9596. ac_cv_lib_svld_dlopen=yes
  9597. else
  9598. ac_cv_lib_svld_dlopen=no
  9599. fi
  9600. rm -f core conftest.err conftest.$ac_objext \
  9601. conftest$ac_exeext conftest.$ac_ext
  9602. LIBS=$ac_check_lib_save_LIBS
  9603. fi
  9604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9605. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9606. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9607. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9608. else
  9609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9610. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9611. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9612. $as_echo_n "(cached) " >&6
  9613. else
  9614. ac_check_lib_save_LIBS=$LIBS
  9615. LIBS="-ldld $LIBS"
  9616. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9617. /* end confdefs.h. */
  9618. /* Override any GCC internal prototype to avoid an error.
  9619. Use char because int might match the return type of a GCC
  9620. builtin and then its argument prototype would still apply. */
  9621. #ifdef __cplusplus
  9622. extern "C"
  9623. #endif
  9624. char dld_link ();
  9625. int
  9626. main ()
  9627. {
  9628. return dld_link ();
  9629. ;
  9630. return 0;
  9631. }
  9632. _ACEOF
  9633. if ac_fn_c_try_link "$LINENO"; then :
  9634. ac_cv_lib_dld_dld_link=yes
  9635. else
  9636. ac_cv_lib_dld_dld_link=no
  9637. fi
  9638. rm -f core conftest.err conftest.$ac_objext \
  9639. conftest$ac_exeext conftest.$ac_ext
  9640. LIBS=$ac_check_lib_save_LIBS
  9641. fi
  9642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9643. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9644. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9645. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9646. fi
  9647. fi
  9648. fi
  9649. fi
  9650. fi
  9651. fi
  9652. ;;
  9653. esac
  9654. if test "x$lt_cv_dlopen" != xno; then
  9655. enable_dlopen=yes
  9656. else
  9657. enable_dlopen=no
  9658. fi
  9659. case $lt_cv_dlopen in
  9660. dlopen)
  9661. save_CPPFLAGS="$CPPFLAGS"
  9662. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9663. save_LDFLAGS="$LDFLAGS"
  9664. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9665. save_LIBS="$LIBS"
  9666. LIBS="$lt_cv_dlopen_libs $LIBS"
  9667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9668. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9669. if ${lt_cv_dlopen_self+:} false; then :
  9670. $as_echo_n "(cached) " >&6
  9671. else
  9672. if test "$cross_compiling" = yes; then :
  9673. lt_cv_dlopen_self=cross
  9674. else
  9675. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9676. lt_status=$lt_dlunknown
  9677. cat > conftest.$ac_ext <<_LT_EOF
  9678. #line $LINENO "configure"
  9679. #include "confdefs.h"
  9680. #if HAVE_DLFCN_H
  9681. #include <dlfcn.h>
  9682. #endif
  9683. #include <stdio.h>
  9684. #ifdef RTLD_GLOBAL
  9685. # define LT_DLGLOBAL RTLD_GLOBAL
  9686. #else
  9687. # ifdef DL_GLOBAL
  9688. # define LT_DLGLOBAL DL_GLOBAL
  9689. # else
  9690. # define LT_DLGLOBAL 0
  9691. # endif
  9692. #endif
  9693. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9694. find out it does not work in some platform. */
  9695. #ifndef LT_DLLAZY_OR_NOW
  9696. # ifdef RTLD_LAZY
  9697. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9698. # else
  9699. # ifdef DL_LAZY
  9700. # define LT_DLLAZY_OR_NOW DL_LAZY
  9701. # else
  9702. # ifdef RTLD_NOW
  9703. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9704. # else
  9705. # ifdef DL_NOW
  9706. # define LT_DLLAZY_OR_NOW DL_NOW
  9707. # else
  9708. # define LT_DLLAZY_OR_NOW 0
  9709. # endif
  9710. # endif
  9711. # endif
  9712. # endif
  9713. #endif
  9714. /* When -fvisbility=hidden is used, assume the code has been annotated
  9715. correspondingly for the symbols needed. */
  9716. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9717. int fnord () __attribute__((visibility("default")));
  9718. #endif
  9719. int fnord () { return 42; }
  9720. int main ()
  9721. {
  9722. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9723. int status = $lt_dlunknown;
  9724. if (self)
  9725. {
  9726. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9727. else
  9728. {
  9729. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9730. else puts (dlerror ());
  9731. }
  9732. /* dlclose (self); */
  9733. }
  9734. else
  9735. puts (dlerror ());
  9736. return status;
  9737. }
  9738. _LT_EOF
  9739. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9740. (eval $ac_link) 2>&5
  9741. ac_status=$?
  9742. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9743. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9744. (./conftest; exit; ) >&5 2>/dev/null
  9745. lt_status=$?
  9746. case x$lt_status in
  9747. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9748. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9749. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9750. esac
  9751. else :
  9752. # compilation failed
  9753. lt_cv_dlopen_self=no
  9754. fi
  9755. fi
  9756. rm -fr conftest*
  9757. fi
  9758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9759. $as_echo "$lt_cv_dlopen_self" >&6; }
  9760. if test "x$lt_cv_dlopen_self" = xyes; then
  9761. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9763. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9764. if ${lt_cv_dlopen_self_static+:} false; then :
  9765. $as_echo_n "(cached) " >&6
  9766. else
  9767. if test "$cross_compiling" = yes; then :
  9768. lt_cv_dlopen_self_static=cross
  9769. else
  9770. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9771. lt_status=$lt_dlunknown
  9772. cat > conftest.$ac_ext <<_LT_EOF
  9773. #line $LINENO "configure"
  9774. #include "confdefs.h"
  9775. #if HAVE_DLFCN_H
  9776. #include <dlfcn.h>
  9777. #endif
  9778. #include <stdio.h>
  9779. #ifdef RTLD_GLOBAL
  9780. # define LT_DLGLOBAL RTLD_GLOBAL
  9781. #else
  9782. # ifdef DL_GLOBAL
  9783. # define LT_DLGLOBAL DL_GLOBAL
  9784. # else
  9785. # define LT_DLGLOBAL 0
  9786. # endif
  9787. #endif
  9788. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9789. find out it does not work in some platform. */
  9790. #ifndef LT_DLLAZY_OR_NOW
  9791. # ifdef RTLD_LAZY
  9792. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9793. # else
  9794. # ifdef DL_LAZY
  9795. # define LT_DLLAZY_OR_NOW DL_LAZY
  9796. # else
  9797. # ifdef RTLD_NOW
  9798. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9799. # else
  9800. # ifdef DL_NOW
  9801. # define LT_DLLAZY_OR_NOW DL_NOW
  9802. # else
  9803. # define LT_DLLAZY_OR_NOW 0
  9804. # endif
  9805. # endif
  9806. # endif
  9807. # endif
  9808. #endif
  9809. /* When -fvisbility=hidden is used, assume the code has been annotated
  9810. correspondingly for the symbols needed. */
  9811. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9812. int fnord () __attribute__((visibility("default")));
  9813. #endif
  9814. int fnord () { return 42; }
  9815. int main ()
  9816. {
  9817. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9818. int status = $lt_dlunknown;
  9819. if (self)
  9820. {
  9821. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9822. else
  9823. {
  9824. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9825. else puts (dlerror ());
  9826. }
  9827. /* dlclose (self); */
  9828. }
  9829. else
  9830. puts (dlerror ());
  9831. return status;
  9832. }
  9833. _LT_EOF
  9834. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9835. (eval $ac_link) 2>&5
  9836. ac_status=$?
  9837. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9838. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9839. (./conftest; exit; ) >&5 2>/dev/null
  9840. lt_status=$?
  9841. case x$lt_status in
  9842. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9843. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9844. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9845. esac
  9846. else :
  9847. # compilation failed
  9848. lt_cv_dlopen_self_static=no
  9849. fi
  9850. fi
  9851. rm -fr conftest*
  9852. fi
  9853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9854. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9855. fi
  9856. CPPFLAGS="$save_CPPFLAGS"
  9857. LDFLAGS="$save_LDFLAGS"
  9858. LIBS="$save_LIBS"
  9859. ;;
  9860. esac
  9861. case $lt_cv_dlopen_self in
  9862. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9863. *) enable_dlopen_self=unknown ;;
  9864. esac
  9865. case $lt_cv_dlopen_self_static in
  9866. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9867. *) enable_dlopen_self_static=unknown ;;
  9868. esac
  9869. fi
  9870. striplib=
  9871. old_striplib=
  9872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9873. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9874. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9875. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9876. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9878. $as_echo "yes" >&6; }
  9879. else
  9880. # FIXME - insert some real tests, host_os isn't really good enough
  9881. case $host_os in
  9882. darwin*)
  9883. if test -n "$STRIP" ; then
  9884. striplib="$STRIP -x"
  9885. old_striplib="$STRIP -S"
  9886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9887. $as_echo "yes" >&6; }
  9888. else
  9889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9890. $as_echo "no" >&6; }
  9891. fi
  9892. ;;
  9893. *)
  9894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9895. $as_echo "no" >&6; }
  9896. ;;
  9897. esac
  9898. fi
  9899. # Report which library types will actually be built
  9900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9901. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9903. $as_echo "$can_build_shared" >&6; }
  9904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9905. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9906. test "$can_build_shared" = "no" && enable_shared=no
  9907. # On AIX, shared libraries and static libraries use the same namespace, and
  9908. # are all built from PIC.
  9909. case $host_os in
  9910. aix3*)
  9911. test "$enable_shared" = yes && enable_static=no
  9912. if test -n "$RANLIB"; then
  9913. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9914. postinstall_cmds='$RANLIB $lib'
  9915. fi
  9916. ;;
  9917. aix[4-9]*)
  9918. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9919. test "$enable_shared" = yes && enable_static=no
  9920. fi
  9921. ;;
  9922. esac
  9923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9924. $as_echo "$enable_shared" >&6; }
  9925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9926. $as_echo_n "checking whether to build static libraries... " >&6; }
  9927. # Make sure either enable_shared or enable_static is yes.
  9928. test "$enable_shared" = yes || enable_static=yes
  9929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9930. $as_echo "$enable_static" >&6; }
  9931. fi
  9932. ac_ext=c
  9933. ac_cpp='$CPP $CPPFLAGS'
  9934. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9935. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9936. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9937. CC="$lt_save_CC"
  9938. ac_config_commands="$ac_config_commands libtool"
  9939. # Only expand once:
  9940. if test -n "$ac_tool_prefix"; then
  9941. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  9942. set dummy ${ac_tool_prefix}windres; ac_word=$2
  9943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9944. $as_echo_n "checking for $ac_word... " >&6; }
  9945. if ${ac_cv_prog_RC+:} false; then :
  9946. $as_echo_n "(cached) " >&6
  9947. else
  9948. if test -n "$RC"; then
  9949. ac_cv_prog_RC="$RC" # Let the user override the test.
  9950. else
  9951. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9952. for as_dir in $PATH
  9953. do
  9954. IFS=$as_save_IFS
  9955. test -z "$as_dir" && as_dir=.
  9956. for ac_exec_ext in '' $ac_executable_extensions; do
  9957. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9958. ac_cv_prog_RC="${ac_tool_prefix}windres"
  9959. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9960. break 2
  9961. fi
  9962. done
  9963. done
  9964. IFS=$as_save_IFS
  9965. fi
  9966. fi
  9967. RC=$ac_cv_prog_RC
  9968. if test -n "$RC"; then
  9969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  9970. $as_echo "$RC" >&6; }
  9971. else
  9972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9973. $as_echo "no" >&6; }
  9974. fi
  9975. fi
  9976. if test -z "$ac_cv_prog_RC"; then
  9977. ac_ct_RC=$RC
  9978. # Extract the first word of "windres", so it can be a program name with args.
  9979. set dummy windres; ac_word=$2
  9980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9981. $as_echo_n "checking for $ac_word... " >&6; }
  9982. if ${ac_cv_prog_ac_ct_RC+:} false; then :
  9983. $as_echo_n "(cached) " >&6
  9984. else
  9985. if test -n "$ac_ct_RC"; then
  9986. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  9987. else
  9988. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9989. for as_dir in $PATH
  9990. do
  9991. IFS=$as_save_IFS
  9992. test -z "$as_dir" && as_dir=.
  9993. for ac_exec_ext in '' $ac_executable_extensions; do
  9994. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9995. ac_cv_prog_ac_ct_RC="windres"
  9996. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9997. break 2
  9998. fi
  9999. done
  10000. done
  10001. IFS=$as_save_IFS
  10002. fi
  10003. fi
  10004. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  10005. if test -n "$ac_ct_RC"; then
  10006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  10007. $as_echo "$ac_ct_RC" >&6; }
  10008. else
  10009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10010. $as_echo "no" >&6; }
  10011. fi
  10012. if test "x$ac_ct_RC" = x; then
  10013. RC=""
  10014. else
  10015. case $cross_compiling:$ac_tool_warned in
  10016. yes:)
  10017. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10018. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10019. ac_tool_warned=yes ;;
  10020. esac
  10021. RC=$ac_ct_RC
  10022. fi
  10023. else
  10024. RC="$ac_cv_prog_RC"
  10025. fi
  10026. # Source file extension for RC test sources.
  10027. ac_ext=rc
  10028. # Object file extension for compiled RC test sources.
  10029. objext=o
  10030. objext_RC=$objext
  10031. # Code to be used in simple compile tests
  10032. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  10033. # Code to be used in simple link tests
  10034. lt_simple_link_test_code="$lt_simple_compile_test_code"
  10035. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10036. # If no C compiler was specified, use CC.
  10037. LTCC=${LTCC-"$CC"}
  10038. # If no C compiler flags were specified, use CFLAGS.
  10039. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10040. # Allow CC to be a program name with arguments.
  10041. compiler=$CC
  10042. # save warnings/boilerplate of simple test code
  10043. ac_outfile=conftest.$ac_objext
  10044. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10045. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10046. _lt_compiler_boilerplate=`cat conftest.err`
  10047. $RM conftest*
  10048. ac_outfile=conftest.$ac_objext
  10049. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10050. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10051. _lt_linker_boilerplate=`cat conftest.err`
  10052. $RM -r conftest*
  10053. # Allow CC to be a program name with arguments.
  10054. lt_save_CC="$CC"
  10055. lt_save_CFLAGS=$CFLAGS
  10056. lt_save_GCC=$GCC
  10057. GCC=
  10058. CC=${RC-"windres"}
  10059. CFLAGS=
  10060. compiler=$CC
  10061. compiler_RC=$CC
  10062. for cc_temp in $compiler""; do
  10063. case $cc_temp in
  10064. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10065. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10066. \-*) ;;
  10067. *) break;;
  10068. esac
  10069. done
  10070. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10071. lt_cv_prog_compiler_c_o_RC=yes
  10072. if test -n "$compiler"; then
  10073. :
  10074. fi
  10075. GCC=$lt_save_GCC
  10076. ac_ext=c
  10077. ac_cpp='$CPP $CPPFLAGS'
  10078. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10079. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10080. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10081. CC=$lt_save_CC
  10082. CFLAGS=$lt_save_CFLAGS
  10083. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  10084. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  10085. LT_REVISION=$SDL_INTERFACE_AGE
  10086. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  10087. ac_ext=c
  10088. ac_cpp='$CPP $CPPFLAGS'
  10089. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10090. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10091. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10092. if test -n "$ac_tool_prefix"; then
  10093. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  10094. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  10095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10096. $as_echo_n "checking for $ac_word... " >&6; }
  10097. if ${ac_cv_prog_CC+:} false; then :
  10098. $as_echo_n "(cached) " >&6
  10099. else
  10100. if test -n "$CC"; then
  10101. ac_cv_prog_CC="$CC" # Let the user override the test.
  10102. else
  10103. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10104. for as_dir in $PATH
  10105. do
  10106. IFS=$as_save_IFS
  10107. test -z "$as_dir" && as_dir=.
  10108. for ac_exec_ext in '' $ac_executable_extensions; do
  10109. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10110. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  10111. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10112. break 2
  10113. fi
  10114. done
  10115. done
  10116. IFS=$as_save_IFS
  10117. fi
  10118. fi
  10119. CC=$ac_cv_prog_CC
  10120. if test -n "$CC"; then
  10121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10122. $as_echo "$CC" >&6; }
  10123. else
  10124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10125. $as_echo "no" >&6; }
  10126. fi
  10127. fi
  10128. if test -z "$ac_cv_prog_CC"; then
  10129. ac_ct_CC=$CC
  10130. # Extract the first word of "gcc", so it can be a program name with args.
  10131. set dummy gcc; ac_word=$2
  10132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10133. $as_echo_n "checking for $ac_word... " >&6; }
  10134. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10135. $as_echo_n "(cached) " >&6
  10136. else
  10137. if test -n "$ac_ct_CC"; then
  10138. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10139. else
  10140. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10141. for as_dir in $PATH
  10142. do
  10143. IFS=$as_save_IFS
  10144. test -z "$as_dir" && as_dir=.
  10145. for ac_exec_ext in '' $ac_executable_extensions; do
  10146. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10147. ac_cv_prog_ac_ct_CC="gcc"
  10148. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10149. break 2
  10150. fi
  10151. done
  10152. done
  10153. IFS=$as_save_IFS
  10154. fi
  10155. fi
  10156. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10157. if test -n "$ac_ct_CC"; then
  10158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10159. $as_echo "$ac_ct_CC" >&6; }
  10160. else
  10161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10162. $as_echo "no" >&6; }
  10163. fi
  10164. if test "x$ac_ct_CC" = x; then
  10165. CC=""
  10166. else
  10167. case $cross_compiling:$ac_tool_warned in
  10168. yes:)
  10169. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10170. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10171. ac_tool_warned=yes ;;
  10172. esac
  10173. CC=$ac_ct_CC
  10174. fi
  10175. else
  10176. CC="$ac_cv_prog_CC"
  10177. fi
  10178. if test -z "$CC"; then
  10179. if test -n "$ac_tool_prefix"; then
  10180. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  10181. set dummy ${ac_tool_prefix}cc; ac_word=$2
  10182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10183. $as_echo_n "checking for $ac_word... " >&6; }
  10184. if ${ac_cv_prog_CC+:} false; then :
  10185. $as_echo_n "(cached) " >&6
  10186. else
  10187. if test -n "$CC"; then
  10188. ac_cv_prog_CC="$CC" # Let the user override the test.
  10189. else
  10190. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10191. for as_dir in $PATH
  10192. do
  10193. IFS=$as_save_IFS
  10194. test -z "$as_dir" && as_dir=.
  10195. for ac_exec_ext in '' $ac_executable_extensions; do
  10196. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10197. ac_cv_prog_CC="${ac_tool_prefix}cc"
  10198. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10199. break 2
  10200. fi
  10201. done
  10202. done
  10203. IFS=$as_save_IFS
  10204. fi
  10205. fi
  10206. CC=$ac_cv_prog_CC
  10207. if test -n "$CC"; then
  10208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10209. $as_echo "$CC" >&6; }
  10210. else
  10211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10212. $as_echo "no" >&6; }
  10213. fi
  10214. fi
  10215. fi
  10216. if test -z "$CC"; then
  10217. # Extract the first word of "cc", so it can be a program name with args.
  10218. set dummy cc; ac_word=$2
  10219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10220. $as_echo_n "checking for $ac_word... " >&6; }
  10221. if ${ac_cv_prog_CC+:} false; then :
  10222. $as_echo_n "(cached) " >&6
  10223. else
  10224. if test -n "$CC"; then
  10225. ac_cv_prog_CC="$CC" # Let the user override the test.
  10226. else
  10227. ac_prog_rejected=no
  10228. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10229. for as_dir in $PATH
  10230. do
  10231. IFS=$as_save_IFS
  10232. test -z "$as_dir" && as_dir=.
  10233. for ac_exec_ext in '' $ac_executable_extensions; do
  10234. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10235. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  10236. ac_prog_rejected=yes
  10237. continue
  10238. fi
  10239. ac_cv_prog_CC="cc"
  10240. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10241. break 2
  10242. fi
  10243. done
  10244. done
  10245. IFS=$as_save_IFS
  10246. if test $ac_prog_rejected = yes; then
  10247. # We found a bogon in the path, so make sure we never use it.
  10248. set dummy $ac_cv_prog_CC
  10249. shift
  10250. if test $# != 0; then
  10251. # We chose a different compiler from the bogus one.
  10252. # However, it has the same basename, so the bogon will be chosen
  10253. # first if we set CC to just the basename; use the full file name.
  10254. shift
  10255. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  10256. fi
  10257. fi
  10258. fi
  10259. fi
  10260. CC=$ac_cv_prog_CC
  10261. if test -n "$CC"; then
  10262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10263. $as_echo "$CC" >&6; }
  10264. else
  10265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10266. $as_echo "no" >&6; }
  10267. fi
  10268. fi
  10269. if test -z "$CC"; then
  10270. if test -n "$ac_tool_prefix"; then
  10271. for ac_prog in cl.exe
  10272. do
  10273. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10274. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10276. $as_echo_n "checking for $ac_word... " >&6; }
  10277. if ${ac_cv_prog_CC+:} false; then :
  10278. $as_echo_n "(cached) " >&6
  10279. else
  10280. if test -n "$CC"; then
  10281. ac_cv_prog_CC="$CC" # Let the user override the test.
  10282. else
  10283. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10284. for as_dir in $PATH
  10285. do
  10286. IFS=$as_save_IFS
  10287. test -z "$as_dir" && as_dir=.
  10288. for ac_exec_ext in '' $ac_executable_extensions; do
  10289. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10290. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10291. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10292. break 2
  10293. fi
  10294. done
  10295. done
  10296. IFS=$as_save_IFS
  10297. fi
  10298. fi
  10299. CC=$ac_cv_prog_CC
  10300. if test -n "$CC"; then
  10301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10302. $as_echo "$CC" >&6; }
  10303. else
  10304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10305. $as_echo "no" >&6; }
  10306. fi
  10307. test -n "$CC" && break
  10308. done
  10309. fi
  10310. if test -z "$CC"; then
  10311. ac_ct_CC=$CC
  10312. for ac_prog in cl.exe
  10313. do
  10314. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10315. set dummy $ac_prog; ac_word=$2
  10316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10317. $as_echo_n "checking for $ac_word... " >&6; }
  10318. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10319. $as_echo_n "(cached) " >&6
  10320. else
  10321. if test -n "$ac_ct_CC"; then
  10322. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10323. else
  10324. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10325. for as_dir in $PATH
  10326. do
  10327. IFS=$as_save_IFS
  10328. test -z "$as_dir" && as_dir=.
  10329. for ac_exec_ext in '' $ac_executable_extensions; do
  10330. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10331. ac_cv_prog_ac_ct_CC="$ac_prog"
  10332. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10333. break 2
  10334. fi
  10335. done
  10336. done
  10337. IFS=$as_save_IFS
  10338. fi
  10339. fi
  10340. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10341. if test -n "$ac_ct_CC"; then
  10342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10343. $as_echo "$ac_ct_CC" >&6; }
  10344. else
  10345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10346. $as_echo "no" >&6; }
  10347. fi
  10348. test -n "$ac_ct_CC" && break
  10349. done
  10350. if test "x$ac_ct_CC" = x; then
  10351. CC=""
  10352. else
  10353. case $cross_compiling:$ac_tool_warned in
  10354. yes:)
  10355. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10356. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10357. ac_tool_warned=yes ;;
  10358. esac
  10359. CC=$ac_ct_CC
  10360. fi
  10361. fi
  10362. fi
  10363. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10364. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10365. as_fn_error $? "no acceptable C compiler found in \$PATH
  10366. See \`config.log' for more details" "$LINENO" 5; }
  10367. # Provide some information about the compiler.
  10368. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10369. set X $ac_compile
  10370. ac_compiler=$2
  10371. for ac_option in --version -v -V -qversion; do
  10372. { { ac_try="$ac_compiler $ac_option >&5"
  10373. case "(($ac_try" in
  10374. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10375. *) ac_try_echo=$ac_try;;
  10376. esac
  10377. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10378. $as_echo "$ac_try_echo"; } >&5
  10379. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10380. ac_status=$?
  10381. if test -s conftest.err; then
  10382. sed '10a\
  10383. ... rest of stderr output deleted ...
  10384. 10q' conftest.err >conftest.er1
  10385. cat conftest.er1 >&5
  10386. fi
  10387. rm -f conftest.er1 conftest.err
  10388. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10389. test $ac_status = 0; }
  10390. done
  10391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10392. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10393. if ${ac_cv_c_compiler_gnu+:} false; then :
  10394. $as_echo_n "(cached) " >&6
  10395. else
  10396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10397. /* end confdefs.h. */
  10398. int
  10399. main ()
  10400. {
  10401. #ifndef __GNUC__
  10402. choke me
  10403. #endif
  10404. ;
  10405. return 0;
  10406. }
  10407. _ACEOF
  10408. if ac_fn_c_try_compile "$LINENO"; then :
  10409. ac_compiler_gnu=yes
  10410. else
  10411. ac_compiler_gnu=no
  10412. fi
  10413. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10414. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10415. fi
  10416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10417. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10418. if test $ac_compiler_gnu = yes; then
  10419. GCC=yes
  10420. else
  10421. GCC=
  10422. fi
  10423. ac_test_CFLAGS=${CFLAGS+set}
  10424. ac_save_CFLAGS=$CFLAGS
  10425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10426. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10427. if ${ac_cv_prog_cc_g+:} false; then :
  10428. $as_echo_n "(cached) " >&6
  10429. else
  10430. ac_save_c_werror_flag=$ac_c_werror_flag
  10431. ac_c_werror_flag=yes
  10432. ac_cv_prog_cc_g=no
  10433. CFLAGS="-g"
  10434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10435. /* end confdefs.h. */
  10436. int
  10437. main ()
  10438. {
  10439. ;
  10440. return 0;
  10441. }
  10442. _ACEOF
  10443. if ac_fn_c_try_compile "$LINENO"; then :
  10444. ac_cv_prog_cc_g=yes
  10445. else
  10446. CFLAGS=""
  10447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10448. /* end confdefs.h. */
  10449. int
  10450. main ()
  10451. {
  10452. ;
  10453. return 0;
  10454. }
  10455. _ACEOF
  10456. if ac_fn_c_try_compile "$LINENO"; then :
  10457. else
  10458. ac_c_werror_flag=$ac_save_c_werror_flag
  10459. CFLAGS="-g"
  10460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10461. /* end confdefs.h. */
  10462. int
  10463. main ()
  10464. {
  10465. ;
  10466. return 0;
  10467. }
  10468. _ACEOF
  10469. if ac_fn_c_try_compile "$LINENO"; then :
  10470. ac_cv_prog_cc_g=yes
  10471. fi
  10472. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10473. fi
  10474. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10475. fi
  10476. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10477. ac_c_werror_flag=$ac_save_c_werror_flag
  10478. fi
  10479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10480. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10481. if test "$ac_test_CFLAGS" = set; then
  10482. CFLAGS=$ac_save_CFLAGS
  10483. elif test $ac_cv_prog_cc_g = yes; then
  10484. if test "$GCC" = yes; then
  10485. CFLAGS="-g -O2"
  10486. else
  10487. CFLAGS="-g"
  10488. fi
  10489. else
  10490. if test "$GCC" = yes; then
  10491. CFLAGS="-O2"
  10492. else
  10493. CFLAGS=
  10494. fi
  10495. fi
  10496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10497. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10498. if ${ac_cv_prog_cc_c89+:} false; then :
  10499. $as_echo_n "(cached) " >&6
  10500. else
  10501. ac_cv_prog_cc_c89=no
  10502. ac_save_CC=$CC
  10503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10504. /* end confdefs.h. */
  10505. #include <stdarg.h>
  10506. #include <stdio.h>
  10507. struct stat;
  10508. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10509. struct buf { int x; };
  10510. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10511. static char *e (p, i)
  10512. char **p;
  10513. int i;
  10514. {
  10515. return p[i];
  10516. }
  10517. static char *f (char * (*g) (char **, int), char **p, ...)
  10518. {
  10519. char *s;
  10520. va_list v;
  10521. va_start (v,p);
  10522. s = g (p, va_arg (v,int));
  10523. va_end (v);
  10524. return s;
  10525. }
  10526. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10527. function prototypes and stuff, but not '\xHH' hex character constants.
  10528. These don't provoke an error unfortunately, instead are silently treated
  10529. as 'x'. The following induces an error, until -std is added to get
  10530. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10531. array size at least. It's necessary to write '\x00'==0 to get something
  10532. that's true only with -std. */
  10533. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10534. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10535. inside strings and character constants. */
  10536. #define FOO(x) 'x'
  10537. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10538. int test (int i, double x);
  10539. struct s1 {int (*f) (int a);};
  10540. struct s2 {int (*f) (double a);};
  10541. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10542. int argc;
  10543. char **argv;
  10544. int
  10545. main ()
  10546. {
  10547. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10548. ;
  10549. return 0;
  10550. }
  10551. _ACEOF
  10552. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10553. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10554. do
  10555. CC="$ac_save_CC $ac_arg"
  10556. if ac_fn_c_try_compile "$LINENO"; then :
  10557. ac_cv_prog_cc_c89=$ac_arg
  10558. fi
  10559. rm -f core conftest.err conftest.$ac_objext
  10560. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10561. done
  10562. rm -f conftest.$ac_ext
  10563. CC=$ac_save_CC
  10564. fi
  10565. # AC_CACHE_VAL
  10566. case "x$ac_cv_prog_cc_c89" in
  10567. x)
  10568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10569. $as_echo "none needed" >&6; } ;;
  10570. xno)
  10571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10572. $as_echo "unsupported" >&6; } ;;
  10573. *)
  10574. CC="$CC $ac_cv_prog_cc_c89"
  10575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10576. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10577. esac
  10578. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10579. fi
  10580. ac_ext=c
  10581. ac_cpp='$CPP $CPPFLAGS'
  10582. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10583. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10584. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10585. ac_ext=cpp
  10586. ac_cpp='$CXXCPP $CPPFLAGS'
  10587. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10588. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10589. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10590. if test -z "$CXX"; then
  10591. if test -n "$CCC"; then
  10592. CXX=$CCC
  10593. else
  10594. if test -n "$ac_tool_prefix"; then
  10595. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10596. do
  10597. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10598. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10600. $as_echo_n "checking for $ac_word... " >&6; }
  10601. if ${ac_cv_prog_CXX+:} false; then :
  10602. $as_echo_n "(cached) " >&6
  10603. else
  10604. if test -n "$CXX"; then
  10605. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10606. else
  10607. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10608. for as_dir in $PATH
  10609. do
  10610. IFS=$as_save_IFS
  10611. test -z "$as_dir" && as_dir=.
  10612. for ac_exec_ext in '' $ac_executable_extensions; do
  10613. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10614. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10615. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10616. break 2
  10617. fi
  10618. done
  10619. done
  10620. IFS=$as_save_IFS
  10621. fi
  10622. fi
  10623. CXX=$ac_cv_prog_CXX
  10624. if test -n "$CXX"; then
  10625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10626. $as_echo "$CXX" >&6; }
  10627. else
  10628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10629. $as_echo "no" >&6; }
  10630. fi
  10631. test -n "$CXX" && break
  10632. done
  10633. fi
  10634. if test -z "$CXX"; then
  10635. ac_ct_CXX=$CXX
  10636. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10637. do
  10638. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10639. set dummy $ac_prog; ac_word=$2
  10640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10641. $as_echo_n "checking for $ac_word... " >&6; }
  10642. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10643. $as_echo_n "(cached) " >&6
  10644. else
  10645. if test -n "$ac_ct_CXX"; then
  10646. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10647. else
  10648. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10649. for as_dir in $PATH
  10650. do
  10651. IFS=$as_save_IFS
  10652. test -z "$as_dir" && as_dir=.
  10653. for ac_exec_ext in '' $ac_executable_extensions; do
  10654. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10655. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10656. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10657. break 2
  10658. fi
  10659. done
  10660. done
  10661. IFS=$as_save_IFS
  10662. fi
  10663. fi
  10664. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10665. if test -n "$ac_ct_CXX"; then
  10666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10667. $as_echo "$ac_ct_CXX" >&6; }
  10668. else
  10669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10670. $as_echo "no" >&6; }
  10671. fi
  10672. test -n "$ac_ct_CXX" && break
  10673. done
  10674. if test "x$ac_ct_CXX" = x; then
  10675. CXX="g++"
  10676. else
  10677. case $cross_compiling:$ac_tool_warned in
  10678. yes:)
  10679. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10680. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10681. ac_tool_warned=yes ;;
  10682. esac
  10683. CXX=$ac_ct_CXX
  10684. fi
  10685. fi
  10686. fi
  10687. fi
  10688. # Provide some information about the compiler.
  10689. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10690. set X $ac_compile
  10691. ac_compiler=$2
  10692. for ac_option in --version -v -V -qversion; do
  10693. { { ac_try="$ac_compiler $ac_option >&5"
  10694. case "(($ac_try" in
  10695. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10696. *) ac_try_echo=$ac_try;;
  10697. esac
  10698. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10699. $as_echo "$ac_try_echo"; } >&5
  10700. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10701. ac_status=$?
  10702. if test -s conftest.err; then
  10703. sed '10a\
  10704. ... rest of stderr output deleted ...
  10705. 10q' conftest.err >conftest.er1
  10706. cat conftest.er1 >&5
  10707. fi
  10708. rm -f conftest.er1 conftest.err
  10709. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10710. test $ac_status = 0; }
  10711. done
  10712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10713. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10714. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10715. $as_echo_n "(cached) " >&6
  10716. else
  10717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10718. /* end confdefs.h. */
  10719. int
  10720. main ()
  10721. {
  10722. #ifndef __GNUC__
  10723. choke me
  10724. #endif
  10725. ;
  10726. return 0;
  10727. }
  10728. _ACEOF
  10729. if ac_fn_cxx_try_compile "$LINENO"; then :
  10730. ac_compiler_gnu=yes
  10731. else
  10732. ac_compiler_gnu=no
  10733. fi
  10734. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10735. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10736. fi
  10737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10738. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10739. if test $ac_compiler_gnu = yes; then
  10740. GXX=yes
  10741. else
  10742. GXX=
  10743. fi
  10744. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10745. ac_save_CXXFLAGS=$CXXFLAGS
  10746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10747. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10748. if ${ac_cv_prog_cxx_g+:} false; then :
  10749. $as_echo_n "(cached) " >&6
  10750. else
  10751. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10752. ac_cxx_werror_flag=yes
  10753. ac_cv_prog_cxx_g=no
  10754. CXXFLAGS="-g"
  10755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10756. /* end confdefs.h. */
  10757. int
  10758. main ()
  10759. {
  10760. ;
  10761. return 0;
  10762. }
  10763. _ACEOF
  10764. if ac_fn_cxx_try_compile "$LINENO"; then :
  10765. ac_cv_prog_cxx_g=yes
  10766. else
  10767. CXXFLAGS=""
  10768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10769. /* end confdefs.h. */
  10770. int
  10771. main ()
  10772. {
  10773. ;
  10774. return 0;
  10775. }
  10776. _ACEOF
  10777. if ac_fn_cxx_try_compile "$LINENO"; then :
  10778. else
  10779. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10780. CXXFLAGS="-g"
  10781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10782. /* end confdefs.h. */
  10783. int
  10784. main ()
  10785. {
  10786. ;
  10787. return 0;
  10788. }
  10789. _ACEOF
  10790. if ac_fn_cxx_try_compile "$LINENO"; then :
  10791. ac_cv_prog_cxx_g=yes
  10792. fi
  10793. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10794. fi
  10795. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10796. fi
  10797. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10798. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10799. fi
  10800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10801. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10802. if test "$ac_test_CXXFLAGS" = set; then
  10803. CXXFLAGS=$ac_save_CXXFLAGS
  10804. elif test $ac_cv_prog_cxx_g = yes; then
  10805. if test "$GXX" = yes; then
  10806. CXXFLAGS="-g -O2"
  10807. else
  10808. CXXFLAGS="-g"
  10809. fi
  10810. else
  10811. if test "$GXX" = yes; then
  10812. CXXFLAGS="-O2"
  10813. else
  10814. CXXFLAGS=
  10815. fi
  10816. fi
  10817. ac_ext=c
  10818. ac_cpp='$CPP $CPPFLAGS'
  10819. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10820. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10821. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10822. func_stripname_cnf ()
  10823. {
  10824. case ${2} in
  10825. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10826. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10827. esac
  10828. } # func_stripname_cnf
  10829. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10830. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10831. (test "X$CXX" != "Xg++"))) ; then
  10832. ac_ext=cpp
  10833. ac_cpp='$CXXCPP $CPPFLAGS'
  10834. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10835. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10836. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10838. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10839. if test -z "$CXXCPP"; then
  10840. if ${ac_cv_prog_CXXCPP+:} false; then :
  10841. $as_echo_n "(cached) " >&6
  10842. else
  10843. # Double quotes because CXXCPP needs to be expanded
  10844. for CXXCPP in "$CXX -E" "/lib/cpp"
  10845. do
  10846. ac_preproc_ok=false
  10847. for ac_cxx_preproc_warn_flag in '' yes
  10848. do
  10849. # Use a header file that comes with gcc, so configuring glibc
  10850. # with a fresh cross-compiler works.
  10851. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10852. # <limits.h> exists even on freestanding compilers.
  10853. # On the NeXT, cc -E runs the code through the compiler's parser,
  10854. # not just through cpp. "Syntax error" is here to catch this case.
  10855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10856. /* end confdefs.h. */
  10857. #ifdef __STDC__
  10858. # include <limits.h>
  10859. #else
  10860. # include <assert.h>
  10861. #endif
  10862. Syntax error
  10863. _ACEOF
  10864. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10865. else
  10866. # Broken: fails on valid input.
  10867. continue
  10868. fi
  10869. rm -f conftest.err conftest.i conftest.$ac_ext
  10870. # OK, works on sane cases. Now check whether nonexistent headers
  10871. # can be detected and how.
  10872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10873. /* end confdefs.h. */
  10874. #include <ac_nonexistent.h>
  10875. _ACEOF
  10876. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10877. # Broken: success on invalid input.
  10878. continue
  10879. else
  10880. # Passes both tests.
  10881. ac_preproc_ok=:
  10882. break
  10883. fi
  10884. rm -f conftest.err conftest.i conftest.$ac_ext
  10885. done
  10886. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10887. rm -f conftest.i conftest.err conftest.$ac_ext
  10888. if $ac_preproc_ok; then :
  10889. break
  10890. fi
  10891. done
  10892. ac_cv_prog_CXXCPP=$CXXCPP
  10893. fi
  10894. CXXCPP=$ac_cv_prog_CXXCPP
  10895. else
  10896. ac_cv_prog_CXXCPP=$CXXCPP
  10897. fi
  10898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10899. $as_echo "$CXXCPP" >&6; }
  10900. ac_preproc_ok=false
  10901. for ac_cxx_preproc_warn_flag in '' yes
  10902. do
  10903. # Use a header file that comes with gcc, so configuring glibc
  10904. # with a fresh cross-compiler works.
  10905. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10906. # <limits.h> exists even on freestanding compilers.
  10907. # On the NeXT, cc -E runs the code through the compiler's parser,
  10908. # not just through cpp. "Syntax error" is here to catch this case.
  10909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10910. /* end confdefs.h. */
  10911. #ifdef __STDC__
  10912. # include <limits.h>
  10913. #else
  10914. # include <assert.h>
  10915. #endif
  10916. Syntax error
  10917. _ACEOF
  10918. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10919. else
  10920. # Broken: fails on valid input.
  10921. continue
  10922. fi
  10923. rm -f conftest.err conftest.i conftest.$ac_ext
  10924. # OK, works on sane cases. Now check whether nonexistent headers
  10925. # can be detected and how.
  10926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10927. /* end confdefs.h. */
  10928. #include <ac_nonexistent.h>
  10929. _ACEOF
  10930. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10931. # Broken: success on invalid input.
  10932. continue
  10933. else
  10934. # Passes both tests.
  10935. ac_preproc_ok=:
  10936. break
  10937. fi
  10938. rm -f conftest.err conftest.i conftest.$ac_ext
  10939. done
  10940. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10941. rm -f conftest.i conftest.err conftest.$ac_ext
  10942. if $ac_preproc_ok; then :
  10943. else
  10944. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10945. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10946. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10947. See \`config.log' for more details" "$LINENO" 5; }
  10948. fi
  10949. ac_ext=c
  10950. ac_cpp='$CPP $CPPFLAGS'
  10951. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10952. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10953. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10954. else
  10955. _lt_caught_CXX_error=yes
  10956. fi
  10957. ac_ext=cpp
  10958. ac_cpp='$CXXCPP $CPPFLAGS'
  10959. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10960. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10961. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10962. archive_cmds_need_lc_CXX=no
  10963. allow_undefined_flag_CXX=
  10964. always_export_symbols_CXX=no
  10965. archive_expsym_cmds_CXX=
  10966. compiler_needs_object_CXX=no
  10967. export_dynamic_flag_spec_CXX=
  10968. hardcode_direct_CXX=no
  10969. hardcode_direct_absolute_CXX=no
  10970. hardcode_libdir_flag_spec_CXX=
  10971. hardcode_libdir_separator_CXX=
  10972. hardcode_minus_L_CXX=no
  10973. hardcode_shlibpath_var_CXX=unsupported
  10974. hardcode_automatic_CXX=no
  10975. inherit_rpath_CXX=no
  10976. module_cmds_CXX=
  10977. module_expsym_cmds_CXX=
  10978. link_all_deplibs_CXX=unknown
  10979. old_archive_cmds_CXX=$old_archive_cmds
  10980. reload_flag_CXX=$reload_flag
  10981. reload_cmds_CXX=$reload_cmds
  10982. no_undefined_flag_CXX=
  10983. whole_archive_flag_spec_CXX=
  10984. enable_shared_with_static_runtimes_CXX=no
  10985. # Source file extension for C++ test sources.
  10986. ac_ext=cpp
  10987. # Object file extension for compiled C++ test sources.
  10988. objext=o
  10989. objext_CXX=$objext
  10990. # No sense in running all these tests if we already determined that
  10991. # the CXX compiler isn't working. Some variables (like enable_shared)
  10992. # are currently assumed to apply to all compilers on this platform,
  10993. # and will be corrupted by setting them based on a non-working compiler.
  10994. if test "$_lt_caught_CXX_error" != yes; then
  10995. # Code to be used in simple compile tests
  10996. lt_simple_compile_test_code="int some_variable = 0;"
  10997. # Code to be used in simple link tests
  10998. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10999. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11000. # If no C compiler was specified, use CC.
  11001. LTCC=${LTCC-"$CC"}
  11002. # If no C compiler flags were specified, use CFLAGS.
  11003. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11004. # Allow CC to be a program name with arguments.
  11005. compiler=$CC
  11006. # save warnings/boilerplate of simple test code
  11007. ac_outfile=conftest.$ac_objext
  11008. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11009. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11010. _lt_compiler_boilerplate=`cat conftest.err`
  11011. $RM conftest*
  11012. ac_outfile=conftest.$ac_objext
  11013. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11014. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11015. _lt_linker_boilerplate=`cat conftest.err`
  11016. $RM -r conftest*
  11017. # Allow CC to be a program name with arguments.
  11018. lt_save_CC=$CC
  11019. lt_save_CFLAGS=$CFLAGS
  11020. lt_save_LD=$LD
  11021. lt_save_GCC=$GCC
  11022. GCC=$GXX
  11023. lt_save_with_gnu_ld=$with_gnu_ld
  11024. lt_save_path_LD=$lt_cv_path_LD
  11025. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11026. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11027. else
  11028. $as_unset lt_cv_prog_gnu_ld
  11029. fi
  11030. if test -n "${lt_cv_path_LDCXX+set}"; then
  11031. lt_cv_path_LD=$lt_cv_path_LDCXX
  11032. else
  11033. $as_unset lt_cv_path_LD
  11034. fi
  11035. test -z "${LDCXX+set}" || LD=$LDCXX
  11036. CC=${CXX-"c++"}
  11037. CFLAGS=$CXXFLAGS
  11038. compiler=$CC
  11039. compiler_CXX=$CC
  11040. for cc_temp in $compiler""; do
  11041. case $cc_temp in
  11042. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11043. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11044. \-*) ;;
  11045. *) break;;
  11046. esac
  11047. done
  11048. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  11049. if test -n "$compiler"; then
  11050. # We don't want -fno-exception when compiling C++ code, so set the
  11051. # no_builtin_flag separately
  11052. if test "$GXX" = yes; then
  11053. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11054. else
  11055. lt_prog_compiler_no_builtin_flag_CXX=
  11056. fi
  11057. if test "$GXX" = yes; then
  11058. # Set up default GNU C++ configuration
  11059. # Check whether --with-gnu-ld was given.
  11060. if test "${with_gnu_ld+set}" = set; then :
  11061. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11062. else
  11063. with_gnu_ld=no
  11064. fi
  11065. ac_prog=ld
  11066. if test "$GCC" = yes; then
  11067. # Check if gcc -print-prog-name=ld gives a path.
  11068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11069. $as_echo_n "checking for ld used by $CC... " >&6; }
  11070. case $host in
  11071. *-*-mingw*)
  11072. # gcc leaves a trailing carriage return which upsets mingw
  11073. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11074. *)
  11075. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11076. esac
  11077. case $ac_prog in
  11078. # Accept absolute paths.
  11079. [\\/]* | ?:[\\/]*)
  11080. re_direlt='/[^/][^/]*/\.\./'
  11081. # Canonicalize the pathname of ld
  11082. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11083. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11084. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11085. done
  11086. test -z "$LD" && LD="$ac_prog"
  11087. ;;
  11088. "")
  11089. # If it fails, then pretend we aren't using GCC.
  11090. ac_prog=ld
  11091. ;;
  11092. *)
  11093. # If it is relative, then search for the first ld in PATH.
  11094. with_gnu_ld=unknown
  11095. ;;
  11096. esac
  11097. elif test "$with_gnu_ld" = yes; then
  11098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11099. $as_echo_n "checking for GNU ld... " >&6; }
  11100. else
  11101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11102. $as_echo_n "checking for non-GNU ld... " >&6; }
  11103. fi
  11104. if ${lt_cv_path_LD+:} false; then :
  11105. $as_echo_n "(cached) " >&6
  11106. else
  11107. if test -z "$LD"; then
  11108. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11109. for ac_dir in $PATH; do
  11110. IFS="$lt_save_ifs"
  11111. test -z "$ac_dir" && ac_dir=.
  11112. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11113. lt_cv_path_LD="$ac_dir/$ac_prog"
  11114. # Check to see if the program is GNU ld. I'd rather use --version,
  11115. # but apparently some variants of GNU ld only accept -v.
  11116. # Break only if it was the GNU/non-GNU ld that we prefer.
  11117. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11118. *GNU* | *'with BFD'*)
  11119. test "$with_gnu_ld" != no && break
  11120. ;;
  11121. *)
  11122. test "$with_gnu_ld" != yes && break
  11123. ;;
  11124. esac
  11125. fi
  11126. done
  11127. IFS="$lt_save_ifs"
  11128. else
  11129. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11130. fi
  11131. fi
  11132. LD="$lt_cv_path_LD"
  11133. if test -n "$LD"; then
  11134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11135. $as_echo "$LD" >&6; }
  11136. else
  11137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11138. $as_echo "no" >&6; }
  11139. fi
  11140. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11142. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11143. if ${lt_cv_prog_gnu_ld+:} false; then :
  11144. $as_echo_n "(cached) " >&6
  11145. else
  11146. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11147. case `$LD -v 2>&1 </dev/null` in
  11148. *GNU* | *'with BFD'*)
  11149. lt_cv_prog_gnu_ld=yes
  11150. ;;
  11151. *)
  11152. lt_cv_prog_gnu_ld=no
  11153. ;;
  11154. esac
  11155. fi
  11156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11157. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11158. with_gnu_ld=$lt_cv_prog_gnu_ld
  11159. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11160. # archiving commands below assume that GNU ld is being used.
  11161. if test "$with_gnu_ld" = yes; then
  11162. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11163. 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'
  11164. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11165. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11166. # If archive_cmds runs LD, not CC, wlarc should be empty
  11167. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11168. # investigate it a little bit more. (MM)
  11169. wlarc='${wl}'
  11170. # ancient GNU ld didn't support --whole-archive et. al.
  11171. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11172. $GREP 'no-whole-archive' > /dev/null; then
  11173. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11174. else
  11175. whole_archive_flag_spec_CXX=
  11176. fi
  11177. else
  11178. with_gnu_ld=no
  11179. wlarc=
  11180. # A generic and very simple default shared library creation
  11181. # command for GNU C++ for the case where it uses the native
  11182. # linker, instead of GNU ld. If possible, this setting should
  11183. # overridden to take advantage of the native linker features on
  11184. # the platform it is being used on.
  11185. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11186. fi
  11187. # Commands to make compiler produce verbose output that lists
  11188. # what "hidden" libraries, object files and flags are used when
  11189. # linking a shared library.
  11190. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11191. else
  11192. GXX=no
  11193. with_gnu_ld=no
  11194. wlarc=
  11195. fi
  11196. # PORTME: fill in a description of your system's C++ link characteristics
  11197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11198. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11199. ld_shlibs_CXX=yes
  11200. case $host_os in
  11201. aix3*)
  11202. # FIXME: insert proper C++ library support
  11203. ld_shlibs_CXX=no
  11204. ;;
  11205. aix[4-9]*)
  11206. if test "$host_cpu" = ia64; then
  11207. # On IA64, the linker does run time linking by default, so we don't
  11208. # have to do anything special.
  11209. aix_use_runtimelinking=no
  11210. exp_sym_flag='-Bexport'
  11211. no_entry_flag=""
  11212. else
  11213. aix_use_runtimelinking=no
  11214. # Test if we are trying to use run time linking or normal
  11215. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11216. # need to do runtime linking.
  11217. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11218. for ld_flag in $LDFLAGS; do
  11219. case $ld_flag in
  11220. *-brtl*)
  11221. aix_use_runtimelinking=yes
  11222. break
  11223. ;;
  11224. esac
  11225. done
  11226. ;;
  11227. esac
  11228. exp_sym_flag='-bexport'
  11229. no_entry_flag='-bnoentry'
  11230. fi
  11231. # When large executables or shared objects are built, AIX ld can
  11232. # have problems creating the table of contents. If linking a library
  11233. # or program results in "error TOC overflow" add -mminimal-toc to
  11234. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11235. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11236. archive_cmds_CXX=''
  11237. hardcode_direct_CXX=yes
  11238. hardcode_direct_absolute_CXX=yes
  11239. hardcode_libdir_separator_CXX=':'
  11240. link_all_deplibs_CXX=yes
  11241. file_list_spec_CXX='${wl}-f,'
  11242. if test "$GXX" = yes; then
  11243. case $host_os in aix4.[012]|aix4.[012].*)
  11244. # We only want to do this on AIX 4.2 and lower, the check
  11245. # below for broken collect2 doesn't work under 4.3+
  11246. collect2name=`${CC} -print-prog-name=collect2`
  11247. if test -f "$collect2name" &&
  11248. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11249. then
  11250. # We have reworked collect2
  11251. :
  11252. else
  11253. # We have old collect2
  11254. hardcode_direct_CXX=unsupported
  11255. # It fails to find uninstalled libraries when the uninstalled
  11256. # path is not listed in the libpath. Setting hardcode_minus_L
  11257. # to unsupported forces relinking
  11258. hardcode_minus_L_CXX=yes
  11259. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11260. hardcode_libdir_separator_CXX=
  11261. fi
  11262. esac
  11263. shared_flag='-shared'
  11264. if test "$aix_use_runtimelinking" = yes; then
  11265. shared_flag="$shared_flag "'${wl}-G'
  11266. fi
  11267. else
  11268. # not using gcc
  11269. if test "$host_cpu" = ia64; then
  11270. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11271. # chokes on -Wl,-G. The following line is correct:
  11272. shared_flag='-G'
  11273. else
  11274. if test "$aix_use_runtimelinking" = yes; then
  11275. shared_flag='${wl}-G'
  11276. else
  11277. shared_flag='${wl}-bM:SRE'
  11278. fi
  11279. fi
  11280. fi
  11281. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11282. # It seems that -bexpall does not export symbols beginning with
  11283. # underscore (_), so it is better to generate a list of symbols to
  11284. # export.
  11285. always_export_symbols_CXX=yes
  11286. if test "$aix_use_runtimelinking" = yes; then
  11287. # Warning - without using the other runtime loading flags (-brtl),
  11288. # -berok will link without error, but may produce a broken library.
  11289. allow_undefined_flag_CXX='-berok'
  11290. # Determine the default libpath from the value encoded in an empty
  11291. # executable.
  11292. if test "${lt_cv_aix_libpath+set}" = set; then
  11293. aix_libpath=$lt_cv_aix_libpath
  11294. else
  11295. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11296. $as_echo_n "(cached) " >&6
  11297. else
  11298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11299. /* end confdefs.h. */
  11300. int
  11301. main ()
  11302. {
  11303. ;
  11304. return 0;
  11305. }
  11306. _ACEOF
  11307. if ac_fn_cxx_try_link "$LINENO"; then :
  11308. lt_aix_libpath_sed='
  11309. /Import File Strings/,/^$/ {
  11310. /^0/ {
  11311. s/^0 *\([^ ]*\) *$/\1/
  11312. p
  11313. }
  11314. }'
  11315. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11316. # Check for a 64-bit object if we didn't find anything.
  11317. if test -z "$lt_cv_aix_libpath__CXX"; then
  11318. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11319. fi
  11320. fi
  11321. rm -f core conftest.err conftest.$ac_objext \
  11322. conftest$ac_exeext conftest.$ac_ext
  11323. if test -z "$lt_cv_aix_libpath__CXX"; then
  11324. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11325. fi
  11326. fi
  11327. aix_libpath=$lt_cv_aix_libpath__CXX
  11328. fi
  11329. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11330. 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"
  11331. else
  11332. if test "$host_cpu" = ia64; then
  11333. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11334. allow_undefined_flag_CXX="-z nodefs"
  11335. 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"
  11336. else
  11337. # Determine the default libpath from the value encoded in an
  11338. # empty executable.
  11339. if test "${lt_cv_aix_libpath+set}" = set; then
  11340. aix_libpath=$lt_cv_aix_libpath
  11341. else
  11342. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11343. $as_echo_n "(cached) " >&6
  11344. else
  11345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11346. /* end confdefs.h. */
  11347. int
  11348. main ()
  11349. {
  11350. ;
  11351. return 0;
  11352. }
  11353. _ACEOF
  11354. if ac_fn_cxx_try_link "$LINENO"; then :
  11355. lt_aix_libpath_sed='
  11356. /Import File Strings/,/^$/ {
  11357. /^0/ {
  11358. s/^0 *\([^ ]*\) *$/\1/
  11359. p
  11360. }
  11361. }'
  11362. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11363. # Check for a 64-bit object if we didn't find anything.
  11364. if test -z "$lt_cv_aix_libpath__CXX"; then
  11365. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11366. fi
  11367. fi
  11368. rm -f core conftest.err conftest.$ac_objext \
  11369. conftest$ac_exeext conftest.$ac_ext
  11370. if test -z "$lt_cv_aix_libpath__CXX"; then
  11371. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11372. fi
  11373. fi
  11374. aix_libpath=$lt_cv_aix_libpath__CXX
  11375. fi
  11376. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11377. # Warning - without using the other run time loading flags,
  11378. # -berok will link without error, but may produce a broken library.
  11379. no_undefined_flag_CXX=' ${wl}-bernotok'
  11380. allow_undefined_flag_CXX=' ${wl}-berok'
  11381. if test "$with_gnu_ld" = yes; then
  11382. # We only use this code for GNU lds that support --whole-archive.
  11383. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11384. else
  11385. # Exported symbols can be pulled into shared objects from archives
  11386. whole_archive_flag_spec_CXX='$convenience'
  11387. fi
  11388. archive_cmds_need_lc_CXX=yes
  11389. # This is similar to how AIX traditionally builds its shared
  11390. # libraries.
  11391. 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'
  11392. fi
  11393. fi
  11394. ;;
  11395. beos*)
  11396. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11397. allow_undefined_flag_CXX=unsupported
  11398. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11399. # support --undefined. This deserves some investigation. FIXME
  11400. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11401. else
  11402. ld_shlibs_CXX=no
  11403. fi
  11404. ;;
  11405. chorus*)
  11406. case $cc_basename in
  11407. *)
  11408. # FIXME: insert proper C++ library support
  11409. ld_shlibs_CXX=no
  11410. ;;
  11411. esac
  11412. ;;
  11413. cygwin* | mingw* | pw32* | cegcc*)
  11414. case $GXX,$cc_basename in
  11415. ,cl* | no,cl*)
  11416. # Native MSVC
  11417. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11418. # no search path for DLLs.
  11419. hardcode_libdir_flag_spec_CXX=' '
  11420. allow_undefined_flag_CXX=unsupported
  11421. always_export_symbols_CXX=yes
  11422. file_list_spec_CXX='@'
  11423. # Tell ltmain to make .lib files, not .a files.
  11424. libext=lib
  11425. # Tell ltmain to make .dll files, not .so files.
  11426. shrext_cmds=".dll"
  11427. # FIXME: Setting linknames here is a bad hack.
  11428. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11429. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11430. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11431. else
  11432. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11433. fi~
  11434. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11435. linknames='
  11436. # The linker will not automatically build a static lib if we build a DLL.
  11437. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11438. enable_shared_with_static_runtimes_CXX=yes
  11439. # Don't use ranlib
  11440. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11441. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11442. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11443. case $lt_outputfile in
  11444. *.exe|*.EXE) ;;
  11445. *)
  11446. lt_outputfile="$lt_outputfile.exe"
  11447. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11448. ;;
  11449. esac~
  11450. func_to_tool_file "$lt_outputfile"~
  11451. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11452. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11453. $RM "$lt_outputfile.manifest";
  11454. fi'
  11455. ;;
  11456. *)
  11457. # g++
  11458. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11459. # as there is no search path for DLLs.
  11460. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11461. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11462. allow_undefined_flag_CXX=unsupported
  11463. always_export_symbols_CXX=no
  11464. enable_shared_with_static_runtimes_CXX=yes
  11465. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11466. 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'
  11467. # If the export-symbols file already is a .def file (1st line
  11468. # is EXPORTS), use it as is; otherwise, prepend...
  11469. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11470. cp $export_symbols $output_objdir/$soname.def;
  11471. else
  11472. echo EXPORTS > $output_objdir/$soname.def;
  11473. cat $export_symbols >> $output_objdir/$soname.def;
  11474. fi~
  11475. $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'
  11476. else
  11477. ld_shlibs_CXX=no
  11478. fi
  11479. ;;
  11480. esac
  11481. ;;
  11482. darwin* | rhapsody*)
  11483. archive_cmds_need_lc_CXX=no
  11484. hardcode_direct_CXX=no
  11485. hardcode_automatic_CXX=yes
  11486. hardcode_shlibpath_var_CXX=unsupported
  11487. if test "$lt_cv_ld_force_load" = "yes"; then
  11488. 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\"`'
  11489. else
  11490. whole_archive_flag_spec_CXX=''
  11491. fi
  11492. link_all_deplibs_CXX=yes
  11493. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11494. case $cc_basename in
  11495. ifort*) _lt_dar_can_shared=yes ;;
  11496. *) _lt_dar_can_shared=$GCC ;;
  11497. esac
  11498. if test "$_lt_dar_can_shared" = "yes"; then
  11499. output_verbose_link_cmd=func_echo_all
  11500. 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}"
  11501. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11502. 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}"
  11503. 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}"
  11504. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11505. 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}"
  11506. 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}"
  11507. fi
  11508. else
  11509. ld_shlibs_CXX=no
  11510. fi
  11511. ;;
  11512. dgux*)
  11513. case $cc_basename in
  11514. ec++*)
  11515. # FIXME: insert proper C++ library support
  11516. ld_shlibs_CXX=no
  11517. ;;
  11518. ghcx*)
  11519. # Green Hills C++ Compiler
  11520. # FIXME: insert proper C++ library support
  11521. ld_shlibs_CXX=no
  11522. ;;
  11523. *)
  11524. # FIXME: insert proper C++ library support
  11525. ld_shlibs_CXX=no
  11526. ;;
  11527. esac
  11528. ;;
  11529. freebsd2.*)
  11530. # C++ shared libraries reported to be fairly broken before
  11531. # switch to ELF
  11532. ld_shlibs_CXX=no
  11533. ;;
  11534. freebsd-elf*)
  11535. archive_cmds_need_lc_CXX=no
  11536. ;;
  11537. freebsd* | dragonfly*)
  11538. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11539. # conventions
  11540. ld_shlibs_CXX=yes
  11541. ;;
  11542. gnu*)
  11543. ;;
  11544. haiku*)
  11545. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11546. link_all_deplibs_CXX=yes
  11547. ;;
  11548. hpux9*)
  11549. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11550. hardcode_libdir_separator_CXX=:
  11551. export_dynamic_flag_spec_CXX='${wl}-E'
  11552. hardcode_direct_CXX=yes
  11553. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11554. # but as the default
  11555. # location of the library.
  11556. case $cc_basename in
  11557. CC*)
  11558. # FIXME: insert proper C++ library support
  11559. ld_shlibs_CXX=no
  11560. ;;
  11561. aCC*)
  11562. 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'
  11563. # Commands to make compiler produce verbose output that lists
  11564. # what "hidden" libraries, object files and flags are used when
  11565. # linking a shared library.
  11566. #
  11567. # There doesn't appear to be a way to prevent this compiler from
  11568. # explicitly linking system object files so we need to strip them
  11569. # from the output so that they don't get included in the library
  11570. # dependencies.
  11571. 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"'
  11572. ;;
  11573. *)
  11574. if test "$GXX" = yes; then
  11575. 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'
  11576. else
  11577. # FIXME: insert proper C++ library support
  11578. ld_shlibs_CXX=no
  11579. fi
  11580. ;;
  11581. esac
  11582. ;;
  11583. hpux10*|hpux11*)
  11584. if test $with_gnu_ld = no; then
  11585. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11586. hardcode_libdir_separator_CXX=:
  11587. case $host_cpu in
  11588. hppa*64*|ia64*)
  11589. ;;
  11590. *)
  11591. export_dynamic_flag_spec_CXX='${wl}-E'
  11592. ;;
  11593. esac
  11594. fi
  11595. case $host_cpu in
  11596. hppa*64*|ia64*)
  11597. hardcode_direct_CXX=no
  11598. hardcode_shlibpath_var_CXX=no
  11599. ;;
  11600. *)
  11601. hardcode_direct_CXX=yes
  11602. hardcode_direct_absolute_CXX=yes
  11603. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11604. # but as the default
  11605. # location of the library.
  11606. ;;
  11607. esac
  11608. case $cc_basename in
  11609. CC*)
  11610. # FIXME: insert proper C++ library support
  11611. ld_shlibs_CXX=no
  11612. ;;
  11613. aCC*)
  11614. case $host_cpu in
  11615. hppa*64*)
  11616. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11617. ;;
  11618. ia64*)
  11619. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11620. ;;
  11621. *)
  11622. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11623. ;;
  11624. esac
  11625. # Commands to make compiler produce verbose output that lists
  11626. # what "hidden" libraries, object files and flags are used when
  11627. # linking a shared library.
  11628. #
  11629. # There doesn't appear to be a way to prevent this compiler from
  11630. # explicitly linking system object files so we need to strip them
  11631. # from the output so that they don't get included in the library
  11632. # dependencies.
  11633. 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"'
  11634. ;;
  11635. *)
  11636. if test "$GXX" = yes; then
  11637. if test $with_gnu_ld = no; then
  11638. case $host_cpu in
  11639. hppa*64*)
  11640. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11641. ;;
  11642. ia64*)
  11643. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11644. ;;
  11645. *)
  11646. 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'
  11647. ;;
  11648. esac
  11649. fi
  11650. else
  11651. # FIXME: insert proper C++ library support
  11652. ld_shlibs_CXX=no
  11653. fi
  11654. ;;
  11655. esac
  11656. ;;
  11657. interix[3-9]*)
  11658. hardcode_direct_CXX=no
  11659. hardcode_shlibpath_var_CXX=no
  11660. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11661. export_dynamic_flag_spec_CXX='${wl}-E'
  11662. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11663. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11664. # default) and relocated if they conflict, which is a slow very memory
  11665. # consuming and fragmenting process. To avoid this, we pick a random,
  11666. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11667. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11668. 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'
  11669. 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'
  11670. ;;
  11671. irix5* | irix6*)
  11672. case $cc_basename in
  11673. CC*)
  11674. # SGI C++
  11675. 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'
  11676. # Archives containing C++ object files must be created using
  11677. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11678. # necessary to make sure instantiated templates are included
  11679. # in the archive.
  11680. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11681. ;;
  11682. *)
  11683. if test "$GXX" = yes; then
  11684. if test "$with_gnu_ld" = no; then
  11685. 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'
  11686. else
  11687. 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'
  11688. fi
  11689. fi
  11690. link_all_deplibs_CXX=yes
  11691. ;;
  11692. esac
  11693. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11694. hardcode_libdir_separator_CXX=:
  11695. inherit_rpath_CXX=yes
  11696. ;;
  11697. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11698. case $cc_basename in
  11699. KCC*)
  11700. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11701. # KCC will only create a shared library if the output file
  11702. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11703. # to its proper name (with version) after linking.
  11704. 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'
  11705. 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'
  11706. # Commands to make compiler produce verbose output that lists
  11707. # what "hidden" libraries, object files and flags are used when
  11708. # linking a shared library.
  11709. #
  11710. # There doesn't appear to be a way to prevent this compiler from
  11711. # explicitly linking system object files so we need to strip them
  11712. # from the output so that they don't get included in the library
  11713. # dependencies.
  11714. 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"'
  11715. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11716. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11717. # Archives containing C++ object files must be created using
  11718. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11719. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11720. ;;
  11721. icpc* | ecpc* )
  11722. # Intel C++
  11723. with_gnu_ld=yes
  11724. # version 8.0 and above of icpc choke on multiply defined symbols
  11725. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11726. # earlier do not add the objects themselves.
  11727. case `$CC -V 2>&1` in
  11728. *"Version 7."*)
  11729. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11730. 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'
  11731. ;;
  11732. *) # Version 8.0 or newer
  11733. tmp_idyn=
  11734. case $host_cpu in
  11735. ia64*) tmp_idyn=' -i_dynamic';;
  11736. esac
  11737. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11738. 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'
  11739. ;;
  11740. esac
  11741. archive_cmds_need_lc_CXX=no
  11742. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11743. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11744. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11745. ;;
  11746. pgCC* | pgcpp*)
  11747. # Portland Group C++ compiler
  11748. case `$CC -V` in
  11749. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11750. prelink_cmds_CXX='tpldir=Template.dir~
  11751. rm -rf $tpldir~
  11752. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11753. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11754. old_archive_cmds_CXX='tpldir=Template.dir~
  11755. rm -rf $tpldir~
  11756. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11757. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11758. $RANLIB $oldlib'
  11759. archive_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 -o $lib'
  11763. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11764. rm -rf $tpldir~
  11765. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11766. $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'
  11767. ;;
  11768. *) # Version 6 and above use weak symbols
  11769. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11770. 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'
  11771. ;;
  11772. esac
  11773. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11774. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11775. 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'
  11776. ;;
  11777. cxx*)
  11778. # Compaq C++
  11779. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11780. 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'
  11781. runpath_var=LD_RUN_PATH
  11782. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11783. hardcode_libdir_separator_CXX=:
  11784. # Commands to make compiler produce verbose output that lists
  11785. # what "hidden" libraries, object files and flags are used when
  11786. # linking a shared library.
  11787. #
  11788. # There doesn't appear to be a way to prevent this compiler from
  11789. # explicitly linking system object files so we need to strip them
  11790. # from the output so that they don't get included in the library
  11791. # dependencies.
  11792. 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'
  11793. ;;
  11794. xl* | mpixl* | bgxl*)
  11795. # IBM XL 8.0 on PPC, with GNU ld
  11796. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11797. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11798. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11799. if test "x$supports_anon_versioning" = xyes; then
  11800. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11801. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11802. echo "local: *; };" >> $output_objdir/$libname.ver~
  11803. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11804. fi
  11805. ;;
  11806. *)
  11807. case `$CC -V 2>&1 | sed 5q` in
  11808. *Sun\ C*)
  11809. # Sun C++ 5.9
  11810. no_undefined_flag_CXX=' -zdefs'
  11811. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11812. 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'
  11813. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11814. 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'
  11815. compiler_needs_object_CXX=yes
  11816. # Not sure whether something based on
  11817. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11818. # would be better.
  11819. output_verbose_link_cmd='func_echo_all'
  11820. # Archives containing C++ object files must be created using
  11821. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11822. # necessary to make sure instantiated templates are included
  11823. # in the archive.
  11824. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11825. ;;
  11826. esac
  11827. ;;
  11828. esac
  11829. ;;
  11830. lynxos*)
  11831. # FIXME: insert proper C++ library support
  11832. ld_shlibs_CXX=no
  11833. ;;
  11834. m88k*)
  11835. # FIXME: insert proper C++ library support
  11836. ld_shlibs_CXX=no
  11837. ;;
  11838. mvs*)
  11839. case $cc_basename in
  11840. cxx*)
  11841. # FIXME: insert proper C++ library support
  11842. ld_shlibs_CXX=no
  11843. ;;
  11844. *)
  11845. # FIXME: insert proper C++ library support
  11846. ld_shlibs_CXX=no
  11847. ;;
  11848. esac
  11849. ;;
  11850. netbsd*)
  11851. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11852. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11853. wlarc=
  11854. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11855. hardcode_direct_CXX=yes
  11856. hardcode_shlibpath_var_CXX=no
  11857. fi
  11858. # Workaround some broken pre-1.5 toolchains
  11859. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11860. ;;
  11861. *nto* | *qnx*)
  11862. ld_shlibs_CXX=yes
  11863. ;;
  11864. openbsd2*)
  11865. # C++ shared libraries are fairly broken
  11866. ld_shlibs_CXX=no
  11867. ;;
  11868. openbsd*)
  11869. if test -f /usr/libexec/ld.so; then
  11870. hardcode_direct_CXX=yes
  11871. hardcode_shlibpath_var_CXX=no
  11872. hardcode_direct_absolute_CXX=yes
  11873. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11874. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11875. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11876. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11877. export_dynamic_flag_spec_CXX='${wl}-E'
  11878. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11879. fi
  11880. output_verbose_link_cmd=func_echo_all
  11881. else
  11882. ld_shlibs_CXX=no
  11883. fi
  11884. ;;
  11885. osf3* | osf4* | osf5*)
  11886. case $cc_basename in
  11887. KCC*)
  11888. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11889. # KCC will only create a shared library if the output file
  11890. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11891. # to its proper name (with version) after linking.
  11892. 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'
  11893. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11894. hardcode_libdir_separator_CXX=:
  11895. # Archives containing C++ object files must be created using
  11896. # the KAI C++ compiler.
  11897. case $host in
  11898. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11899. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11900. esac
  11901. ;;
  11902. RCC*)
  11903. # Rational C++ 2.4.1
  11904. # FIXME: insert proper C++ library support
  11905. ld_shlibs_CXX=no
  11906. ;;
  11907. cxx*)
  11908. case $host in
  11909. osf3*)
  11910. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11911. 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'
  11912. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11913. ;;
  11914. *)
  11915. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11916. 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'
  11917. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11918. echo "-hidden">> $lib.exp~
  11919. $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~
  11920. $RM $lib.exp'
  11921. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11922. ;;
  11923. esac
  11924. hardcode_libdir_separator_CXX=:
  11925. # Commands to make compiler produce verbose output that lists
  11926. # what "hidden" libraries, object files and flags are used when
  11927. # linking a shared library.
  11928. #
  11929. # There doesn't appear to be a way to prevent this compiler from
  11930. # explicitly linking system object files so we need to strip them
  11931. # from the output so that they don't get included in the library
  11932. # dependencies.
  11933. 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"'
  11934. ;;
  11935. *)
  11936. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11937. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11938. case $host in
  11939. osf3*)
  11940. 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'
  11941. ;;
  11942. *)
  11943. 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'
  11944. ;;
  11945. esac
  11946. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11947. hardcode_libdir_separator_CXX=:
  11948. # Commands to make compiler produce verbose output that lists
  11949. # what "hidden" libraries, object files and flags are used when
  11950. # linking a shared library.
  11951. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11952. else
  11953. # FIXME: insert proper C++ library support
  11954. ld_shlibs_CXX=no
  11955. fi
  11956. ;;
  11957. esac
  11958. ;;
  11959. psos*)
  11960. # FIXME: insert proper C++ library support
  11961. ld_shlibs_CXX=no
  11962. ;;
  11963. sunos4*)
  11964. case $cc_basename in
  11965. CC*)
  11966. # Sun C++ 4.x
  11967. # FIXME: insert proper C++ library support
  11968. ld_shlibs_CXX=no
  11969. ;;
  11970. lcc*)
  11971. # Lucid
  11972. # FIXME: insert proper C++ library support
  11973. ld_shlibs_CXX=no
  11974. ;;
  11975. *)
  11976. # FIXME: insert proper C++ library support
  11977. ld_shlibs_CXX=no
  11978. ;;
  11979. esac
  11980. ;;
  11981. solaris*)
  11982. case $cc_basename in
  11983. CC* | sunCC*)
  11984. # Sun C++ 4.2, 5.x and Centerline C++
  11985. archive_cmds_need_lc_CXX=yes
  11986. no_undefined_flag_CXX=' -zdefs'
  11987. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11988. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11989. $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'
  11990. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11991. hardcode_shlibpath_var_CXX=no
  11992. case $host_os in
  11993. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11994. *)
  11995. # The compiler driver will combine and reorder linker options,
  11996. # but understands `-z linker_flag'.
  11997. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11998. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11999. ;;
  12000. esac
  12001. link_all_deplibs_CXX=yes
  12002. output_verbose_link_cmd='func_echo_all'
  12003. # Archives containing C++ object files must be created using
  12004. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12005. # necessary to make sure instantiated templates are included
  12006. # in the archive.
  12007. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12008. ;;
  12009. gcx*)
  12010. # Green Hills C++ Compiler
  12011. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12012. # The C++ compiler must be used to create the archive.
  12013. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12014. ;;
  12015. *)
  12016. # GNU C++ compiler with Solaris linker
  12017. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12018. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  12019. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12020. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12021. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12022. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12023. # Commands to make compiler produce verbose output that lists
  12024. # what "hidden" libraries, object files and flags are used when
  12025. # linking a shared library.
  12026. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12027. else
  12028. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  12029. # platform.
  12030. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12031. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12032. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12033. # Commands to make compiler produce verbose output that lists
  12034. # what "hidden" libraries, object files and flags are used when
  12035. # linking a shared library.
  12036. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12037. fi
  12038. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  12039. case $host_os in
  12040. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12041. *)
  12042. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  12043. ;;
  12044. esac
  12045. fi
  12046. ;;
  12047. esac
  12048. ;;
  12049. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12050. no_undefined_flag_CXX='${wl}-z,text'
  12051. archive_cmds_need_lc_CXX=no
  12052. hardcode_shlibpath_var_CXX=no
  12053. runpath_var='LD_RUN_PATH'
  12054. case $cc_basename in
  12055. CC*)
  12056. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12057. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12058. ;;
  12059. *)
  12060. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12061. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12062. ;;
  12063. esac
  12064. ;;
  12065. sysv5* | sco3.2v5* | sco5v6*)
  12066. # Note: We can NOT use -z defs as we might desire, because we do not
  12067. # link with -lc, and that would cause any symbols used from libc to
  12068. # always be unresolved, which means just about no library would
  12069. # ever link correctly. If we're not using GNU ld we use -z text
  12070. # though, which does catch some bad symbols but isn't as heavy-handed
  12071. # as -z defs.
  12072. no_undefined_flag_CXX='${wl}-z,text'
  12073. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12074. archive_cmds_need_lc_CXX=no
  12075. hardcode_shlibpath_var_CXX=no
  12076. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  12077. hardcode_libdir_separator_CXX=':'
  12078. link_all_deplibs_CXX=yes
  12079. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12080. runpath_var='LD_RUN_PATH'
  12081. case $cc_basename in
  12082. CC*)
  12083. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12084. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12085. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12086. '"$old_archive_cmds_CXX"
  12087. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12088. '"$reload_cmds_CXX"
  12089. ;;
  12090. *)
  12091. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12092. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12093. ;;
  12094. esac
  12095. ;;
  12096. tandem*)
  12097. case $cc_basename in
  12098. NCC*)
  12099. # NonStop-UX NCC 3.20
  12100. # FIXME: insert proper C++ library support
  12101. ld_shlibs_CXX=no
  12102. ;;
  12103. *)
  12104. # FIXME: insert proper C++ library support
  12105. ld_shlibs_CXX=no
  12106. ;;
  12107. esac
  12108. ;;
  12109. vxworks*)
  12110. # FIXME: insert proper C++ library support
  12111. ld_shlibs_CXX=no
  12112. ;;
  12113. *)
  12114. # FIXME: insert proper C++ library support
  12115. ld_shlibs_CXX=no
  12116. ;;
  12117. esac
  12118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12119. $as_echo "$ld_shlibs_CXX" >&6; }
  12120. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12121. GCC_CXX="$GXX"
  12122. LD_CXX="$LD"
  12123. ## CAVEAT EMPTOR:
  12124. ## There is no encapsulation within the following macros, do not change
  12125. ## the running order or otherwise move them around unless you know exactly
  12126. ## what you are doing...
  12127. # Dependencies to place before and after the object being linked:
  12128. predep_objects_CXX=
  12129. postdep_objects_CXX=
  12130. predeps_CXX=
  12131. postdeps_CXX=
  12132. compiler_lib_search_path_CXX=
  12133. cat > conftest.$ac_ext <<_LT_EOF
  12134. class Foo
  12135. {
  12136. public:
  12137. Foo (void) { a = 0; }
  12138. private:
  12139. int a;
  12140. };
  12141. _LT_EOF
  12142. _lt_libdeps_save_CFLAGS=$CFLAGS
  12143. case "$CC $CFLAGS " in #(
  12144. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12145. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12146. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12147. esac
  12148. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12149. (eval $ac_compile) 2>&5
  12150. ac_status=$?
  12151. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12152. test $ac_status = 0; }; then
  12153. # Parse the compiler output and extract the necessary
  12154. # objects, libraries and library flags.
  12155. # Sentinel used to keep track of whether or not we are before
  12156. # the conftest object file.
  12157. pre_test_object_deps_done=no
  12158. for p in `eval "$output_verbose_link_cmd"`; do
  12159. case ${prev}${p} in
  12160. -L* | -R* | -l*)
  12161. # Some compilers place space between "-{L,R}" and the path.
  12162. # Remove the space.
  12163. if test $p = "-L" ||
  12164. test $p = "-R"; then
  12165. prev=$p
  12166. continue
  12167. fi
  12168. # Expand the sysroot to ease extracting the directories later.
  12169. if test -z "$prev"; then
  12170. case $p in
  12171. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12172. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12173. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12174. esac
  12175. fi
  12176. case $p in
  12177. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12178. esac
  12179. if test "$pre_test_object_deps_done" = no; then
  12180. case ${prev} in
  12181. -L | -R)
  12182. # Internal compiler library paths should come after those
  12183. # provided the user. The postdeps already come after the
  12184. # user supplied libs so there is no need to process them.
  12185. if test -z "$compiler_lib_search_path_CXX"; then
  12186. compiler_lib_search_path_CXX="${prev}${p}"
  12187. else
  12188. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12189. fi
  12190. ;;
  12191. # The "-l" case would never come before the object being
  12192. # linked, so don't bother handling this case.
  12193. esac
  12194. else
  12195. if test -z "$postdeps_CXX"; then
  12196. postdeps_CXX="${prev}${p}"
  12197. else
  12198. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12199. fi
  12200. fi
  12201. prev=
  12202. ;;
  12203. *.lto.$objext) ;; # Ignore GCC LTO objects
  12204. *.$objext)
  12205. # This assumes that the test object file only shows up
  12206. # once in the compiler output.
  12207. if test "$p" = "conftest.$objext"; then
  12208. pre_test_object_deps_done=yes
  12209. continue
  12210. fi
  12211. if test "$pre_test_object_deps_done" = no; then
  12212. if test -z "$predep_objects_CXX"; then
  12213. predep_objects_CXX="$p"
  12214. else
  12215. predep_objects_CXX="$predep_objects_CXX $p"
  12216. fi
  12217. else
  12218. if test -z "$postdep_objects_CXX"; then
  12219. postdep_objects_CXX="$p"
  12220. else
  12221. postdep_objects_CXX="$postdep_objects_CXX $p"
  12222. fi
  12223. fi
  12224. ;;
  12225. *) ;; # Ignore the rest.
  12226. esac
  12227. done
  12228. # Clean up.
  12229. rm -f a.out a.exe
  12230. else
  12231. echo "libtool.m4: error: problem compiling CXX test program"
  12232. fi
  12233. $RM -f confest.$objext
  12234. CFLAGS=$_lt_libdeps_save_CFLAGS
  12235. # PORTME: override above test on systems where it is broken
  12236. case $host_os in
  12237. interix[3-9]*)
  12238. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12239. # hack all around it, let's just trust "g++" to DTRT.
  12240. predep_objects_CXX=
  12241. postdep_objects_CXX=
  12242. postdeps_CXX=
  12243. ;;
  12244. linux*)
  12245. case `$CC -V 2>&1 | sed 5q` in
  12246. *Sun\ C*)
  12247. # Sun C++ 5.9
  12248. # The more standards-conforming stlport4 library is
  12249. # incompatible with the Cstd library. Avoid specifying
  12250. # it if it's in CXXFLAGS. Ignore libCrun as
  12251. # -library=stlport4 depends on it.
  12252. case " $CXX $CXXFLAGS " in
  12253. *" -library=stlport4 "*)
  12254. solaris_use_stlport4=yes
  12255. ;;
  12256. esac
  12257. if test "$solaris_use_stlport4" != yes; then
  12258. postdeps_CXX='-library=Cstd -library=Crun'
  12259. fi
  12260. ;;
  12261. esac
  12262. ;;
  12263. solaris*)
  12264. case $cc_basename in
  12265. CC* | sunCC*)
  12266. # The more standards-conforming stlport4 library is
  12267. # incompatible with the Cstd library. Avoid specifying
  12268. # it if it's in CXXFLAGS. Ignore libCrun as
  12269. # -library=stlport4 depends on it.
  12270. case " $CXX $CXXFLAGS " in
  12271. *" -library=stlport4 "*)
  12272. solaris_use_stlport4=yes
  12273. ;;
  12274. esac
  12275. # Adding this requires a known-good setup of shared libraries for
  12276. # Sun compiler versions before 5.6, else PIC objects from an old
  12277. # archive will be linked into the output, leading to subtle bugs.
  12278. if test "$solaris_use_stlport4" != yes; then
  12279. postdeps_CXX='-library=Cstd -library=Crun'
  12280. fi
  12281. ;;
  12282. esac
  12283. ;;
  12284. esac
  12285. case " $postdeps_CXX " in
  12286. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12287. esac
  12288. compiler_lib_search_dirs_CXX=
  12289. if test -n "${compiler_lib_search_path_CXX}"; then
  12290. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12291. fi
  12292. lt_prog_compiler_wl_CXX=
  12293. lt_prog_compiler_pic_CXX=
  12294. lt_prog_compiler_static_CXX=
  12295. # C++ specific cases for pic, static, wl, etc.
  12296. if test "$GXX" = yes; then
  12297. lt_prog_compiler_wl_CXX='-Wl,'
  12298. lt_prog_compiler_static_CXX='-static'
  12299. case $host_os in
  12300. aix*)
  12301. # All AIX code is PIC.
  12302. if test "$host_cpu" = ia64; then
  12303. # AIX 5 now supports IA64 processor
  12304. lt_prog_compiler_static_CXX='-Bstatic'
  12305. fi
  12306. ;;
  12307. amigaos*)
  12308. case $host_cpu in
  12309. powerpc)
  12310. # see comment about AmigaOS4 .so support
  12311. lt_prog_compiler_pic_CXX='-fPIC'
  12312. ;;
  12313. m68k)
  12314. # FIXME: we need at least 68020 code to build shared libraries, but
  12315. # adding the `-m68020' flag to GCC prevents building anything better,
  12316. # like `-m68040'.
  12317. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12318. ;;
  12319. esac
  12320. ;;
  12321. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12322. # PIC is the default for these OSes.
  12323. ;;
  12324. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12325. # This hack is so that the source file can tell whether it is being
  12326. # built for inclusion in a dll (and should export symbols for example).
  12327. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12328. # (--disable-auto-import) libraries
  12329. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12330. ;;
  12331. darwin* | rhapsody*)
  12332. # PIC is the default on this platform
  12333. # Common symbols not allowed in MH_DYLIB files
  12334. lt_prog_compiler_pic_CXX='-fno-common'
  12335. ;;
  12336. *djgpp*)
  12337. # DJGPP does not support shared libraries at all
  12338. lt_prog_compiler_pic_CXX=
  12339. ;;
  12340. haiku*)
  12341. # PIC is the default for Haiku.
  12342. # The "-static" flag exists, but is broken.
  12343. lt_prog_compiler_static_CXX=
  12344. ;;
  12345. interix[3-9]*)
  12346. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12347. # Instead, we relocate shared libraries at runtime.
  12348. ;;
  12349. sysv4*MP*)
  12350. if test -d /usr/nec; then
  12351. lt_prog_compiler_pic_CXX=-Kconform_pic
  12352. fi
  12353. ;;
  12354. hpux*)
  12355. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12356. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12357. # sets the default TLS model and affects inlining.
  12358. case $host_cpu in
  12359. hppa*64*)
  12360. ;;
  12361. *)
  12362. lt_prog_compiler_pic_CXX='-fPIC'
  12363. ;;
  12364. esac
  12365. ;;
  12366. *qnx* | *nto*)
  12367. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12368. # it will coredump.
  12369. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12370. ;;
  12371. *)
  12372. lt_prog_compiler_pic_CXX='-fPIC'
  12373. ;;
  12374. esac
  12375. else
  12376. case $host_os in
  12377. aix[4-9]*)
  12378. # All AIX code is PIC.
  12379. if test "$host_cpu" = ia64; then
  12380. # AIX 5 now supports IA64 processor
  12381. lt_prog_compiler_static_CXX='-Bstatic'
  12382. else
  12383. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12384. fi
  12385. ;;
  12386. chorus*)
  12387. case $cc_basename in
  12388. cxch68*)
  12389. # Green Hills C++ Compiler
  12390. # _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"
  12391. ;;
  12392. esac
  12393. ;;
  12394. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12395. # This hack is so that the source file can tell whether it is being
  12396. # built for inclusion in a dll (and should export symbols for example).
  12397. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12398. ;;
  12399. dgux*)
  12400. case $cc_basename in
  12401. ec++*)
  12402. lt_prog_compiler_pic_CXX='-KPIC'
  12403. ;;
  12404. ghcx*)
  12405. # Green Hills C++ Compiler
  12406. lt_prog_compiler_pic_CXX='-pic'
  12407. ;;
  12408. *)
  12409. ;;
  12410. esac
  12411. ;;
  12412. freebsd* | dragonfly*)
  12413. # FreeBSD uses GNU C++
  12414. ;;
  12415. hpux9* | hpux10* | hpux11*)
  12416. case $cc_basename in
  12417. CC*)
  12418. lt_prog_compiler_wl_CXX='-Wl,'
  12419. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12420. if test "$host_cpu" != ia64; then
  12421. lt_prog_compiler_pic_CXX='+Z'
  12422. fi
  12423. ;;
  12424. aCC*)
  12425. lt_prog_compiler_wl_CXX='-Wl,'
  12426. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12427. case $host_cpu in
  12428. hppa*64*|ia64*)
  12429. # +Z the default
  12430. ;;
  12431. *)
  12432. lt_prog_compiler_pic_CXX='+Z'
  12433. ;;
  12434. esac
  12435. ;;
  12436. *)
  12437. ;;
  12438. esac
  12439. ;;
  12440. interix*)
  12441. # This is c89, which is MS Visual C++ (no shared libs)
  12442. # Anyone wants to do a port?
  12443. ;;
  12444. irix5* | irix6* | nonstopux*)
  12445. case $cc_basename in
  12446. CC*)
  12447. lt_prog_compiler_wl_CXX='-Wl,'
  12448. lt_prog_compiler_static_CXX='-non_shared'
  12449. # CC pic flag -KPIC is the default.
  12450. ;;
  12451. *)
  12452. ;;
  12453. esac
  12454. ;;
  12455. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12456. case $cc_basename in
  12457. KCC*)
  12458. # KAI C++ Compiler
  12459. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12460. lt_prog_compiler_pic_CXX='-fPIC'
  12461. ;;
  12462. ecpc* )
  12463. # old Intel C++ for x86_64 which still supported -KPIC.
  12464. lt_prog_compiler_wl_CXX='-Wl,'
  12465. lt_prog_compiler_pic_CXX='-KPIC'
  12466. lt_prog_compiler_static_CXX='-static'
  12467. ;;
  12468. icpc* )
  12469. # Intel C++, used to be incompatible with GCC.
  12470. # ICC 10 doesn't accept -KPIC any more.
  12471. lt_prog_compiler_wl_CXX='-Wl,'
  12472. lt_prog_compiler_pic_CXX='-fPIC'
  12473. lt_prog_compiler_static_CXX='-static'
  12474. ;;
  12475. pgCC* | pgcpp*)
  12476. # Portland Group C++ compiler
  12477. lt_prog_compiler_wl_CXX='-Wl,'
  12478. lt_prog_compiler_pic_CXX='-fpic'
  12479. lt_prog_compiler_static_CXX='-Bstatic'
  12480. ;;
  12481. cxx*)
  12482. # Compaq C++
  12483. # Make sure the PIC flag is empty. It appears that all Alpha
  12484. # Linux and Compaq Tru64 Unix objects are PIC.
  12485. lt_prog_compiler_pic_CXX=
  12486. lt_prog_compiler_static_CXX='-non_shared'
  12487. ;;
  12488. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12489. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12490. lt_prog_compiler_wl_CXX='-Wl,'
  12491. lt_prog_compiler_pic_CXX='-qpic'
  12492. lt_prog_compiler_static_CXX='-qstaticlink'
  12493. ;;
  12494. *)
  12495. case `$CC -V 2>&1 | sed 5q` in
  12496. *Sun\ C*)
  12497. # Sun C++ 5.9
  12498. lt_prog_compiler_pic_CXX='-KPIC'
  12499. lt_prog_compiler_static_CXX='-Bstatic'
  12500. lt_prog_compiler_wl_CXX='-Qoption ld '
  12501. ;;
  12502. esac
  12503. ;;
  12504. esac
  12505. ;;
  12506. lynxos*)
  12507. ;;
  12508. m88k*)
  12509. ;;
  12510. mvs*)
  12511. case $cc_basename in
  12512. cxx*)
  12513. lt_prog_compiler_pic_CXX='-W c,exportall'
  12514. ;;
  12515. *)
  12516. ;;
  12517. esac
  12518. ;;
  12519. netbsd*)
  12520. ;;
  12521. *qnx* | *nto*)
  12522. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12523. # it will coredump.
  12524. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12525. ;;
  12526. osf3* | osf4* | osf5*)
  12527. case $cc_basename in
  12528. KCC*)
  12529. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12530. ;;
  12531. RCC*)
  12532. # Rational C++ 2.4.1
  12533. lt_prog_compiler_pic_CXX='-pic'
  12534. ;;
  12535. cxx*)
  12536. # Digital/Compaq C++
  12537. lt_prog_compiler_wl_CXX='-Wl,'
  12538. # Make sure the PIC flag is empty. It appears that all Alpha
  12539. # Linux and Compaq Tru64 Unix objects are PIC.
  12540. lt_prog_compiler_pic_CXX=
  12541. lt_prog_compiler_static_CXX='-non_shared'
  12542. ;;
  12543. *)
  12544. ;;
  12545. esac
  12546. ;;
  12547. psos*)
  12548. ;;
  12549. solaris*)
  12550. case $cc_basename in
  12551. CC* | sunCC*)
  12552. # Sun C++ 4.2, 5.x and Centerline C++
  12553. lt_prog_compiler_pic_CXX='-KPIC'
  12554. lt_prog_compiler_static_CXX='-Bstatic'
  12555. lt_prog_compiler_wl_CXX='-Qoption ld '
  12556. ;;
  12557. gcx*)
  12558. # Green Hills C++ Compiler
  12559. lt_prog_compiler_pic_CXX='-PIC'
  12560. ;;
  12561. *)
  12562. ;;
  12563. esac
  12564. ;;
  12565. sunos4*)
  12566. case $cc_basename in
  12567. CC*)
  12568. # Sun C++ 4.x
  12569. lt_prog_compiler_pic_CXX='-pic'
  12570. lt_prog_compiler_static_CXX='-Bstatic'
  12571. ;;
  12572. lcc*)
  12573. # Lucid
  12574. lt_prog_compiler_pic_CXX='-pic'
  12575. ;;
  12576. *)
  12577. ;;
  12578. esac
  12579. ;;
  12580. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12581. case $cc_basename in
  12582. CC*)
  12583. lt_prog_compiler_wl_CXX='-Wl,'
  12584. lt_prog_compiler_pic_CXX='-KPIC'
  12585. lt_prog_compiler_static_CXX='-Bstatic'
  12586. ;;
  12587. esac
  12588. ;;
  12589. tandem*)
  12590. case $cc_basename in
  12591. NCC*)
  12592. # NonStop-UX NCC 3.20
  12593. lt_prog_compiler_pic_CXX='-KPIC'
  12594. ;;
  12595. *)
  12596. ;;
  12597. esac
  12598. ;;
  12599. vxworks*)
  12600. ;;
  12601. *)
  12602. lt_prog_compiler_can_build_shared_CXX=no
  12603. ;;
  12604. esac
  12605. fi
  12606. case $host_os in
  12607. # For platforms which do not support PIC, -DPIC is meaningless:
  12608. *djgpp*)
  12609. lt_prog_compiler_pic_CXX=
  12610. ;;
  12611. *)
  12612. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12613. ;;
  12614. esac
  12615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12616. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12617. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12618. $as_echo_n "(cached) " >&6
  12619. else
  12620. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12621. fi
  12622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12623. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12624. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12625. #
  12626. # Check to make sure the PIC flag actually works.
  12627. #
  12628. if test -n "$lt_prog_compiler_pic_CXX"; then
  12629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12630. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12631. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12632. $as_echo_n "(cached) " >&6
  12633. else
  12634. lt_cv_prog_compiler_pic_works_CXX=no
  12635. ac_outfile=conftest.$ac_objext
  12636. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12637. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12638. # Insert the option either (1) after the last *FLAGS variable, or
  12639. # (2) before a word containing "conftest.", or (3) at the end.
  12640. # Note that $ac_compile itself does not contain backslashes and begins
  12641. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12642. # The option is referenced via a variable to avoid confusing sed.
  12643. lt_compile=`echo "$ac_compile" | $SED \
  12644. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12645. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12646. -e 's:$: $lt_compiler_flag:'`
  12647. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12648. (eval "$lt_compile" 2>conftest.err)
  12649. ac_status=$?
  12650. cat conftest.err >&5
  12651. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12652. if (exit $ac_status) && test -s "$ac_outfile"; then
  12653. # The compiler can only warn and ignore the option if not recognized
  12654. # So say no if there are warnings other than the usual output.
  12655. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12656. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12657. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12658. lt_cv_prog_compiler_pic_works_CXX=yes
  12659. fi
  12660. fi
  12661. $RM conftest*
  12662. fi
  12663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12664. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12665. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12666. case $lt_prog_compiler_pic_CXX in
  12667. "" | " "*) ;;
  12668. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12669. esac
  12670. else
  12671. lt_prog_compiler_pic_CXX=
  12672. lt_prog_compiler_can_build_shared_CXX=no
  12673. fi
  12674. fi
  12675. #
  12676. # Check to make sure the static flag actually works.
  12677. #
  12678. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12680. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12681. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12682. $as_echo_n "(cached) " >&6
  12683. else
  12684. lt_cv_prog_compiler_static_works_CXX=no
  12685. save_LDFLAGS="$LDFLAGS"
  12686. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12687. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12688. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12689. # The linker can only warn and ignore the option if not recognized
  12690. # So say no if there are warnings
  12691. if test -s conftest.err; then
  12692. # Append any errors to the config.log.
  12693. cat conftest.err 1>&5
  12694. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12695. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12696. if diff conftest.exp conftest.er2 >/dev/null; then
  12697. lt_cv_prog_compiler_static_works_CXX=yes
  12698. fi
  12699. else
  12700. lt_cv_prog_compiler_static_works_CXX=yes
  12701. fi
  12702. fi
  12703. $RM -r conftest*
  12704. LDFLAGS="$save_LDFLAGS"
  12705. fi
  12706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12707. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12708. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12709. :
  12710. else
  12711. lt_prog_compiler_static_CXX=
  12712. fi
  12713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12714. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12715. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12716. $as_echo_n "(cached) " >&6
  12717. else
  12718. lt_cv_prog_compiler_c_o_CXX=no
  12719. $RM -r conftest 2>/dev/null
  12720. mkdir conftest
  12721. cd conftest
  12722. mkdir out
  12723. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12724. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12725. # Insert the option either (1) after the last *FLAGS variable, or
  12726. # (2) before a word containing "conftest.", or (3) at the end.
  12727. # Note that $ac_compile itself does not contain backslashes and begins
  12728. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12729. lt_compile=`echo "$ac_compile" | $SED \
  12730. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12731. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12732. -e 's:$: $lt_compiler_flag:'`
  12733. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12734. (eval "$lt_compile" 2>out/conftest.err)
  12735. ac_status=$?
  12736. cat out/conftest.err >&5
  12737. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12738. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12739. then
  12740. # The compiler can only warn and ignore the option if not recognized
  12741. # So say no if there are warnings
  12742. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12743. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12744. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12745. lt_cv_prog_compiler_c_o_CXX=yes
  12746. fi
  12747. fi
  12748. chmod u+w . 2>&5
  12749. $RM conftest*
  12750. # SGI C++ compiler will create directory out/ii_files/ for
  12751. # template instantiation
  12752. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12753. $RM out/* && rmdir out
  12754. cd ..
  12755. $RM -r conftest
  12756. $RM conftest*
  12757. fi
  12758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12759. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12761. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12762. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12763. $as_echo_n "(cached) " >&6
  12764. else
  12765. lt_cv_prog_compiler_c_o_CXX=no
  12766. $RM -r conftest 2>/dev/null
  12767. mkdir conftest
  12768. cd conftest
  12769. mkdir out
  12770. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12771. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12772. # Insert the option either (1) after the last *FLAGS variable, or
  12773. # (2) before a word containing "conftest.", or (3) at the end.
  12774. # Note that $ac_compile itself does not contain backslashes and begins
  12775. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12776. lt_compile=`echo "$ac_compile" | $SED \
  12777. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12778. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12779. -e 's:$: $lt_compiler_flag:'`
  12780. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12781. (eval "$lt_compile" 2>out/conftest.err)
  12782. ac_status=$?
  12783. cat out/conftest.err >&5
  12784. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12785. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12786. then
  12787. # The compiler can only warn and ignore the option if not recognized
  12788. # So say no if there are warnings
  12789. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12790. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12791. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12792. lt_cv_prog_compiler_c_o_CXX=yes
  12793. fi
  12794. fi
  12795. chmod u+w . 2>&5
  12796. $RM conftest*
  12797. # SGI C++ compiler will create directory out/ii_files/ for
  12798. # template instantiation
  12799. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12800. $RM out/* && rmdir out
  12801. cd ..
  12802. $RM -r conftest
  12803. $RM conftest*
  12804. fi
  12805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12806. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12807. hard_links="nottested"
  12808. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12809. # do not overwrite the value of need_locks provided by the user
  12810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12811. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12812. hard_links=yes
  12813. $RM conftest*
  12814. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12815. touch conftest.a
  12816. ln conftest.a conftest.b 2>&5 || hard_links=no
  12817. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12819. $as_echo "$hard_links" >&6; }
  12820. if test "$hard_links" = no; then
  12821. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12822. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12823. need_locks=warn
  12824. fi
  12825. else
  12826. need_locks=no
  12827. fi
  12828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12829. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12830. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12831. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12832. case $host_os in
  12833. aix[4-9]*)
  12834. # If we're using GNU nm, then we don't want the "-C" option.
  12835. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12836. # Also, AIX nm treats weak defined symbols like other global defined
  12837. # symbols, whereas GNU nm marks them as "W".
  12838. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12839. 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'
  12840. else
  12841. 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'
  12842. fi
  12843. ;;
  12844. pw32*)
  12845. export_symbols_cmds_CXX="$ltdll_cmds"
  12846. ;;
  12847. cygwin* | mingw* | cegcc*)
  12848. case $cc_basename in
  12849. cl*)
  12850. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12851. ;;
  12852. *)
  12853. 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'
  12854. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12855. ;;
  12856. esac
  12857. ;;
  12858. *)
  12859. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12860. ;;
  12861. esac
  12862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12863. $as_echo "$ld_shlibs_CXX" >&6; }
  12864. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12865. with_gnu_ld_CXX=$with_gnu_ld
  12866. #
  12867. # Do we need to explicitly link libc?
  12868. #
  12869. case "x$archive_cmds_need_lc_CXX" in
  12870. x|xyes)
  12871. # Assume -lc should be added
  12872. archive_cmds_need_lc_CXX=yes
  12873. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12874. case $archive_cmds_CXX in
  12875. *'~'*)
  12876. # FIXME: we may have to deal with multi-command sequences.
  12877. ;;
  12878. '$CC '*)
  12879. # Test whether the compiler implicitly links with -lc since on some
  12880. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12881. # to ld, don't add -lc before -lgcc.
  12882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12883. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12884. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12885. $as_echo_n "(cached) " >&6
  12886. else
  12887. $RM conftest*
  12888. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12889. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12890. (eval $ac_compile) 2>&5
  12891. ac_status=$?
  12892. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12893. test $ac_status = 0; } 2>conftest.err; then
  12894. soname=conftest
  12895. lib=conftest
  12896. libobjs=conftest.$ac_objext
  12897. deplibs=
  12898. wl=$lt_prog_compiler_wl_CXX
  12899. pic_flag=$lt_prog_compiler_pic_CXX
  12900. compiler_flags=-v
  12901. linker_flags=-v
  12902. verstring=
  12903. output_objdir=.
  12904. libname=conftest
  12905. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12906. allow_undefined_flag_CXX=
  12907. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12908. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12909. ac_status=$?
  12910. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12911. test $ac_status = 0; }
  12912. then
  12913. lt_cv_archive_cmds_need_lc_CXX=no
  12914. else
  12915. lt_cv_archive_cmds_need_lc_CXX=yes
  12916. fi
  12917. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12918. else
  12919. cat conftest.err 1>&5
  12920. fi
  12921. $RM conftest*
  12922. fi
  12923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12924. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12925. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12926. ;;
  12927. esac
  12928. fi
  12929. ;;
  12930. esac
  12931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12932. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12933. library_names_spec=
  12934. libname_spec='lib$name'
  12935. soname_spec=
  12936. shrext_cmds=".so"
  12937. postinstall_cmds=
  12938. postuninstall_cmds=
  12939. finish_cmds=
  12940. finish_eval=
  12941. shlibpath_var=
  12942. shlibpath_overrides_runpath=unknown
  12943. version_type=none
  12944. dynamic_linker="$host_os ld.so"
  12945. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12946. need_lib_prefix=unknown
  12947. hardcode_into_libs=no
  12948. # when you set need_version to no, make sure it does not cause -set_version
  12949. # flags to be left without arguments
  12950. need_version=unknown
  12951. case $host_os in
  12952. aix3*)
  12953. version_type=linux # correct to gnu/linux during the next big refactor
  12954. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12955. shlibpath_var=LIBPATH
  12956. # AIX 3 has no versioning support, so we append a major version to the name.
  12957. soname_spec='${libname}${release}${shared_ext}$major'
  12958. ;;
  12959. aix[4-9]*)
  12960. version_type=linux # correct to gnu/linux during the next big refactor
  12961. need_lib_prefix=no
  12962. need_version=no
  12963. hardcode_into_libs=yes
  12964. if test "$host_cpu" = ia64; then
  12965. # AIX 5 supports IA64
  12966. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12967. shlibpath_var=LD_LIBRARY_PATH
  12968. else
  12969. # With GCC up to 2.95.x, collect2 would create an import file
  12970. # for dependence libraries. The import file would start with
  12971. # the line `#! .'. This would cause the generated library to
  12972. # depend on `.', always an invalid library. This was fixed in
  12973. # development snapshots of GCC prior to 3.0.
  12974. case $host_os in
  12975. aix4 | aix4.[01] | aix4.[01].*)
  12976. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12977. echo ' yes '
  12978. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12979. :
  12980. else
  12981. can_build_shared=no
  12982. fi
  12983. ;;
  12984. esac
  12985. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12986. # soname into executable. Probably we can add versioning support to
  12987. # collect2, so additional links can be useful in future.
  12988. if test "$aix_use_runtimelinking" = yes; then
  12989. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12990. # instead of lib<name>.a to let people know that these are not
  12991. # typical AIX shared libraries.
  12992. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12993. else
  12994. # We preserve .a as extension for shared libraries through AIX4.2
  12995. # and later when we are not doing run time linking.
  12996. library_names_spec='${libname}${release}.a $libname.a'
  12997. soname_spec='${libname}${release}${shared_ext}$major'
  12998. fi
  12999. shlibpath_var=LIBPATH
  13000. fi
  13001. ;;
  13002. amigaos*)
  13003. case $host_cpu in
  13004. powerpc)
  13005. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13006. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13007. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13008. ;;
  13009. m68k)
  13010. library_names_spec='$libname.ixlibrary $libname.a'
  13011. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13012. 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'
  13013. ;;
  13014. esac
  13015. ;;
  13016. beos*)
  13017. library_names_spec='${libname}${shared_ext}'
  13018. dynamic_linker="$host_os ld.so"
  13019. shlibpath_var=LIBRARY_PATH
  13020. ;;
  13021. bsdi[45]*)
  13022. version_type=linux # correct to gnu/linux during the next big refactor
  13023. need_version=no
  13024. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13025. soname_spec='${libname}${release}${shared_ext}$major'
  13026. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13027. shlibpath_var=LD_LIBRARY_PATH
  13028. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13029. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13030. # the default ld.so.conf also contains /usr/contrib/lib and
  13031. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13032. # libtool to hard-code these into programs
  13033. ;;
  13034. cygwin* | mingw* | pw32* | cegcc*)
  13035. version_type=windows
  13036. shrext_cmds=".dll"
  13037. need_version=no
  13038. need_lib_prefix=no
  13039. case $GCC,$cc_basename in
  13040. yes,*)
  13041. # gcc
  13042. library_names_spec='$libname.dll.a'
  13043. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13044. postinstall_cmds='base_file=`basename \${file}`~
  13045. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13046. dldir=$destdir/`dirname \$dlpath`~
  13047. test -d \$dldir || mkdir -p \$dldir~
  13048. $install_prog $dir/$dlname \$dldir/$dlname~
  13049. chmod a+x \$dldir/$dlname~
  13050. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13051. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13052. fi'
  13053. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13054. dlpath=$dir/\$dldll~
  13055. $RM \$dlpath'
  13056. shlibpath_overrides_runpath=yes
  13057. case $host_os in
  13058. cygwin*)
  13059. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13060. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  13061. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  13062. ;;
  13063. mingw* | cegcc*)
  13064. # MinGW DLLs use traditional 'lib' prefix
  13065. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  13066. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  13067. ;;
  13068. pw32*)
  13069. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13070. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13071. ;;
  13072. esac
  13073. dynamic_linker='Win32 ld.exe'
  13074. ;;
  13075. *,cl*)
  13076. # Native MSVC
  13077. libname_spec='$name'
  13078. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13079. library_names_spec='${libname}.dll.lib'
  13080. case $build_os in
  13081. mingw*)
  13082. sys_lib_search_path_spec=
  13083. lt_save_ifs=$IFS
  13084. IFS=';'
  13085. for lt_path in $LIB
  13086. do
  13087. IFS=$lt_save_ifs
  13088. # Let DOS variable expansion print the short 8.3 style file name.
  13089. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13090. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13091. done
  13092. IFS=$lt_save_ifs
  13093. # Convert to MSYS style.
  13094. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13095. ;;
  13096. cygwin*)
  13097. # Convert to unix form, then to dos form, then back to unix form
  13098. # but this time dos style (no spaces!) so that the unix form looks
  13099. # like /cygdrive/c/PROGRA~1:/cygdr...
  13100. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13101. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13102. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13103. ;;
  13104. *)
  13105. sys_lib_search_path_spec="$LIB"
  13106. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13107. # It is most probably a Windows format PATH.
  13108. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13109. else
  13110. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13111. fi
  13112. # FIXME: find the short name or the path components, as spaces are
  13113. # common. (e.g. "Program Files" -> "PROGRA~1")
  13114. ;;
  13115. esac
  13116. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13117. postinstall_cmds='base_file=`basename \${file}`~
  13118. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13119. dldir=$destdir/`dirname \$dlpath`~
  13120. test -d \$dldir || mkdir -p \$dldir~
  13121. $install_prog $dir/$dlname \$dldir/$dlname'
  13122. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13123. dlpath=$dir/\$dldll~
  13124. $RM \$dlpath'
  13125. shlibpath_overrides_runpath=yes
  13126. dynamic_linker='Win32 link.exe'
  13127. ;;
  13128. *)
  13129. # Assume MSVC wrapper
  13130. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13131. dynamic_linker='Win32 ld.exe'
  13132. ;;
  13133. esac
  13134. # FIXME: first we should search . and the directory the executable is in
  13135. shlibpath_var=PATH
  13136. ;;
  13137. darwin* | rhapsody*)
  13138. dynamic_linker="$host_os dyld"
  13139. version_type=darwin
  13140. need_lib_prefix=no
  13141. need_version=no
  13142. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13143. soname_spec='${libname}${release}${major}$shared_ext'
  13144. shlibpath_overrides_runpath=yes
  13145. shlibpath_var=DYLD_LIBRARY_PATH
  13146. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13147. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13148. ;;
  13149. dgux*)
  13150. version_type=linux # correct to gnu/linux during the next big refactor
  13151. need_lib_prefix=no
  13152. need_version=no
  13153. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13154. soname_spec='${libname}${release}${shared_ext}$major'
  13155. shlibpath_var=LD_LIBRARY_PATH
  13156. ;;
  13157. freebsd* | dragonfly*)
  13158. # DragonFly does not have aout. When/if they implement a new
  13159. # versioning mechanism, adjust this.
  13160. if test -x /usr/bin/objformat; then
  13161. objformat=`/usr/bin/objformat`
  13162. else
  13163. case $host_os in
  13164. freebsd[23].*) objformat=aout ;;
  13165. *) objformat=elf ;;
  13166. esac
  13167. fi
  13168. version_type=freebsd-$objformat
  13169. case $version_type in
  13170. freebsd-elf*)
  13171. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13172. need_version=no
  13173. need_lib_prefix=no
  13174. ;;
  13175. freebsd-*)
  13176. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13177. need_version=yes
  13178. ;;
  13179. esac
  13180. shlibpath_var=LD_LIBRARY_PATH
  13181. case $host_os in
  13182. freebsd2.*)
  13183. shlibpath_overrides_runpath=yes
  13184. ;;
  13185. freebsd3.[01]* | freebsdelf3.[01]*)
  13186. shlibpath_overrides_runpath=yes
  13187. hardcode_into_libs=yes
  13188. ;;
  13189. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13190. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13191. shlibpath_overrides_runpath=no
  13192. hardcode_into_libs=yes
  13193. ;;
  13194. *) # from 4.6 on, and DragonFly
  13195. shlibpath_overrides_runpath=yes
  13196. hardcode_into_libs=yes
  13197. ;;
  13198. esac
  13199. ;;
  13200. gnu*)
  13201. version_type=linux # correct to gnu/linux during the next big refactor
  13202. need_lib_prefix=no
  13203. need_version=no
  13204. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13205. soname_spec='${libname}${release}${shared_ext}$major'
  13206. shlibpath_var=LD_LIBRARY_PATH
  13207. shlibpath_overrides_runpath=no
  13208. hardcode_into_libs=yes
  13209. ;;
  13210. haiku*)
  13211. version_type=linux # correct to gnu/linux during the next big refactor
  13212. need_lib_prefix=no
  13213. need_version=no
  13214. dynamic_linker="$host_os runtime_loader"
  13215. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13216. soname_spec='${libname}${release}${shared_ext}$major'
  13217. shlibpath_var=LIBRARY_PATH
  13218. shlibpath_overrides_runpath=yes
  13219. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13220. hardcode_into_libs=yes
  13221. ;;
  13222. hpux9* | hpux10* | hpux11*)
  13223. # Give a soname corresponding to the major version so that dld.sl refuses to
  13224. # link against other versions.
  13225. version_type=sunos
  13226. need_lib_prefix=no
  13227. need_version=no
  13228. case $host_cpu in
  13229. ia64*)
  13230. shrext_cmds='.so'
  13231. hardcode_into_libs=yes
  13232. dynamic_linker="$host_os dld.so"
  13233. shlibpath_var=LD_LIBRARY_PATH
  13234. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13235. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13236. soname_spec='${libname}${release}${shared_ext}$major'
  13237. if test "X$HPUX_IA64_MODE" = X32; then
  13238. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13239. else
  13240. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13241. fi
  13242. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13243. ;;
  13244. hppa*64*)
  13245. shrext_cmds='.sl'
  13246. hardcode_into_libs=yes
  13247. dynamic_linker="$host_os dld.sl"
  13248. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13249. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13250. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13251. soname_spec='${libname}${release}${shared_ext}$major'
  13252. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13253. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13254. ;;
  13255. *)
  13256. shrext_cmds='.sl'
  13257. dynamic_linker="$host_os dld.sl"
  13258. shlibpath_var=SHLIB_PATH
  13259. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13260. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13261. soname_spec='${libname}${release}${shared_ext}$major'
  13262. ;;
  13263. esac
  13264. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13265. postinstall_cmds='chmod 555 $lib'
  13266. # or fails outright, so override atomically:
  13267. install_override_mode=555
  13268. ;;
  13269. interix[3-9]*)
  13270. version_type=linux # correct to gnu/linux during the next big refactor
  13271. need_lib_prefix=no
  13272. need_version=no
  13273. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13274. soname_spec='${libname}${release}${shared_ext}$major'
  13275. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13276. shlibpath_var=LD_LIBRARY_PATH
  13277. shlibpath_overrides_runpath=no
  13278. hardcode_into_libs=yes
  13279. ;;
  13280. irix5* | irix6* | nonstopux*)
  13281. case $host_os in
  13282. nonstopux*) version_type=nonstopux ;;
  13283. *)
  13284. if test "$lt_cv_prog_gnu_ld" = yes; then
  13285. version_type=linux # correct to gnu/linux during the next big refactor
  13286. else
  13287. version_type=irix
  13288. fi ;;
  13289. esac
  13290. need_lib_prefix=no
  13291. need_version=no
  13292. soname_spec='${libname}${release}${shared_ext}$major'
  13293. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13294. case $host_os in
  13295. irix5* | nonstopux*)
  13296. libsuff= shlibsuff=
  13297. ;;
  13298. *)
  13299. case $LD in # libtool.m4 will add one of these switches to LD
  13300. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13301. libsuff= shlibsuff= libmagic=32-bit;;
  13302. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13303. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13304. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13305. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13306. *) libsuff= shlibsuff= libmagic=never-match;;
  13307. esac
  13308. ;;
  13309. esac
  13310. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13311. shlibpath_overrides_runpath=no
  13312. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13313. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13314. hardcode_into_libs=yes
  13315. ;;
  13316. # No shared lib support for Linux oldld, aout, or coff.
  13317. linux*oldld* | linux*aout* | linux*coff*)
  13318. dynamic_linker=no
  13319. ;;
  13320. # This must be glibc/ELF.
  13321. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13322. version_type=linux # correct to gnu/linux during the next big refactor
  13323. need_lib_prefix=no
  13324. need_version=no
  13325. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13326. soname_spec='${libname}${release}${shared_ext}$major'
  13327. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13328. shlibpath_var=LD_LIBRARY_PATH
  13329. shlibpath_overrides_runpath=no
  13330. # Some binutils ld are patched to set DT_RUNPATH
  13331. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13332. $as_echo_n "(cached) " >&6
  13333. else
  13334. lt_cv_shlibpath_overrides_runpath=no
  13335. save_LDFLAGS=$LDFLAGS
  13336. save_libdir=$libdir
  13337. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13338. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13340. /* end confdefs.h. */
  13341. int
  13342. main ()
  13343. {
  13344. ;
  13345. return 0;
  13346. }
  13347. _ACEOF
  13348. if ac_fn_cxx_try_link "$LINENO"; then :
  13349. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13350. lt_cv_shlibpath_overrides_runpath=yes
  13351. fi
  13352. fi
  13353. rm -f core conftest.err conftest.$ac_objext \
  13354. conftest$ac_exeext conftest.$ac_ext
  13355. LDFLAGS=$save_LDFLAGS
  13356. libdir=$save_libdir
  13357. fi
  13358. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13359. # This implies no fast_install, which is unacceptable.
  13360. # Some rework will be needed to allow for fast_install
  13361. # before this can be enabled.
  13362. hardcode_into_libs=yes
  13363. # Append ld.so.conf contents to the search path
  13364. if test -f /etc/ld.so.conf; then
  13365. 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' ' '`
  13366. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13367. fi
  13368. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13369. # powerpc, because MkLinux only supported shared libraries with the
  13370. # GNU dynamic linker. Since this was broken with cross compilers,
  13371. # most powerpc-linux boxes support dynamic linking these days and
  13372. # people can always --disable-shared, the test was removed, and we
  13373. # assume the GNU/Linux dynamic linker is in use.
  13374. dynamic_linker='GNU/Linux ld.so'
  13375. ;;
  13376. netbsd*)
  13377. version_type=sunos
  13378. need_lib_prefix=no
  13379. need_version=no
  13380. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13381. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13382. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13383. dynamic_linker='NetBSD (a.out) ld.so'
  13384. else
  13385. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13386. soname_spec='${libname}${release}${shared_ext}$major'
  13387. dynamic_linker='NetBSD ld.elf_so'
  13388. fi
  13389. shlibpath_var=LD_LIBRARY_PATH
  13390. shlibpath_overrides_runpath=yes
  13391. hardcode_into_libs=yes
  13392. ;;
  13393. newsos6)
  13394. version_type=linux # correct to gnu/linux during the next big refactor
  13395. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13396. shlibpath_var=LD_LIBRARY_PATH
  13397. shlibpath_overrides_runpath=yes
  13398. ;;
  13399. *nto* | *qnx*)
  13400. version_type=qnx
  13401. need_lib_prefix=no
  13402. need_version=no
  13403. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13404. soname_spec='${libname}${release}${shared_ext}$major'
  13405. shlibpath_var=LD_LIBRARY_PATH
  13406. shlibpath_overrides_runpath=no
  13407. hardcode_into_libs=yes
  13408. dynamic_linker='ldqnx.so'
  13409. ;;
  13410. openbsd*)
  13411. version_type=sunos
  13412. sys_lib_dlsearch_path_spec="/usr/lib"
  13413. need_lib_prefix=no
  13414. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13415. case $host_os in
  13416. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13417. *) need_version=no ;;
  13418. esac
  13419. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13420. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13421. shlibpath_var=LD_LIBRARY_PATH
  13422. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13423. case $host_os in
  13424. openbsd2.[89] | openbsd2.[89].*)
  13425. shlibpath_overrides_runpath=no
  13426. ;;
  13427. *)
  13428. shlibpath_overrides_runpath=yes
  13429. ;;
  13430. esac
  13431. else
  13432. shlibpath_overrides_runpath=yes
  13433. fi
  13434. ;;
  13435. os2*)
  13436. libname_spec='$name'
  13437. shrext_cmds=".dll"
  13438. need_lib_prefix=no
  13439. library_names_spec='$libname${shared_ext} $libname.a'
  13440. dynamic_linker='OS/2 ld.exe'
  13441. shlibpath_var=LIBPATH
  13442. ;;
  13443. osf3* | osf4* | osf5*)
  13444. version_type=osf
  13445. need_lib_prefix=no
  13446. need_version=no
  13447. soname_spec='${libname}${release}${shared_ext}$major'
  13448. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13449. shlibpath_var=LD_LIBRARY_PATH
  13450. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13451. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13452. ;;
  13453. rdos*)
  13454. dynamic_linker=no
  13455. ;;
  13456. solaris*)
  13457. version_type=linux # correct to gnu/linux during the next big refactor
  13458. need_lib_prefix=no
  13459. need_version=no
  13460. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13461. soname_spec='${libname}${release}${shared_ext}$major'
  13462. shlibpath_var=LD_LIBRARY_PATH
  13463. shlibpath_overrides_runpath=yes
  13464. hardcode_into_libs=yes
  13465. # ldd complains unless libraries are executable
  13466. postinstall_cmds='chmod +x $lib'
  13467. ;;
  13468. sunos4*)
  13469. version_type=sunos
  13470. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13471. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13472. shlibpath_var=LD_LIBRARY_PATH
  13473. shlibpath_overrides_runpath=yes
  13474. if test "$with_gnu_ld" = yes; then
  13475. need_lib_prefix=no
  13476. fi
  13477. need_version=yes
  13478. ;;
  13479. sysv4 | sysv4.3*)
  13480. version_type=linux # correct to gnu/linux during the next big refactor
  13481. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13482. soname_spec='${libname}${release}${shared_ext}$major'
  13483. shlibpath_var=LD_LIBRARY_PATH
  13484. case $host_vendor in
  13485. sni)
  13486. shlibpath_overrides_runpath=no
  13487. need_lib_prefix=no
  13488. runpath_var=LD_RUN_PATH
  13489. ;;
  13490. siemens)
  13491. need_lib_prefix=no
  13492. ;;
  13493. motorola)
  13494. need_lib_prefix=no
  13495. need_version=no
  13496. shlibpath_overrides_runpath=no
  13497. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13498. ;;
  13499. esac
  13500. ;;
  13501. sysv4*MP*)
  13502. if test -d /usr/nec ;then
  13503. version_type=linux # correct to gnu/linux during the next big refactor
  13504. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13505. soname_spec='$libname${shared_ext}.$major'
  13506. shlibpath_var=LD_LIBRARY_PATH
  13507. fi
  13508. ;;
  13509. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13510. version_type=freebsd-elf
  13511. need_lib_prefix=no
  13512. need_version=no
  13513. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13514. soname_spec='${libname}${release}${shared_ext}$major'
  13515. shlibpath_var=LD_LIBRARY_PATH
  13516. shlibpath_overrides_runpath=yes
  13517. hardcode_into_libs=yes
  13518. if test "$with_gnu_ld" = yes; then
  13519. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13520. else
  13521. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13522. case $host_os in
  13523. sco3.2v5*)
  13524. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13525. ;;
  13526. esac
  13527. fi
  13528. sys_lib_dlsearch_path_spec='/usr/lib'
  13529. ;;
  13530. tpf*)
  13531. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13532. version_type=linux # correct to gnu/linux during the next big refactor
  13533. need_lib_prefix=no
  13534. need_version=no
  13535. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13536. shlibpath_var=LD_LIBRARY_PATH
  13537. shlibpath_overrides_runpath=no
  13538. hardcode_into_libs=yes
  13539. ;;
  13540. uts4*)
  13541. version_type=linux # correct to gnu/linux during the next big refactor
  13542. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13543. soname_spec='${libname}${release}${shared_ext}$major'
  13544. shlibpath_var=LD_LIBRARY_PATH
  13545. ;;
  13546. *)
  13547. dynamic_linker=no
  13548. ;;
  13549. esac
  13550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13551. $as_echo "$dynamic_linker" >&6; }
  13552. test "$dynamic_linker" = no && can_build_shared=no
  13553. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13554. if test "$GCC" = yes; then
  13555. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13556. fi
  13557. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13558. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13559. fi
  13560. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13561. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13562. fi
  13563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13564. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13565. hardcode_action_CXX=
  13566. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13567. test -n "$runpath_var_CXX" ||
  13568. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13569. # We can hardcode non-existent directories.
  13570. if test "$hardcode_direct_CXX" != no &&
  13571. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13572. # have to relink, otherwise we might link with an installed library
  13573. # when we should be linking with a yet-to-be-installed one
  13574. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13575. test "$hardcode_minus_L_CXX" != no; then
  13576. # Linking always hardcodes the temporary library directory.
  13577. hardcode_action_CXX=relink
  13578. else
  13579. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13580. hardcode_action_CXX=immediate
  13581. fi
  13582. else
  13583. # We cannot hardcode anything, or else we can only hardcode existing
  13584. # directories.
  13585. hardcode_action_CXX=unsupported
  13586. fi
  13587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13588. $as_echo "$hardcode_action_CXX" >&6; }
  13589. if test "$hardcode_action_CXX" = relink ||
  13590. test "$inherit_rpath_CXX" = yes; then
  13591. # Fast installation is not supported
  13592. enable_fast_install=no
  13593. elif test "$shlibpath_overrides_runpath" = yes ||
  13594. test "$enable_shared" = no; then
  13595. # Fast installation is not necessary
  13596. enable_fast_install=needless
  13597. fi
  13598. fi # test -n "$compiler"
  13599. CC=$lt_save_CC
  13600. CFLAGS=$lt_save_CFLAGS
  13601. LDCXX=$LD
  13602. LD=$lt_save_LD
  13603. GCC=$lt_save_GCC
  13604. with_gnu_ld=$lt_save_with_gnu_ld
  13605. lt_cv_path_LDCXX=$lt_cv_path_LD
  13606. lt_cv_path_LD=$lt_save_path_LD
  13607. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13608. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13609. fi # test "$_lt_caught_CXX_error" != yes
  13610. ac_ext=c
  13611. ac_cpp='$CPP $CPPFLAGS'
  13612. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13613. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13614. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13615. # Find a good install program. We prefer a C program (faster),
  13616. # so one script is as good as another. But avoid the broken or
  13617. # incompatible versions:
  13618. # SysV /etc/install, /usr/sbin/install
  13619. # SunOS /usr/etc/install
  13620. # IRIX /sbin/install
  13621. # AIX /bin/install
  13622. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13623. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13624. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13625. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13626. # OS/2's system install, which has a completely different semantic
  13627. # ./install, which can be erroneously created by make from ./install.sh.
  13628. # Reject install programs that cannot install multiple files.
  13629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13630. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13631. if test -z "$INSTALL"; then
  13632. if ${ac_cv_path_install+:} false; then :
  13633. $as_echo_n "(cached) " >&6
  13634. else
  13635. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13636. for as_dir in $PATH
  13637. do
  13638. IFS=$as_save_IFS
  13639. test -z "$as_dir" && as_dir=.
  13640. # Account for people who put trailing slashes in PATH elements.
  13641. case $as_dir/ in #((
  13642. ./ | .// | /[cC]/* | \
  13643. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13644. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13645. /usr/ucb/* ) ;;
  13646. *)
  13647. # OSF1 and SCO ODT 3.0 have their own names for install.
  13648. # Don't use installbsd from OSF since it installs stuff as root
  13649. # by default.
  13650. for ac_prog in ginstall scoinst install; do
  13651. for ac_exec_ext in '' $ac_executable_extensions; do
  13652. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13653. if test $ac_prog = install &&
  13654. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13655. # AIX install. It has an incompatible calling convention.
  13656. :
  13657. elif test $ac_prog = install &&
  13658. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13659. # program-specific install script used by HP pwplus--don't use.
  13660. :
  13661. else
  13662. rm -rf conftest.one conftest.two conftest.dir
  13663. echo one > conftest.one
  13664. echo two > conftest.two
  13665. mkdir conftest.dir
  13666. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13667. test -s conftest.one && test -s conftest.two &&
  13668. test -s conftest.dir/conftest.one &&
  13669. test -s conftest.dir/conftest.two
  13670. then
  13671. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13672. break 3
  13673. fi
  13674. fi
  13675. fi
  13676. done
  13677. done
  13678. ;;
  13679. esac
  13680. done
  13681. IFS=$as_save_IFS
  13682. rm -rf conftest.one conftest.two conftest.dir
  13683. fi
  13684. if test "${ac_cv_path_install+set}" = set; then
  13685. INSTALL=$ac_cv_path_install
  13686. else
  13687. # As a last resort, use the slow shell script. Don't cache a
  13688. # value for INSTALL within a source directory, because that will
  13689. # break other packages using the cache if that directory is
  13690. # removed, or if the value is a relative name.
  13691. INSTALL=$ac_install_sh
  13692. fi
  13693. fi
  13694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13695. $as_echo "$INSTALL" >&6; }
  13696. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13697. # It thinks the first close brace ends the variable substitution.
  13698. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13699. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13700. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13702. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13703. set x ${MAKE-make}
  13704. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13705. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13706. $as_echo_n "(cached) " >&6
  13707. else
  13708. cat >conftest.make <<\_ACEOF
  13709. SHELL = /bin/sh
  13710. all:
  13711. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13712. _ACEOF
  13713. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13714. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13715. *@@@%%%=?*=@@@%%%*)
  13716. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13717. *)
  13718. eval ac_cv_prog_make_${ac_make}_set=no;;
  13719. esac
  13720. rm -f conftest.make
  13721. fi
  13722. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13724. $as_echo "yes" >&6; }
  13725. SET_MAKE=
  13726. else
  13727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13728. $as_echo "no" >&6; }
  13729. SET_MAKE="MAKE=${MAKE-make}"
  13730. fi
  13731. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  13732. if test -n "$ac_tool_prefix"; then
  13733. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  13734. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  13735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13736. $as_echo_n "checking for $ac_word... " >&6; }
  13737. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  13738. $as_echo_n "(cached) " >&6
  13739. else
  13740. case $PKG_CONFIG in
  13741. [\\/]* | ?:[\\/]*)
  13742. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13743. ;;
  13744. *)
  13745. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13746. for as_dir in $PATH
  13747. do
  13748. IFS=$as_save_IFS
  13749. test -z "$as_dir" && as_dir=.
  13750. for ac_exec_ext in '' $ac_executable_extensions; do
  13751. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13752. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13753. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13754. break 2
  13755. fi
  13756. done
  13757. done
  13758. IFS=$as_save_IFS
  13759. ;;
  13760. esac
  13761. fi
  13762. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13763. if test -n "$PKG_CONFIG"; then
  13764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13765. $as_echo "$PKG_CONFIG" >&6; }
  13766. else
  13767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13768. $as_echo "no" >&6; }
  13769. fi
  13770. fi
  13771. if test -z "$ac_cv_path_PKG_CONFIG"; then
  13772. ac_pt_PKG_CONFIG=$PKG_CONFIG
  13773. # Extract the first word of "pkg-config", so it can be a program name with args.
  13774. set dummy pkg-config; ac_word=$2
  13775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13776. $as_echo_n "checking for $ac_word... " >&6; }
  13777. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  13778. $as_echo_n "(cached) " >&6
  13779. else
  13780. case $ac_pt_PKG_CONFIG in
  13781. [\\/]* | ?:[\\/]*)
  13782. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  13783. ;;
  13784. *)
  13785. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13786. for as_dir in $PATH
  13787. do
  13788. IFS=$as_save_IFS
  13789. test -z "$as_dir" && as_dir=.
  13790. for ac_exec_ext in '' $ac_executable_extensions; do
  13791. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13792. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13793. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13794. break 2
  13795. fi
  13796. done
  13797. done
  13798. IFS=$as_save_IFS
  13799. ;;
  13800. esac
  13801. fi
  13802. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  13803. if test -n "$ac_pt_PKG_CONFIG"; then
  13804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  13805. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  13806. else
  13807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13808. $as_echo "no" >&6; }
  13809. fi
  13810. if test "x$ac_pt_PKG_CONFIG" = x; then
  13811. PKG_CONFIG=""
  13812. else
  13813. case $cross_compiling:$ac_tool_warned in
  13814. yes:)
  13815. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13816. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13817. ac_tool_warned=yes ;;
  13818. esac
  13819. PKG_CONFIG=$ac_pt_PKG_CONFIG
  13820. fi
  13821. else
  13822. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  13823. fi
  13824. fi
  13825. if test -n "$PKG_CONFIG"; then
  13826. _pkg_min_version=0.9.0
  13827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  13828. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  13829. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  13830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13831. $as_echo "yes" >&6; }
  13832. else
  13833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13834. $as_echo "no" >&6; }
  13835. PKG_CONFIG=""
  13836. fi
  13837. fi
  13838. case "$host" in
  13839. *-*-mingw*)
  13840. # Except on msys, where make can't handle full pathnames (bug 1972)
  13841. ;;
  13842. *)
  13843. srcdir=`cd $srcdir && pwd`
  13844. ;;
  13845. esac
  13846. INCLUDE="-I$srcdir/include"
  13847. case "$host" in
  13848. *-*-nto-qnx*)
  13849. ;;
  13850. *)
  13851. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  13852. ;;
  13853. esac
  13854. case "$host" in
  13855. *-*-haiku*)
  13856. LINKER='$(CXX)'
  13857. LIBTOOLLINKERTAG='CXX'
  13858. ;;
  13859. *)
  13860. LINKER='$(CC)'
  13861. LIBTOOLLINKERTAG='CC'
  13862. ;;
  13863. esac
  13864. if test x$srcdir != x.; then
  13865. INCLUDE="-Iinclude $INCLUDE"
  13866. elif test -d .git; then
  13867. as_fn_error $? "
  13868. *** When building from a git clone you should configure and build in a
  13869. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13870. " "$LINENO" 5
  13871. fi
  13872. BASE_CFLAGS=""
  13873. BASE_LDFLAGS=""
  13874. case "$host" in
  13875. *-*-cygwin*)
  13876. # We build SDL on cygwin without the UNIX emulation layer
  13877. save_CFLAGS="$CFLAGS"
  13878. have_no_cygwin=no
  13879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13880. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13881. CFLAGS="$save_CFLAGS -mno-cygwin"
  13882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13883. /* end confdefs.h. */
  13884. int
  13885. main ()
  13886. {
  13887. ;
  13888. return 0;
  13889. }
  13890. _ACEOF
  13891. if ac_fn_c_try_compile "$LINENO"; then :
  13892. have_no_cygwin=yes
  13893. fi
  13894. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13896. $as_echo "$have_no_cygwin" >&6; }
  13897. CFLAGS="$save_CFLAGS"
  13898. if test x$have_no_cygwin = xyes; then
  13899. BASE_CFLAGS="-mno-cygwin"
  13900. BASE_LDFLAGS="-mno-cygwin"
  13901. fi
  13902. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13903. ;;
  13904. esac
  13905. # Uncomment the following line if you want to force SDL and applications
  13906. # built with it to be compiled for a particular architecture.
  13907. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13908. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13909. # The default optimization for SDL is -O3 (Bug #31)
  13910. if test "x$orig_CFLAGS" = x; then
  13911. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13912. fi
  13913. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13914. BUILD_LDFLAGS="$LDFLAGS"
  13915. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13916. ## These are common directories to find software packages
  13917. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13918. # if test -d $path/include; then
  13919. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13920. # fi
  13921. # if test -d $path/lib; then
  13922. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13923. # fi
  13924. #done
  13925. SDL_CFLAGS="$BASE_CFLAGS"
  13926. SDL_LIBS="-lSDL2"
  13927. if test "x$BASE_LDFLAGS" != x; then
  13928. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  13929. fi
  13930. if test "x$EXTRA_CFLAGS" != x; then
  13931. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13932. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13933. fi
  13934. if test "x$EXTRA_LDFLAGS" != x; then
  13935. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13936. fi
  13937. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13938. find_lib()
  13939. {
  13940. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13941. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13942. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13943. if test "$cross_compiling" = yes; then
  13944. host_lib_path=""
  13945. else
  13946. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13947. fi
  13948. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13949. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13950. if test x$lib != x; then
  13951. echo $lib
  13952. return
  13953. fi
  13954. done
  13955. # Try again, this time allowing more than one version digit after the .so
  13956. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13957. lib=`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1`
  13958. if test x$lib != x; then
  13959. echo $lib
  13960. return
  13961. fi
  13962. done
  13963. }
  13964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13965. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13966. if ${ac_cv_c_const+:} false; then :
  13967. $as_echo_n "(cached) " >&6
  13968. else
  13969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13970. /* end confdefs.h. */
  13971. int
  13972. main ()
  13973. {
  13974. #ifndef __cplusplus
  13975. /* Ultrix mips cc rejects this sort of thing. */
  13976. typedef int charset[2];
  13977. const charset cs = { 0, 0 };
  13978. /* SunOS 4.1.1 cc rejects this. */
  13979. char const *const *pcpcc;
  13980. char **ppc;
  13981. /* NEC SVR4.0.2 mips cc rejects this. */
  13982. struct point {int x, y;};
  13983. static struct point const zero = {0,0};
  13984. /* AIX XL C 1.02.0.0 rejects this.
  13985. It does not let you subtract one const X* pointer from another in
  13986. an arm of an if-expression whose if-part is not a constant
  13987. expression */
  13988. const char *g = "string";
  13989. pcpcc = &g + (g ? g-g : 0);
  13990. /* HPUX 7.0 cc rejects these. */
  13991. ++pcpcc;
  13992. ppc = (char**) pcpcc;
  13993. pcpcc = (char const *const *) ppc;
  13994. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13995. char tx;
  13996. char *t = &tx;
  13997. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13998. *t++ = 0;
  13999. if (s) return 0;
  14000. }
  14001. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  14002. int x[] = {25, 17};
  14003. const int *foo = &x[0];
  14004. ++foo;
  14005. }
  14006. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  14007. typedef const int *iptr;
  14008. iptr p = 0;
  14009. ++p;
  14010. }
  14011. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  14012. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  14013. struct s { int j; const int *ap[3]; } bx;
  14014. struct s *b = &bx; b->j = 5;
  14015. }
  14016. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  14017. const int foo = 10;
  14018. if (!foo) return 0;
  14019. }
  14020. return !cs[0] && !zero.x;
  14021. #endif
  14022. ;
  14023. return 0;
  14024. }
  14025. _ACEOF
  14026. if ac_fn_c_try_compile "$LINENO"; then :
  14027. ac_cv_c_const=yes
  14028. else
  14029. ac_cv_c_const=no
  14030. fi
  14031. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14032. fi
  14033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  14034. $as_echo "$ac_cv_c_const" >&6; }
  14035. if test $ac_cv_c_const = no; then
  14036. $as_echo "#define const /**/" >>confdefs.h
  14037. fi
  14038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  14039. $as_echo_n "checking for inline... " >&6; }
  14040. if ${ac_cv_c_inline+:} false; then :
  14041. $as_echo_n "(cached) " >&6
  14042. else
  14043. ac_cv_c_inline=no
  14044. for ac_kw in inline __inline__ __inline; do
  14045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14046. /* end confdefs.h. */
  14047. #ifndef __cplusplus
  14048. typedef int foo_t;
  14049. static $ac_kw foo_t static_foo () {return 0; }
  14050. $ac_kw foo_t foo () {return 0; }
  14051. #endif
  14052. _ACEOF
  14053. if ac_fn_c_try_compile "$LINENO"; then :
  14054. ac_cv_c_inline=$ac_kw
  14055. fi
  14056. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14057. test "$ac_cv_c_inline" != no && break
  14058. done
  14059. fi
  14060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  14061. $as_echo "$ac_cv_c_inline" >&6; }
  14062. case $ac_cv_c_inline in
  14063. inline | yes) ;;
  14064. *)
  14065. case $ac_cv_c_inline in
  14066. no) ac_val=;;
  14067. *) ac_val=$ac_cv_c_inline;;
  14068. esac
  14069. cat >>confdefs.h <<_ACEOF
  14070. #ifndef __cplusplus
  14071. #define inline $ac_val
  14072. #endif
  14073. _ACEOF
  14074. ;;
  14075. esac
  14076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  14077. $as_echo_n "checking for working volatile... " >&6; }
  14078. if ${ac_cv_c_volatile+:} false; then :
  14079. $as_echo_n "(cached) " >&6
  14080. else
  14081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14082. /* end confdefs.h. */
  14083. int
  14084. main ()
  14085. {
  14086. volatile int x;
  14087. int * volatile y = (int *) 0;
  14088. return !x && !y;
  14089. ;
  14090. return 0;
  14091. }
  14092. _ACEOF
  14093. if ac_fn_c_try_compile "$LINENO"; then :
  14094. ac_cv_c_volatile=yes
  14095. else
  14096. ac_cv_c_volatile=no
  14097. fi
  14098. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14099. fi
  14100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  14101. $as_echo "$ac_cv_c_volatile" >&6; }
  14102. if test $ac_cv_c_volatile = no; then
  14103. $as_echo "#define volatile /**/" >>confdefs.h
  14104. fi
  14105. # Check whether --enable-assertions was given.
  14106. if test "${enable_assertions+set}" = set; then :
  14107. enableval=$enable_assertions;
  14108. else
  14109. enable_assertions=auto
  14110. fi
  14111. case "$enable_assertions" in
  14112. auto) # Use optimization settings to determine assertion level
  14113. ;;
  14114. disabled)
  14115. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  14116. ;;
  14117. release)
  14118. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  14119. ;;
  14120. enabled)
  14121. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  14122. ;;
  14123. paranoid)
  14124. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  14125. ;;
  14126. *)
  14127. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  14128. ;;
  14129. esac
  14130. # Check whether --enable-dependency-tracking was given.
  14131. if test "${enable_dependency_tracking+set}" = set; then :
  14132. enableval=$enable_dependency_tracking;
  14133. else
  14134. enable_dependency_tracking=yes
  14135. fi
  14136. if test x$enable_dependency_tracking = xyes; then
  14137. have_gcc_mmd_mt=no
  14138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  14139. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  14140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14141. /* end confdefs.h. */
  14142. #if !defined(__GNUC__) || __GNUC__ < 3
  14143. #error Dependency tracking requires GCC 3.0 or newer
  14144. #endif
  14145. int
  14146. main ()
  14147. {
  14148. ;
  14149. return 0;
  14150. }
  14151. _ACEOF
  14152. if ac_fn_c_try_compile "$LINENO"; then :
  14153. have_gcc_mmd_mt=yes
  14154. fi
  14155. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  14157. $as_echo "$have_gcc_mmd_mt" >&6; }
  14158. if test x$have_gcc_mmd_mt = xyes; then
  14159. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  14160. fi
  14161. fi
  14162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  14163. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  14164. have_no_undefined=no
  14165. case "$host" in
  14166. *-*-openbsd*)
  14167. ;;
  14168. *)
  14169. save_LDFLAGS="$LDFLAGS"
  14170. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  14171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14172. /* end confdefs.h. */
  14173. int
  14174. main ()
  14175. {
  14176. ;
  14177. return 0;
  14178. }
  14179. _ACEOF
  14180. if ac_fn_c_try_link "$LINENO"; then :
  14181. have_no_undefined=yes
  14182. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  14183. fi
  14184. rm -f core conftest.err conftest.$ac_objext \
  14185. conftest$ac_exeext conftest.$ac_ext
  14186. LDFLAGS="$save_LDFLAGS"
  14187. ;;
  14188. esac
  14189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  14190. $as_echo "$have_no_undefined" >&6; }
  14191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  14192. $as_echo_n "checking for linker option --dynamicbase... " >&6; }
  14193. have_dynamicbase=no
  14194. case "$host" in
  14195. *)
  14196. save_LDFLAGS="$LDFLAGS"
  14197. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  14198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14199. /* end confdefs.h. */
  14200. int
  14201. main ()
  14202. {
  14203. ;
  14204. return 0;
  14205. }
  14206. _ACEOF
  14207. if ac_fn_c_try_link "$LINENO"; then :
  14208. have_dynamicbase=yes
  14209. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  14210. fi
  14211. rm -f core conftest.err conftest.$ac_objext \
  14212. conftest$ac_exeext conftest.$ac_ext
  14213. LDFLAGS="$save_LDFLAGS"
  14214. ;;
  14215. esac
  14216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  14217. $as_echo "$have_dynamicbase" >&6; }
  14218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  14219. $as_echo_n "checking for linker option --nxcompat... " >&6; }
  14220. have_nxcompat=no
  14221. case "$host" in
  14222. *)
  14223. save_LDFLAGS="$LDFLAGS"
  14224. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  14225. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14226. /* end confdefs.h. */
  14227. int
  14228. main ()
  14229. {
  14230. ;
  14231. return 0;
  14232. }
  14233. _ACEOF
  14234. if ac_fn_c_try_link "$LINENO"; then :
  14235. have_nxcompat=yes
  14236. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  14237. fi
  14238. rm -f core conftest.err conftest.$ac_objext \
  14239. conftest$ac_exeext conftest.$ac_ext
  14240. LDFLAGS="$save_LDFLAGS"
  14241. ;;
  14242. esac
  14243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  14244. $as_echo "$have_nxcompat" >&6; }
  14245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  14246. $as_echo_n "checking for linker option --high-entropy-va... " >&6; }
  14247. have_high_entropy_va=no
  14248. case "$host" in
  14249. *)
  14250. save_LDFLAGS="$LDFLAGS"
  14251. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  14252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14253. /* end confdefs.h. */
  14254. int
  14255. main ()
  14256. {
  14257. ;
  14258. return 0;
  14259. }
  14260. _ACEOF
  14261. if ac_fn_c_try_link "$LINENO"; then :
  14262. have_high_entropy_va=yes
  14263. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  14264. fi
  14265. rm -f core conftest.err conftest.$ac_objext \
  14266. conftest$ac_exeext conftest.$ac_ext
  14267. LDFLAGS="$save_LDFLAGS"
  14268. ;;
  14269. esac
  14270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  14271. $as_echo "$have_high_entropy_va" >&6; }
  14272. # Check whether --enable-libc was given.
  14273. if test "${enable_libc+set}" = set; then :
  14274. enableval=$enable_libc;
  14275. else
  14276. enable_libc=yes
  14277. fi
  14278. if test x$enable_libc = xyes; then
  14279. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  14280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14281. $as_echo_n "checking for ANSI C header files... " >&6; }
  14282. if ${ac_cv_header_stdc+:} false; then :
  14283. $as_echo_n "(cached) " >&6
  14284. else
  14285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14286. /* end confdefs.h. */
  14287. #include <stdlib.h>
  14288. #include <stdarg.h>
  14289. #include <string.h>
  14290. #include <float.h>
  14291. int
  14292. main ()
  14293. {
  14294. ;
  14295. return 0;
  14296. }
  14297. _ACEOF
  14298. if ac_fn_c_try_compile "$LINENO"; then :
  14299. ac_cv_header_stdc=yes
  14300. else
  14301. ac_cv_header_stdc=no
  14302. fi
  14303. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14304. if test $ac_cv_header_stdc = yes; then
  14305. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14306. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14307. /* end confdefs.h. */
  14308. #include <string.h>
  14309. _ACEOF
  14310. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14311. $EGREP "memchr" >/dev/null 2>&1; then :
  14312. else
  14313. ac_cv_header_stdc=no
  14314. fi
  14315. rm -f conftest*
  14316. fi
  14317. if test $ac_cv_header_stdc = yes; then
  14318. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14320. /* end confdefs.h. */
  14321. #include <stdlib.h>
  14322. _ACEOF
  14323. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14324. $EGREP "free" >/dev/null 2>&1; then :
  14325. else
  14326. ac_cv_header_stdc=no
  14327. fi
  14328. rm -f conftest*
  14329. fi
  14330. if test $ac_cv_header_stdc = yes; then
  14331. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14332. if test "$cross_compiling" = yes; then :
  14333. :
  14334. else
  14335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14336. /* end confdefs.h. */
  14337. #include <ctype.h>
  14338. #include <stdlib.h>
  14339. #if ((' ' & 0x0FF) == 0x020)
  14340. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14341. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14342. #else
  14343. # define ISLOWER(c) \
  14344. (('a' <= (c) && (c) <= 'i') \
  14345. || ('j' <= (c) && (c) <= 'r') \
  14346. || ('s' <= (c) && (c) <= 'z'))
  14347. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14348. #endif
  14349. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14350. int
  14351. main ()
  14352. {
  14353. int i;
  14354. for (i = 0; i < 256; i++)
  14355. if (XOR (islower (i), ISLOWER (i))
  14356. || toupper (i) != TOUPPER (i))
  14357. return 2;
  14358. return 0;
  14359. }
  14360. _ACEOF
  14361. if ac_fn_c_try_run "$LINENO"; then :
  14362. else
  14363. ac_cv_header_stdc=no
  14364. fi
  14365. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14366. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14367. fi
  14368. fi
  14369. fi
  14370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14371. $as_echo "$ac_cv_header_stdc" >&6; }
  14372. if test $ac_cv_header_stdc = yes; then
  14373. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14374. fi
  14375. 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
  14376. do :
  14377. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14378. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14379. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14380. cat >>confdefs.h <<_ACEOF
  14381. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14382. _ACEOF
  14383. fi
  14384. done
  14385. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14386. if test "x$ac_cv_type_size_t" = xyes; then :
  14387. else
  14388. cat >>confdefs.h <<_ACEOF
  14389. #define size_t unsigned int
  14390. _ACEOF
  14391. fi
  14392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  14393. $as_echo_n "checking for M_PI in math.h... " >&6; }
  14394. if ${ac_cv_define_M_PI+:} false; then :
  14395. $as_echo_n "(cached) " >&6
  14396. else
  14397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14398. /* end confdefs.h. */
  14399. #include <math.h>
  14400. #ifdef M_PI
  14401. YES_IS_DEFINED
  14402. #endif
  14403. _ACEOF
  14404. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14405. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  14406. ac_cv_define_M_PI=yes
  14407. else
  14408. ac_cv_define_M_PI=no
  14409. fi
  14410. rm -f conftest*
  14411. fi
  14412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14413. $as_echo "$ac_cv_define_M_PI" >&6; }
  14414. if test "$ac_cv_define_M_PI" = "yes" ; then
  14415. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14416. fi
  14417. case "$host" in
  14418. *-*-cygwin* | *-*-mingw*)
  14419. ;;
  14420. *)
  14421. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14422. # for constant arguments. Useless!
  14423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14424. $as_echo_n "checking for working alloca.h... " >&6; }
  14425. if ${ac_cv_working_alloca_h+:} false; then :
  14426. $as_echo_n "(cached) " >&6
  14427. else
  14428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14429. /* end confdefs.h. */
  14430. #include <alloca.h>
  14431. int
  14432. main ()
  14433. {
  14434. char *p = (char *) alloca (2 * sizeof (int));
  14435. if (p) return 0;
  14436. ;
  14437. return 0;
  14438. }
  14439. _ACEOF
  14440. if ac_fn_c_try_link "$LINENO"; then :
  14441. ac_cv_working_alloca_h=yes
  14442. else
  14443. ac_cv_working_alloca_h=no
  14444. fi
  14445. rm -f core conftest.err conftest.$ac_objext \
  14446. conftest$ac_exeext conftest.$ac_ext
  14447. fi
  14448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14449. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14450. if test $ac_cv_working_alloca_h = yes; then
  14451. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14452. fi
  14453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14454. $as_echo_n "checking for alloca... " >&6; }
  14455. if ${ac_cv_func_alloca_works+:} false; then :
  14456. $as_echo_n "(cached) " >&6
  14457. else
  14458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14459. /* end confdefs.h. */
  14460. #ifdef __GNUC__
  14461. # define alloca __builtin_alloca
  14462. #else
  14463. # ifdef _MSC_VER
  14464. # include <malloc.h>
  14465. # define alloca _alloca
  14466. # else
  14467. # ifdef HAVE_ALLOCA_H
  14468. # include <alloca.h>
  14469. # else
  14470. # ifdef _AIX
  14471. #pragma alloca
  14472. # else
  14473. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14474. void *alloca (size_t);
  14475. # endif
  14476. # endif
  14477. # endif
  14478. # endif
  14479. #endif
  14480. int
  14481. main ()
  14482. {
  14483. char *p = (char *) alloca (1);
  14484. if (p) return 0;
  14485. ;
  14486. return 0;
  14487. }
  14488. _ACEOF
  14489. if ac_fn_c_try_link "$LINENO"; then :
  14490. ac_cv_func_alloca_works=yes
  14491. else
  14492. ac_cv_func_alloca_works=no
  14493. fi
  14494. rm -f core conftest.err conftest.$ac_objext \
  14495. conftest$ac_exeext conftest.$ac_ext
  14496. fi
  14497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14498. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14499. if test $ac_cv_func_alloca_works = yes; then
  14500. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14501. else
  14502. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14503. # that cause trouble. Some versions do not even contain alloca or
  14504. # contain a buggy version. If you still want to use their alloca,
  14505. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14506. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14507. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14509. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14510. if ${ac_cv_os_cray+:} false; then :
  14511. $as_echo_n "(cached) " >&6
  14512. else
  14513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14514. /* end confdefs.h. */
  14515. #if defined CRAY && ! defined CRAY2
  14516. webecray
  14517. #else
  14518. wenotbecray
  14519. #endif
  14520. _ACEOF
  14521. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14522. $EGREP "webecray" >/dev/null 2>&1; then :
  14523. ac_cv_os_cray=yes
  14524. else
  14525. ac_cv_os_cray=no
  14526. fi
  14527. rm -f conftest*
  14528. fi
  14529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14530. $as_echo "$ac_cv_os_cray" >&6; }
  14531. if test $ac_cv_os_cray = yes; then
  14532. for ac_func in _getb67 GETB67 getb67; do
  14533. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14534. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14535. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14536. cat >>confdefs.h <<_ACEOF
  14537. #define CRAY_STACKSEG_END $ac_func
  14538. _ACEOF
  14539. break
  14540. fi
  14541. done
  14542. fi
  14543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14544. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14545. if ${ac_cv_c_stack_direction+:} false; then :
  14546. $as_echo_n "(cached) " >&6
  14547. else
  14548. if test "$cross_compiling" = yes; then :
  14549. ac_cv_c_stack_direction=0
  14550. else
  14551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14552. /* end confdefs.h. */
  14553. $ac_includes_default
  14554. int
  14555. find_stack_direction (int *addr, int depth)
  14556. {
  14557. int dir, dummy = 0;
  14558. if (! addr)
  14559. addr = &dummy;
  14560. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14561. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14562. return dir + dummy;
  14563. }
  14564. int
  14565. main (int argc, char **argv)
  14566. {
  14567. return find_stack_direction (0, argc + !argv + 20) < 0;
  14568. }
  14569. _ACEOF
  14570. if ac_fn_c_try_run "$LINENO"; then :
  14571. ac_cv_c_stack_direction=1
  14572. else
  14573. ac_cv_c_stack_direction=-1
  14574. fi
  14575. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14576. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14577. fi
  14578. fi
  14579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14580. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14581. cat >>confdefs.h <<_ACEOF
  14582. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14583. _ACEOF
  14584. fi
  14585. ;;
  14586. esac
  14587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14588. $as_echo_n "checking for working memcmp... " >&6; }
  14589. if ${ac_cv_func_memcmp_working+:} false; then :
  14590. $as_echo_n "(cached) " >&6
  14591. else
  14592. if test "$cross_compiling" = yes; then :
  14593. ac_cv_func_memcmp_working=no
  14594. else
  14595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14596. /* end confdefs.h. */
  14597. $ac_includes_default
  14598. int
  14599. main ()
  14600. {
  14601. /* Some versions of memcmp are not 8-bit clean. */
  14602. char c0 = '\100', c1 = '\200', c2 = '\201';
  14603. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14604. return 1;
  14605. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14606. or more and with at least one buffer not starting on a 4-byte boundary.
  14607. William Lewis provided this test program. */
  14608. {
  14609. char foo[21];
  14610. char bar[21];
  14611. int i;
  14612. for (i = 0; i < 4; i++)
  14613. {
  14614. char *a = foo + i;
  14615. char *b = bar + i;
  14616. strcpy (a, "--------01111111");
  14617. strcpy (b, "--------10000000");
  14618. if (memcmp (a, b, 16) >= 0)
  14619. return 1;
  14620. }
  14621. return 0;
  14622. }
  14623. ;
  14624. return 0;
  14625. }
  14626. _ACEOF
  14627. if ac_fn_c_try_run "$LINENO"; then :
  14628. ac_cv_func_memcmp_working=yes
  14629. else
  14630. ac_cv_func_memcmp_working=no
  14631. fi
  14632. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14633. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14634. fi
  14635. fi
  14636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14637. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14638. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14639. *" memcmp.$ac_objext "* ) ;;
  14640. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14641. ;;
  14642. esac
  14643. if test x$ac_cv_func_memcmp_working = xyes; then
  14644. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14645. fi
  14646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14647. $as_echo_n "checking for working strtod... " >&6; }
  14648. if ${ac_cv_func_strtod+:} false; then :
  14649. $as_echo_n "(cached) " >&6
  14650. else
  14651. if test "$cross_compiling" = yes; then :
  14652. ac_cv_func_strtod=no
  14653. else
  14654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14655. /* end confdefs.h. */
  14656. $ac_includes_default
  14657. #ifndef strtod
  14658. double strtod ();
  14659. #endif
  14660. int
  14661. main()
  14662. {
  14663. {
  14664. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14665. char *string = " +69";
  14666. char *term;
  14667. double value;
  14668. value = strtod (string, &term);
  14669. if (value != 69 || term != (string + 4))
  14670. return 1;
  14671. }
  14672. {
  14673. /* Under Solaris 2.4, strtod returns the wrong value for the
  14674. terminating character under some conditions. */
  14675. char *string = "NaN";
  14676. char *term;
  14677. strtod (string, &term);
  14678. if (term != string && *(term - 1) == 0)
  14679. return 1;
  14680. }
  14681. return 0;
  14682. }
  14683. _ACEOF
  14684. if ac_fn_c_try_run "$LINENO"; then :
  14685. ac_cv_func_strtod=yes
  14686. else
  14687. ac_cv_func_strtod=no
  14688. fi
  14689. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14690. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14691. fi
  14692. fi
  14693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14694. $as_echo "$ac_cv_func_strtod" >&6; }
  14695. if test $ac_cv_func_strtod = no; then
  14696. case " $LIBOBJS " in
  14697. *" strtod.$ac_objext "* ) ;;
  14698. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14699. ;;
  14700. esac
  14701. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14702. if test "x$ac_cv_func_pow" = xyes; then :
  14703. fi
  14704. if test $ac_cv_func_pow = no; then
  14705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14706. $as_echo_n "checking for pow in -lm... " >&6; }
  14707. if ${ac_cv_lib_m_pow+:} false; then :
  14708. $as_echo_n "(cached) " >&6
  14709. else
  14710. ac_check_lib_save_LIBS=$LIBS
  14711. LIBS="-lm $LIBS"
  14712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14713. /* end confdefs.h. */
  14714. /* Override any GCC internal prototype to avoid an error.
  14715. Use char because int might match the return type of a GCC
  14716. builtin and then its argument prototype would still apply. */
  14717. #ifdef __cplusplus
  14718. extern "C"
  14719. #endif
  14720. char pow ();
  14721. int
  14722. main ()
  14723. {
  14724. return pow ();
  14725. ;
  14726. return 0;
  14727. }
  14728. _ACEOF
  14729. if ac_fn_c_try_link "$LINENO"; then :
  14730. ac_cv_lib_m_pow=yes
  14731. else
  14732. ac_cv_lib_m_pow=no
  14733. fi
  14734. rm -f core conftest.err conftest.$ac_objext \
  14735. conftest$ac_exeext conftest.$ac_ext
  14736. LIBS=$ac_check_lib_save_LIBS
  14737. fi
  14738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14739. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14740. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14741. POW_LIB=-lm
  14742. else
  14743. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14744. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14745. fi
  14746. fi
  14747. fi
  14748. if test x$ac_cv_func_strtod = xyes; then
  14749. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14750. fi
  14751. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14752. if test "x$ac_cv_func_mprotect" = xyes; then :
  14753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14754. /* end confdefs.h. */
  14755. #include <sys/types.h>
  14756. #include <sys/mman.h>
  14757. int
  14758. main ()
  14759. {
  14760. ;
  14761. return 0;
  14762. }
  14763. _ACEOF
  14764. if ac_fn_c_try_compile "$LINENO"; then :
  14765. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14766. fi
  14767. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14768. fi
  14769. 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
  14770. do :
  14771. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14772. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14773. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14774. cat >>confdefs.h <<_ACEOF
  14775. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14776. _ACEOF
  14777. fi
  14778. done
  14779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14780. $as_echo_n "checking for pow in -lm... " >&6; }
  14781. if ${ac_cv_lib_m_pow+:} false; then :
  14782. $as_echo_n "(cached) " >&6
  14783. else
  14784. ac_check_lib_save_LIBS=$LIBS
  14785. LIBS="-lm $LIBS"
  14786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14787. /* end confdefs.h. */
  14788. /* Override any GCC internal prototype to avoid an error.
  14789. Use char because int might match the return type of a GCC
  14790. builtin and then its argument prototype would still apply. */
  14791. #ifdef __cplusplus
  14792. extern "C"
  14793. #endif
  14794. char pow ();
  14795. int
  14796. main ()
  14797. {
  14798. return pow ();
  14799. ;
  14800. return 0;
  14801. }
  14802. _ACEOF
  14803. if ac_fn_c_try_link "$LINENO"; then :
  14804. ac_cv_lib_m_pow=yes
  14805. else
  14806. ac_cv_lib_m_pow=no
  14807. fi
  14808. rm -f core conftest.err conftest.$ac_objext \
  14809. conftest$ac_exeext conftest.$ac_ext
  14810. LIBS=$ac_check_lib_save_LIBS
  14811. fi
  14812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14813. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14814. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14815. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14816. fi
  14817. 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
  14818. do :
  14819. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14820. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14821. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14822. cat >>confdefs.h <<_ACEOF
  14823. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14824. _ACEOF
  14825. fi
  14826. done
  14827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14828. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14829. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14830. $as_echo_n "(cached) " >&6
  14831. else
  14832. ac_check_lib_save_LIBS=$LIBS
  14833. LIBS="-liconv $LIBS"
  14834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14835. /* end confdefs.h. */
  14836. /* Override any GCC internal prototype to avoid an error.
  14837. Use char because int might match the return type of a GCC
  14838. builtin and then its argument prototype would still apply. */
  14839. #ifdef __cplusplus
  14840. extern "C"
  14841. #endif
  14842. char iconv_open ();
  14843. int
  14844. main ()
  14845. {
  14846. return iconv_open ();
  14847. ;
  14848. return 0;
  14849. }
  14850. _ACEOF
  14851. if ac_fn_c_try_link "$LINENO"; then :
  14852. ac_cv_lib_iconv_iconv_open=yes
  14853. else
  14854. ac_cv_lib_iconv_iconv_open=no
  14855. fi
  14856. rm -f core conftest.err conftest.$ac_objext \
  14857. conftest$ac_exeext conftest.$ac_ext
  14858. LIBS=$ac_check_lib_save_LIBS
  14859. fi
  14860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14861. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14862. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14863. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14864. fi
  14865. for ac_func in iconv
  14866. do :
  14867. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14868. if test "x$ac_cv_func_iconv" = xyes; then :
  14869. cat >>confdefs.h <<_ACEOF
  14870. #define HAVE_ICONV 1
  14871. _ACEOF
  14872. fi
  14873. done
  14874. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14875. "
  14876. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14877. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14878. fi
  14879. for ac_header in libunwind.h
  14880. do :
  14881. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  14882. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  14883. cat >>confdefs.h <<_ACEOF
  14884. #define HAVE_LIBUNWIND_H 1
  14885. _ACEOF
  14886. fi
  14887. done
  14888. fi
  14889. # Check whether --enable-gcc-atomics was given.
  14890. if test "${enable_gcc_atomics+set}" = set; then :
  14891. enableval=$enable_gcc_atomics;
  14892. else
  14893. enable_gcc_atomics=yes
  14894. fi
  14895. if test x$enable_gcc_atomics = xyes; then
  14896. have_gcc_atomics=no
  14897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14898. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14900. /* end confdefs.h. */
  14901. int
  14902. main ()
  14903. {
  14904. int a;
  14905. void *x, *y, *z;
  14906. __sync_lock_test_and_set(&a, 4);
  14907. __sync_lock_test_and_set(&x, y);
  14908. __sync_fetch_and_add(&a, 1);
  14909. __sync_bool_compare_and_swap(&a, 5, 10);
  14910. __sync_bool_compare_and_swap(&x, y, z);
  14911. ;
  14912. return 0;
  14913. }
  14914. _ACEOF
  14915. if ac_fn_c_try_link "$LINENO"; then :
  14916. have_gcc_atomics=yes
  14917. fi
  14918. rm -f core conftest.err conftest.$ac_objext \
  14919. conftest$ac_exeext conftest.$ac_ext
  14920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14921. $as_echo "$have_gcc_atomics" >&6; }
  14922. if test x$have_gcc_atomics = xyes; then
  14923. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14924. else
  14925. # See if we have the minimum operation needed for GCC atomics
  14926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14927. /* end confdefs.h. */
  14928. int
  14929. main ()
  14930. {
  14931. int a;
  14932. __sync_lock_test_and_set(&a, 1);
  14933. __sync_lock_release(&a);
  14934. ;
  14935. return 0;
  14936. }
  14937. _ACEOF
  14938. if ac_fn_c_try_link "$LINENO"; then :
  14939. have_gcc_sync_lock_test_and_set=yes
  14940. fi
  14941. rm -f core conftest.err conftest.$ac_objext \
  14942. conftest$ac_exeext conftest.$ac_ext
  14943. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14944. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14945. fi
  14946. fi
  14947. fi
  14948. # Standard C sources
  14949. SOURCES="$SOURCES $srcdir/src/*.c"
  14950. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14951. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14952. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14953. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14954. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14955. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14956. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14957. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  14958. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14959. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14960. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  14961. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14962. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14963. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14964. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14965. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  14966. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14967. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14968. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14969. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14970. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  14971. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  14972. # Check whether --enable-atomic was given.
  14973. if test "${enable_atomic+set}" = set; then :
  14974. enableval=$enable_atomic;
  14975. else
  14976. enable_atomic=yes
  14977. fi
  14978. if test x$enable_atomic != xyes; then
  14979. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14980. else
  14981. SUMMARY_modules="${SUMMARY_modules} atomic"
  14982. fi
  14983. # Check whether --enable-audio was given.
  14984. if test "${enable_audio+set}" = set; then :
  14985. enableval=$enable_audio;
  14986. else
  14987. enable_audio=yes
  14988. fi
  14989. if test x$enable_audio != xyes; then
  14990. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14991. else
  14992. SUMMARY_modules="${SUMMARY_modules} audio"
  14993. fi
  14994. # Check whether --enable-video was given.
  14995. if test "${enable_video+set}" = set; then :
  14996. enableval=$enable_video;
  14997. else
  14998. enable_video=yes
  14999. fi
  15000. if test x$enable_video != xyes; then
  15001. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  15002. else
  15003. SUMMARY_modules="${SUMMARY_modules} video"
  15004. fi
  15005. # Check whether --enable-render was given.
  15006. if test "${enable_render+set}" = set; then :
  15007. enableval=$enable_render;
  15008. else
  15009. enable_render=yes
  15010. fi
  15011. if test x$enable_render != xyes; then
  15012. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  15013. else
  15014. SUMMARY_modules="${SUMMARY_modules} render"
  15015. fi
  15016. # Check whether --enable-events was given.
  15017. if test "${enable_events+set}" = set; then :
  15018. enableval=$enable_events;
  15019. else
  15020. enable_events=yes
  15021. fi
  15022. if test x$enable_events != xyes; then
  15023. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  15024. else
  15025. SUMMARY_modules="${SUMMARY_modules} events"
  15026. fi
  15027. # Check whether --enable-joystick was given.
  15028. if test "${enable_joystick+set}" = set; then :
  15029. enableval=$enable_joystick;
  15030. else
  15031. enable_joystick=yes
  15032. fi
  15033. if test x$enable_joystick != xyes; then
  15034. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  15035. else
  15036. SUMMARY_modules="${SUMMARY_modules} joystick"
  15037. fi
  15038. # Check whether --enable-haptic was given.
  15039. if test "${enable_haptic+set}" = set; then :
  15040. enableval=$enable_haptic;
  15041. else
  15042. enable_haptic=yes
  15043. fi
  15044. if test x$enable_haptic != xyes; then
  15045. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  15046. else
  15047. SUMMARY_modules="${SUMMARY_modules} haptic"
  15048. fi
  15049. # Check whether --enable-hidapi was given.
  15050. if test "${enable_hidapi+set}" = set; then :
  15051. enableval=$enable_hidapi;
  15052. else
  15053. enable_hidapi=yes
  15054. fi
  15055. if test x$enable_hidapi != xyes; then
  15056. $as_echo "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  15057. else
  15058. SUMMARY_modules="${SUMMARY_modules} hidapi"
  15059. fi
  15060. # Check whether --enable-sensor was given.
  15061. if test "${enable_sensor+set}" = set; then :
  15062. enableval=$enable_sensor;
  15063. else
  15064. enable_sensor=yes
  15065. fi
  15066. if test x$enable_sensor != xyes; then
  15067. $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  15068. else
  15069. SUMMARY_modules="${SUMMARY_modules} sensor"
  15070. fi
  15071. # Check whether --enable-power was given.
  15072. if test "${enable_power+set}" = set; then :
  15073. enableval=$enable_power;
  15074. else
  15075. enable_power=yes
  15076. fi
  15077. if test x$enable_power != xyes; then
  15078. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  15079. else
  15080. SUMMARY_modules="${SUMMARY_modules} power"
  15081. fi
  15082. # Check whether --enable-filesystem was given.
  15083. if test "${enable_filesystem+set}" = set; then :
  15084. enableval=$enable_filesystem;
  15085. else
  15086. enable_filesystem=yes
  15087. fi
  15088. if test x$enable_filesystem != xyes; then
  15089. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  15090. else
  15091. SUMMARY_modules="${SUMMARY_modules} filesystem"
  15092. fi
  15093. # Check whether --enable-threads was given.
  15094. if test "${enable_threads+set}" = set; then :
  15095. enableval=$enable_threads;
  15096. else
  15097. enable_threads=yes
  15098. fi
  15099. if test x$enable_threads != xyes; then
  15100. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  15101. else
  15102. SUMMARY_modules="${SUMMARY_modules} threads"
  15103. fi
  15104. # Check whether --enable-timers was given.
  15105. if test "${enable_timers+set}" = set; then :
  15106. enableval=$enable_timers;
  15107. else
  15108. enable_timers=yes
  15109. fi
  15110. if test x$enable_timers != xyes; then
  15111. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  15112. else
  15113. SUMMARY_modules="${SUMMARY_modules} timers"
  15114. fi
  15115. # Check whether --enable-file was given.
  15116. if test "${enable_file+set}" = set; then :
  15117. enableval=$enable_file;
  15118. else
  15119. enable_file=yes
  15120. fi
  15121. if test x$enable_file != xyes; then
  15122. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  15123. else
  15124. SUMMARY_modules="${SUMMARY_modules} file"
  15125. fi
  15126. # Check whether --enable-loadso was given.
  15127. if test "${enable_loadso+set}" = set; then :
  15128. enableval=$enable_loadso;
  15129. else
  15130. enable_loadso=yes
  15131. fi
  15132. if test x$enable_loadso != xyes; then
  15133. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  15134. else
  15135. SUMMARY_modules="${SUMMARY_modules} loadso"
  15136. fi
  15137. # Check whether --enable-cpuinfo was given.
  15138. if test "${enable_cpuinfo+set}" = set; then :
  15139. enableval=$enable_cpuinfo;
  15140. else
  15141. enable_cpuinfo=yes
  15142. fi
  15143. if test x$enable_cpuinfo != xyes; then
  15144. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  15145. else
  15146. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  15147. fi
  15148. # Check whether --enable-assembly was given.
  15149. if test "${enable_assembly+set}" = set; then :
  15150. enableval=$enable_assembly;
  15151. else
  15152. enable_assembly=yes
  15153. fi
  15154. if test x$enable_assembly = xyes; then
  15155. SUMMARY_modules="${SUMMARY_modules} assembly"
  15156. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  15157. # Make sure that we don't generate floating point code that would
  15158. # cause illegal instruction exceptions on older processors
  15159. case "$host" in
  15160. *-*-darwin*)
  15161. # Don't need to worry about Apple hardware, it's all SSE capable
  15162. default_ssemath=yes
  15163. ;;
  15164. *64-*-*)
  15165. # x86 64-bit architectures all have SSE instructions
  15166. default_ssemath=yes
  15167. ;;
  15168. *)
  15169. default_ssemath=no
  15170. ;;
  15171. esac
  15172. # Check whether --enable-ssemath was given.
  15173. if test "${enable_ssemath+set}" = set; then :
  15174. enableval=$enable_ssemath;
  15175. else
  15176. enable_ssemath=$default_ssemath
  15177. fi
  15178. if test x$enable_ssemath = xno; then
  15179. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  15180. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  15181. fi
  15182. fi
  15183. # Check whether --enable-mmx was given.
  15184. if test "${enable_mmx+set}" = set; then :
  15185. enableval=$enable_mmx;
  15186. else
  15187. enable_mmx=yes
  15188. fi
  15189. if test x$enable_mmx = xyes; then
  15190. save_CFLAGS="$CFLAGS"
  15191. have_gcc_mmx=no
  15192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  15193. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  15194. mmx_CFLAGS="-mmmx"
  15195. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  15196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15197. /* end confdefs.h. */
  15198. #ifdef __MINGW32__
  15199. #include <_mingw.h>
  15200. #ifdef __MINGW64_VERSION_MAJOR
  15201. #include <intrin.h>
  15202. #else
  15203. #include <mmintrin.h>
  15204. #endif
  15205. #else
  15206. #include <mmintrin.h>
  15207. #endif
  15208. #ifndef __MMX__
  15209. #error Assembler CPP flag not enabled
  15210. #endif
  15211. int
  15212. main ()
  15213. {
  15214. ;
  15215. return 0;
  15216. }
  15217. _ACEOF
  15218. if ac_fn_c_try_compile "$LINENO"; then :
  15219. have_gcc_mmx=yes
  15220. fi
  15221. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  15223. $as_echo "$have_gcc_mmx" >&6; }
  15224. CFLAGS="$save_CFLAGS"
  15225. if test x$have_gcc_mmx = xyes; then
  15226. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  15227. SUMMARY_math="${SUMMARY_math} mmx"
  15228. fi
  15229. fi
  15230. # Check whether --enable-3dnow was given.
  15231. if test "${enable_3dnow+set}" = set; then :
  15232. enableval=$enable_3dnow;
  15233. else
  15234. enable_3dnow=yes
  15235. fi
  15236. if test x$enable_3dnow = xyes; then
  15237. save_CFLAGS="$CFLAGS"
  15238. have_gcc_3dnow=no
  15239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  15240. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  15241. amd3dnow_CFLAGS="-m3dnow"
  15242. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  15243. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15244. /* end confdefs.h. */
  15245. #include <mm3dnow.h>
  15246. #ifndef __3dNOW__
  15247. #error Assembler CPP flag not enabled
  15248. #endif
  15249. int
  15250. main ()
  15251. {
  15252. void *p = 0;
  15253. _m_prefetch(p);
  15254. ;
  15255. return 0;
  15256. }
  15257. _ACEOF
  15258. if ac_fn_c_try_link "$LINENO"; then :
  15259. have_gcc_3dnow=yes
  15260. fi
  15261. rm -f core conftest.err conftest.$ac_objext \
  15262. conftest$ac_exeext conftest.$ac_ext
  15263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  15264. $as_echo "$have_gcc_3dnow" >&6; }
  15265. CFLAGS="$save_CFLAGS"
  15266. if test x$have_gcc_3dnow = xyes; then
  15267. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  15268. SUMMARY_math="${SUMMARY_math} 3dnow"
  15269. fi
  15270. fi
  15271. # Check whether --enable-sse was given.
  15272. if test "${enable_sse+set}" = set; then :
  15273. enableval=$enable_sse;
  15274. else
  15275. enable_sse=yes
  15276. fi
  15277. if test x$enable_sse = xyes; then
  15278. save_CFLAGS="$CFLAGS"
  15279. have_gcc_sse=no
  15280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  15281. $as_echo_n "checking for GCC -msse option... " >&6; }
  15282. sse_CFLAGS="-msse"
  15283. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  15284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15285. /* end confdefs.h. */
  15286. #ifdef __MINGW32__
  15287. #include <_mingw.h>
  15288. #ifdef __MINGW64_VERSION_MAJOR
  15289. #include <intrin.h>
  15290. #else
  15291. #include <xmmintrin.h>
  15292. #endif
  15293. #else
  15294. #include <xmmintrin.h>
  15295. #endif
  15296. #ifndef __SSE__
  15297. #error Assembler CPP flag not enabled
  15298. #endif
  15299. int
  15300. main ()
  15301. {
  15302. ;
  15303. return 0;
  15304. }
  15305. _ACEOF
  15306. if ac_fn_c_try_compile "$LINENO"; then :
  15307. have_gcc_sse=yes
  15308. fi
  15309. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  15311. $as_echo "$have_gcc_sse" >&6; }
  15312. CFLAGS="$save_CFLAGS"
  15313. if test x$have_gcc_sse = xyes; then
  15314. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  15315. SUMMARY_math="${SUMMARY_math} sse"
  15316. fi
  15317. fi
  15318. # Check whether --enable-sse2 was given.
  15319. if test "${enable_sse2+set}" = set; then :
  15320. enableval=$enable_sse2;
  15321. else
  15322. enable_sse2=$default_ssemath
  15323. fi
  15324. if test x$enable_sse2 = xyes; then
  15325. save_CFLAGS="$CFLAGS"
  15326. have_gcc_sse2=no
  15327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  15328. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  15329. sse2_CFLAGS="-msse2"
  15330. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  15331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15332. /* end confdefs.h. */
  15333. #ifdef __MINGW32__
  15334. #include <_mingw.h>
  15335. #ifdef __MINGW64_VERSION_MAJOR
  15336. #include <intrin.h>
  15337. #else
  15338. #include <emmintrin.h>
  15339. #endif
  15340. #else
  15341. #include <emmintrin.h>
  15342. #endif
  15343. #ifndef __SSE2__
  15344. #error Assembler CPP flag not enabled
  15345. #endif
  15346. int
  15347. main ()
  15348. {
  15349. ;
  15350. return 0;
  15351. }
  15352. _ACEOF
  15353. if ac_fn_c_try_compile "$LINENO"; then :
  15354. have_gcc_sse2=yes
  15355. fi
  15356. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  15358. $as_echo "$have_gcc_sse2" >&6; }
  15359. CFLAGS="$save_CFLAGS"
  15360. if test x$have_gcc_sse2 = xyes; then
  15361. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  15362. SUMMARY_math="${SUMMARY_math} sse2"
  15363. fi
  15364. fi
  15365. # Check whether --enable-sse3 was given.
  15366. if test "${enable_sse3+set}" = set; then :
  15367. enableval=$enable_sse3;
  15368. else
  15369. enable_sse3=$default_ssemath
  15370. fi
  15371. if test x$enable_sse3 = xyes; then
  15372. save_CFLAGS="$CFLAGS"
  15373. have_gcc_sse3=no
  15374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  15375. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  15376. sse3_CFLAGS="-msse3"
  15377. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  15378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15379. /* end confdefs.h. */
  15380. #ifdef __MINGW32__
  15381. #include <_mingw.h>
  15382. #ifdef __MINGW64_VERSION_MAJOR
  15383. #include <intrin.h>
  15384. #else
  15385. #include <pmmintrin.h>
  15386. #endif
  15387. #else
  15388. #include <pmmintrin.h>
  15389. #endif
  15390. #ifndef __SSE2__
  15391. #error Assembler CPP flag not enabled
  15392. #endif
  15393. int
  15394. main ()
  15395. {
  15396. ;
  15397. return 0;
  15398. }
  15399. _ACEOF
  15400. if ac_fn_c_try_compile "$LINENO"; then :
  15401. have_gcc_sse3=yes
  15402. fi
  15403. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  15405. $as_echo "$have_gcc_sse3" >&6; }
  15406. CFLAGS="$save_CFLAGS"
  15407. if test x$have_gcc_sse3 = xyes; then
  15408. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  15409. SUMMARY_math="${SUMMARY_math} sse3"
  15410. fi
  15411. fi
  15412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  15413. $as_echo_n "checking for immintrin.h... " >&6; }
  15414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15415. /* end confdefs.h. */
  15416. #include <immintrin.h>
  15417. int
  15418. main ()
  15419. {
  15420. ;
  15421. return 0;
  15422. }
  15423. _ACEOF
  15424. if ac_fn_c_try_compile "$LINENO"; then :
  15425. have_immintrin_h_hdr=yes
  15426. else
  15427. have_immintrin_h_hdr=no
  15428. fi
  15429. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  15431. $as_echo "$have_immintrin_h_hdr" >&6; }
  15432. if test x$have_immintrin_h_hdr = xyes; then
  15433. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  15434. fi
  15435. # Check whether --enable-altivec was given.
  15436. if test "${enable_altivec+set}" = set; then :
  15437. enableval=$enable_altivec;
  15438. else
  15439. enable_altivec=yes
  15440. fi
  15441. if test x$enable_altivec = xyes; then
  15442. save_CFLAGS="$CFLAGS"
  15443. have_gcc_altivec=no
  15444. have_altivec_h_hdr=no
  15445. altivec_CFLAGS="-maltivec"
  15446. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  15448. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  15449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15450. /* end confdefs.h. */
  15451. #include <altivec.h>
  15452. vector unsigned int vzero() {
  15453. return vec_splat_u32(0);
  15454. }
  15455. int
  15456. main ()
  15457. {
  15458. ;
  15459. return 0;
  15460. }
  15461. _ACEOF
  15462. if ac_fn_c_try_compile "$LINENO"; then :
  15463. have_gcc_altivec=yes
  15464. have_altivec_h_hdr=yes
  15465. fi
  15466. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15468. $as_echo "$have_gcc_altivec" >&6; }
  15469. if test x$have_gcc_altivec = xno; then
  15470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  15471. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  15472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15473. /* end confdefs.h. */
  15474. vector unsigned int vzero() {
  15475. return vec_splat_u32(0);
  15476. }
  15477. int
  15478. main ()
  15479. {
  15480. ;
  15481. return 0;
  15482. }
  15483. _ACEOF
  15484. if ac_fn_c_try_compile "$LINENO"; then :
  15485. have_gcc_altivec=yes
  15486. fi
  15487. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15489. $as_echo "$have_gcc_altivec" >&6; }
  15490. fi
  15491. if test x$have_gcc_altivec = xno; then
  15492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  15493. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  15494. altivec_CFLAGS="-faltivec"
  15495. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15497. /* end confdefs.h. */
  15498. #include <altivec.h>
  15499. vector unsigned int vzero() {
  15500. return vec_splat_u32(0);
  15501. }
  15502. int
  15503. main ()
  15504. {
  15505. ;
  15506. return 0;
  15507. }
  15508. _ACEOF
  15509. if ac_fn_c_try_compile "$LINENO"; then :
  15510. have_gcc_altivec=yes
  15511. have_altivec_h_hdr=yes
  15512. fi
  15513. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15515. $as_echo "$have_gcc_altivec" >&6; }
  15516. fi
  15517. if test x$have_gcc_altivec = xno; then
  15518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  15519. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  15520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15521. /* end confdefs.h. */
  15522. vector unsigned int vzero() {
  15523. return vec_splat_u32(0);
  15524. }
  15525. int
  15526. main ()
  15527. {
  15528. ;
  15529. return 0;
  15530. }
  15531. _ACEOF
  15532. if ac_fn_c_try_compile "$LINENO"; then :
  15533. have_gcc_altivec=yes
  15534. fi
  15535. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15537. $as_echo "$have_gcc_altivec" >&6; }
  15538. fi
  15539. CFLAGS="$save_CFLAGS"
  15540. if test x$have_gcc_altivec = xyes; then
  15541. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15542. if test x$have_altivec_h_hdr = xyes; then
  15543. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15544. fi
  15545. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15546. SUMMARY_math="${SUMMARY_math} altivec"
  15547. fi
  15548. fi
  15549. fi
  15550. CheckOSS()
  15551. {
  15552. # Check whether --enable-oss was given.
  15553. if test "${enable_oss+set}" = set; then :
  15554. enableval=$enable_oss;
  15555. else
  15556. enable_oss=maybe
  15557. fi
  15558. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15559. # use sndio instead. So on there, we default to disabled. You can force
  15560. # it on if you really want, though.
  15561. if test x$enable_oss = xmaybe; then
  15562. enable_oss=yes
  15563. case "$host" in
  15564. *-*-openbsd*)
  15565. enable_oss=no;;
  15566. esac
  15567. fi
  15568. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15570. $as_echo_n "checking for OSS audio support... " >&6; }
  15571. have_oss=no
  15572. if test x$have_oss != xyes; then
  15573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15574. /* end confdefs.h. */
  15575. #include <sys/soundcard.h>
  15576. int
  15577. main ()
  15578. {
  15579. int arg = SNDCTL_DSP_SETFRAGMENT;
  15580. ;
  15581. return 0;
  15582. }
  15583. _ACEOF
  15584. if ac_fn_c_try_compile "$LINENO"; then :
  15585. have_oss=yes
  15586. fi
  15587. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15588. fi
  15589. if test x$have_oss != xyes; then
  15590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15591. /* end confdefs.h. */
  15592. #include <soundcard.h>
  15593. int
  15594. main ()
  15595. {
  15596. int arg = SNDCTL_DSP_SETFRAGMENT;
  15597. ;
  15598. return 0;
  15599. }
  15600. _ACEOF
  15601. if ac_fn_c_try_compile "$LINENO"; then :
  15602. have_oss=yes
  15603. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15604. fi
  15605. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15606. fi
  15607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15608. $as_echo "$have_oss" >&6; }
  15609. if test x$have_oss = xyes; then
  15610. SUMMARY_audio="${SUMMARY_audio} oss"
  15611. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15612. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15613. have_audio=yes
  15614. # We may need to link with ossaudio emulation library
  15615. case "$host" in
  15616. *-*-openbsd*|*-*-netbsd*)
  15617. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15618. esac
  15619. fi
  15620. fi
  15621. }
  15622. CheckALSA()
  15623. {
  15624. # Check whether --enable-alsa was given.
  15625. if test "${enable_alsa+set}" = set; then :
  15626. enableval=$enable_alsa;
  15627. else
  15628. enable_alsa=yes
  15629. fi
  15630. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15631. alsa_save_CFLAGS="$CFLAGS"
  15632. alsa_save_LDFLAGS="$LDFLAGS"
  15633. alsa_save_LIBS="$LIBS"
  15634. alsa_found=yes
  15635. # Check whether --with-alsa-prefix was given.
  15636. if test "${with_alsa_prefix+set}" = set; then :
  15637. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15638. else
  15639. alsa_prefix=""
  15640. fi
  15641. # Check whether --with-alsa-inc-prefix was given.
  15642. if test "${with_alsa_inc_prefix+set}" = set; then :
  15643. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15644. else
  15645. alsa_inc_prefix=""
  15646. fi
  15647. # Check whether --enable-alsatest was given.
  15648. if test "${enable_alsatest+set}" = set; then :
  15649. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15650. else
  15651. enable_alsatest=yes
  15652. fi
  15653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15654. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15655. if test "$alsa_inc_prefix" != "" ; then
  15656. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15657. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15658. fi
  15659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15660. $as_echo "$ALSA_CFLAGS" >&6; }
  15661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15662. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15663. if test "$alsa_prefix" != "" ; then
  15664. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15665. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15666. fi
  15667. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15668. LIBS=`echo $LIBS | sed 's/-lm//'`
  15669. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15670. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15671. LIBS=`echo $LIBS | sed 's/ //'`
  15672. LIBS="$ALSA_LIBS $LIBS"
  15673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15674. $as_echo "$ALSA_LIBS" >&6; }
  15675. min_alsa_version=1.0.11
  15676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15677. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15678. no_alsa=""
  15679. alsa_min_major_version=`echo $min_alsa_version | \
  15680. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15681. alsa_min_minor_version=`echo $min_alsa_version | \
  15682. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15683. alsa_min_micro_version=`echo $min_alsa_version | \
  15684. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15685. ac_ext=c
  15686. ac_cpp='$CPP $CPPFLAGS'
  15687. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15688. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15689. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15691. /* end confdefs.h. */
  15692. #include <alsa/asoundlib.h>
  15693. int
  15694. main ()
  15695. {
  15696. /* ensure backward compatibility */
  15697. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15698. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15699. #endif
  15700. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15701. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15702. #endif
  15703. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15704. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15705. #endif
  15706. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15707. exit(0);
  15708. # else
  15709. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15710. # error not present
  15711. # endif
  15712. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15713. exit(0);
  15714. # else
  15715. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15716. # error not present
  15717. # endif
  15718. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15719. # error not present
  15720. # endif
  15721. # endif
  15722. # endif
  15723. exit(0);
  15724. ;
  15725. return 0;
  15726. }
  15727. _ACEOF
  15728. if ac_fn_c_try_compile "$LINENO"; then :
  15729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15730. $as_echo "found." >&6; }
  15731. else
  15732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15733. $as_echo "not present." >&6; }
  15734. alsa_found=no
  15735. fi
  15736. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15737. ac_ext=c
  15738. ac_cpp='$CPP $CPPFLAGS'
  15739. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15740. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15741. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15742. if test "x$enable_alsatest" = "xyes"; then
  15743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15744. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15745. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15746. $as_echo_n "(cached) " >&6
  15747. else
  15748. ac_check_lib_save_LIBS=$LIBS
  15749. LIBS="-lasound $LIBS"
  15750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15751. /* end confdefs.h. */
  15752. /* Override any GCC internal prototype to avoid an error.
  15753. Use char because int might match the return type of a GCC
  15754. builtin and then its argument prototype would still apply. */
  15755. #ifdef __cplusplus
  15756. extern "C"
  15757. #endif
  15758. char snd_ctl_open ();
  15759. int
  15760. main ()
  15761. {
  15762. return snd_ctl_open ();
  15763. ;
  15764. return 0;
  15765. }
  15766. _ACEOF
  15767. if ac_fn_c_try_link "$LINENO"; then :
  15768. ac_cv_lib_asound_snd_ctl_open=yes
  15769. else
  15770. ac_cv_lib_asound_snd_ctl_open=no
  15771. fi
  15772. rm -f core conftest.err conftest.$ac_objext \
  15773. conftest$ac_exeext conftest.$ac_ext
  15774. LIBS=$ac_check_lib_save_LIBS
  15775. fi
  15776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15777. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15778. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15779. cat >>confdefs.h <<_ACEOF
  15780. #define HAVE_LIBASOUND 1
  15781. _ACEOF
  15782. LIBS="-lasound $LIBS"
  15783. else
  15784. alsa_found=no
  15785. fi
  15786. fi
  15787. if test "x$alsa_found" = "xyes" ; then
  15788. have_alsa=yes
  15789. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15790. LIBS=`echo $LIBS | sed 's/ //'`
  15791. LIBS="-lasound $LIBS"
  15792. fi
  15793. if test "x$alsa_found" = "xno" ; then
  15794. have_alsa=no
  15795. CFLAGS="$alsa_save_CFLAGS"
  15796. LDFLAGS="$alsa_save_LDFLAGS"
  15797. LIBS="$alsa_save_LIBS"
  15798. ALSA_CFLAGS=""
  15799. ALSA_LIBS=""
  15800. fi
  15801. # Restore all flags from before the ALSA detection runs
  15802. CFLAGS="$alsa_save_CFLAGS"
  15803. LDFLAGS="$alsa_save_LDFLAGS"
  15804. LIBS="$alsa_save_LIBS"
  15805. if test x$have_alsa = xyes; then
  15806. # Check whether --enable-alsa-shared was given.
  15807. if test "${enable_alsa_shared+set}" = set; then :
  15808. enableval=$enable_alsa_shared;
  15809. else
  15810. enable_alsa_shared=yes
  15811. fi
  15812. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15813. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15814. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15815. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15816. if test x$have_loadso != xyes && \
  15817. test x$enable_alsa_shared = xyes; then
  15818. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15819. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15820. fi
  15821. if test x$have_loadso = xyes && \
  15822. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15823. echo "-- dynamic libasound -> $alsa_lib"
  15824. cat >>confdefs.h <<_ACEOF
  15825. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15826. _ACEOF
  15827. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15828. else
  15829. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15830. SUMMARY_audio="${SUMMARY_audio} alsa"
  15831. fi
  15832. have_audio=yes
  15833. fi
  15834. fi
  15835. }
  15836. CheckJACK()
  15837. {
  15838. # Check whether --enable-jack was given.
  15839. if test "${enable_jack+set}" = set; then :
  15840. enableval=$enable_jack;
  15841. else
  15842. enable_jack=yes
  15843. fi
  15844. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  15845. pkg_failed=no
  15846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  15847. $as_echo_n "checking for jack >= 0.125... " >&6; }
  15848. if test -n "$JACK_CFLAGS"; then
  15849. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  15850. elif test -n "$PKG_CONFIG"; then
  15851. if test -n "$PKG_CONFIG" && \
  15852. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15853. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15854. ac_status=$?
  15855. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15856. test $ac_status = 0; }; then
  15857. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  15858. test "x$?" != "x0" && pkg_failed=yes
  15859. else
  15860. pkg_failed=yes
  15861. fi
  15862. else
  15863. pkg_failed=untried
  15864. fi
  15865. if test -n "$JACK_LIBS"; then
  15866. pkg_cv_JACK_LIBS="$JACK_LIBS"
  15867. elif test -n "$PKG_CONFIG"; then
  15868. if test -n "$PKG_CONFIG" && \
  15869. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15870. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15871. ac_status=$?
  15872. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15873. test $ac_status = 0; }; then
  15874. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  15875. test "x$?" != "x0" && pkg_failed=yes
  15876. else
  15877. pkg_failed=yes
  15878. fi
  15879. else
  15880. pkg_failed=untried
  15881. fi
  15882. if test $pkg_failed = yes; then
  15883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15884. $as_echo "no" >&6; }
  15885. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15886. _pkg_short_errors_supported=yes
  15887. else
  15888. _pkg_short_errors_supported=no
  15889. fi
  15890. if test $_pkg_short_errors_supported = yes; then
  15891. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  15892. else
  15893. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  15894. fi
  15895. # Put the nasty error message in config.log where it belongs
  15896. echo "$JACK_PKG_ERRORS" >&5
  15897. audio_jack=no
  15898. elif test $pkg_failed = untried; then
  15899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15900. $as_echo "no" >&6; }
  15901. audio_jack=no
  15902. else
  15903. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  15904. JACK_LIBS=$pkg_cv_JACK_LIBS
  15905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15906. $as_echo "yes" >&6; }
  15907. audio_jack=yes
  15908. fi
  15909. if test x$audio_jack = xyes; then
  15910. # Check whether --enable-jack-shared was given.
  15911. if test "${enable_jack_shared+set}" = set; then :
  15912. enableval=$enable_jack_shared;
  15913. else
  15914. enable_jack_shared=yes
  15915. fi
  15916. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15917. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  15918. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  15919. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  15920. if test x$have_loadso != xyes && \
  15921. test x$enable_jack_shared = xyes; then
  15922. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  15923. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  15924. fi
  15925. if test x$have_loadso = xyes && \
  15926. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  15927. echo "-- dynamic libjack -> $jack_lib"
  15928. cat >>confdefs.h <<_ACEOF
  15929. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  15930. _ACEOF
  15931. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  15932. case "$host" in
  15933. # On Solaris, jack must be linked deferred explicitly
  15934. # to prevent undefined symbol failures.
  15935. *-*-solaris*)
  15936. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  15937. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  15938. esac
  15939. else
  15940. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  15941. SUMMARY_audio="${SUMMARY_audio} jack"
  15942. fi
  15943. have_audio=yes
  15944. fi
  15945. fi
  15946. }
  15947. CheckESD()
  15948. {
  15949. # Check whether --enable-esd was given.
  15950. if test "${enable_esd+set}" = set; then :
  15951. enableval=$enable_esd;
  15952. else
  15953. enable_esd=yes
  15954. fi
  15955. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15956. # Check whether --with-esd-prefix was given.
  15957. if test "${with_esd_prefix+set}" = set; then :
  15958. withval=$with_esd_prefix; esd_prefix="$withval"
  15959. else
  15960. esd_prefix=""
  15961. fi
  15962. # Check whether --with-esd-exec-prefix was given.
  15963. if test "${with_esd_exec_prefix+set}" = set; then :
  15964. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15965. else
  15966. esd_exec_prefix=""
  15967. fi
  15968. # Check whether --enable-esdtest was given.
  15969. if test "${enable_esdtest+set}" = set; then :
  15970. enableval=$enable_esdtest;
  15971. else
  15972. enable_esdtest=yes
  15973. fi
  15974. if test x$esd_exec_prefix != x ; then
  15975. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15976. if test x${ESD_CONFIG+set} != xset ; then
  15977. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15978. fi
  15979. fi
  15980. if test x$esd_prefix != x ; then
  15981. esd_args="$esd_args --prefix=$esd_prefix"
  15982. if test x${ESD_CONFIG+set} != xset ; then
  15983. ESD_CONFIG=$esd_prefix/bin/esd-config
  15984. fi
  15985. fi
  15986. # Extract the first word of "esd-config", so it can be a program name with args.
  15987. set dummy esd-config; ac_word=$2
  15988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15989. $as_echo_n "checking for $ac_word... " >&6; }
  15990. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15991. $as_echo_n "(cached) " >&6
  15992. else
  15993. case $ESD_CONFIG in
  15994. [\\/]* | ?:[\\/]*)
  15995. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15996. ;;
  15997. *)
  15998. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15999. for as_dir in $PATH
  16000. do
  16001. IFS=$as_save_IFS
  16002. test -z "$as_dir" && as_dir=.
  16003. for ac_exec_ext in '' $ac_executable_extensions; do
  16004. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16005. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16006. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16007. break 2
  16008. fi
  16009. done
  16010. done
  16011. IFS=$as_save_IFS
  16012. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  16013. ;;
  16014. esac
  16015. fi
  16016. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  16017. if test -n "$ESD_CONFIG"; then
  16018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  16019. $as_echo "$ESD_CONFIG" >&6; }
  16020. else
  16021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16022. $as_echo "no" >&6; }
  16023. fi
  16024. min_esd_version=0.2.8
  16025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  16026. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  16027. no_esd=""
  16028. if test "$ESD_CONFIG" = "no" ; then
  16029. no_esd=yes
  16030. else
  16031. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  16032. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  16033. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  16034. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  16035. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  16036. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  16037. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  16038. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  16039. if test "x$enable_esdtest" = "xyes" ; then
  16040. ac_ext=c
  16041. ac_cpp='$CPP $CPPFLAGS'
  16042. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16043. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16044. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16045. ac_save_CFLAGS="$CFLAGS"
  16046. ac_save_LIBS="$LIBS"
  16047. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16048. LIBS="$LIBS $ESD_LIBS"
  16049. rm -f conf.esdtest
  16050. if test "$cross_compiling" = yes; then :
  16051. echo $ac_n "cross compiling; assumed OK... $ac_c"
  16052. else
  16053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16054. /* end confdefs.h. */
  16055. #include <stdio.h>
  16056. #include <stdlib.h>
  16057. #include <esd.h>
  16058. int main (void)
  16059. {
  16060. int major, minor, micro;
  16061. FILE *fp = fopen("conf.esdtest", "w");
  16062. if (fp) fclose(fp);
  16063. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  16064. printf("%s, bad version string\n", "$min_esd_version");
  16065. exit(1);
  16066. }
  16067. if (($esd_major_version > major) ||
  16068. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  16069. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  16070. {
  16071. return 0;
  16072. }
  16073. else
  16074. {
  16075. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  16076. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  16077. printf("*** best to upgrade to the required version.\n");
  16078. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  16079. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  16080. printf("*** config.cache before re-running configure\n");
  16081. return 1;
  16082. }
  16083. }
  16084. _ACEOF
  16085. if ac_fn_c_try_run "$LINENO"; then :
  16086. else
  16087. no_esd=yes
  16088. fi
  16089. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16090. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16091. fi
  16092. CFLAGS="$ac_save_CFLAGS"
  16093. LIBS="$ac_save_LIBS"
  16094. ac_ext=c
  16095. ac_cpp='$CPP $CPPFLAGS'
  16096. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16097. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16098. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16099. fi
  16100. fi
  16101. if test "x$no_esd" = x ; then
  16102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16103. $as_echo "yes" >&6; }
  16104. have_esd=yes
  16105. else
  16106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16107. $as_echo "no" >&6; }
  16108. if test "$ESD_CONFIG" = "no" ; then
  16109. echo "*** The esd-config script installed by ESD could not be found"
  16110. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  16111. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  16112. echo "*** full path to esd-config."
  16113. else
  16114. if test -f conf.esdtest ; then
  16115. :
  16116. else
  16117. echo "*** Could not run ESD test program, checking why..."
  16118. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16119. LIBS="$LIBS $ESD_LIBS"
  16120. ac_ext=c
  16121. ac_cpp='$CPP $CPPFLAGS'
  16122. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16123. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16124. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16126. /* end confdefs.h. */
  16127. #include <stdio.h>
  16128. #include <esd.h>
  16129. int
  16130. main ()
  16131. {
  16132. return 0;
  16133. ;
  16134. return 0;
  16135. }
  16136. _ACEOF
  16137. if ac_fn_c_try_link "$LINENO"; then :
  16138. echo "*** The test program compiled, but did not run. This usually means"
  16139. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  16140. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  16141. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  16142. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  16143. echo "*** is required on your system"
  16144. echo "***"
  16145. echo "*** If you have an old version installed, it is best to remove it, although"
  16146. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  16147. else
  16148. echo "*** The test program failed to compile or link. See the file config.log for the"
  16149. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  16150. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  16151. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  16152. fi
  16153. rm -f core conftest.err conftest.$ac_objext \
  16154. conftest$ac_exeext conftest.$ac_ext
  16155. CFLAGS="$ac_save_CFLAGS"
  16156. LIBS="$ac_save_LIBS"
  16157. ac_ext=c
  16158. ac_cpp='$CPP $CPPFLAGS'
  16159. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16160. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16161. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16162. fi
  16163. fi
  16164. ESD_CFLAGS=""
  16165. ESD_LIBS=""
  16166. have_esd=no
  16167. fi
  16168. rm -f conf.esdtest
  16169. if test x$have_esd = xyes; then
  16170. # Check whether --enable-esd-shared was given.
  16171. if test "${enable_esd_shared+set}" = set; then :
  16172. enableval=$enable_esd_shared;
  16173. else
  16174. enable_esd_shared=yes
  16175. fi
  16176. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16177. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  16178. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  16179. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  16180. if test x$have_loadso != xyes && \
  16181. test x$enable_esd_shared = xyes; then
  16182. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  16183. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  16184. fi
  16185. if test x$have_loadso = xyes && \
  16186. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  16187. echo "-- dynamic libesd -> $esd_lib"
  16188. cat >>confdefs.h <<_ACEOF
  16189. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  16190. _ACEOF
  16191. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  16192. else
  16193. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  16194. SUMMARY_audio="${SUMMARY_audio} esd"
  16195. fi
  16196. have_audio=yes
  16197. fi
  16198. fi
  16199. }
  16200. CheckPipewire()
  16201. {
  16202. # Check whether --enable-pipewire was given.
  16203. if test "${enable_pipewire+set}" = set; then :
  16204. enableval=$enable_pipewire;
  16205. else
  16206. enable_pipewire=yes
  16207. fi
  16208. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  16209. pkg_failed=no
  16210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  16211. $as_echo_n "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  16212. if test -n "$PIPEWIRE_CFLAGS"; then
  16213. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  16214. elif test -n "$PKG_CONFIG"; then
  16215. if test -n "$PKG_CONFIG" && \
  16216. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  16217. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  16218. ac_status=$?
  16219. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16220. test $ac_status = 0; }; then
  16221. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  16222. test "x$?" != "x0" && pkg_failed=yes
  16223. else
  16224. pkg_failed=yes
  16225. fi
  16226. else
  16227. pkg_failed=untried
  16228. fi
  16229. if test -n "$PIPEWIRE_LIBS"; then
  16230. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  16231. elif test -n "$PKG_CONFIG"; then
  16232. if test -n "$PKG_CONFIG" && \
  16233. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  16234. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  16235. ac_status=$?
  16236. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16237. test $ac_status = 0; }; then
  16238. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  16239. test "x$?" != "x0" && pkg_failed=yes
  16240. else
  16241. pkg_failed=yes
  16242. fi
  16243. else
  16244. pkg_failed=untried
  16245. fi
  16246. if test $pkg_failed = yes; then
  16247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16248. $as_echo "no" >&6; }
  16249. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16250. _pkg_short_errors_supported=yes
  16251. else
  16252. _pkg_short_errors_supported=no
  16253. fi
  16254. if test $_pkg_short_errors_supported = yes; then
  16255. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  16256. else
  16257. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  16258. fi
  16259. # Put the nasty error message in config.log where it belongs
  16260. echo "$PIPEWIRE_PKG_ERRORS" >&5
  16261. audio_pipewire=no
  16262. elif test $pkg_failed = untried; then
  16263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16264. $as_echo "no" >&6; }
  16265. audio_pipewire=no
  16266. else
  16267. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  16268. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  16269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16270. $as_echo "yes" >&6; }
  16271. audio_pipewire=yes
  16272. fi
  16273. if test x$audio_pipewire = xyes; then
  16274. # Check whether --enable-pipewire-shared was given.
  16275. if test "${enable_pipewire_shared+set}" = set; then :
  16276. enableval=$enable_pipewire_shared;
  16277. else
  16278. enable_pipewire_shared=yes
  16279. fi
  16280. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16281. $as_echo "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  16282. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  16283. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  16284. if test x$have_loadso != xyes && \
  16285. test x$enable_pipewire_shared = xyes; then
  16286. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  16287. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  16288. fi
  16289. if test x$have_loadso = xyes && \
  16290. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  16291. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  16292. cat >>confdefs.h <<_ACEOF
  16293. #define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC "$pipewire_lib"
  16294. _ACEOF
  16295. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  16296. else
  16297. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  16298. SUMMARY_audio="${SUMMARY_audio} pipewire"
  16299. fi
  16300. have_audio=yes
  16301. fi
  16302. fi
  16303. }
  16304. CheckPulseAudio()
  16305. {
  16306. # Check whether --enable-pulseaudio was given.
  16307. if test "${enable_pulseaudio+set}" = set; then :
  16308. enableval=$enable_pulseaudio;
  16309. else
  16310. enable_pulseaudio=yes
  16311. fi
  16312. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  16313. pkg_failed=no
  16314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  16315. $as_echo_n "checking for libpulse-simple >= 0.9... " >&6; }
  16316. if test -n "$PULSEAUDIO_CFLAGS"; then
  16317. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  16318. elif test -n "$PKG_CONFIG"; then
  16319. if test -n "$PKG_CONFIG" && \
  16320. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16321. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16322. ac_status=$?
  16323. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16324. test $ac_status = 0; }; then
  16325. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  16326. test "x$?" != "x0" && pkg_failed=yes
  16327. else
  16328. pkg_failed=yes
  16329. fi
  16330. else
  16331. pkg_failed=untried
  16332. fi
  16333. if test -n "$PULSEAUDIO_LIBS"; then
  16334. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  16335. elif test -n "$PKG_CONFIG"; then
  16336. if test -n "$PKG_CONFIG" && \
  16337. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16338. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16339. ac_status=$?
  16340. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16341. test $ac_status = 0; }; then
  16342. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  16343. test "x$?" != "x0" && pkg_failed=yes
  16344. else
  16345. pkg_failed=yes
  16346. fi
  16347. else
  16348. pkg_failed=untried
  16349. fi
  16350. if test $pkg_failed = yes; then
  16351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16352. $as_echo "no" >&6; }
  16353. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16354. _pkg_short_errors_supported=yes
  16355. else
  16356. _pkg_short_errors_supported=no
  16357. fi
  16358. if test $_pkg_short_errors_supported = yes; then
  16359. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  16360. else
  16361. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  16362. fi
  16363. # Put the nasty error message in config.log where it belongs
  16364. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  16365. audio_pulseaudio=no
  16366. elif test $pkg_failed = untried; then
  16367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16368. $as_echo "no" >&6; }
  16369. audio_pulseaudio=no
  16370. else
  16371. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  16372. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  16373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16374. $as_echo "yes" >&6; }
  16375. audio_pulseaudio=yes
  16376. fi
  16377. if test x$audio_pulseaudio = xyes; then
  16378. # Check whether --enable-pulseaudio-shared was given.
  16379. if test "${enable_pulseaudio_shared+set}" = set; then :
  16380. enableval=$enable_pulseaudio_shared;
  16381. else
  16382. enable_pulseaudio_shared=yes
  16383. fi
  16384. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16385. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  16386. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  16387. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  16388. if test x$have_loadso != xyes && \
  16389. test x$enable_pulseaudio_shared = xyes; then
  16390. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  16391. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  16392. fi
  16393. if test x$have_loadso = xyes && \
  16394. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  16395. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  16396. cat >>confdefs.h <<_ACEOF
  16397. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  16398. _ACEOF
  16399. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  16400. case "$host" in
  16401. # On Solaris, pulseaudio must be linked deferred explicitly
  16402. # to prevent undefined symbol failures.
  16403. *-*-solaris*)
  16404. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  16405. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  16406. esac
  16407. else
  16408. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  16409. SUMMARY_audio="${SUMMARY_audio} pulse"
  16410. fi
  16411. have_audio=yes
  16412. fi
  16413. fi
  16414. }
  16415. CheckARTSC()
  16416. {
  16417. # Check whether --enable-arts was given.
  16418. if test "${enable_arts+set}" = set; then :
  16419. enableval=$enable_arts;
  16420. else
  16421. enable_arts=yes
  16422. fi
  16423. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  16424. # Extract the first word of "artsc-config", so it can be a program name with args.
  16425. set dummy artsc-config; ac_word=$2
  16426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16427. $as_echo_n "checking for $ac_word... " >&6; }
  16428. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  16429. $as_echo_n "(cached) " >&6
  16430. else
  16431. case $ARTSCONFIG in
  16432. [\\/]* | ?:[\\/]*)
  16433. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  16434. ;;
  16435. *)
  16436. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16437. for as_dir in $PATH
  16438. do
  16439. IFS=$as_save_IFS
  16440. test -z "$as_dir" && as_dir=.
  16441. for ac_exec_ext in '' $ac_executable_extensions; do
  16442. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16443. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  16444. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16445. break 2
  16446. fi
  16447. done
  16448. done
  16449. IFS=$as_save_IFS
  16450. ;;
  16451. esac
  16452. fi
  16453. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  16454. if test -n "$ARTSCONFIG"; then
  16455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  16456. $as_echo "$ARTSCONFIG" >&6; }
  16457. else
  16458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16459. $as_echo "no" >&6; }
  16460. fi
  16461. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  16462. : # arts isn't installed
  16463. else
  16464. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  16465. ARTS_LIBS=`$ARTSCONFIG --libs`
  16466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  16467. $as_echo_n "checking for aRts development environment... " >&6; }
  16468. audio_arts=no
  16469. save_CFLAGS="$CFLAGS"
  16470. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  16471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16472. /* end confdefs.h. */
  16473. #include <artsc.h>
  16474. int
  16475. main ()
  16476. {
  16477. arts_stream_t stream;
  16478. ;
  16479. return 0;
  16480. }
  16481. _ACEOF
  16482. if ac_fn_c_try_compile "$LINENO"; then :
  16483. audio_arts=yes
  16484. fi
  16485. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16486. CFLAGS="$save_CFLAGS"
  16487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  16488. $as_echo "$audio_arts" >&6; }
  16489. if test x$audio_arts = xyes; then
  16490. # Check whether --enable-arts-shared was given.
  16491. if test "${enable_arts_shared+set}" = set; then :
  16492. enableval=$enable_arts_shared;
  16493. else
  16494. enable_arts_shared=yes
  16495. fi
  16496. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16497. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  16498. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  16499. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  16500. if test x$have_loadso != xyes && \
  16501. test x$enable_arts_shared = xyes; then
  16502. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  16503. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  16504. fi
  16505. if test x$have_loadso = xyes && \
  16506. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  16507. echo "-- dynamic libartsc -> $arts_lib"
  16508. cat >>confdefs.h <<_ACEOF
  16509. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  16510. _ACEOF
  16511. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  16512. else
  16513. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  16514. SUMMARY_audio="${SUMMARY_audio} arts"
  16515. fi
  16516. have_audio=yes
  16517. fi
  16518. fi
  16519. fi
  16520. }
  16521. CheckNAS()
  16522. {
  16523. # Check whether --enable-nas was given.
  16524. if test "${enable_nas+set}" = set; then :
  16525. enableval=$enable_nas;
  16526. else
  16527. enable_nas=yes
  16528. fi
  16529. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  16530. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  16531. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  16532. have_nas_hdr=yes
  16533. fi
  16534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  16535. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  16536. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  16537. $as_echo_n "(cached) " >&6
  16538. else
  16539. ac_check_lib_save_LIBS=$LIBS
  16540. LIBS="-laudio $LIBS"
  16541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16542. /* end confdefs.h. */
  16543. /* Override any GCC internal prototype to avoid an error.
  16544. Use char because int might match the return type of a GCC
  16545. builtin and then its argument prototype would still apply. */
  16546. #ifdef __cplusplus
  16547. extern "C"
  16548. #endif
  16549. char AuOpenServer ();
  16550. int
  16551. main ()
  16552. {
  16553. return AuOpenServer ();
  16554. ;
  16555. return 0;
  16556. }
  16557. _ACEOF
  16558. if ac_fn_c_try_link "$LINENO"; then :
  16559. ac_cv_lib_audio_AuOpenServer=yes
  16560. else
  16561. ac_cv_lib_audio_AuOpenServer=no
  16562. fi
  16563. rm -f core conftest.err conftest.$ac_objext \
  16564. conftest$ac_exeext conftest.$ac_ext
  16565. LIBS=$ac_check_lib_save_LIBS
  16566. fi
  16567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  16568. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  16569. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  16570. have_nas_lib=yes
  16571. fi
  16572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  16573. $as_echo_n "checking for NAS audio support... " >&6; }
  16574. have_nas=no
  16575. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  16576. have_nas=yes
  16577. NAS_LIBS="-laudio"
  16578. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  16579. have_nas=yes
  16580. NAS_CFLAGS="-I/usr/X11R6/include/"
  16581. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  16582. fi
  16583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  16584. $as_echo "$have_nas" >&6; }
  16585. if test x$have_nas = xyes; then
  16586. # Check whether --enable-nas-shared was given.
  16587. if test "${enable_nas_shared+set}" = set; then :
  16588. enableval=$enable_nas_shared;
  16589. else
  16590. enable_nas_shared=yes
  16591. fi
  16592. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16593. if test x$have_loadso != xyes && \
  16594. test x$enable_nas_shared = xyes; then
  16595. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  16596. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  16597. fi
  16598. if test x$have_loadso = xyes && \
  16599. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  16600. echo "-- dynamic libaudio -> $nas_lib"
  16601. cat >>confdefs.h <<_ACEOF
  16602. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  16603. _ACEOF
  16604. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  16605. else
  16606. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  16607. SUMMARY_audio="${SUMMARY_audio} nas"
  16608. fi
  16609. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  16610. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  16611. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  16612. have_audio=yes
  16613. fi
  16614. fi
  16615. }
  16616. CheckSNDIO()
  16617. {
  16618. # Check whether --enable-sndio was given.
  16619. if test "${enable_sndio+set}" = set; then :
  16620. enableval=$enable_sndio;
  16621. else
  16622. enable_sndio=yes
  16623. fi
  16624. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  16625. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  16626. if test "x$ac_cv_header_sndio_h" = xyes; then :
  16627. have_sndio_hdr=yes
  16628. fi
  16629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  16630. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  16631. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  16632. $as_echo_n "(cached) " >&6
  16633. else
  16634. ac_check_lib_save_LIBS=$LIBS
  16635. LIBS="-lsndio $LIBS"
  16636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16637. /* end confdefs.h. */
  16638. /* Override any GCC internal prototype to avoid an error.
  16639. Use char because int might match the return type of a GCC
  16640. builtin and then its argument prototype would still apply. */
  16641. #ifdef __cplusplus
  16642. extern "C"
  16643. #endif
  16644. char sio_open ();
  16645. int
  16646. main ()
  16647. {
  16648. return sio_open ();
  16649. ;
  16650. return 0;
  16651. }
  16652. _ACEOF
  16653. if ac_fn_c_try_link "$LINENO"; then :
  16654. ac_cv_lib_sndio_sio_open=yes
  16655. else
  16656. ac_cv_lib_sndio_sio_open=no
  16657. fi
  16658. rm -f core conftest.err conftest.$ac_objext \
  16659. conftest$ac_exeext conftest.$ac_ext
  16660. LIBS=$ac_check_lib_save_LIBS
  16661. fi
  16662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  16663. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  16664. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  16665. have_sndio_lib=yes
  16666. fi
  16667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  16668. $as_echo_n "checking for sndio audio support... " >&6; }
  16669. have_sndio=no
  16670. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  16671. have_sndio=yes
  16672. SNDIO_LIBS="-lsndio"
  16673. fi
  16674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  16675. $as_echo "$have_sndio" >&6; }
  16676. if test x$have_sndio = xyes; then
  16677. # Check whether --enable-sndio-shared was given.
  16678. if test "${enable_sndio_shared+set}" = set; then :
  16679. enableval=$enable_sndio_shared;
  16680. else
  16681. enable_sndio_shared=yes
  16682. fi
  16683. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16684. if test x$have_loadso != xyes && \
  16685. test x$enable_sndio_shared = xyes; then
  16686. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  16687. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  16688. fi
  16689. if test x$have_loadso = xyes && \
  16690. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  16691. echo "-- dynamic libsndio -> $sndio_lib"
  16692. cat >>confdefs.h <<_ACEOF
  16693. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  16694. _ACEOF
  16695. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  16696. else
  16697. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  16698. SUMMARY_audio="${SUMMARY_audio} sndio"
  16699. fi
  16700. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  16701. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  16702. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  16703. have_audio=yes
  16704. fi
  16705. fi
  16706. }
  16707. CheckFusionSound()
  16708. {
  16709. # Check whether --enable-fusionsound was given.
  16710. if test "${enable_fusionsound+set}" = set; then :
  16711. enableval=$enable_fusionsound;
  16712. else
  16713. enable_fusionsound=no
  16714. fi
  16715. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  16716. pkg_failed=no
  16717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  16718. $as_echo_n "checking for fusionsound >= 1.1.1... " >&6; }
  16719. if test -n "$FUSIONSOUND_CFLAGS"; then
  16720. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  16721. elif test -n "$PKG_CONFIG"; then
  16722. if test -n "$PKG_CONFIG" && \
  16723. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16724. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16725. ac_status=$?
  16726. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16727. test $ac_status = 0; }; then
  16728. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  16729. test "x$?" != "x0" && pkg_failed=yes
  16730. else
  16731. pkg_failed=yes
  16732. fi
  16733. else
  16734. pkg_failed=untried
  16735. fi
  16736. if test -n "$FUSIONSOUND_LIBS"; then
  16737. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  16738. elif test -n "$PKG_CONFIG"; then
  16739. if test -n "$PKG_CONFIG" && \
  16740. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16741. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16742. ac_status=$?
  16743. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16744. test $ac_status = 0; }; then
  16745. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  16746. test "x$?" != "x0" && pkg_failed=yes
  16747. else
  16748. pkg_failed=yes
  16749. fi
  16750. else
  16751. pkg_failed=untried
  16752. fi
  16753. if test $pkg_failed = yes; then
  16754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16755. $as_echo "no" >&6; }
  16756. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16757. _pkg_short_errors_supported=yes
  16758. else
  16759. _pkg_short_errors_supported=no
  16760. fi
  16761. if test $_pkg_short_errors_supported = yes; then
  16762. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  16763. else
  16764. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  16765. fi
  16766. # Put the nasty error message in config.log where it belongs
  16767. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  16768. fusionsound=no
  16769. elif test $pkg_failed = untried; then
  16770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16771. $as_echo "no" >&6; }
  16772. fusionsound=no
  16773. else
  16774. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  16775. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  16776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16777. $as_echo "yes" >&6; }
  16778. fusionsound=yes
  16779. fi
  16780. if test x$fusionsound = xyes; then
  16781. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  16782. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  16783. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  16784. # Check whether --enable-fusionsound-shared was given.
  16785. if test "${enable_fusionsound_shared+set}" = set; then :
  16786. enableval=$enable_fusionsound_shared;
  16787. else
  16788. enable_fusionsound_shared=yes
  16789. fi
  16790. fusionsound_shared=no
  16791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  16792. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  16793. if test x$have_loadso != xyes && \
  16794. test x$enable_fusionsound_shared = xyes; then
  16795. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  16796. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  16797. fi
  16798. if test x$have_loadso = xyes && \
  16799. test x$enable_fusionsound_shared = xyes; then
  16800. cat >>confdefs.h <<_ACEOF
  16801. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  16802. _ACEOF
  16803. fusionsound_shared=yes
  16804. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  16805. else
  16806. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  16807. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  16808. fi
  16809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  16810. $as_echo "$fusionsound_shared" >&6; }
  16811. have_audio=yes
  16812. fi
  16813. fi
  16814. }
  16815. CheckDiskAudio()
  16816. {
  16817. # Check whether --enable-diskaudio was given.
  16818. if test "${enable_diskaudio+set}" = set; then :
  16819. enableval=$enable_diskaudio;
  16820. else
  16821. enable_diskaudio=yes
  16822. fi
  16823. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  16824. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  16825. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  16826. SUMMARY_audio="${SUMMARY_audio} disk"
  16827. fi
  16828. }
  16829. CheckDummyAudio()
  16830. {
  16831. # Check whether --enable-dummyaudio was given.
  16832. if test "${enable_dummyaudio+set}" = set; then :
  16833. enableval=$enable_dummyaudio;
  16834. else
  16835. enable_dummyaudio=yes
  16836. fi
  16837. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  16838. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  16839. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  16840. SUMMARY_audio="${SUMMARY_audio} dummy"
  16841. fi
  16842. }
  16843. CheckLibSampleRate()
  16844. {
  16845. # Check whether --enable-libsamplerate was given.
  16846. if test "${enable_libsamplerate+set}" = set; then :
  16847. enableval=$enable_libsamplerate;
  16848. else
  16849. enable_libsamplerate=yes
  16850. fi
  16851. if test x$enable_libsamplerate = xyes; then
  16852. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  16853. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  16854. have_samplerate_h_hdr=yes
  16855. else
  16856. have_samplerate_h_hdr=no
  16857. fi
  16858. if test x$have_samplerate_h_hdr = xyes; then
  16859. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  16860. # Check whether --enable-libsamplerate-shared was given.
  16861. if test "${enable_libsamplerate_shared+set}" = set; then :
  16862. enableval=$enable_libsamplerate_shared;
  16863. else
  16864. enable_libsamplerate_shared=yes
  16865. fi
  16866. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  16867. if test x$have_loadso != xyes && \
  16868. test x$enable_libsamplerate_shared = xyes; then
  16869. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  16870. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  16871. fi
  16872. if test x$have_loadso = xyes && \
  16873. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  16874. echo "-- dynamic libsamplerate -> $samplerate_lib"
  16875. cat >>confdefs.h <<_ACEOF
  16876. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  16877. _ACEOF
  16878. else
  16879. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  16880. fi
  16881. fi
  16882. fi
  16883. }
  16884. CheckARM()
  16885. {
  16886. # Check whether --enable-arm-simd was given.
  16887. if test "${enable_arm_simd+set}" = set; then :
  16888. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  16889. else
  16890. enable_arm_simd=no
  16891. fi
  16892. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  16893. save_CFLAGS="$CFLAGS"
  16894. have_arm_simd=no
  16895. CFLAGS="-x assembler-with-cpp $CFLAGS"
  16896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  16897. $as_echo_n "checking for ARM SIMD... " >&6; }
  16898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16899. /* end confdefs.h. */
  16900. .text
  16901. .arch armv6
  16902. .object_arch armv4
  16903. .arm
  16904. .altmacro
  16905. #ifndef __ARM_EABI__
  16906. #error EABI is required (to be sure that calling conventions are compatible)
  16907. #endif
  16908. pld [r0]
  16909. uqadd8 r0, r0, r0
  16910. _ACEOF
  16911. if ac_fn_c_try_compile "$LINENO"; then :
  16912. have_arm_simd=yes
  16913. fi
  16914. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  16916. $as_echo "$have_arm_simd" >&6; }
  16917. CFLAGS="$save_CFLAGS"
  16918. if test x$have_arm_simd = xyes; then
  16919. $as_echo "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  16920. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  16921. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  16922. fi
  16923. fi
  16924. }
  16925. CheckNEON()
  16926. {
  16927. # Check whether --enable-arm-neon was given.
  16928. if test "${enable_arm_neon+set}" = set; then :
  16929. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  16930. else
  16931. enable_arm_neon=no
  16932. fi
  16933. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  16934. save_CFLAGS="$CFLAGS"
  16935. have_arm_neon=no
  16936. CFLAGS="-x assembler-with-cpp $CFLAGS"
  16937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  16938. $as_echo_n "checking for ARM NEON... " >&6; }
  16939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16940. /* end confdefs.h. */
  16941. .text
  16942. .fpu neon
  16943. .arch armv7a
  16944. .object_arch armv4
  16945. .eabi_attribute 10, 0
  16946. .arm
  16947. .altmacro
  16948. #ifndef __ARM_EABI__
  16949. #error EABI is required (to be sure that calling conventions are compatible)
  16950. #endif
  16951. pld [r0]
  16952. vmovn.u16 d0, q0
  16953. _ACEOF
  16954. if ac_fn_c_try_compile "$LINENO"; then :
  16955. have_arm_neon=yes
  16956. fi
  16957. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  16959. $as_echo "$have_arm_neon" >&6; }
  16960. CFLAGS="$save_CFLAGS"
  16961. if test x$have_arm_neon = xyes; then
  16962. $as_echo "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  16963. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  16964. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  16965. fi
  16966. fi
  16967. }
  16968. CheckVisibilityHidden()
  16969. {
  16970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  16971. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  16972. have_gcc_fvisibility=no
  16973. visibility_CFLAGS="-fvisibility=hidden"
  16974. save_CFLAGS="$CFLAGS"
  16975. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  16976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16977. /* end confdefs.h. */
  16978. #if !defined(__GNUC__) || __GNUC__ < 4
  16979. #error SDL only uses visibility attributes in GCC 4 or newer
  16980. #endif
  16981. int
  16982. main ()
  16983. {
  16984. ;
  16985. return 0;
  16986. }
  16987. _ACEOF
  16988. if ac_fn_c_try_compile "$LINENO"; then :
  16989. have_gcc_fvisibility=yes
  16990. fi
  16991. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  16993. $as_echo "$have_gcc_fvisibility" >&6; }
  16994. CFLAGS="$save_CFLAGS"
  16995. if test x$have_gcc_fvisibility = xyes; then
  16996. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  16997. fi
  16998. }
  16999. CheckNoStrictAliasing()
  17000. {
  17001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  17002. $as_echo_n "checking for GCC -fno-strict-aliasing option... " >&6; }
  17003. have_gcc_no_strict_aliasing=no
  17004. save_CFLAGS="$CFLAGS"
  17005. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  17006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17007. /* end confdefs.h. */
  17008. int x = 0;
  17009. int
  17010. main ()
  17011. {
  17012. ;
  17013. return 0;
  17014. }
  17015. _ACEOF
  17016. if ac_fn_c_try_compile "$LINENO"; then :
  17017. have_gcc_no_strict_aliasing=yes
  17018. fi
  17019. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  17021. $as_echo "$have_gcc_no_strict_aliasing" >&6; }
  17022. CFLAGS="$save_CFLAGS"
  17023. if test x$have_gcc_no_strict_aliasing = xyes; then
  17024. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  17025. fi
  17026. }
  17027. CheckStackBoundary()
  17028. {
  17029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  17030. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  17031. have_gcc_preferred_stack_boundary=no
  17032. save_CFLAGS="$CFLAGS"
  17033. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  17034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17035. /* end confdefs.h. */
  17036. int x = 0;
  17037. int
  17038. main ()
  17039. {
  17040. ;
  17041. return 0;
  17042. }
  17043. _ACEOF
  17044. if ac_fn_c_try_compile "$LINENO"; then :
  17045. have_gcc_preferred_stack_boundary=yes
  17046. fi
  17047. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  17049. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  17050. CFLAGS="$save_CFLAGS"
  17051. if test x$have_gcc_preferred_stack_boundary = xyes; then
  17052. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  17053. fi
  17054. }
  17055. CheckDeclarationAfterStatement()
  17056. {
  17057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  17058. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  17059. have_gcc_declaration_after_statement=no
  17060. save_CFLAGS="$CFLAGS"
  17061. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  17062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17063. /* end confdefs.h. */
  17064. int x = 0;
  17065. int
  17066. main ()
  17067. {
  17068. ;
  17069. return 0;
  17070. }
  17071. _ACEOF
  17072. if ac_fn_c_try_compile "$LINENO"; then :
  17073. have_gcc_declaration_after_statement=yes
  17074. fi
  17075. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  17077. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  17078. CFLAGS="$save_CFLAGS"
  17079. if test x$have_gcc_declaration_after_statement = xyes; then
  17080. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  17081. fi
  17082. }
  17083. CheckWarnAll()
  17084. {
  17085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  17086. $as_echo_n "checking for GCC -Wall option... " >&6; }
  17087. have_gcc_Wall=no
  17088. save_CFLAGS="$CFLAGS"
  17089. CFLAGS="$save_CFLAGS -Wall"
  17090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17091. /* end confdefs.h. */
  17092. int x = 0;
  17093. int
  17094. main ()
  17095. {
  17096. ;
  17097. return 0;
  17098. }
  17099. _ACEOF
  17100. if ac_fn_c_try_compile "$LINENO"; then :
  17101. have_gcc_Wall=yes
  17102. fi
  17103. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  17105. $as_echo "$have_gcc_Wall" >&6; }
  17106. CFLAGS="$save_CFLAGS"
  17107. if test x$have_gcc_Wall = xyes; then
  17108. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  17109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  17110. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  17111. need_gcc_Wno_multichar=no
  17112. case "$host" in
  17113. *-*-haiku*)
  17114. need_gcc_Wno_multichar=yes
  17115. ;;
  17116. esac
  17117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  17118. $as_echo "$need_gcc_Wno_multichar" >&6; }
  17119. if test x$need_gcc_Wno_multichar = xyes; then
  17120. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  17121. fi
  17122. fi
  17123. }
  17124. CheckWayland()
  17125. {
  17126. # Check whether --enable-video-wayland was given.
  17127. if test "${enable_video_wayland+set}" = set; then :
  17128. enableval=$enable_video_wayland;
  17129. else
  17130. enable_video_wayland=yes
  17131. fi
  17132. # Check whether --enable-video-wayland-qt-touch was given.
  17133. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  17134. enableval=$enable_video_wayland_qt_touch;
  17135. else
  17136. enable_video_wayland_qt_touch=yes
  17137. fi
  17138. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  17139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  17140. $as_echo_n "checking for Wayland support... " >&6; }
  17141. video_wayland=no
  17142. if test x$video_opengl_egl = xyes && \
  17143. test x$video_opengles_v2 = xyes; then
  17144. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  17145. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  17146. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  17147. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  17148. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'; then :
  17149. WAYLAND_SCANNER_CODE_MODE=private-code
  17150. else
  17151. WAYLAND_SCANNER_CODE_MODE=code
  17152. fi
  17153. video_wayland=yes
  17154. fi
  17155. fi
  17156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  17157. $as_echo "$video_wayland" >&6; }
  17158. if test x$video_wayland = xyes; then
  17159. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  17160. if test x$enable_video_wayland_qt_touch = xyes; then
  17161. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  17162. fi
  17163. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  17164. SOURCES="$SOURCES $WAYLAND_SOURCES"
  17165. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  17166. # Check whether --enable-wayland-shared was given.
  17167. if test "${enable_wayland_shared+set}" = set; then :
  17168. enableval=$enable_wayland_shared;
  17169. else
  17170. enable_wayland_shared=maybe
  17171. fi
  17172. case "$host" in
  17173. *)
  17174. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17175. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17176. if test x$wayland_egl_lib = x; then
  17177. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17178. fi
  17179. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17180. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17181. ;;
  17182. esac
  17183. if test x$enable_wayland_shared = xmaybe; then
  17184. enable_wayland_shared=yes
  17185. fi
  17186. if test x$have_loadso != xyes && \
  17187. test x$enable_wayland_shared = xyes; then
  17188. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  17189. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  17190. enable_wayland_shared=no
  17191. fi
  17192. if test x$have_loadso = xyes && \
  17193. test x$enable_wayland_shared = xyes && \
  17194. test x$wayland_client_lib != x && \
  17195. test x$wayland_egl_lib != x && \
  17196. test x$wayland_cursor_lib != x && \
  17197. test x$xkbcommon_lib != x; then
  17198. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  17199. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  17200. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  17201. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  17202. cat >>confdefs.h <<_ACEOF
  17203. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  17204. _ACEOF
  17205. cat >>confdefs.h <<_ACEOF
  17206. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  17207. _ACEOF
  17208. cat >>confdefs.h <<_ACEOF
  17209. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  17210. _ACEOF
  17211. cat >>confdefs.h <<_ACEOF
  17212. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  17213. _ACEOF
  17214. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  17215. else
  17216. enable_wayland_shared=no
  17217. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  17218. SUMMARY_video="${SUMMARY_video} wayland"
  17219. fi
  17220. have_video=yes
  17221. # Check whether --enable-libdecor was given.
  17222. if test "${enable_libdecor+set}" = set; then :
  17223. enableval=$enable_libdecor;
  17224. else
  17225. enable_libdecor=yes
  17226. fi
  17227. if test x$enable_libdecor = xyes; then
  17228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdecor support" >&5
  17229. $as_echo_n "checking for libdecor support... " >&6; }
  17230. if $PKG_CONFIG --exists libdecor-0; then :
  17231. video_libdecor=yes
  17232. else
  17233. video_libdecor=no
  17234. fi
  17235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_libdecor" >&5
  17236. $as_echo "$video_libdecor" >&6; }
  17237. if test x$video_libdecor = xyes; then
  17238. EXTRA_CFLAGS="$EXTRA_CFLAGS `$PKG_CONFIG --cflags libdecor-0`"
  17239. $as_echo "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  17240. # Check whether --enable-libdecor-shared was given.
  17241. if test "${enable_libdecor_shared+set}" = set; then :
  17242. enableval=$enable_libdecor_shared;
  17243. else
  17244. enable_libdecor_shared=yes
  17245. fi
  17246. if test x$enable_wayland_shared != xyes; then
  17247. enable_libdecor_shared=no
  17248. fi
  17249. decor_lib=`find_lib "libdecor-0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  17250. if test x$have_loadso != xyes && \
  17251. test x$enable_libdecor_shared = xyes; then
  17252. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  17253. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  17254. fi
  17255. if test x$have_loadso = xyes && \
  17256. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  17257. echo "-- dynamic libdecor -> $decor_lib"
  17258. cat >>confdefs.h <<_ACEOF
  17259. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR "$decor_lib"
  17260. _ACEOF
  17261. else
  17262. EXTRA_LDFLAGS="$EXTRA_LDFLAGS `$PKG_CONFIG --libs libdecor-0`"
  17263. fi
  17264. fi
  17265. fi
  17266. fi
  17267. fi
  17268. }
  17269. CheckNativeClient()
  17270. {
  17271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17272. /* end confdefs.h. */
  17273. #if !defined(__native_client__)
  17274. #error "NO NACL"
  17275. #endif
  17276. int
  17277. main ()
  17278. {
  17279. ;
  17280. return 0;
  17281. }
  17282. _ACEOF
  17283. if ac_fn_c_try_compile "$LINENO"; then :
  17284. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  17285. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  17286. $as_echo "#define HAVE_POW 1" >>confdefs.h
  17287. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  17288. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  17289. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  17290. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  17291. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  17292. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  17293. SUMMARY_audio="${SUMMARY_audio} nacl"
  17294. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  17295. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  17296. fi
  17297. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17298. }
  17299. CheckRPI()
  17300. {
  17301. # Check whether --enable-video-rpi was given.
  17302. if test "${enable_video_rpi+set}" = set; then :
  17303. enableval=$enable_video_rpi;
  17304. else
  17305. enable_video_rpi=yes
  17306. fi
  17307. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  17308. pkg_failed=no
  17309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  17310. $as_echo_n "checking for bcm_host brcmegl... " >&6; }
  17311. if test -n "$RPI_CFLAGS"; then
  17312. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  17313. elif test -n "$PKG_CONFIG"; then
  17314. if test -n "$PKG_CONFIG" && \
  17315. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17316. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17317. ac_status=$?
  17318. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17319. test $ac_status = 0; }; then
  17320. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  17321. test "x$?" != "x0" && pkg_failed=yes
  17322. else
  17323. pkg_failed=yes
  17324. fi
  17325. else
  17326. pkg_failed=untried
  17327. fi
  17328. if test -n "$RPI_LIBS"; then
  17329. pkg_cv_RPI_LIBS="$RPI_LIBS"
  17330. elif test -n "$PKG_CONFIG"; then
  17331. if test -n "$PKG_CONFIG" && \
  17332. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17333. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17334. ac_status=$?
  17335. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17336. test $ac_status = 0; }; then
  17337. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  17338. test "x$?" != "x0" && pkg_failed=yes
  17339. else
  17340. pkg_failed=yes
  17341. fi
  17342. else
  17343. pkg_failed=untried
  17344. fi
  17345. if test $pkg_failed = yes; then
  17346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17347. $as_echo "no" >&6; }
  17348. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17349. _pkg_short_errors_supported=yes
  17350. else
  17351. _pkg_short_errors_supported=no
  17352. fi
  17353. if test $_pkg_short_errors_supported = yes; then
  17354. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  17355. else
  17356. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  17357. fi
  17358. # Put the nasty error message in config.log where it belongs
  17359. echo "$RPI_PKG_ERRORS" >&5
  17360. video_rpi=no
  17361. elif test $pkg_failed = untried; then
  17362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17363. $as_echo "no" >&6; }
  17364. video_rpi=no
  17365. else
  17366. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  17367. RPI_LIBS=$pkg_cv_RPI_LIBS
  17368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17369. $as_echo "yes" >&6; }
  17370. video_rpi=yes
  17371. fi
  17372. if test x$video_rpi = xno; then
  17373. if test x$ARCH = xnetbsd; then
  17374. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  17375. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  17376. else
  17377. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  17378. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  17379. fi
  17380. fi
  17381. # Save the original compiler flags and libraries
  17382. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  17383. # Add the Raspberry Pi compiler flags and libraries
  17384. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  17385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 2/3" >&5
  17386. $as_echo_n "checking for Raspberry Pi 2/3... " >&6; }
  17387. have_video_rpi=no
  17388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17389. /* end confdefs.h. */
  17390. #include <bcm_host.h>
  17391. #include <EGL/eglplatform.h>
  17392. int
  17393. main ()
  17394. {
  17395. EGL_DISPMANX_WINDOW_T window;
  17396. bcm_host_init();
  17397. ;
  17398. return 0;
  17399. }
  17400. _ACEOF
  17401. if ac_fn_c_try_link "$LINENO"; then :
  17402. have_video_rpi=yes
  17403. fi
  17404. rm -f core conftest.err conftest.$ac_objext \
  17405. conftest$ac_exeext conftest.$ac_ext
  17406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  17407. $as_echo "$have_video_rpi" >&6; }
  17408. # Restore the compiler flags and libraries
  17409. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  17410. if test x$have_video_rpi = xyes; then
  17411. CFLAGS="$CFLAGS $RPI_CFLAGS"
  17412. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  17413. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  17414. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  17415. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  17416. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  17417. SUMMARY_video="${SUMMARY_video} rpi"
  17418. fi
  17419. fi
  17420. }
  17421. CheckX11()
  17422. {
  17423. # Check whether --enable-video-x11 was given.
  17424. if test "${enable_video_x11+set}" = set; then :
  17425. enableval=$enable_video_x11;
  17426. else
  17427. enable_video_x11=yes
  17428. fi
  17429. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  17430. case "$host" in
  17431. *-*-darwin*)
  17432. # This isn't necessary for X11, but fixes GLX detection
  17433. if test "x$x_includes" = xNONE && \
  17434. test "x$x_libraries" = xNONE && \
  17435. test -d /opt/X11/include && \
  17436. test -d /opt/X11/lib; then
  17437. x_includes="/opt/X11/include"
  17438. x_libraries="/opt/X11/lib"
  17439. fi
  17440. ;;
  17441. esac
  17442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  17443. $as_echo_n "checking for X... " >&6; }
  17444. # Check whether --with-x was given.
  17445. if test "${with_x+set}" = set; then :
  17446. withval=$with_x;
  17447. fi
  17448. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  17449. if test "x$with_x" = xno; then
  17450. # The user explicitly disabled X.
  17451. have_x=disabled
  17452. else
  17453. case $x_includes,$x_libraries in #(
  17454. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  17455. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  17456. $as_echo_n "(cached) " >&6
  17457. else
  17458. # One or both of the vars are not set, and there is no cached value.
  17459. ac_x_includes=no
  17460. ac_x_libraries=no
  17461. # Do we need to do anything special at all?
  17462. ac_save_LIBS=$LIBS
  17463. LIBS="-lX11 $LIBS"
  17464. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17465. /* end confdefs.h. */
  17466. #include <X11/Xlib.h>
  17467. int
  17468. main ()
  17469. {
  17470. XrmInitialize ()
  17471. ;
  17472. return 0;
  17473. }
  17474. _ACEOF
  17475. if ac_fn_c_try_link "$LINENO"; then :
  17476. # We can compile and link X programs with no special options.
  17477. ac_x_includes=
  17478. ac_x_libraries=
  17479. fi
  17480. rm -f core conftest.err conftest.$ac_objext \
  17481. conftest$ac_exeext conftest.$ac_ext
  17482. LIBS="$ac_save_LIBS"
  17483. # If that didn't work, only try xmkmf and filesystem searches
  17484. # for native compilation.
  17485. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no; then :
  17486. rm -f -r conftest.dir
  17487. if mkdir conftest.dir; then
  17488. cd conftest.dir
  17489. cat >Imakefile <<'_ACEOF'
  17490. incroot:
  17491. @echo incroot='${INCROOT}'
  17492. usrlibdir:
  17493. @echo usrlibdir='${USRLIBDIR}'
  17494. libdir:
  17495. @echo libdir='${LIBDIR}'
  17496. _ACEOF
  17497. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  17498. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  17499. for ac_var in incroot usrlibdir libdir; do
  17500. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  17501. done
  17502. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  17503. for ac_extension in a so sl dylib la dll; do
  17504. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  17505. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  17506. ac_im_usrlibdir=$ac_im_libdir; break
  17507. fi
  17508. done
  17509. # Screen out bogus values from the imake configuration. They are
  17510. # bogus both because they are the default anyway, and because
  17511. # using them would break gcc on systems where it needs fixed includes.
  17512. case $ac_im_incroot in
  17513. /usr/include) ac_x_includes= ;;
  17514. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  17515. esac
  17516. case $ac_im_usrlibdir in
  17517. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  17518. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  17519. esac
  17520. fi
  17521. cd ..
  17522. rm -f -r conftest.dir
  17523. fi
  17524. # Standard set of common directories for X headers.
  17525. # Check X11 before X11Rn because it is often a symlink to the current release.
  17526. ac_x_header_dirs='
  17527. /usr/X11/include
  17528. /usr/X11R7/include
  17529. /usr/X11R6/include
  17530. /usr/X11R5/include
  17531. /usr/X11R4/include
  17532. /usr/include/X11
  17533. /usr/include/X11R7
  17534. /usr/include/X11R6
  17535. /usr/include/X11R5
  17536. /usr/include/X11R4
  17537. /usr/local/X11/include
  17538. /usr/local/X11R7/include
  17539. /usr/local/X11R6/include
  17540. /usr/local/X11R5/include
  17541. /usr/local/X11R4/include
  17542. /usr/local/include/X11
  17543. /usr/local/include/X11R7
  17544. /usr/local/include/X11R6
  17545. /usr/local/include/X11R5
  17546. /usr/local/include/X11R4
  17547. /opt/X11/include
  17548. /usr/X386/include
  17549. /usr/x386/include
  17550. /usr/XFree86/include/X11
  17551. /usr/include
  17552. /usr/local/include
  17553. /usr/unsupported/include
  17554. /usr/athena/include
  17555. /usr/local/x11r5/include
  17556. /usr/lpp/Xamples/include
  17557. /usr/openwin/include
  17558. /usr/openwin/share/include'
  17559. if test "$ac_x_includes" = no; then
  17560. # Guess where to find include files, by looking for Xlib.h.
  17561. # First, try using that file with no special directory specified.
  17562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17563. /* end confdefs.h. */
  17564. #include <X11/Xlib.h>
  17565. _ACEOF
  17566. if ac_fn_c_try_cpp "$LINENO"; then :
  17567. # We can compile using X headers with no special include directory.
  17568. ac_x_includes=
  17569. else
  17570. for ac_dir in $ac_x_header_dirs; do
  17571. if test -r "$ac_dir/X11/Xlib.h"; then
  17572. ac_x_includes=$ac_dir
  17573. break
  17574. fi
  17575. done
  17576. fi
  17577. rm -f conftest.err conftest.i conftest.$ac_ext
  17578. fi # $ac_x_includes = no
  17579. if test "$ac_x_libraries" = no; then
  17580. # Check for the libraries.
  17581. # See if we find them without any special options.
  17582. # Don't add to $LIBS permanently.
  17583. ac_save_LIBS=$LIBS
  17584. LIBS="-lX11 $LIBS"
  17585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17586. /* end confdefs.h. */
  17587. #include <X11/Xlib.h>
  17588. int
  17589. main ()
  17590. {
  17591. XrmInitialize ()
  17592. ;
  17593. return 0;
  17594. }
  17595. _ACEOF
  17596. if ac_fn_c_try_link "$LINENO"; then :
  17597. LIBS=$ac_save_LIBS
  17598. # We can link X programs with no special library path.
  17599. ac_x_libraries=
  17600. else
  17601. LIBS=$ac_save_LIBS
  17602. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  17603. do
  17604. # Don't even attempt the hair of trying to link an X program!
  17605. for ac_extension in a so sl dylib la dll; do
  17606. if test -r "$ac_dir/libX11.$ac_extension"; then
  17607. ac_x_libraries=$ac_dir
  17608. break 2
  17609. fi
  17610. done
  17611. done
  17612. fi
  17613. rm -f core conftest.err conftest.$ac_objext \
  17614. conftest$ac_exeext conftest.$ac_ext
  17615. fi # $ac_x_libraries = no
  17616. fi
  17617. # Record the results.
  17618. case $ac_x_includes,$ac_x_libraries in #(
  17619. no,* | *,no | *\'*) :
  17620. # Didn't find X, or a directory has "'" in its name.
  17621. ac_cv_have_x="have_x=no" ;; #(
  17622. *) :
  17623. # Record where we found X for the cache.
  17624. ac_cv_have_x="have_x=yes\
  17625. ac_x_includes='$ac_x_includes'\
  17626. ac_x_libraries='$ac_x_libraries'" ;;
  17627. esac
  17628. fi
  17629. ;; #(
  17630. *) have_x=yes;;
  17631. esac
  17632. eval "$ac_cv_have_x"
  17633. fi # $with_x != no
  17634. if test "$have_x" != yes; then
  17635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  17636. $as_echo "$have_x" >&6; }
  17637. no_x=yes
  17638. else
  17639. # If each of the values was on the command line, it overrides each guess.
  17640. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  17641. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  17642. # Update the cache value to reflect the command line values.
  17643. ac_cv_have_x="have_x=yes\
  17644. ac_x_includes='$x_includes'\
  17645. ac_x_libraries='$x_libraries'"
  17646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  17647. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  17648. fi
  17649. if test "$no_x" = yes; then
  17650. # Not all programs may use this symbol, but it does not hurt to define it.
  17651. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  17652. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  17653. else
  17654. if test -n "$x_includes"; then
  17655. X_CFLAGS="$X_CFLAGS -I$x_includes"
  17656. fi
  17657. # It would also be nice to do this for all -L options, not just this one.
  17658. if test -n "$x_libraries"; then
  17659. X_LIBS="$X_LIBS -L$x_libraries"
  17660. # For Solaris; some versions of Sun CC require a space after -R and
  17661. # others require no space. Words are not sufficient . . . .
  17662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  17663. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  17664. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  17665. ac_xsave_c_werror_flag=$ac_c_werror_flag
  17666. ac_c_werror_flag=yes
  17667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17668. /* end confdefs.h. */
  17669. int
  17670. main ()
  17671. {
  17672. ;
  17673. return 0;
  17674. }
  17675. _ACEOF
  17676. if ac_fn_c_try_link "$LINENO"; then :
  17677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17678. $as_echo "no" >&6; }
  17679. X_LIBS="$X_LIBS -R$x_libraries"
  17680. else
  17681. LIBS="$ac_xsave_LIBS -R $x_libraries"
  17682. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17683. /* end confdefs.h. */
  17684. int
  17685. main ()
  17686. {
  17687. ;
  17688. return 0;
  17689. }
  17690. _ACEOF
  17691. if ac_fn_c_try_link "$LINENO"; then :
  17692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17693. $as_echo "yes" >&6; }
  17694. X_LIBS="$X_LIBS -R $x_libraries"
  17695. else
  17696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  17697. $as_echo "neither works" >&6; }
  17698. fi
  17699. rm -f core conftest.err conftest.$ac_objext \
  17700. conftest$ac_exeext conftest.$ac_ext
  17701. fi
  17702. rm -f core conftest.err conftest.$ac_objext \
  17703. conftest$ac_exeext conftest.$ac_ext
  17704. ac_c_werror_flag=$ac_xsave_c_werror_flag
  17705. LIBS=$ac_xsave_LIBS
  17706. fi
  17707. # Check for system-dependent libraries X programs must link with.
  17708. # Do this before checking for the system-independent R6 libraries
  17709. # (-lICE), since we may need -lsocket or whatever for X linking.
  17710. if test "$ISC" = yes; then
  17711. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  17712. else
  17713. # Martyn Johnson says this is needed for Ultrix, if the X
  17714. # libraries were built with DECnet support. And Karl Berry says
  17715. # the Alpha needs dnet_stub (dnet does not exist).
  17716. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  17717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17718. /* end confdefs.h. */
  17719. /* Override any GCC internal prototype to avoid an error.
  17720. Use char because int might match the return type of a GCC
  17721. builtin and then its argument prototype would still apply. */
  17722. #ifdef __cplusplus
  17723. extern "C"
  17724. #endif
  17725. char XOpenDisplay ();
  17726. int
  17727. main ()
  17728. {
  17729. return XOpenDisplay ();
  17730. ;
  17731. return 0;
  17732. }
  17733. _ACEOF
  17734. if ac_fn_c_try_link "$LINENO"; then :
  17735. else
  17736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  17737. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  17738. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  17739. $as_echo_n "(cached) " >&6
  17740. else
  17741. ac_check_lib_save_LIBS=$LIBS
  17742. LIBS="-ldnet $LIBS"
  17743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17744. /* end confdefs.h. */
  17745. /* Override any GCC internal prototype to avoid an error.
  17746. Use char because int might match the return type of a GCC
  17747. builtin and then its argument prototype would still apply. */
  17748. #ifdef __cplusplus
  17749. extern "C"
  17750. #endif
  17751. char dnet_ntoa ();
  17752. int
  17753. main ()
  17754. {
  17755. return dnet_ntoa ();
  17756. ;
  17757. return 0;
  17758. }
  17759. _ACEOF
  17760. if ac_fn_c_try_link "$LINENO"; then :
  17761. ac_cv_lib_dnet_dnet_ntoa=yes
  17762. else
  17763. ac_cv_lib_dnet_dnet_ntoa=no
  17764. fi
  17765. rm -f core conftest.err conftest.$ac_objext \
  17766. conftest$ac_exeext conftest.$ac_ext
  17767. LIBS=$ac_check_lib_save_LIBS
  17768. fi
  17769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  17770. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  17771. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  17772. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  17773. fi
  17774. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  17775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  17776. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  17777. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  17778. $as_echo_n "(cached) " >&6
  17779. else
  17780. ac_check_lib_save_LIBS=$LIBS
  17781. LIBS="-ldnet_stub $LIBS"
  17782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17783. /* end confdefs.h. */
  17784. /* Override any GCC internal prototype to avoid an error.
  17785. Use char because int might match the return type of a GCC
  17786. builtin and then its argument prototype would still apply. */
  17787. #ifdef __cplusplus
  17788. extern "C"
  17789. #endif
  17790. char dnet_ntoa ();
  17791. int
  17792. main ()
  17793. {
  17794. return dnet_ntoa ();
  17795. ;
  17796. return 0;
  17797. }
  17798. _ACEOF
  17799. if ac_fn_c_try_link "$LINENO"; then :
  17800. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  17801. else
  17802. ac_cv_lib_dnet_stub_dnet_ntoa=no
  17803. fi
  17804. rm -f core conftest.err conftest.$ac_objext \
  17805. conftest$ac_exeext conftest.$ac_ext
  17806. LIBS=$ac_check_lib_save_LIBS
  17807. fi
  17808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  17809. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  17810. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  17811. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  17812. fi
  17813. fi
  17814. fi
  17815. rm -f core conftest.err conftest.$ac_objext \
  17816. conftest$ac_exeext conftest.$ac_ext
  17817. LIBS="$ac_xsave_LIBS"
  17818. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  17819. # to get the SysV transport functions.
  17820. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  17821. # needs -lnsl.
  17822. # The nsl library prevents programs from opening the X display
  17823. # on Irix 5.2, according to T.E. Dickey.
  17824. # The functions gethostbyname, getservbyname, and inet_addr are
  17825. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  17826. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  17827. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  17828. fi
  17829. if test $ac_cv_func_gethostbyname = no; then
  17830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  17831. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  17832. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  17833. $as_echo_n "(cached) " >&6
  17834. else
  17835. ac_check_lib_save_LIBS=$LIBS
  17836. LIBS="-lnsl $LIBS"
  17837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17838. /* end confdefs.h. */
  17839. /* Override any GCC internal prototype to avoid an error.
  17840. Use char because int might match the return type of a GCC
  17841. builtin and then its argument prototype would still apply. */
  17842. #ifdef __cplusplus
  17843. extern "C"
  17844. #endif
  17845. char gethostbyname ();
  17846. int
  17847. main ()
  17848. {
  17849. return gethostbyname ();
  17850. ;
  17851. return 0;
  17852. }
  17853. _ACEOF
  17854. if ac_fn_c_try_link "$LINENO"; then :
  17855. ac_cv_lib_nsl_gethostbyname=yes
  17856. else
  17857. ac_cv_lib_nsl_gethostbyname=no
  17858. fi
  17859. rm -f core conftest.err conftest.$ac_objext \
  17860. conftest$ac_exeext conftest.$ac_ext
  17861. LIBS=$ac_check_lib_save_LIBS
  17862. fi
  17863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  17864. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  17865. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  17866. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  17867. fi
  17868. if test $ac_cv_lib_nsl_gethostbyname = no; then
  17869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  17870. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  17871. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  17872. $as_echo_n "(cached) " >&6
  17873. else
  17874. ac_check_lib_save_LIBS=$LIBS
  17875. LIBS="-lbsd $LIBS"
  17876. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17877. /* end confdefs.h. */
  17878. /* Override any GCC internal prototype to avoid an error.
  17879. Use char because int might match the return type of a GCC
  17880. builtin and then its argument prototype would still apply. */
  17881. #ifdef __cplusplus
  17882. extern "C"
  17883. #endif
  17884. char gethostbyname ();
  17885. int
  17886. main ()
  17887. {
  17888. return gethostbyname ();
  17889. ;
  17890. return 0;
  17891. }
  17892. _ACEOF
  17893. if ac_fn_c_try_link "$LINENO"; then :
  17894. ac_cv_lib_bsd_gethostbyname=yes
  17895. else
  17896. ac_cv_lib_bsd_gethostbyname=no
  17897. fi
  17898. rm -f core conftest.err conftest.$ac_objext \
  17899. conftest$ac_exeext conftest.$ac_ext
  17900. LIBS=$ac_check_lib_save_LIBS
  17901. fi
  17902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17903. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  17904. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  17905. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  17906. fi
  17907. fi
  17908. fi
  17909. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  17910. # socket/setsockopt and other routines are undefined under SCO ODT
  17911. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  17912. # on later versions), says Simon Leinen: it contains gethostby*
  17913. # variants that don't use the name server (or something). -lsocket
  17914. # must be given before -lnsl if both are needed. We assume that
  17915. # if connect needs -lnsl, so does gethostbyname.
  17916. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  17917. if test "x$ac_cv_func_connect" = xyes; then :
  17918. fi
  17919. if test $ac_cv_func_connect = no; then
  17920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17921. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17922. if ${ac_cv_lib_socket_connect+:} false; then :
  17923. $as_echo_n "(cached) " >&6
  17924. else
  17925. ac_check_lib_save_LIBS=$LIBS
  17926. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17928. /* end confdefs.h. */
  17929. /* Override any GCC internal prototype to avoid an error.
  17930. Use char because int might match the return type of a GCC
  17931. builtin and then its argument prototype would still apply. */
  17932. #ifdef __cplusplus
  17933. extern "C"
  17934. #endif
  17935. char connect ();
  17936. int
  17937. main ()
  17938. {
  17939. return connect ();
  17940. ;
  17941. return 0;
  17942. }
  17943. _ACEOF
  17944. if ac_fn_c_try_link "$LINENO"; then :
  17945. ac_cv_lib_socket_connect=yes
  17946. else
  17947. ac_cv_lib_socket_connect=no
  17948. fi
  17949. rm -f core conftest.err conftest.$ac_objext \
  17950. conftest$ac_exeext conftest.$ac_ext
  17951. LIBS=$ac_check_lib_save_LIBS
  17952. fi
  17953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17954. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17955. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17956. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17957. fi
  17958. fi
  17959. # Guillermo Gomez says -lposix is necessary on A/UX.
  17960. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17961. if test "x$ac_cv_func_remove" = xyes; then :
  17962. fi
  17963. if test $ac_cv_func_remove = no; then
  17964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17965. $as_echo_n "checking for remove in -lposix... " >&6; }
  17966. if ${ac_cv_lib_posix_remove+:} false; then :
  17967. $as_echo_n "(cached) " >&6
  17968. else
  17969. ac_check_lib_save_LIBS=$LIBS
  17970. LIBS="-lposix $LIBS"
  17971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17972. /* end confdefs.h. */
  17973. /* Override any GCC internal prototype to avoid an error.
  17974. Use char because int might match the return type of a GCC
  17975. builtin and then its argument prototype would still apply. */
  17976. #ifdef __cplusplus
  17977. extern "C"
  17978. #endif
  17979. char remove ();
  17980. int
  17981. main ()
  17982. {
  17983. return remove ();
  17984. ;
  17985. return 0;
  17986. }
  17987. _ACEOF
  17988. if ac_fn_c_try_link "$LINENO"; then :
  17989. ac_cv_lib_posix_remove=yes
  17990. else
  17991. ac_cv_lib_posix_remove=no
  17992. fi
  17993. rm -f core conftest.err conftest.$ac_objext \
  17994. conftest$ac_exeext conftest.$ac_ext
  17995. LIBS=$ac_check_lib_save_LIBS
  17996. fi
  17997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17998. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17999. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  18000. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  18001. fi
  18002. fi
  18003. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  18004. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  18005. if test "x$ac_cv_func_shmat" = xyes; then :
  18006. fi
  18007. if test $ac_cv_func_shmat = no; then
  18008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  18009. $as_echo_n "checking for shmat in -lipc... " >&6; }
  18010. if ${ac_cv_lib_ipc_shmat+:} false; then :
  18011. $as_echo_n "(cached) " >&6
  18012. else
  18013. ac_check_lib_save_LIBS=$LIBS
  18014. LIBS="-lipc $LIBS"
  18015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18016. /* end confdefs.h. */
  18017. /* Override any GCC internal prototype to avoid an error.
  18018. Use char because int might match the return type of a GCC
  18019. builtin and then its argument prototype would still apply. */
  18020. #ifdef __cplusplus
  18021. extern "C"
  18022. #endif
  18023. char shmat ();
  18024. int
  18025. main ()
  18026. {
  18027. return shmat ();
  18028. ;
  18029. return 0;
  18030. }
  18031. _ACEOF
  18032. if ac_fn_c_try_link "$LINENO"; then :
  18033. ac_cv_lib_ipc_shmat=yes
  18034. else
  18035. ac_cv_lib_ipc_shmat=no
  18036. fi
  18037. rm -f core conftest.err conftest.$ac_objext \
  18038. conftest$ac_exeext conftest.$ac_ext
  18039. LIBS=$ac_check_lib_save_LIBS
  18040. fi
  18041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  18042. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  18043. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  18044. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  18045. fi
  18046. fi
  18047. fi
  18048. # Check for libraries that X11R6 Xt/Xaw programs need.
  18049. ac_save_LDFLAGS=$LDFLAGS
  18050. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  18051. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  18052. # check for ICE first), but we must link in the order -lSM -lICE or
  18053. # we get undefined symbols. So assume we have SM if we have ICE.
  18054. # These have to be linked with before -lX11, unlike the other
  18055. # libraries we check for below, so use a different variable.
  18056. # John Interrante, Karl Berry
  18057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  18058. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  18059. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  18060. $as_echo_n "(cached) " >&6
  18061. else
  18062. ac_check_lib_save_LIBS=$LIBS
  18063. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  18064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18065. /* end confdefs.h. */
  18066. /* Override any GCC internal prototype to avoid an error.
  18067. Use char because int might match the return type of a GCC
  18068. builtin and then its argument prototype would still apply. */
  18069. #ifdef __cplusplus
  18070. extern "C"
  18071. #endif
  18072. char IceConnectionNumber ();
  18073. int
  18074. main ()
  18075. {
  18076. return IceConnectionNumber ();
  18077. ;
  18078. return 0;
  18079. }
  18080. _ACEOF
  18081. if ac_fn_c_try_link "$LINENO"; then :
  18082. ac_cv_lib_ICE_IceConnectionNumber=yes
  18083. else
  18084. ac_cv_lib_ICE_IceConnectionNumber=no
  18085. fi
  18086. rm -f core conftest.err conftest.$ac_objext \
  18087. conftest$ac_exeext conftest.$ac_ext
  18088. LIBS=$ac_check_lib_save_LIBS
  18089. fi
  18090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  18091. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  18092. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  18093. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  18094. fi
  18095. LDFLAGS=$ac_save_LDFLAGS
  18096. fi
  18097. if test x$have_x = xyes; then
  18098. # Check whether --enable-x11-shared was given.
  18099. if test "${enable_x11_shared+set}" = set; then :
  18100. enableval=$enable_x11_shared;
  18101. else
  18102. enable_x11_shared=maybe
  18103. fi
  18104. case "$host" in
  18105. *-*-darwin*)
  18106. # Apple now puts this in /opt/X11
  18107. x11_lib='/opt/X11/lib/libX11.6.dylib'
  18108. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  18109. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  18110. xinerama_lib='/opt/X11/lib/libXinerama.1.dylib'
  18111. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  18112. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  18113. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  18114. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  18115. xss_lib='/opt/X11/lib/libXss.1.dylib'
  18116. xvidmode_lib='/opt/X11/lib/libXxf86vm.1.dylib'
  18117. ;;
  18118. *-*-openbsd*)
  18119. x11_lib='libX11.so'
  18120. x11ext_lib='libXext.so'
  18121. xcursor_lib='libXcursor.so'
  18122. xinerama_lib='libXinerama.so'
  18123. xinput_lib='libXi.so'
  18124. xfixes_lib='libXfixes.so'
  18125. xrandr_lib='libXrandr.so'
  18126. xrender_lib='libXrender.so'
  18127. xss_lib='libXss.so'
  18128. xvidmode_lib='libXxf86vm.so'
  18129. ;;
  18130. *)
  18131. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18132. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18133. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18134. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18135. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18136. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18137. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18138. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18139. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18140. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18141. ;;
  18142. esac
  18143. if test x$ac_cv_func_shmat != xyes; then
  18144. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  18145. fi
  18146. CFLAGS="$CFLAGS $X_CFLAGS"
  18147. LDFLAGS="$LDFLAGS $X_LIBS"
  18148. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  18149. #include <X11/Xproto.h>
  18150. "
  18151. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  18152. have_xext_h_hdr=yes
  18153. else
  18154. have_xext_h_hdr=no
  18155. fi
  18156. if test x$have_xext_h_hdr != xyes; then
  18157. as_fn_error $? "
  18158. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  18159. " "$LINENO" 5
  18160. fi
  18161. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  18162. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  18163. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  18164. # Needed so SDL applications can include SDL_syswm.h
  18165. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  18166. if test x$enable_x11_shared = xmaybe; then
  18167. enable_x11_shared=yes
  18168. fi
  18169. if test x$have_loadso != xyes && \
  18170. test x$enable_x11_shared = xyes; then
  18171. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  18172. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  18173. enable_x11_shared=no
  18174. fi
  18175. if test x$have_loadso = xyes && \
  18176. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  18177. echo "-- dynamic libX11 -> $x11_lib"
  18178. echo "-- dynamic libX11ext -> $x11ext_lib"
  18179. cat >>confdefs.h <<_ACEOF
  18180. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  18181. _ACEOF
  18182. cat >>confdefs.h <<_ACEOF
  18183. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  18184. _ACEOF
  18185. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  18186. else
  18187. enable_x11_shared=no
  18188. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  18189. SUMMARY_video="${SUMMARY_video} x11"
  18190. fi
  18191. have_video=yes
  18192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  18193. $as_echo_n "checking for XGenericEvent... " >&6; }
  18194. have_XGenericEvent=no
  18195. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18196. /* end confdefs.h. */
  18197. #include <X11/Xlib.h>
  18198. int
  18199. main ()
  18200. {
  18201. Display *display;
  18202. XEvent event;
  18203. XGenericEventCookie *cookie = &event.xcookie;
  18204. XNextEvent(display, &event);
  18205. XGetEventData(display, cookie);
  18206. XFreeEventData(display, cookie);
  18207. ;
  18208. return 0;
  18209. }
  18210. _ACEOF
  18211. if ac_fn_c_try_compile "$LINENO"; then :
  18212. have_XGenericEvent=yes
  18213. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  18214. fi
  18215. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  18217. $as_echo "$have_XGenericEvent" >&6; }
  18218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  18219. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  18220. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  18221. $as_echo_n "(cached) " >&6
  18222. else
  18223. ac_check_lib_save_LIBS=$LIBS
  18224. LIBS="-lX11 $LIBS"
  18225. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18226. /* end confdefs.h. */
  18227. /* Override any GCC internal prototype to avoid an error.
  18228. Use char because int might match the return type of a GCC
  18229. builtin and then its argument prototype would still apply. */
  18230. #ifdef __cplusplus
  18231. extern "C"
  18232. #endif
  18233. char XkbKeycodeToKeysym ();
  18234. int
  18235. main ()
  18236. {
  18237. return XkbKeycodeToKeysym ();
  18238. ;
  18239. return 0;
  18240. }
  18241. _ACEOF
  18242. if ac_fn_c_try_link "$LINENO"; then :
  18243. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  18244. else
  18245. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  18246. fi
  18247. rm -f core conftest.err conftest.$ac_objext \
  18248. conftest$ac_exeext conftest.$ac_ext
  18249. LIBS=$ac_check_lib_save_LIBS
  18250. fi
  18251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  18252. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  18253. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  18254. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  18255. fi
  18256. # Check whether --enable-video-x11-xcursor was given.
  18257. if test "${enable_video_x11_xcursor+set}" = set; then :
  18258. enableval=$enable_video_x11_xcursor;
  18259. else
  18260. enable_video_x11_xcursor=yes
  18261. fi
  18262. if test x$enable_video_x11_xcursor = xyes; then
  18263. definitely_enable_video_x11_xcursor=no
  18264. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  18265. "
  18266. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  18267. have_xcursor_h_hdr=yes
  18268. else
  18269. have_xcursor_h_hdr=no
  18270. fi
  18271. if test x$have_xcursor_h_hdr = xyes; then
  18272. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  18273. echo "-- dynamic libXcursor -> $xcursor_lib"
  18274. cat >>confdefs.h <<_ACEOF
  18275. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  18276. _ACEOF
  18277. definitely_enable_video_x11_xcursor=yes
  18278. else
  18279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  18280. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  18281. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  18282. $as_echo_n "(cached) " >&6
  18283. else
  18284. ac_check_lib_save_LIBS=$LIBS
  18285. LIBS="-lXcursor $LIBS"
  18286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18287. /* end confdefs.h. */
  18288. /* Override any GCC internal prototype to avoid an error.
  18289. Use char because int might match the return type of a GCC
  18290. builtin and then its argument prototype would still apply. */
  18291. #ifdef __cplusplus
  18292. extern "C"
  18293. #endif
  18294. char XcursorImageCreate ();
  18295. int
  18296. main ()
  18297. {
  18298. return XcursorImageCreate ();
  18299. ;
  18300. return 0;
  18301. }
  18302. _ACEOF
  18303. if ac_fn_c_try_link "$LINENO"; then :
  18304. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  18305. else
  18306. ac_cv_lib_Xcursor_XcursorImageCreate=no
  18307. fi
  18308. rm -f core conftest.err conftest.$ac_objext \
  18309. conftest$ac_exeext conftest.$ac_ext
  18310. LIBS=$ac_check_lib_save_LIBS
  18311. fi
  18312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  18313. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  18314. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  18315. have_xcursor_lib=yes
  18316. fi
  18317. if test x$have_xcursor_lib = xyes ; then
  18318. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  18319. definitely_enable_video_x11_xcursor=yes
  18320. fi
  18321. fi
  18322. fi
  18323. fi
  18324. if test x$definitely_enable_video_x11_xcursor = xyes; then
  18325. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  18326. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  18327. fi
  18328. # Check whether --enable-video-x11-xdbe was given.
  18329. if test "${enable_video_x11_xdbe+set}" = set; then :
  18330. enableval=$enable_video_x11_xdbe;
  18331. else
  18332. enable_video_x11_xdbe=yes
  18333. fi
  18334. if test x$enable_video_x11_xdbe = xyes; then
  18335. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  18336. "
  18337. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  18338. have_dbe_h_hdr=yes
  18339. else
  18340. have_dbe_h_hdr=no
  18341. fi
  18342. if test x$have_dbe_h_hdr = xyes; then
  18343. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  18344. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  18345. fi
  18346. fi
  18347. # Check whether --enable-video-x11-xinerama was given.
  18348. if test "${enable_video_x11_xinerama+set}" = set; then :
  18349. enableval=$enable_video_x11_xinerama;
  18350. else
  18351. enable_video_x11_xinerama=yes
  18352. fi
  18353. if test x$enable_video_x11_xinerama = xyes; then
  18354. definitely_enable_video_x11_xinerama=no
  18355. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  18356. "
  18357. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  18358. have_xinerama_h_hdr=yes
  18359. else
  18360. have_xinerama_h_hdr=no
  18361. fi
  18362. if test x$have_xinerama_h_hdr = xyes; then
  18363. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  18364. echo "-- dynamic libXinerama -> $xinerama_lib"
  18365. cat >>confdefs.h <<_ACEOF
  18366. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  18367. _ACEOF
  18368. definitely_enable_video_x11_xinerama=yes
  18369. else
  18370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  18371. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  18372. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  18373. $as_echo_n "(cached) " >&6
  18374. else
  18375. ac_check_lib_save_LIBS=$LIBS
  18376. LIBS="-lXinerama $LIBS"
  18377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18378. /* end confdefs.h. */
  18379. /* Override any GCC internal prototype to avoid an error.
  18380. Use char because int might match the return type of a GCC
  18381. builtin and then its argument prototype would still apply. */
  18382. #ifdef __cplusplus
  18383. extern "C"
  18384. #endif
  18385. char XineramaQueryExtension ();
  18386. int
  18387. main ()
  18388. {
  18389. return XineramaQueryExtension ();
  18390. ;
  18391. return 0;
  18392. }
  18393. _ACEOF
  18394. if ac_fn_c_try_link "$LINENO"; then :
  18395. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  18396. else
  18397. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  18398. fi
  18399. rm -f core conftest.err conftest.$ac_objext \
  18400. conftest$ac_exeext conftest.$ac_ext
  18401. LIBS=$ac_check_lib_save_LIBS
  18402. fi
  18403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  18404. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  18405. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  18406. have_xinerama_lib=yes
  18407. fi
  18408. if test x$have_xinerama_lib = xyes ; then
  18409. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  18410. definitely_enable_video_x11_xinerama=yes
  18411. fi
  18412. fi
  18413. fi
  18414. fi
  18415. if test x$definitely_enable_video_x11_xinerama = xyes; then
  18416. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  18417. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  18418. fi
  18419. # Check whether --enable-video-x11-xinput was given.
  18420. if test "${enable_video_x11_xinput+set}" = set; then :
  18421. enableval=$enable_video_x11_xinput;
  18422. else
  18423. enable_video_x11_xinput=yes
  18424. fi
  18425. if test x$enable_video_x11_xinput = xyes; then
  18426. definitely_enable_video_x11_xinput=no
  18427. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  18428. "
  18429. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  18430. have_xinput_h_hdr=yes
  18431. else
  18432. have_xinput_h_hdr=no
  18433. fi
  18434. if test x$have_xinput_h_hdr = xyes; then
  18435. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  18436. echo "-- dynamic libXi -> $xinput_lib"
  18437. cat >>confdefs.h <<_ACEOF
  18438. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  18439. _ACEOF
  18440. definitely_enable_video_x11_xinput=yes
  18441. else
  18442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  18443. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  18444. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  18445. $as_echo_n "(cached) " >&6
  18446. else
  18447. ac_check_lib_save_LIBS=$LIBS
  18448. LIBS="-lXi $LIBS"
  18449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18450. /* end confdefs.h. */
  18451. /* Override any GCC internal prototype to avoid an error.
  18452. Use char because int might match the return type of a GCC
  18453. builtin and then its argument prototype would still apply. */
  18454. #ifdef __cplusplus
  18455. extern "C"
  18456. #endif
  18457. char XOpenDevice ();
  18458. int
  18459. main ()
  18460. {
  18461. return XOpenDevice ();
  18462. ;
  18463. return 0;
  18464. }
  18465. _ACEOF
  18466. if ac_fn_c_try_link "$LINENO"; then :
  18467. ac_cv_lib_Xi_XOpenDevice=yes
  18468. else
  18469. ac_cv_lib_Xi_XOpenDevice=no
  18470. fi
  18471. rm -f core conftest.err conftest.$ac_objext \
  18472. conftest$ac_exeext conftest.$ac_ext
  18473. LIBS=$ac_check_lib_save_LIBS
  18474. fi
  18475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  18476. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  18477. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  18478. have_xinput_lib=yes
  18479. fi
  18480. if test x$have_xinput_lib = xyes ; then
  18481. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  18482. definitely_enable_video_x11_xinput=yes
  18483. fi
  18484. fi
  18485. fi
  18486. fi
  18487. if test x$definitely_enable_video_x11_xinput = xyes; then
  18488. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  18489. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  18490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  18491. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  18492. have_xinput2_multitouch=no
  18493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18494. /* end confdefs.h. */
  18495. #include <X11/Xlib.h>
  18496. #include <X11/Xproto.h>
  18497. #include <X11/extensions/XInput2.h>
  18498. int
  18499. main ()
  18500. {
  18501. int event_type = XI_TouchBegin;
  18502. XITouchClassInfo *t;
  18503. ;
  18504. return 0;
  18505. }
  18506. _ACEOF
  18507. if ac_fn_c_try_compile "$LINENO"; then :
  18508. have_xinput2_multitouch=yes
  18509. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  18510. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  18511. fi
  18512. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  18514. $as_echo "$have_xinput2_multitouch" >&6; }
  18515. fi
  18516. # Check whether --enable-video-x11-xfixes was given.
  18517. if test "${enable_video_x11_xfixes+set}" = set; then :
  18518. enableval=$enable_video_x11_xfixes;
  18519. else
  18520. enable_video_x11_xfixes=yes
  18521. fi
  18522. if test x$enable_video_x11_xfixes = xyes; then
  18523. definitely_enable_video_x11_xfixes=no
  18524. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  18525. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xfixes.h" "ac_cv_header_X11_extensions_Xfixes_h" "#include <X11/Xlib.h>
  18526. #include <X11/Xproto.h>
  18527. #include <X11/extensions/XInput2.h>
  18528. "
  18529. if test "x$ac_cv_header_X11_extensions_Xfixes_h" = xyes; then :
  18530. have_xfixes_h_hdr=yes
  18531. else
  18532. have_xfixes_h_hdr=no
  18533. fi
  18534. if test x$have_xfixes_h_hdr = xyes; then
  18535. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  18536. echo "-- dynamic libXfixes -> $xfixes_lib"
  18537. cat >>confdefs.h <<_ACEOF
  18538. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES "$xfixes_lib"
  18539. _ACEOF
  18540. definitely_enable_video_x11_xfixes=yes
  18541. else
  18542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  18543. $as_echo_n "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  18544. if ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+:} false; then :
  18545. $as_echo_n "(cached) " >&6
  18546. else
  18547. ac_check_lib_save_LIBS=$LIBS
  18548. LIBS="-lXfixes $LIBS"
  18549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18550. /* end confdefs.h. */
  18551. /* Override any GCC internal prototype to avoid an error.
  18552. Use char because int might match the return type of a GCC
  18553. builtin and then its argument prototype would still apply. */
  18554. #ifdef __cplusplus
  18555. extern "C"
  18556. #endif
  18557. char XFixesCreatePointerBarrier ();
  18558. int
  18559. main ()
  18560. {
  18561. return XFixesCreatePointerBarrier ();
  18562. ;
  18563. return 0;
  18564. }
  18565. _ACEOF
  18566. if ac_fn_c_try_link "$LINENO"; then :
  18567. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  18568. else
  18569. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  18570. fi
  18571. rm -f core conftest.err conftest.$ac_objext \
  18572. conftest$ac_exeext conftest.$ac_ext
  18573. LIBS=$ac_check_lib_save_LIBS
  18574. fi
  18575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  18576. $as_echo "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  18577. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes; then :
  18578. have_xfixes_lib=yes
  18579. fi
  18580. if test x$have_xfixes_lib = xyes ; then
  18581. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  18582. definitely_enable_video_x11_xfixes=yes
  18583. fi
  18584. fi
  18585. fi
  18586. fi
  18587. if test x$definitely_enable_video_x11_xfixes = xyes; then
  18588. $as_echo "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  18589. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  18590. fi
  18591. # Check whether --enable-video-x11-xrandr was given.
  18592. if test "${enable_video_x11_xrandr+set}" = set; then :
  18593. enableval=$enable_video_x11_xrandr;
  18594. else
  18595. enable_video_x11_xrandr=yes
  18596. fi
  18597. if test x$enable_video_x11_xrandr = xyes; then
  18598. definitely_enable_video_x11_xrandr=no
  18599. have_xrandr_h_hdr=no
  18600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18601. /* end confdefs.h. */
  18602. #include <X11/Xlib.h>
  18603. #include <X11/extensions/Xrandr.h>
  18604. int
  18605. main ()
  18606. {
  18607. XRRScreenResources *res = NULL;
  18608. ;
  18609. return 0;
  18610. }
  18611. _ACEOF
  18612. if ac_fn_c_try_compile "$LINENO"; then :
  18613. have_xrandr_h_hdr=yes
  18614. fi
  18615. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18616. if test x$have_xrandr_h_hdr = xyes; then
  18617. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  18618. echo "-- dynamic libXrandr -> $xrandr_lib"
  18619. cat >>confdefs.h <<_ACEOF
  18620. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  18621. _ACEOF
  18622. definitely_enable_video_x11_xrandr=yes
  18623. else
  18624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  18625. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  18626. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  18627. $as_echo_n "(cached) " >&6
  18628. else
  18629. ac_check_lib_save_LIBS=$LIBS
  18630. LIBS="-lXrandr $LIBS"
  18631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18632. /* end confdefs.h. */
  18633. /* Override any GCC internal prototype to avoid an error.
  18634. Use char because int might match the return type of a GCC
  18635. builtin and then its argument prototype would still apply. */
  18636. #ifdef __cplusplus
  18637. extern "C"
  18638. #endif
  18639. char XRRQueryExtension ();
  18640. int
  18641. main ()
  18642. {
  18643. return XRRQueryExtension ();
  18644. ;
  18645. return 0;
  18646. }
  18647. _ACEOF
  18648. if ac_fn_c_try_link "$LINENO"; then :
  18649. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  18650. else
  18651. ac_cv_lib_Xrandr_XRRQueryExtension=no
  18652. fi
  18653. rm -f core conftest.err conftest.$ac_objext \
  18654. conftest$ac_exeext conftest.$ac_ext
  18655. LIBS=$ac_check_lib_save_LIBS
  18656. fi
  18657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  18658. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  18659. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  18660. have_xrandr_lib=yes
  18661. fi
  18662. if test x$have_xrandr_lib = xyes ; then
  18663. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  18664. definitely_enable_video_x11_xrandr=yes
  18665. fi
  18666. fi
  18667. fi
  18668. fi
  18669. if test x$definitely_enable_video_x11_xrandr = xyes; then
  18670. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  18671. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  18672. fi
  18673. # Check whether --enable-video-x11-scrnsaver was given.
  18674. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  18675. enableval=$enable_video_x11_scrnsaver;
  18676. else
  18677. enable_video_x11_scrnsaver=yes
  18678. fi
  18679. if test x$enable_video_x11_scrnsaver = xyes; then
  18680. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  18681. "
  18682. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  18683. have_scrnsaver_h_hdr=yes
  18684. else
  18685. have_scrnsaver_h_hdr=no
  18686. fi
  18687. if test x$have_scrnsaver_h_hdr = xyes; then
  18688. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  18689. echo "-- dynamic libXss -> $xss_lib"
  18690. cat >>confdefs.h <<_ACEOF
  18691. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  18692. _ACEOF
  18693. definitely_enable_video_x11_scrnsaver=yes
  18694. else
  18695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  18696. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  18697. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  18698. $as_echo_n "(cached) " >&6
  18699. else
  18700. ac_check_lib_save_LIBS=$LIBS
  18701. LIBS="-lXss $LIBS"
  18702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18703. /* end confdefs.h. */
  18704. /* Override any GCC internal prototype to avoid an error.
  18705. Use char because int might match the return type of a GCC
  18706. builtin and then its argument prototype would still apply. */
  18707. #ifdef __cplusplus
  18708. extern "C"
  18709. #endif
  18710. char XScreenSaverSuspend ();
  18711. int
  18712. main ()
  18713. {
  18714. return XScreenSaverSuspend ();
  18715. ;
  18716. return 0;
  18717. }
  18718. _ACEOF
  18719. if ac_fn_c_try_link "$LINENO"; then :
  18720. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  18721. else
  18722. ac_cv_lib_Xss_XScreenSaverSuspend=no
  18723. fi
  18724. rm -f core conftest.err conftest.$ac_objext \
  18725. conftest$ac_exeext conftest.$ac_ext
  18726. LIBS=$ac_check_lib_save_LIBS
  18727. fi
  18728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  18729. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  18730. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  18731. have_xss_lib=yes
  18732. fi
  18733. if test x$have_xss_lib = xyes ; then
  18734. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  18735. definitely_enable_video_x11_scrnsaver=yes
  18736. fi
  18737. fi
  18738. fi
  18739. fi
  18740. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  18741. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  18742. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  18743. fi
  18744. # Check whether --enable-video-x11-xshape was given.
  18745. if test "${enable_video_x11_xshape+set}" = set; then :
  18746. enableval=$enable_video_x11_xshape;
  18747. else
  18748. enable_video_x11_xshape=yes
  18749. fi
  18750. if test x$enable_video_x11_xshape = xyes; then
  18751. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  18752. "
  18753. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  18754. have_shape_h_hdr=yes
  18755. else
  18756. have_shape_h_hdr=no
  18757. fi
  18758. if test x$have_shape_h_hdr = xyes; then
  18759. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  18760. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  18761. fi
  18762. fi
  18763. # Check whether --enable-video-x11-vm was given.
  18764. if test "${enable_video_x11_vm+set}" = set; then :
  18765. enableval=$enable_video_x11_vm;
  18766. else
  18767. enable_video_x11_vm=yes
  18768. fi
  18769. if test x$enable_video_x11_vm = xyes; then
  18770. definitely_enable_video_x11_vm=no
  18771. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  18772. "
  18773. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  18774. have_vm_h_hdr=yes
  18775. else
  18776. have_vm_h_hdr=no
  18777. fi
  18778. if test x$have_vm_h_hdr = xyes; then
  18779. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  18780. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  18781. cat >>confdefs.h <<_ACEOF
  18782. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  18783. _ACEOF
  18784. definitely_enable_video_x11_vm=yes
  18785. else
  18786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  18787. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  18788. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  18789. $as_echo_n "(cached) " >&6
  18790. else
  18791. ac_check_lib_save_LIBS=$LIBS
  18792. LIBS="-lXxf86vm $LIBS"
  18793. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18794. /* end confdefs.h. */
  18795. /* Override any GCC internal prototype to avoid an error.
  18796. Use char because int might match the return type of a GCC
  18797. builtin and then its argument prototype would still apply. */
  18798. #ifdef __cplusplus
  18799. extern "C"
  18800. #endif
  18801. char XF86VidModeQueryVersion ();
  18802. int
  18803. main ()
  18804. {
  18805. return XF86VidModeQueryVersion ();
  18806. ;
  18807. return 0;
  18808. }
  18809. _ACEOF
  18810. if ac_fn_c_try_link "$LINENO"; then :
  18811. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  18812. else
  18813. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  18814. fi
  18815. rm -f core conftest.err conftest.$ac_objext \
  18816. conftest$ac_exeext conftest.$ac_ext
  18817. LIBS=$ac_check_lib_save_LIBS
  18818. fi
  18819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  18820. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  18821. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  18822. have_vm_lib=yes
  18823. fi
  18824. if test x$have_vm_lib = xyes ; then
  18825. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  18826. definitely_enable_video_x11_vm=yes
  18827. fi
  18828. fi
  18829. fi
  18830. fi
  18831. if test x$definitely_enable_video_x11_vm = xyes; then
  18832. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  18833. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  18834. fi
  18835. fi
  18836. fi
  18837. if test x$have_x != xyes; then
  18838. # Prevent Mesa from including X11 headers
  18839. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  18840. fi
  18841. }
  18842. CheckVivanteVideo()
  18843. {
  18844. # Check whether --enable-video-vivante was given.
  18845. if test "${enable_video_vivante+set}" = set; then :
  18846. enableval=$enable_video_vivante;
  18847. else
  18848. enable_video_vivante=yes
  18849. fi
  18850. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  18851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  18852. $as_echo_n "checking for Vivante VDK API... " >&6; }
  18853. have_vivante_vdk=no
  18854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18855. /* end confdefs.h. */
  18856. #define LINUX
  18857. #define EGL_API_FB
  18858. #include <gc_vdk.h>
  18859. int
  18860. main ()
  18861. {
  18862. ;
  18863. return 0;
  18864. }
  18865. _ACEOF
  18866. if ac_fn_c_try_compile "$LINENO"; then :
  18867. have_vivante_vdk=yes
  18868. fi
  18869. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  18871. $as_echo "$have_vivante_vdk" >&6; }
  18872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  18873. $as_echo_n "checking for Vivante FB API... " >&6; }
  18874. have_vivante_egl=no
  18875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18876. /* end confdefs.h. */
  18877. #define LINUX
  18878. #define EGL_API_FB
  18879. #include <EGL/eglvivante.h>
  18880. int
  18881. main ()
  18882. {
  18883. ;
  18884. return 0;
  18885. }
  18886. _ACEOF
  18887. if ac_fn_c_try_compile "$LINENO"; then :
  18888. have_vivante_egl=yes
  18889. fi
  18890. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  18892. $as_echo "$have_vivante_egl" >&6; }
  18893. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  18894. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  18895. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  18896. if test x$have_vivante_vdk = xyes; then
  18897. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  18898. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  18899. fi
  18900. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  18901. SUMMARY_video="${SUMMARY_video} vivante"
  18902. have_video=yes
  18903. fi
  18904. fi
  18905. }
  18906. CheckHaikuVideo()
  18907. {
  18908. if test x$enable_video = xyes; then
  18909. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  18910. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  18911. have_video=yes
  18912. SUMMARY_video="${SUMMARY_video} haiku"
  18913. fi
  18914. }
  18915. CheckCOCOA()
  18916. {
  18917. # Check whether --enable-video-cocoa was given.
  18918. if test "${enable_video_cocoa+set}" = set; then :
  18919. enableval=$enable_video_cocoa;
  18920. else
  18921. enable_video_cocoa=yes
  18922. fi
  18923. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  18924. save_CFLAGS="$CFLAGS"
  18925. CFLAGS="$CFLAGS -x objective-c"
  18926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  18927. $as_echo_n "checking for Cocoa framework... " >&6; }
  18928. have_cocoa=no
  18929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18930. /* end confdefs.h. */
  18931. #import <Cocoa/Cocoa.h>
  18932. int
  18933. main ()
  18934. {
  18935. ;
  18936. return 0;
  18937. }
  18938. _ACEOF
  18939. if ac_fn_c_try_compile "$LINENO"; then :
  18940. have_cocoa=yes
  18941. fi
  18942. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  18944. $as_echo "$have_cocoa" >&6; }
  18945. CFLAGS="$save_CFLAGS"
  18946. if test x$have_cocoa = xyes; then
  18947. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  18948. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  18949. SUMMARY_video="${SUMMARY_video} cocoa"
  18950. have_video=yes
  18951. fi
  18952. fi
  18953. }
  18954. CheckMETAL()
  18955. {
  18956. # Check whether --enable-video-metal was given.
  18957. if test "${enable_video_metal+set}" = set; then :
  18958. enableval=$enable_video_metal;
  18959. else
  18960. enable_video_metal=yes
  18961. fi
  18962. # Check whether --enable-render-metal was given.
  18963. if test "${enable_render_metal+set}" = set; then :
  18964. enableval=$enable_render_metal;
  18965. else
  18966. enable_render_metal=yes
  18967. fi
  18968. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  18969. save_CFLAGS="$CFLAGS"
  18970. CFLAGS="$CFLAGS -x objective-c"
  18971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  18972. $as_echo_n "checking for Metal framework... " >&6; }
  18973. have_metal=no
  18974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18975. /* end confdefs.h. */
  18976. #import <Cocoa/Cocoa.h>
  18977. #import <Metal/Metal.h>
  18978. #import <QuartzCore/CAMetalLayer.h>
  18979. #if TARGET_CPU_X86
  18980. #error Metal doesn't work on this configuration
  18981. #endif
  18982. int
  18983. main ()
  18984. {
  18985. ;
  18986. return 0;
  18987. }
  18988. _ACEOF
  18989. if ac_fn_c_try_compile "$LINENO"; then :
  18990. have_metal=yes
  18991. fi
  18992. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18993. CFLAGS="$save_CFLAGS"
  18994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  18995. $as_echo "$have_metal" >&6; }
  18996. if test x$have_metal = xyes; then
  18997. $as_echo "#define SDL_VIDEO_METAL 1" >>confdefs.h
  18998. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  18999. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  19000. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  19001. fi
  19002. SUMMARY_video="${SUMMARY_video} metal"
  19003. else
  19004. enable_video_metal=no
  19005. enable_render_metal=no
  19006. fi
  19007. fi
  19008. }
  19009. CheckDirectFB()
  19010. {
  19011. # Check whether --enable-video-directfb was given.
  19012. if test "${enable_video_directfb+set}" = set; then :
  19013. enableval=$enable_video_directfb;
  19014. else
  19015. enable_video_directfb=no
  19016. fi
  19017. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  19018. pkg_failed=no
  19019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  19020. $as_echo_n "checking for directfb >= 1.0.0... " >&6; }
  19021. if test -n "$DIRECTFB_CFLAGS"; then
  19022. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  19023. elif test -n "$PKG_CONFIG"; then
  19024. if test -n "$PKG_CONFIG" && \
  19025. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  19026. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  19027. ac_status=$?
  19028. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19029. test $ac_status = 0; }; then
  19030. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  19031. test "x$?" != "x0" && pkg_failed=yes
  19032. else
  19033. pkg_failed=yes
  19034. fi
  19035. else
  19036. pkg_failed=untried
  19037. fi
  19038. if test -n "$DIRECTFB_LIBS"; then
  19039. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  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 \"directfb >= 1.0.0\""; } >&5
  19043. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.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_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.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 $pkg_failed = yes; then
  19056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19057. $as_echo "no" >&6; }
  19058. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19059. _pkg_short_errors_supported=yes
  19060. else
  19061. _pkg_short_errors_supported=no
  19062. fi
  19063. if test $_pkg_short_errors_supported = yes; then
  19064. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  19065. else
  19066. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  19067. fi
  19068. # Put the nasty error message in config.log where it belongs
  19069. echo "$DIRECTFB_PKG_ERRORS" >&5
  19070. video_directfb=no
  19071. elif test $pkg_failed = untried; then
  19072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19073. $as_echo "no" >&6; }
  19074. video_directfb=no
  19075. else
  19076. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  19077. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  19078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19079. $as_echo "yes" >&6; }
  19080. video_directfb=yes
  19081. fi
  19082. if test x$video_directfb = xyes; then
  19083. # SuSE 11.1 installs directfb-config without directfb-devel
  19084. save_CPPFLAGS="$CPPFLAGS"
  19085. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  19086. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  19087. if test "x$ac_cv_header_directfb_h" = xyes; then :
  19088. have_directfb_hdr=yes
  19089. else
  19090. have_directfb_hdr=no
  19091. fi
  19092. CPPFLAGS="$save_CPPFLAGS"
  19093. video_directfb=$have_directfb_hdr
  19094. fi
  19095. if test x$video_directfb = xyes; then
  19096. # Check whether --enable-directfb-shared was given.
  19097. if test "${enable_directfb_shared+set}" = set; then :
  19098. enableval=$enable_directfb_shared;
  19099. else
  19100. enable_directfb_shared=yes
  19101. fi
  19102. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  19103. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  19104. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  19105. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  19106. directfb_shared=no
  19107. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19108. if test x$have_loadso != xyes && \
  19109. test x$enable_directfb_shared = xyes; then
  19110. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  19111. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  19112. fi
  19113. if test x$have_loadso = xyes && \
  19114. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  19115. directfb_shared=yes
  19116. echo "-- dynamic libdirectfb -> $directfb_lib"
  19117. cat >>confdefs.h <<_ACEOF
  19118. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  19119. _ACEOF
  19120. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  19121. else
  19122. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  19123. SUMMARY_video="${SUMMARY_video} directfb"
  19124. fi
  19125. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  19126. have_video=yes
  19127. fi
  19128. fi
  19129. }
  19130. CheckKMSDRM()
  19131. {
  19132. # Check whether --enable-video-kmsdrm was given.
  19133. if test "${enable_video_kmsdrm+set}" = set; then :
  19134. enableval=$enable_video_kmsdrm;
  19135. else
  19136. enable_video_kmsdrm=yes
  19137. fi
  19138. if test x$enable_video = xyes && \
  19139. test x$enable_video_kmsdrm = xyes && \
  19140. test x$video_opengl_egl = xyes; then
  19141. video_kmsdrm=no
  19142. pkg_failed=no
  19143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  19144. $as_echo_n "checking for libdrm >= 1.4.82... " >&6; }
  19145. if test -n "$LIBDRM_CFLAGS"; then
  19146. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  19147. elif test -n "$PKG_CONFIG"; then
  19148. if test -n "$PKG_CONFIG" && \
  19149. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  19150. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  19151. ac_status=$?
  19152. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19153. test $ac_status = 0; }; then
  19154. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  19155. test "x$?" != "x0" && pkg_failed=yes
  19156. else
  19157. pkg_failed=yes
  19158. fi
  19159. else
  19160. pkg_failed=untried
  19161. fi
  19162. if test -n "$LIBDRM_LIBS"; then
  19163. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  19164. elif test -n "$PKG_CONFIG"; then
  19165. if test -n "$PKG_CONFIG" && \
  19166. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  19167. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  19168. ac_status=$?
  19169. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19170. test $ac_status = 0; }; then
  19171. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  19172. test "x$?" != "x0" && pkg_failed=yes
  19173. else
  19174. pkg_failed=yes
  19175. fi
  19176. else
  19177. pkg_failed=untried
  19178. fi
  19179. if test $pkg_failed = yes; then
  19180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19181. $as_echo "no" >&6; }
  19182. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19183. _pkg_short_errors_supported=yes
  19184. else
  19185. _pkg_short_errors_supported=no
  19186. fi
  19187. if test $_pkg_short_errors_supported = yes; then
  19188. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  19189. else
  19190. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  19191. fi
  19192. # Put the nasty error message in config.log where it belongs
  19193. echo "$LIBDRM_PKG_ERRORS" >&5
  19194. libdrm_avail=no
  19195. elif test $pkg_failed = untried; then
  19196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19197. $as_echo "no" >&6; }
  19198. libdrm_avail=no
  19199. else
  19200. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  19201. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  19202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19203. $as_echo "yes" >&6; }
  19204. libdrm_avail=yes
  19205. fi
  19206. pkg_failed=no
  19207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  19208. $as_echo_n "checking for gbm >= 11.1.0... " >&6; }
  19209. if test -n "$LIBGBM_CFLAGS"; then
  19210. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  19211. elif test -n "$PKG_CONFIG"; then
  19212. if test -n "$PKG_CONFIG" && \
  19213. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  19214. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  19215. ac_status=$?
  19216. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19217. test $ac_status = 0; }; then
  19218. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  19219. test "x$?" != "x0" && pkg_failed=yes
  19220. else
  19221. pkg_failed=yes
  19222. fi
  19223. else
  19224. pkg_failed=untried
  19225. fi
  19226. if test -n "$LIBGBM_LIBS"; then
  19227. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  19228. elif test -n "$PKG_CONFIG"; then
  19229. if test -n "$PKG_CONFIG" && \
  19230. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  19231. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  19232. ac_status=$?
  19233. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19234. test $ac_status = 0; }; then
  19235. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  19236. test "x$?" != "x0" && pkg_failed=yes
  19237. else
  19238. pkg_failed=yes
  19239. fi
  19240. else
  19241. pkg_failed=untried
  19242. fi
  19243. if test $pkg_failed = yes; then
  19244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19245. $as_echo "no" >&6; }
  19246. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19247. _pkg_short_errors_supported=yes
  19248. else
  19249. _pkg_short_errors_supported=no
  19250. fi
  19251. if test $_pkg_short_errors_supported = yes; then
  19252. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  19253. else
  19254. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  19255. fi
  19256. # Put the nasty error message in config.log where it belongs
  19257. echo "$LIBGBM_PKG_ERRORS" >&5
  19258. libgbm_avail=no
  19259. elif test $pkg_failed = untried; then
  19260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19261. $as_echo "no" >&6; }
  19262. libgbm_avail=no
  19263. else
  19264. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  19265. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  19266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19267. $as_echo "yes" >&6; }
  19268. libgbm_avail=yes
  19269. fi
  19270. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  19271. video_kmsdrm=yes
  19272. fi
  19273. if test x$video_kmsdrm = xyes; then
  19274. # Check whether --enable-kmsdrm-shared was given.
  19275. if test "${enable_kmsdrm_shared+set}" = set; then :
  19276. enableval=$enable_kmsdrm_shared;
  19277. else
  19278. enable_kmsdrm_shared=yes
  19279. fi
  19280. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  19281. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  19282. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  19283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  19284. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  19285. kmsdrm_shared=no
  19286. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  19287. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  19288. if test x$have_loadso != xyes && \
  19289. test x$enable_kmsdrm_shared = xyes; then
  19290. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  19291. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  19292. fi
  19293. if test x$have_loadso = xyes && \
  19294. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  19295. kmsdrm_shared=yes
  19296. cat >>confdefs.h <<_ACEOF
  19297. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  19298. _ACEOF
  19299. cat >>confdefs.h <<_ACEOF
  19300. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  19301. _ACEOF
  19302. cat >>confdefs.h <<_ACEOF
  19303. #define HAVE_KMSDRM_SHARED "TRUE"
  19304. _ACEOF
  19305. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  19306. else
  19307. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  19308. SUMMARY_video="${SUMMARY_video} kmsdrm"
  19309. fi
  19310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  19311. $as_echo "$kmsdrm_shared" >&6; }
  19312. if test x$kmsdrm_shared = xyes; then
  19313. echo "-- dynamic libdrm -> $drm_lib"
  19314. echo "-- dynamic libgmb -> $gbm_lib"
  19315. fi
  19316. have_video=yes
  19317. fi
  19318. fi
  19319. }
  19320. CheckDummyVideo()
  19321. {
  19322. # Check whether --enable-video-dummy was given.
  19323. if test "${enable_video_dummy+set}" = set; then :
  19324. enableval=$enable_video_dummy;
  19325. else
  19326. enable_video_dummy=yes
  19327. fi
  19328. if test x$enable_video_dummy = xyes; then
  19329. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  19330. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  19331. have_video=yes
  19332. SUMMARY_video="${SUMMARY_video} dummy"
  19333. fi
  19334. }
  19335. CheckOffscreenVideo()
  19336. {
  19337. # Check whether --enable-video-offscreen was given.
  19338. if test "${enable_video_offscreen+set}" = set; then :
  19339. enableval=$enable_video_offscreen;
  19340. else
  19341. enable_video_offscreen=no
  19342. fi
  19343. if test x$enable_video_offscreen = xyes; then
  19344. $as_echo "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  19345. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  19346. have_video=yes
  19347. SUMMARY_video="${SUMMARY_video} offscreen"
  19348. fi
  19349. }
  19350. CheckQNXVideo()
  19351. {
  19352. if test x$enable_video = xyes; then
  19353. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  19354. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  19355. have_video=yes
  19356. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  19357. SUMMARY_video="${SUMMARY_video} qnx"
  19358. fi
  19359. }
  19360. CheckQNXAudio()
  19361. {
  19362. if test x$enable_audio = xyes; then
  19363. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  19364. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  19365. have_audio=yes
  19366. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  19367. SUMMARY_audio="${SUMMARY_audio} qsa"
  19368. fi
  19369. }
  19370. # Check whether --enable-video-opengl was given.
  19371. if test "${enable_video_opengl+set}" = set; then :
  19372. enableval=$enable_video_opengl;
  19373. else
  19374. enable_video_opengl=yes
  19375. fi
  19376. CheckGLX()
  19377. {
  19378. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  19380. $as_echo_n "checking for GLX support... " >&6; }
  19381. video_opengl_glx=no
  19382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19383. /* end confdefs.h. */
  19384. #include <GL/glx.h>
  19385. int
  19386. main ()
  19387. {
  19388. ;
  19389. return 0;
  19390. }
  19391. _ACEOF
  19392. if ac_fn_c_try_compile "$LINENO"; then :
  19393. video_opengl_glx=yes
  19394. fi
  19395. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  19397. $as_echo "$video_opengl_glx" >&6; }
  19398. if test x$video_opengl_glx = xyes; then
  19399. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19400. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  19401. fi
  19402. fi
  19403. }
  19404. # Check whether --enable-video-opengles was given.
  19405. if test "${enable_video_opengles+set}" = set; then :
  19406. enableval=$enable_video_opengles;
  19407. else
  19408. enable_video_opengles=yes
  19409. fi
  19410. # Check whether --enable-video-opengles1 was given.
  19411. if test "${enable_video_opengles1+set}" = set; then :
  19412. enableval=$enable_video_opengles1;
  19413. else
  19414. enable_video_opengles1=yes
  19415. fi
  19416. # Check whether --enable-video-opengles2 was given.
  19417. if test "${enable_video_opengles2+set}" = set; then :
  19418. enableval=$enable_video_opengles2;
  19419. else
  19420. enable_video_opengles2=yes
  19421. fi
  19422. CheckEGL()
  19423. {
  19424. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19426. $as_echo_n "checking for EGL support... " >&6; }
  19427. video_opengl_egl=no
  19428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19429. /* end confdefs.h. */
  19430. #define LINUX
  19431. #define EGL_API_FB
  19432. #define MESA_EGL_NO_X11_HEADERS
  19433. #define EGL_NO_X11
  19434. #include <EGL/egl.h>
  19435. #include <EGL/eglext.h>
  19436. int
  19437. main ()
  19438. {
  19439. ;
  19440. return 0;
  19441. }
  19442. _ACEOF
  19443. if ac_fn_c_try_compile "$LINENO"; then :
  19444. video_opengl_egl=yes
  19445. fi
  19446. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19448. $as_echo "$video_opengl_egl" >&6; }
  19449. if test x$video_opengl_egl = xyes; then
  19450. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19451. fi
  19452. fi
  19453. }
  19454. CheckOpenGL()
  19455. {
  19456. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  19458. $as_echo_n "checking for OpenGL headers... " >&6; }
  19459. video_opengl=no
  19460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19461. /* end confdefs.h. */
  19462. #include <GL/gl.h>
  19463. #include <GL/glext.h>
  19464. int
  19465. main ()
  19466. {
  19467. ;
  19468. return 0;
  19469. }
  19470. _ACEOF
  19471. if ac_fn_c_try_compile "$LINENO"; then :
  19472. video_opengl=yes
  19473. fi
  19474. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  19476. $as_echo "$video_opengl" >&6; }
  19477. if test x$video_opengl = xyes; then
  19478. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19479. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19480. SUMMARY_video="${SUMMARY_video} opengl"
  19481. fi
  19482. fi
  19483. }
  19484. CheckOpenGLES()
  19485. {
  19486. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19487. if test x$enable_video_opengles1 = xyes; then
  19488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  19489. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  19490. video_opengles_v1=no
  19491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19492. /* end confdefs.h. */
  19493. #include <GLES/gl.h>
  19494. #include <GLES/glext.h>
  19495. int
  19496. main ()
  19497. {
  19498. ;
  19499. return 0;
  19500. }
  19501. _ACEOF
  19502. if ac_fn_c_try_compile "$LINENO"; then :
  19503. video_opengles_v1=yes
  19504. fi
  19505. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  19507. $as_echo "$video_opengles_v1" >&6; }
  19508. if test x$video_opengles_v1 = xyes; then
  19509. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  19510. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  19511. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19512. fi
  19513. fi
  19514. if test x$enable_video_opengles2 = xyes; then
  19515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19516. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19517. video_opengles_v2=no
  19518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19519. /* end confdefs.h. */
  19520. #include <GLES2/gl2.h>
  19521. #include <GLES2/gl2ext.h>
  19522. int
  19523. main ()
  19524. {
  19525. ;
  19526. return 0;
  19527. }
  19528. _ACEOF
  19529. if ac_fn_c_try_compile "$LINENO"; then :
  19530. video_opengles_v2=yes
  19531. fi
  19532. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19534. $as_echo "$video_opengles_v2" >&6; }
  19535. if test x$video_opengles_v2 = xyes; then
  19536. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19537. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19538. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19539. fi
  19540. fi
  19541. fi
  19542. }
  19543. CheckWINDOWSGL()
  19544. {
  19545. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19546. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19547. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  19548. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19549. SUMMARY_video="${SUMMARY_video} opengl"
  19550. fi
  19551. }
  19552. CheckWINDOWSGLES()
  19553. {
  19554. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19556. $as_echo_n "checking for EGL support... " >&6; }
  19557. video_opengl_egl=no
  19558. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19559. /* end confdefs.h. */
  19560. #include <EGL/egl.h>
  19561. int
  19562. main ()
  19563. {
  19564. ;
  19565. return 0;
  19566. }
  19567. _ACEOF
  19568. if ac_fn_c_try_compile "$LINENO"; then :
  19569. video_opengl_egl=yes
  19570. fi
  19571. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19573. $as_echo "$video_opengl_egl" >&6; }
  19574. if test x$video_opengl_egl = xyes; then
  19575. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19576. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19577. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19578. fi
  19579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19580. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19581. video_opengles_v2=no
  19582. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19583. /* end confdefs.h. */
  19584. #include <GLES2/gl2.h>
  19585. #include <GLES2/gl2ext.h>
  19586. int
  19587. main ()
  19588. {
  19589. ;
  19590. return 0;
  19591. }
  19592. _ACEOF
  19593. if ac_fn_c_try_compile "$LINENO"; then :
  19594. video_opengles_v2=yes
  19595. fi
  19596. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19598. $as_echo "$video_opengles_v2" >&6; }
  19599. if test x$video_opengles_v2 = xyes; then
  19600. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19601. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19602. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19603. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19604. fi
  19605. fi
  19606. }
  19607. CheckHaikuGL()
  19608. {
  19609. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19610. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19611. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  19612. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19613. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  19614. SUMMARY_video="${SUMMARY_video} opengl"
  19615. fi
  19616. }
  19617. CheckMacGL()
  19618. {
  19619. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19620. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19621. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  19622. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19623. SUMMARY_video="${SUMMARY_video} opengl"
  19624. fi
  19625. }
  19626. CheckMacGLES()
  19627. {
  19628. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19629. video_opengl_egl=yes
  19630. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19631. video_opengles_v2=yes
  19632. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19633. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19634. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19635. fi
  19636. }
  19637. CheckEmscriptenGLES()
  19638. {
  19639. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19641. $as_echo_n "checking for EGL support... " >&6; }
  19642. video_opengl_egl=no
  19643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19644. /* end confdefs.h. */
  19645. #include <EGL/egl.h>
  19646. int
  19647. main ()
  19648. {
  19649. ;
  19650. return 0;
  19651. }
  19652. _ACEOF
  19653. if ac_fn_c_try_compile "$LINENO"; then :
  19654. video_opengl_egl=yes
  19655. fi
  19656. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19658. $as_echo "$video_opengl_egl" >&6; }
  19659. if test x$video_opengl_egl = xyes; then
  19660. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19661. fi
  19662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19663. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19664. video_opengles_v2=no
  19665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19666. /* end confdefs.h. */
  19667. #include <GLES2/gl2.h>
  19668. #include <GLES2/gl2ext.h>
  19669. int
  19670. main ()
  19671. {
  19672. ;
  19673. return 0;
  19674. }
  19675. _ACEOF
  19676. if ac_fn_c_try_compile "$LINENO"; then :
  19677. video_opengles_v2=yes
  19678. fi
  19679. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19681. $as_echo "$video_opengles_v2" >&6; }
  19682. if test x$video_opengles_v2 = xyes; then
  19683. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19684. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19685. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19686. fi
  19687. fi
  19688. }
  19689. # Check whether --enable-video-vulkan was given.
  19690. if test "${enable_video_vulkan+set}" = set; then :
  19691. enableval=$enable_video_vulkan;
  19692. else
  19693. enable_video_vulkan=yes
  19694. fi
  19695. CheckVulkan()
  19696. {
  19697. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  19698. case "$host" in
  19699. *-*-android*)
  19700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19701. /* end confdefs.h. */
  19702. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  19703. #error Vulkan doesn't work on this configuration
  19704. #endif
  19705. int
  19706. main ()
  19707. {
  19708. ;
  19709. return 0;
  19710. }
  19711. _ACEOF
  19712. if ac_fn_c_try_compile "$LINENO"; then :
  19713. else
  19714. enable_video_vulkan=no
  19715. fi
  19716. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19717. ;;
  19718. *-*-darwin*)
  19719. save_CFLAGS="$CFLAGS"
  19720. CFLAGS="$CFLAGS -x objective-c"
  19721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19722. /* end confdefs.h. */
  19723. #include <Cocoa/Cocoa.h>
  19724. #include <Metal/Metal.h>
  19725. #include <QuartzCore/CAMetalLayer.h>
  19726. #if TARGET_CPU_X86
  19727. #error Vulkan doesn't work on this configuration
  19728. #endif
  19729. int
  19730. main ()
  19731. {
  19732. ;
  19733. return 0;
  19734. }
  19735. _ACEOF
  19736. if ac_fn_c_try_compile "$LINENO"; then :
  19737. else
  19738. enable_video_vulkan=no
  19739. fi
  19740. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19741. CFLAGS="$save_CFLAGS"
  19742. ;;
  19743. *)
  19744. ;;
  19745. esac
  19746. if test x$enable_video_vulkan = xno; then
  19747. # For reasons I am totally unable to see, I get an undefined macro error if
  19748. # I put this in the AC_TRY_COMPILE.
  19749. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  19750. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  19751. fi
  19752. fi
  19753. if test x$have_loadso != xyes; then
  19754. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  19755. $as_echo "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  19756. enable_video_vulkan=no
  19757. fi
  19758. if test x$enable_video_vulkan = xyes; then
  19759. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  19760. SUMMARY_video="${SUMMARY_video} vulkan"
  19761. fi
  19762. }
  19763. CheckInputEvents()
  19764. {
  19765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  19766. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  19767. use_input_events=no
  19768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19769. /* end confdefs.h. */
  19770. #include <linux/input.h>
  19771. int
  19772. main ()
  19773. {
  19774. #ifndef EVIOCGNAME
  19775. #error EVIOCGNAME() ioctl not available
  19776. #endif
  19777. ;
  19778. return 0;
  19779. }
  19780. _ACEOF
  19781. if ac_fn_c_try_compile "$LINENO"; then :
  19782. use_input_events=yes
  19783. fi
  19784. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  19786. $as_echo "$use_input_events" >&6; }
  19787. if test x$use_input_events = xyes; then
  19788. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  19789. SUMMARY_input="${SUMMARY_input} linuxev"
  19790. fi
  19791. }
  19792. CheckInputKD()
  19793. {
  19794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  19795. $as_echo_n "checking for Linux kd.h... " >&6; }
  19796. use_input_kd=no
  19797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19798. /* end confdefs.h. */
  19799. #include <linux/kd.h>
  19800. #include <linux/keyboard.h>
  19801. int
  19802. main ()
  19803. {
  19804. struct kbentry kbe;
  19805. kbe.kb_table = KG_CTRL;
  19806. ioctl(0, KDGKBENT, &kbe);
  19807. ;
  19808. return 0;
  19809. }
  19810. _ACEOF
  19811. if ac_fn_c_try_compile "$LINENO"; then :
  19812. use_input_kd=yes
  19813. fi
  19814. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  19816. $as_echo "$use_input_kd" >&6; }
  19817. if test x$use_input_kd = xyes; then
  19818. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  19819. SUMMARY_input="${SUMMARY_input} linuxkd"
  19820. fi
  19821. }
  19822. CheckInputKBIO()
  19823. {
  19824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  19825. $as_echo_n "checking for FreeBSD kbio.h... " >&6; }
  19826. use_input_kbio=no
  19827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19828. /* end confdefs.h. */
  19829. #include <sys/kbio.h>
  19830. #include <sys/ioctl.h>
  19831. int
  19832. main ()
  19833. {
  19834. accentmap_t accTable;
  19835. ioctl(0, KDENABIO, 1);
  19836. ;
  19837. return 0;
  19838. }
  19839. _ACEOF
  19840. if ac_fn_c_try_compile "$LINENO"; then :
  19841. use_input_kbio=yes
  19842. fi
  19843. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  19845. $as_echo "$use_input_kbio" >&6; }
  19846. if test x$use_input_kbio = xyes; then
  19847. $as_echo "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  19848. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  19849. fi
  19850. }
  19851. CheckInputWSCONS()
  19852. {
  19853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  19854. $as_echo_n "checking for OpenBSD wscons... " >&6; }
  19855. use_input_wscons=no
  19856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19857. /* end confdefs.h. */
  19858. #include <sys/time.h>
  19859. #include <dev/wscons/wsconsio.h>
  19860. #include <dev/wscons/wsksymdef.h>
  19861. #include <dev/wscons/wsksymvar.h>
  19862. #include <sys/ioctl.h>
  19863. int
  19864. main ()
  19865. {
  19866. struct wskbd_map_data data;
  19867. ioctl(0, WSKBDIO_GETMAP, &data);
  19868. ;
  19869. return 0;
  19870. }
  19871. _ACEOF
  19872. if ac_fn_c_try_compile "$LINENO"; then :
  19873. use_input_wscons=yes
  19874. fi
  19875. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  19877. $as_echo "$use_input_wscons" >&6; }
  19878. if test x$use_input_wscons = xyes; then
  19879. $as_echo "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  19880. SUMMARY_input="${SUMMARY_input} wscons"
  19881. fi
  19882. }
  19883. CheckLibUDev()
  19884. {
  19885. # Check whether --enable-libudev was given.
  19886. if test "${enable_libudev+set}" = set; then :
  19887. enableval=$enable_libudev;
  19888. else
  19889. enable_libudev=yes
  19890. fi
  19891. if test x$enable_libudev = xyes; then
  19892. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  19893. if test "x$ac_cv_header_libudev_h" = xyes; then :
  19894. have_libudev_h_hdr=yes
  19895. else
  19896. have_libudev_h_hdr=no
  19897. fi
  19898. if test x$have_libudev_h_hdr = xyes; then
  19899. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  19900. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19901. if test x$udev_lib != x; then
  19902. echo "-- dynamic udev -> $udev_lib"
  19903. cat >>confdefs.h <<_ACEOF
  19904. #define SDL_UDEV_DYNAMIC "$udev_lib"
  19905. _ACEOF
  19906. fi
  19907. fi
  19908. fi
  19909. }
  19910. CheckDBus()
  19911. {
  19912. # Check whether --enable-dbus was given.
  19913. if test "${enable_dbus+set}" = set; then :
  19914. enableval=$enable_dbus;
  19915. else
  19916. enable_dbus=yes
  19917. fi
  19918. if test x$enable_dbus = xyes; then
  19919. pkg_failed=no
  19920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  19921. $as_echo_n "checking for dbus-1... " >&6; }
  19922. if test -n "$DBUS_CFLAGS"; then
  19923. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  19924. elif test -n "$PKG_CONFIG"; then
  19925. if test -n "$PKG_CONFIG" && \
  19926. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19927. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19928. ac_status=$?
  19929. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19930. test $ac_status = 0; }; then
  19931. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  19932. test "x$?" != "x0" && pkg_failed=yes
  19933. else
  19934. pkg_failed=yes
  19935. fi
  19936. else
  19937. pkg_failed=untried
  19938. fi
  19939. if test -n "$DBUS_LIBS"; then
  19940. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  19941. elif test -n "$PKG_CONFIG"; then
  19942. if test -n "$PKG_CONFIG" && \
  19943. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19944. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19945. ac_status=$?
  19946. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19947. test $ac_status = 0; }; then
  19948. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  19949. test "x$?" != "x0" && pkg_failed=yes
  19950. else
  19951. pkg_failed=yes
  19952. fi
  19953. else
  19954. pkg_failed=untried
  19955. fi
  19956. if test $pkg_failed = yes; then
  19957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19958. $as_echo "no" >&6; }
  19959. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19960. _pkg_short_errors_supported=yes
  19961. else
  19962. _pkg_short_errors_supported=no
  19963. fi
  19964. if test $_pkg_short_errors_supported = yes; then
  19965. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  19966. else
  19967. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  19968. fi
  19969. # Put the nasty error message in config.log where it belongs
  19970. echo "$DBUS_PKG_ERRORS" >&5
  19971. have_dbus=no
  19972. elif test $pkg_failed = untried; then
  19973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19974. $as_echo "no" >&6; }
  19975. have_dbus=no
  19976. else
  19977. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  19978. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  19979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19980. $as_echo "yes" >&6; }
  19981. have_dbus=yes
  19982. fi
  19983. save_CPPFLAGS="$CPPFLAGS"
  19984. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  19985. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  19986. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  19987. have_dbus_dbus_h_hdr=yes
  19988. else
  19989. have_dbus_dbus_h_hdr=no
  19990. fi
  19991. CPPFLAGS="$save_CPPFLAGS"
  19992. if test x$have_dbus_dbus_h_hdr = xyes; then
  19993. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  19994. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  19995. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  19996. fi
  19997. fi
  19998. }
  19999. CheckIME()
  20000. {
  20001. # Check whether --enable-ime was given.
  20002. if test "${enable_ime+set}" = set; then :
  20003. enableval=$enable_ime;
  20004. else
  20005. enable_ime=yes
  20006. fi
  20007. if test x$enable_ime = xyes; then
  20008. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  20009. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  20010. fi
  20011. }
  20012. CheckInotify()
  20013. {
  20014. save_LIBS="$LIBS"
  20015. case "$host" in
  20016. *-*-freebsd*) LIBS="$LIBS -linotify"
  20017. ;;
  20018. esac
  20019. for ac_header in sys/inotify.h
  20020. do :
  20021. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  20022. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  20023. cat >>confdefs.h <<_ACEOF
  20024. #define HAVE_SYS_INOTIFY_H 1
  20025. _ACEOF
  20026. have_inotify_inotify_h_hdr=yes
  20027. fi
  20028. done
  20029. for ac_func in inotify_init
  20030. do :
  20031. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  20032. if test "x$ac_cv_func_inotify_init" = xyes; then :
  20033. cat >>confdefs.h <<_ACEOF
  20034. #define HAVE_INOTIFY_INIT 1
  20035. _ACEOF
  20036. have_inotify=yes
  20037. fi
  20038. done
  20039. for ac_func in inotify_init1
  20040. do :
  20041. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  20042. if test "x$ac_cv_func_inotify_init1" = xyes; then :
  20043. cat >>confdefs.h <<_ACEOF
  20044. #define HAVE_INOTIFY_INIT1 1
  20045. _ACEOF
  20046. fi
  20047. done
  20048. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  20049. $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
  20050. case "$host" in
  20051. *-*-freebsd*)
  20052. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  20053. ;;
  20054. esac
  20055. fi
  20056. LIBS="$save_LIBS"
  20057. }
  20058. CheckIBus()
  20059. {
  20060. # Check whether --enable-ibus was given.
  20061. if test "${enable_ibus+set}" = set; then :
  20062. enableval=$enable_ibus;
  20063. else
  20064. enable_ibus=yes
  20065. fi
  20066. if test x$enable_ibus = xyes; then
  20067. pkg_failed=no
  20068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  20069. $as_echo_n "checking for ibus-1.0... " >&6; }
  20070. if test -n "$IBUS_CFLAGS"; then
  20071. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  20072. elif test -n "$PKG_CONFIG"; then
  20073. if test -n "$PKG_CONFIG" && \
  20074. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  20075. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  20076. ac_status=$?
  20077. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20078. test $ac_status = 0; }; then
  20079. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  20080. test "x$?" != "x0" && pkg_failed=yes
  20081. else
  20082. pkg_failed=yes
  20083. fi
  20084. else
  20085. pkg_failed=untried
  20086. fi
  20087. if test -n "$IBUS_LIBS"; then
  20088. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  20089. elif test -n "$PKG_CONFIG"; then
  20090. if test -n "$PKG_CONFIG" && \
  20091. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  20092. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  20093. ac_status=$?
  20094. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20095. test $ac_status = 0; }; then
  20096. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  20097. test "x$?" != "x0" && pkg_failed=yes
  20098. else
  20099. pkg_failed=yes
  20100. fi
  20101. else
  20102. pkg_failed=untried
  20103. fi
  20104. if test $pkg_failed = yes; then
  20105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20106. $as_echo "no" >&6; }
  20107. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20108. _pkg_short_errors_supported=yes
  20109. else
  20110. _pkg_short_errors_supported=no
  20111. fi
  20112. if test $_pkg_short_errors_supported = yes; then
  20113. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  20114. else
  20115. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  20116. fi
  20117. # Put the nasty error message in config.log where it belongs
  20118. echo "$IBUS_PKG_ERRORS" >&5
  20119. have_ibus=no
  20120. elif test $pkg_failed = untried; then
  20121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20122. $as_echo "no" >&6; }
  20123. have_ibus=no
  20124. else
  20125. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  20126. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  20127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20128. $as_echo "yes" >&6; }
  20129. have_ibus=yes
  20130. fi
  20131. save_CPPFLAGS="$CPPFLAGS"
  20132. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  20133. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  20134. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  20135. have_ibus_ibus_h_hdr=yes
  20136. else
  20137. have_ibus_ibus_h_hdr=no
  20138. fi
  20139. CPPFLAGS="$save_CPPFLAGS"
  20140. if test x$have_ibus_ibus_h_hdr = xyes; then
  20141. if test x$enable_ime != xyes; then
  20142. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  20143. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  20144. have_ibus_ibus_h_hdr=no
  20145. elif test x$enable_dbus != xyes; then
  20146. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  20147. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  20148. have_ibus_ibus_h_hdr=no
  20149. elif test x$have_inotify_inotify_h_hdr != xyes; then
  20150. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  20151. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  20152. have_ibus_ibus_h_hdr=no
  20153. else
  20154. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  20155. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  20156. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  20157. fi
  20158. fi
  20159. fi
  20160. }
  20161. CheckFcitx()
  20162. {
  20163. # Check whether --enable-fcitx was given.
  20164. if test "${enable_fcitx+set}" = set; then :
  20165. enableval=$enable_fcitx;
  20166. else
  20167. enable_fcitx=yes
  20168. fi
  20169. if test x$enable_fcitx = xyes; then
  20170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  20171. $as_echo_n "checking for fcitx support... " >&6; }
  20172. have_fcitx=no
  20173. if test x$enable_ime != xyes; then
  20174. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  20175. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  20176. elif test x$have_dbus_dbus_h_hdr != xyes; then
  20177. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  20178. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  20179. else
  20180. have_fcitx=yes
  20181. $as_echo "#define HAVE_FCITX 1" >>confdefs.h
  20182. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  20183. fi
  20184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  20185. $as_echo "$have_fcitx" >&6; }
  20186. fi
  20187. }
  20188. CheckJoystickMFI()
  20189. {
  20190. # Check whether --enable-joystick-mfi was given.
  20191. if test "${enable_joystick_mfi+set}" = set; then :
  20192. enableval=$enable_joystick_mfi;
  20193. else
  20194. enable_joystick_mfi=yes
  20195. fi
  20196. if test x$enable_joystick_mfi = xyes; then
  20197. save_CFLAGS="$CFLAGS"
  20198. save_LDFLAGS="$LDFLAGS"
  20199. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  20200. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  20201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  20202. $as_echo_n "checking for GameController framework... " >&6; }
  20203. enable_joystick_mfi=no
  20204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20205. /* end confdefs.h. */
  20206. #include <AvailabilityMacros.h>
  20207. #include <TargetConditionals.h>
  20208. #import <GameController/GameController.h>
  20209. int
  20210. main ()
  20211. {
  20212. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  20213. #error GameController framework doesn't work on this configuration
  20214. #endif
  20215. #if TARGET_CPU_X86
  20216. #error GameController framework doesn't work on this configuration
  20217. #endif
  20218. ;
  20219. return 0;
  20220. }
  20221. _ACEOF
  20222. if ac_fn_c_try_link "$LINENO"; then :
  20223. enable_joystick_mfi=yes
  20224. fi
  20225. rm -f core conftest.err conftest.$ac_objext \
  20226. conftest$ac_exeext conftest.$ac_ext
  20227. CFLAGS="$save_CFLAGS"
  20228. LDFLAGS="$save_LDFLAGS"
  20229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  20230. $as_echo "$enable_joystick_mfi" >&6; }
  20231. if test x$enable_joystick_mfi = xyes; then
  20232. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  20233. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  20234. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  20235. fi
  20236. fi
  20237. }
  20238. CheckPTHREAD()
  20239. {
  20240. case "$host" in
  20241. *-*-emscripten*)
  20242. enable_pthreads_default=no
  20243. ;;
  20244. *)
  20245. enable_pthreads_default=yes
  20246. ;;
  20247. esac
  20248. # Check whether --enable-pthreads was given.
  20249. if test "${enable_pthreads+set}" = set; then :
  20250. enableval=$enable_pthreads;
  20251. else
  20252. enable_pthreads=maybe
  20253. fi
  20254. # Check whether --enable-pthread-sem was given.
  20255. if test "${enable_pthread_sem+set}" = set; then :
  20256. enableval=$enable_pthread_sem;
  20257. else
  20258. enable_pthread_sem=maybe
  20259. fi
  20260. if test x$enable_pthreads = xmaybe; then
  20261. enable_pthreads=$enable_pthreads_default
  20262. fi
  20263. if test x$enable_pthread_sem = xmaybe; then
  20264. enable_pthread_sem=$enable_pthreads
  20265. fi
  20266. case "$host" in
  20267. *-*-android*)
  20268. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20269. pthread_lib=""
  20270. ;;
  20271. *-*-linux*|*-*-uclinux*)
  20272. pthread_cflags="-D_REENTRANT"
  20273. pthread_lib="-lpthread"
  20274. ;;
  20275. *-*-bsdi*)
  20276. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20277. pthread_lib=""
  20278. ;;
  20279. *-*-darwin*)
  20280. pthread_cflags="-D_THREAD_SAFE"
  20281. # causes Carbon.p complaints?
  20282. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20283. ;;
  20284. *-*-freebsd*|*-*-dragonfly*)
  20285. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20286. pthread_lib="-pthread"
  20287. ;;
  20288. *-*-netbsd*)
  20289. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20290. pthread_lib="-lpthread"
  20291. ;;
  20292. *-*-openbsd*)
  20293. pthread_cflags="-D_REENTRANT"
  20294. pthread_lib="-pthread"
  20295. ;;
  20296. *-*-solaris2.9)
  20297. # From Solaris 9+, posix4's preferred name is rt.
  20298. pthread_cflags="-D_REENTRANT"
  20299. pthread_lib="-lpthread -lrt"
  20300. ;;
  20301. *-*-solaris2.10)
  20302. # Solaris 10+ merged pthread into libc.
  20303. pthread_cflags="-D_REENTRANT"
  20304. pthread_lib="-lrt"
  20305. ;;
  20306. *-*-solaris*)
  20307. # Solaris 11+ merged rt into libc.
  20308. pthread_cflags="-D_REENTRANT"
  20309. pthread_lib=""
  20310. ;;
  20311. *-*-sysv5*)
  20312. pthread_cflags="-D_REENTRANT -Kthread"
  20313. pthread_lib=""
  20314. ;;
  20315. *-*-aix*)
  20316. pthread_cflags="-D_REENTRANT -mthreads"
  20317. pthread_lib="-lpthread"
  20318. ;;
  20319. *-*-hpux11*)
  20320. pthread_cflags="-D_REENTRANT"
  20321. pthread_lib="-L/usr/lib -lpthread"
  20322. ;;
  20323. *-*-haiku*)
  20324. pthread_cflags="-D_REENTRANT"
  20325. pthread_lib=""
  20326. ;;
  20327. *-*-nto*)
  20328. pthread_cflags="-D_REENTRANT"
  20329. pthread_lib=""
  20330. ;;
  20331. *-*-emscripten*)
  20332. pthread_cflags="-D_REENTRANT -pthread"
  20333. pthread_lib="-pthread"
  20334. ;;
  20335. *)
  20336. pthread_cflags="-D_REENTRANT"
  20337. pthread_lib="-lpthread"
  20338. ;;
  20339. esac
  20340. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  20341. # Save the original compiler flags and libraries
  20342. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20343. # Add the pthread compiler flags and libraries
  20344. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  20345. # Check to see if we have pthread support on this system
  20346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  20347. $as_echo_n "checking for pthreads... " >&6; }
  20348. use_pthreads=no
  20349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20350. /* end confdefs.h. */
  20351. #include <pthread.h>
  20352. int
  20353. main ()
  20354. {
  20355. pthread_attr_t type;
  20356. pthread_attr_init(&type);
  20357. ;
  20358. return 0;
  20359. }
  20360. _ACEOF
  20361. if ac_fn_c_try_link "$LINENO"; then :
  20362. use_pthreads=yes
  20363. fi
  20364. rm -f core conftest.err conftest.$ac_objext \
  20365. conftest$ac_exeext conftest.$ac_ext
  20366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  20367. $as_echo "$use_pthreads" >&6; }
  20368. # Restore the compiler flags and libraries
  20369. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20370. # Do futher testing if we have pthread support...
  20371. if test x$use_pthreads = xyes; then
  20372. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  20373. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  20374. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  20375. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  20376. # Save the original compiler flags and libraries
  20377. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20378. # Add the pthread compiler flags and libraries
  20379. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  20380. # Check to see if recursive mutexes are available
  20381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  20382. $as_echo_n "checking for recursive mutexes... " >&6; }
  20383. has_recursive_mutexes=no
  20384. if test x$has_recursive_mutexes = xno; then
  20385. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20386. /* end confdefs.h. */
  20387. #define _GNU_SOURCE 1
  20388. #include <pthread.h>
  20389. int
  20390. main ()
  20391. {
  20392. pthread_mutexattr_t attr;
  20393. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  20394. ;
  20395. return 0;
  20396. }
  20397. _ACEOF
  20398. if ac_fn_c_try_link "$LINENO"; then :
  20399. has_recursive_mutexes=yes
  20400. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  20401. fi
  20402. rm -f core conftest.err conftest.$ac_objext \
  20403. conftest$ac_exeext conftest.$ac_ext
  20404. fi
  20405. if test x$has_recursive_mutexes = xno; then
  20406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20407. /* end confdefs.h. */
  20408. #define _GNU_SOURCE 1
  20409. #include <pthread.h>
  20410. int
  20411. main ()
  20412. {
  20413. pthread_mutexattr_t attr;
  20414. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  20415. ;
  20416. return 0;
  20417. }
  20418. _ACEOF
  20419. if ac_fn_c_try_link "$LINENO"; then :
  20420. has_recursive_mutexes=yes
  20421. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  20422. fi
  20423. rm -f core conftest.err conftest.$ac_objext \
  20424. conftest$ac_exeext conftest.$ac_ext
  20425. fi
  20426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  20427. $as_echo "$has_recursive_mutexes" >&6; }
  20428. # Check to see if pthread semaphore support is missing
  20429. if test x$enable_pthread_sem = xyes; then
  20430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  20431. $as_echo_n "checking for pthread semaphores... " >&6; }
  20432. have_pthread_sem=no
  20433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20434. /* end confdefs.h. */
  20435. #include <pthread.h>
  20436. #include <semaphore.h>
  20437. int
  20438. main ()
  20439. {
  20440. ;
  20441. return 0;
  20442. }
  20443. _ACEOF
  20444. if ac_fn_c_try_compile "$LINENO"; then :
  20445. have_pthread_sem=yes
  20446. fi
  20447. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  20449. $as_echo "$have_pthread_sem" >&6; }
  20450. fi
  20451. if test x$have_pthread_sem = xyes; then
  20452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  20453. $as_echo_n "checking for sem_timedwait... " >&6; }
  20454. have_sem_timedwait=no
  20455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20456. /* end confdefs.h. */
  20457. #include <pthread.h>
  20458. #include <semaphore.h>
  20459. int
  20460. main ()
  20461. {
  20462. sem_timedwait(NULL, NULL);
  20463. ;
  20464. return 0;
  20465. }
  20466. _ACEOF
  20467. if ac_fn_c_try_link "$LINENO"; then :
  20468. have_sem_timedwait=yes
  20469. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  20470. fi
  20471. rm -f core conftest.err conftest.$ac_objext \
  20472. conftest$ac_exeext conftest.$ac_ext
  20473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  20474. $as_echo "$have_sem_timedwait" >&6; }
  20475. fi
  20476. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  20477. "
  20478. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  20479. have_pthread_np_h=yes
  20480. else
  20481. have_pthread_np_h=no
  20482. fi
  20483. if test x$have_pthread_np_h = xyes; then
  20484. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  20485. fi
  20486. # Check to see if pthread naming is available
  20487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  20488. $as_echo_n "checking for pthread_setname_np... " >&6; }
  20489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20490. /* end confdefs.h. */
  20491. /* Override any GCC internal prototype to avoid an error.
  20492. Use char because int might match the return type of a GCC
  20493. builtin and then its argument prototype would still apply. */
  20494. #ifdef __cplusplus
  20495. extern "C"
  20496. #endif
  20497. char pthread_setname_np ();
  20498. int
  20499. main ()
  20500. {
  20501. return pthread_setname_np ();
  20502. ;
  20503. return 0;
  20504. }
  20505. _ACEOF
  20506. if ac_fn_c_try_link "$LINENO"; then :
  20507. has_pthread_setname_np=yes
  20508. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  20509. else
  20510. has_pthread_setname_np=no
  20511. fi
  20512. rm -f core conftest.err conftest.$ac_objext \
  20513. conftest$ac_exeext conftest.$ac_ext
  20514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  20515. $as_echo "$has_pthread_setname_np" >&6; }
  20516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  20517. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  20518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20519. /* end confdefs.h. */
  20520. /* Override any GCC internal prototype to avoid an error.
  20521. Use char because int might match the return type of a GCC
  20522. builtin and then its argument prototype would still apply. */
  20523. #ifdef __cplusplus
  20524. extern "C"
  20525. #endif
  20526. char pthread_set_name_np ();
  20527. int
  20528. main ()
  20529. {
  20530. return pthread_set_name_np ();
  20531. ;
  20532. return 0;
  20533. }
  20534. _ACEOF
  20535. if ac_fn_c_try_link "$LINENO"; then :
  20536. has_pthread_set_name_np=yes
  20537. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  20538. else
  20539. has_pthread_set_name_np=no
  20540. fi
  20541. rm -f core conftest.err conftest.$ac_objext \
  20542. conftest$ac_exeext conftest.$ac_ext
  20543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  20544. $as_echo "$has_pthread_set_name_np" >&6; }
  20545. # Restore the compiler flags and libraries
  20546. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20547. # Basic thread creation functions
  20548. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  20549. # Semaphores
  20550. # We can fake these with mutexes and condition variables if necessary
  20551. if test x$have_pthread_sem = xyes; then
  20552. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  20553. else
  20554. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  20555. fi
  20556. # Mutexes
  20557. # We can fake these with semaphores if necessary
  20558. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  20559. # Condition variables
  20560. # We can fake these with semaphores and mutexes if necessary
  20561. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  20562. # Thread local storage
  20563. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  20564. have_threads=yes
  20565. fi
  20566. fi
  20567. }
  20568. CheckWINDOWS()
  20569. {
  20570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  20571. $as_echo_n "checking Windows compiler... " >&6; }
  20572. have_win32_gcc=no
  20573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20574. /* end confdefs.h. */
  20575. #include <windows.h>
  20576. int
  20577. main ()
  20578. {
  20579. ;
  20580. return 0;
  20581. }
  20582. _ACEOF
  20583. if ac_fn_c_try_compile "$LINENO"; then :
  20584. have_win32_gcc=yes
  20585. fi
  20586. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  20588. $as_echo "$have_win32_gcc" >&6; }
  20589. if test x$have_win32_gcc != xyes; then
  20590. as_fn_error $? "
  20591. *** Your compiler ($CC) does not produce Windows executables!
  20592. " "$LINENO" 5
  20593. fi
  20594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  20595. $as_echo_n "checking Windows CE... " >&6; }
  20596. have_wince=no
  20597. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20598. /* end confdefs.h. */
  20599. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  20600. #error This is not Windows CE
  20601. #endif
  20602. int
  20603. main ()
  20604. {
  20605. ;
  20606. return 0;
  20607. }
  20608. _ACEOF
  20609. if ac_fn_c_try_compile "$LINENO"; then :
  20610. have_wince=yes
  20611. as_fn_error $? "
  20612. *** Sorry, Windows CE is no longer supported.
  20613. " "$LINENO" 5
  20614. fi
  20615. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  20617. $as_echo "$have_wince" >&6; }
  20618. # This fixes Windows stack alignment with newer GCC
  20619. CheckStackBoundary
  20620. }
  20621. CheckDIRECTX()
  20622. {
  20623. # Check whether --enable-directx was given.
  20624. if test "${enable_directx+set}" = set; then :
  20625. enableval=$enable_directx;
  20626. else
  20627. enable_directx=yes
  20628. fi
  20629. if test x$enable_directx = xyes; then
  20630. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  20631. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  20632. have_d3d=yes
  20633. fi
  20634. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  20635. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  20636. have_d3d11=yes
  20637. fi
  20638. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  20639. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  20640. have_ddraw=yes
  20641. fi
  20642. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  20643. if test "x$ac_cv_header_dsound_h" = xyes; then :
  20644. have_dsound=yes
  20645. fi
  20646. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  20647. if test "x$ac_cv_header_dinput_h" = xyes; then :
  20648. have_dinput=yes
  20649. fi
  20650. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  20651. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  20652. have_dxgi=yes
  20653. fi
  20654. if test x$have_ddraw = xyes; then
  20655. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  20656. fi
  20657. if test x$have_dinput = xyes; then
  20658. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  20659. fi
  20660. if test x$have_dsound = xyes; then
  20661. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  20662. fi
  20663. if test x$have_dxgi = xyes; then
  20664. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  20665. fi
  20666. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  20667. # FIXME: ...so force it off for now.
  20668. case "$host" in
  20669. *-*-cygwin*)
  20670. have_dinput=false
  20671. ;;
  20672. esac
  20673. fi
  20674. # Check whether --enable-xinput was given.
  20675. if test "${enable_xinput+set}" = set; then :
  20676. enableval=$enable_xinput;
  20677. else
  20678. enable_xinput=yes
  20679. fi
  20680. if test x$enable_xinput = xyes; then
  20681. have_xinput_gamepadex=no
  20682. have_xinput_stateex=no
  20683. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  20684. if test "x$ac_cv_header_xinput_h" = xyes; then :
  20685. have_xinput=yes
  20686. fi
  20687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  20688. $as_echo_n "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  20689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20690. /* end confdefs.h. */
  20691. #include <windows.h>
  20692. #include <xinput.h>
  20693. XINPUT_GAMEPAD_EX x1;
  20694. int
  20695. main ()
  20696. {
  20697. ;
  20698. return 0;
  20699. }
  20700. _ACEOF
  20701. if ac_fn_c_try_compile "$LINENO"; then :
  20702. have_xinput_gamepadex=yes
  20703. fi
  20704. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  20706. $as_echo "$have_xinput_gamepadex" >&6; }
  20707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  20708. $as_echo_n "checking for struct XINPUT_STATE_EX... " >&6; }
  20709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20710. /* end confdefs.h. */
  20711. #include <windows.h>
  20712. #include <xinput.h>
  20713. XINPUT_STATE_EX s1;
  20714. int
  20715. main ()
  20716. {
  20717. ;
  20718. return 0;
  20719. }
  20720. _ACEOF
  20721. if ac_fn_c_try_compile "$LINENO"; then :
  20722. have_xinput_stateex=yes
  20723. fi
  20724. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  20726. $as_echo "$have_xinput_stateex" >&6; }
  20727. if test x$have_xinput = xyes; then
  20728. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  20729. fi
  20730. if test x$have_xinput_gamepadex = xyes; then
  20731. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  20732. fi
  20733. if test x$have_xinput_stateex = xyes; then
  20734. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  20735. fi
  20736. fi
  20737. ac_fn_c_check_header_mongrel "$LINENO" "windows.gaming.input.h" "ac_cv_header_windows_gaming_input_h" "$ac_includes_default"
  20738. if test "x$ac_cv_header_windows_gaming_input_h" = xyes; then :
  20739. have_wgi=yes
  20740. fi
  20741. if test x$have_wgi = xyes; then
  20742. $as_echo "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  20743. fi
  20744. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  20745. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  20746. have_wasapi=yes
  20747. fi
  20748. if test x$have_wasapi = xyes; then
  20749. $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  20750. fi
  20751. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  20752. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  20753. else
  20754. have_wasapi=no
  20755. fi
  20756. if test x$have_wasapi = xyes; then
  20757. $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  20758. fi
  20759. # Check whether --enable-wasapi was given.
  20760. if test "${enable_wasapi+set}" = set; then :
  20761. enableval=$enable_wasapi;
  20762. else
  20763. enable_wasapi=yes
  20764. fi
  20765. }
  20766. CheckDLOPEN()
  20767. {
  20768. $as_echo "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  20769. ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  20770. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  20771. have_dlfcn_h=yes
  20772. else
  20773. have_dlfcn_h=no
  20774. fi
  20775. have_dlopen=no
  20776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  20777. $as_echo_n "checking for dlopen in -lc... " >&6; }
  20778. if ${ac_cv_lib_c_dlopen+:} false; then :
  20779. $as_echo_n "(cached) " >&6
  20780. else
  20781. ac_check_lib_save_LIBS=$LIBS
  20782. LIBS="-lc $LIBS"
  20783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20784. /* end confdefs.h. */
  20785. /* Override any GCC internal prototype to avoid an error.
  20786. Use char because int might match the return type of a GCC
  20787. builtin and then its argument prototype would still apply. */
  20788. #ifdef __cplusplus
  20789. extern "C"
  20790. #endif
  20791. char dlopen ();
  20792. int
  20793. main ()
  20794. {
  20795. return dlopen ();
  20796. ;
  20797. return 0;
  20798. }
  20799. _ACEOF
  20800. if ac_fn_c_try_link "$LINENO"; then :
  20801. ac_cv_lib_c_dlopen=yes
  20802. else
  20803. ac_cv_lib_c_dlopen=no
  20804. fi
  20805. rm -f core conftest.err conftest.$ac_objext \
  20806. conftest$ac_exeext conftest.$ac_ext
  20807. LIBS=$ac_check_lib_save_LIBS
  20808. fi
  20809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  20810. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  20811. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  20812. have_dlopen=yes
  20813. else
  20814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  20815. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  20816. if ${ac_cv_lib_dl_dlopen+:} false; then :
  20817. $as_echo_n "(cached) " >&6
  20818. else
  20819. ac_check_lib_save_LIBS=$LIBS
  20820. LIBS="-ldl $LIBS"
  20821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20822. /* end confdefs.h. */
  20823. /* Override any GCC internal prototype to avoid an error.
  20824. Use char because int might match the return type of a GCC
  20825. builtin and then its argument prototype would still apply. */
  20826. #ifdef __cplusplus
  20827. extern "C"
  20828. #endif
  20829. char dlopen ();
  20830. int
  20831. main ()
  20832. {
  20833. return dlopen ();
  20834. ;
  20835. return 0;
  20836. }
  20837. _ACEOF
  20838. if ac_fn_c_try_link "$LINENO"; then :
  20839. ac_cv_lib_dl_dlopen=yes
  20840. else
  20841. ac_cv_lib_dl_dlopen=no
  20842. fi
  20843. rm -f core conftest.err conftest.$ac_objext \
  20844. conftest$ac_exeext conftest.$ac_ext
  20845. LIBS=$ac_check_lib_save_LIBS
  20846. fi
  20847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  20848. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  20849. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  20850. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  20851. fi
  20852. fi
  20853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  20854. $as_echo_n "checking for dlopen... " >&6; }
  20855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  20856. $as_echo "$have_dlopen" >&6; }
  20857. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  20858. $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
  20859. if test x$enable_loadso = xyes; then
  20860. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  20861. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  20862. have_loadso=yes
  20863. fi
  20864. fi
  20865. }
  20866. CheckO_CLOEXEC()
  20867. {
  20868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  20869. $as_echo_n "checking for O_CLOEXEC... " >&6; }
  20870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20871. /* end confdefs.h. */
  20872. #include <fcntl.h>
  20873. int flag = O_CLOEXEC;
  20874. int
  20875. main ()
  20876. {
  20877. ;
  20878. return 0;
  20879. }
  20880. _ACEOF
  20881. if ac_fn_c_try_compile "$LINENO"; then :
  20882. have_o_cloexec=yes
  20883. else
  20884. have_o_cloexec=no
  20885. fi
  20886. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  20888. $as_echo "$have_o_cloexec" >&6; }
  20889. if test $have_o_cloexec = yes; then
  20890. $as_echo "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  20891. fi
  20892. }
  20893. CheckUSBHID()
  20894. {
  20895. case "$host" in
  20896. *-*-*bsd*|*-*-dragonfly*)
  20897. if test x$enable_joystick = xyes; then
  20898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  20899. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  20900. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  20901. $as_echo_n "(cached) " >&6
  20902. else
  20903. ac_check_lib_save_LIBS=$LIBS
  20904. LIBS="-lusbhid $LIBS"
  20905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20906. /* end confdefs.h. */
  20907. /* Override any GCC internal prototype to avoid an error.
  20908. Use char because int might match the return type of a GCC
  20909. builtin and then its argument prototype would still apply. */
  20910. #ifdef __cplusplus
  20911. extern "C"
  20912. #endif
  20913. char hid_init ();
  20914. int
  20915. main ()
  20916. {
  20917. return hid_init ();
  20918. ;
  20919. return 0;
  20920. }
  20921. _ACEOF
  20922. if ac_fn_c_try_link "$LINENO"; then :
  20923. ac_cv_lib_usbhid_hid_init=yes
  20924. else
  20925. ac_cv_lib_usbhid_hid_init=no
  20926. fi
  20927. rm -f core conftest.err conftest.$ac_objext \
  20928. conftest$ac_exeext conftest.$ac_ext
  20929. LIBS=$ac_check_lib_save_LIBS
  20930. fi
  20931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  20932. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  20933. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  20934. have_libusbhid=yes
  20935. fi
  20936. if test x$have_libusbhid = xyes; then
  20937. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  20938. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  20939. USB_CFLAGS="-DHAVE_USBHID_H"
  20940. fi
  20941. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  20942. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  20943. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  20944. fi
  20945. USB_LIBS="$USB_LIBS -lusbhid"
  20946. else
  20947. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  20948. if test "x$ac_cv_header_usb_h" = xyes; then :
  20949. USB_CFLAGS="-DHAVE_USB_H"
  20950. fi
  20951. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20952. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20953. USB_CFLAGS="-DHAVE_LIBUSB_H"
  20954. fi
  20955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  20956. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  20957. if ${ac_cv_lib_usb_hid_init+:} false; then :
  20958. $as_echo_n "(cached) " >&6
  20959. else
  20960. ac_check_lib_save_LIBS=$LIBS
  20961. LIBS="-lusb $LIBS"
  20962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20963. /* end confdefs.h. */
  20964. /* Override any GCC internal prototype to avoid an error.
  20965. Use char because int might match the return type of a GCC
  20966. builtin and then its argument prototype would still apply. */
  20967. #ifdef __cplusplus
  20968. extern "C"
  20969. #endif
  20970. char hid_init ();
  20971. int
  20972. main ()
  20973. {
  20974. return hid_init ();
  20975. ;
  20976. return 0;
  20977. }
  20978. _ACEOF
  20979. if ac_fn_c_try_link "$LINENO"; then :
  20980. ac_cv_lib_usb_hid_init=yes
  20981. else
  20982. ac_cv_lib_usb_hid_init=no
  20983. fi
  20984. rm -f core conftest.err conftest.$ac_objext \
  20985. conftest$ac_exeext conftest.$ac_ext
  20986. LIBS=$ac_check_lib_save_LIBS
  20987. fi
  20988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  20989. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  20990. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  20991. USB_LIBS="$USB_LIBS -lusb"
  20992. fi
  20993. fi
  20994. save_CFLAGS="$CFLAGS"
  20995. CFLAGS="$CFLAGS $USB_CFLAGS"
  20996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  20997. $as_echo_n "checking for usbhid... " >&6; }
  20998. have_usbhid=no
  20999. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21000. /* end confdefs.h. */
  21001. #include <sys/types.h>
  21002. #if defined(HAVE_USB_H)
  21003. #include <usb.h>
  21004. #endif
  21005. #ifdef __DragonFly__
  21006. # include <bus/u4b/usb.h>
  21007. # include <bus/u4b/usbhid.h>
  21008. #else
  21009. # include <dev/usb/usb.h>
  21010. # include <dev/usb/usbhid.h>
  21011. #endif
  21012. #if defined(HAVE_USBHID_H)
  21013. #include <usbhid.h>
  21014. #elif defined(HAVE_LIBUSB_H)
  21015. #include <libusb.h>
  21016. #elif defined(HAVE_LIBUSBHID_H)
  21017. #include <libusbhid.h>
  21018. #endif
  21019. int
  21020. main ()
  21021. {
  21022. struct report_desc *repdesc;
  21023. struct usb_ctl_report *repbuf;
  21024. hid_kind_t hidkind;
  21025. ;
  21026. return 0;
  21027. }
  21028. _ACEOF
  21029. if ac_fn_c_try_compile "$LINENO"; then :
  21030. have_usbhid=yes
  21031. fi
  21032. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  21034. $as_echo "$have_usbhid" >&6; }
  21035. if test x$have_usbhid = xyes; then
  21036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  21037. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  21038. have_usbhid_ucr_data=no
  21039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21040. /* end confdefs.h. */
  21041. #include <sys/types.h>
  21042. #if defined(HAVE_USB_H)
  21043. #include <usb.h>
  21044. #endif
  21045. #ifdef __DragonFly__
  21046. # include <bus/u4b/usb.h>
  21047. # include <bus/u4b/usbhid.h>
  21048. #else
  21049. # include <dev/usb/usb.h>
  21050. # include <dev/usb/usbhid.h>
  21051. #endif
  21052. #if defined(HAVE_USBHID_H)
  21053. #include <usbhid.h>
  21054. #elif defined(HAVE_LIBUSB_H)
  21055. #include <libusb.h>
  21056. #elif defined(HAVE_LIBUSBHID_H)
  21057. #include <libusbhid.h>
  21058. #endif
  21059. int
  21060. main ()
  21061. {
  21062. struct usb_ctl_report buf;
  21063. if (buf.ucr_data) { }
  21064. ;
  21065. return 0;
  21066. }
  21067. _ACEOF
  21068. if ac_fn_c_try_compile "$LINENO"; then :
  21069. have_usbhid_ucr_data=yes
  21070. fi
  21071. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21072. if test x$have_usbhid_ucr_data = xyes; then
  21073. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  21074. fi
  21075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  21076. $as_echo "$have_usbhid_ucr_data" >&6; }
  21077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  21078. $as_echo_n "checking for new usbhid API... " >&6; }
  21079. have_usbhid_new=no
  21080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21081. /* end confdefs.h. */
  21082. #include <sys/types.h>
  21083. #if defined(HAVE_USB_H)
  21084. #include <usb.h>
  21085. #endif
  21086. #ifdef __DragonFly__
  21087. #include <bus/u4b/usb.h>
  21088. #include <bus/u4b/usbhid.h>
  21089. #else
  21090. #include <dev/usb/usb.h>
  21091. #include <dev/usb/usbhid.h>
  21092. #endif
  21093. #if defined(HAVE_USBHID_H)
  21094. #include <usbhid.h>
  21095. #elif defined(HAVE_LIBUSB_H)
  21096. #include <libusb.h>
  21097. #elif defined(HAVE_LIBUSBHID_H)
  21098. #include <libusbhid.h>
  21099. #endif
  21100. int
  21101. main ()
  21102. {
  21103. report_desc_t d;
  21104. hid_start_parse(d, 1, 1);
  21105. ;
  21106. return 0;
  21107. }
  21108. _ACEOF
  21109. if ac_fn_c_try_compile "$LINENO"; then :
  21110. have_usbhid_new=yes
  21111. fi
  21112. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21113. if test x$have_usbhid_new = xyes; then
  21114. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  21115. fi
  21116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  21117. $as_echo "$have_usbhid_new" >&6; }
  21118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  21119. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  21120. have_machine_joystick=no
  21121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21122. /* end confdefs.h. */
  21123. #include <machine/joystick.h>
  21124. int
  21125. main ()
  21126. {
  21127. struct joystick t;
  21128. ;
  21129. return 0;
  21130. }
  21131. _ACEOF
  21132. if ac_fn_c_try_compile "$LINENO"; then :
  21133. have_machine_joystick=yes
  21134. fi
  21135. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21136. if test x$have_machine_joystick = xyes; then
  21137. $as_echo "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  21138. fi
  21139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  21140. $as_echo "$have_machine_joystick" >&6; }
  21141. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  21142. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  21143. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  21144. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  21145. have_joystick=yes
  21146. fi
  21147. CFLAGS="$save_CFLAGS"
  21148. fi
  21149. ;;
  21150. esac
  21151. }
  21152. CheckHIDAPI()
  21153. {
  21154. # Check whether --enable-hidapi-joystick was given.
  21155. if test "${enable_hidapi_joystick+set}" = set; then :
  21156. enableval=$enable_hidapi_joystick;
  21157. else
  21158. enable_hidapi_joystick=yes
  21159. fi
  21160. # Check whether --enable-hidapi-libusb was given.
  21161. if test "${enable_hidapi_libusb+set}" = set; then :
  21162. enableval=$enable_hidapi_libusb;
  21163. else
  21164. enable_hidapi_libusb=maybe
  21165. fi
  21166. if test x$enable_hidapi = xyes; then
  21167. case "$host" in
  21168. # libusb does not support iOS
  21169. *-ios-* )
  21170. enable_hidapi_libusb=no
  21171. ;;
  21172. # On the other hand, *BSD specifically uses libusb only
  21173. *-*-*bsd* )
  21174. enable_hidapi_libusb=yes
  21175. require_hidapi_libusb=yes
  21176. ;;
  21177. esac
  21178. hidapi_support=yes
  21179. if test x$enable_hidapi_libusb = xyes; then
  21180. pkg_failed=no
  21181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  21182. $as_echo_n "checking for libusb-1.0... " >&6; }
  21183. if test -n "$LIBUSB_CFLAGS"; then
  21184. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  21185. elif test -n "$PKG_CONFIG"; then
  21186. if test -n "$PKG_CONFIG" && \
  21187. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  21188. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  21189. ac_status=$?
  21190. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21191. test $ac_status = 0; }; then
  21192. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  21193. test "x$?" != "x0" && pkg_failed=yes
  21194. else
  21195. pkg_failed=yes
  21196. fi
  21197. else
  21198. pkg_failed=untried
  21199. fi
  21200. if test -n "$LIBUSB_LIBS"; then
  21201. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  21202. elif test -n "$PKG_CONFIG"; then
  21203. if test -n "$PKG_CONFIG" && \
  21204. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  21205. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  21206. ac_status=$?
  21207. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21208. test $ac_status = 0; }; then
  21209. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  21210. test "x$?" != "x0" && pkg_failed=yes
  21211. else
  21212. pkg_failed=yes
  21213. fi
  21214. else
  21215. pkg_failed=untried
  21216. fi
  21217. if test $pkg_failed = yes; then
  21218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21219. $as_echo "no" >&6; }
  21220. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21221. _pkg_short_errors_supported=yes
  21222. else
  21223. _pkg_short_errors_supported=no
  21224. fi
  21225. if test $_pkg_short_errors_supported = yes; then
  21226. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  21227. else
  21228. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  21229. fi
  21230. # Put the nasty error message in config.log where it belongs
  21231. echo "$LIBUSB_PKG_ERRORS" >&5
  21232. have_libusb=no
  21233. elif test $pkg_failed = untried; then
  21234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21235. $as_echo "no" >&6; }
  21236. have_libusb=no
  21237. else
  21238. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  21239. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  21240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21241. $as_echo "yes" >&6; }
  21242. have_libusb=yes
  21243. fi
  21244. save_CPPFLAGS="$CPPFLAGS"
  21245. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  21246. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  21247. if test "x$ac_cv_header_libusb_h" = xyes; then :
  21248. have_libusb_h=yes
  21249. else
  21250. have_libusb_h=no
  21251. fi
  21252. CPPFLAGS="$save_CPPFLAGS"
  21253. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  21254. hidapi_support=no
  21255. fi
  21256. fi
  21257. if test x$hidapi_support = xyes; then
  21258. if test x$have_libusb_h = xyes; then
  21259. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  21260. if test x$require_hidapi_libusb = xyes; then
  21261. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  21262. else
  21263. if test x$have_loadso != xyes; then
  21264. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  21265. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  21266. fi
  21267. # libusb is loaded dynamically, so don't add it to LDFLAGS
  21268. libusb_lib=""
  21269. case "$host" in
  21270. *-*-darwin* )
  21271. libusb_lib="libusb-1.0.0.dylib"
  21272. ;;
  21273. *-*-cygwin* | *-*-mingw* )
  21274. libusb_lib="libusb-1.0.dll"
  21275. ;;
  21276. esac
  21277. if test x$libusb_lib = x; then
  21278. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  21279. fi
  21280. cat >>confdefs.h <<_ACEOF
  21281. #define SDL_LIBUSB_DYNAMIC "$libusb_lib"
  21282. _ACEOF
  21283. fi
  21284. fi
  21285. fi
  21286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  21287. $as_echo_n "checking for hidapi joystick support... " >&6; }
  21288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  21289. $as_echo "$hidapi_support" >&6; }
  21290. fi
  21291. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  21292. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  21293. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  21294. fi
  21295. }
  21296. CheckClockGettime()
  21297. {
  21298. # Check whether --enable-clock_gettime was given.
  21299. if test "${enable_clock_gettime+set}" = set; then :
  21300. enableval=$enable_clock_gettime;
  21301. else
  21302. enable_clock_gettime=yes
  21303. fi
  21304. if test x$enable_clock_gettime = xyes; then
  21305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  21306. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  21307. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  21308. $as_echo_n "(cached) " >&6
  21309. else
  21310. ac_check_lib_save_LIBS=$LIBS
  21311. LIBS="-lrt $LIBS"
  21312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21313. /* end confdefs.h. */
  21314. /* Override any GCC internal prototype to avoid an error.
  21315. Use char because int might match the return type of a GCC
  21316. builtin and then its argument prototype would still apply. */
  21317. #ifdef __cplusplus
  21318. extern "C"
  21319. #endif
  21320. char clock_gettime ();
  21321. int
  21322. main ()
  21323. {
  21324. return clock_gettime ();
  21325. ;
  21326. return 0;
  21327. }
  21328. _ACEOF
  21329. if ac_fn_c_try_link "$LINENO"; then :
  21330. ac_cv_lib_rt_clock_gettime=yes
  21331. else
  21332. ac_cv_lib_rt_clock_gettime=no
  21333. fi
  21334. rm -f core conftest.err conftest.$ac_objext \
  21335. conftest$ac_exeext conftest.$ac_ext
  21336. LIBS=$ac_check_lib_save_LIBS
  21337. fi
  21338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  21339. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  21340. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  21341. have_clock_gettime=yes
  21342. fi
  21343. if test x$have_clock_gettime = xyes; then
  21344. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  21345. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  21346. else
  21347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  21348. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  21349. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  21350. $as_echo_n "(cached) " >&6
  21351. else
  21352. ac_check_lib_save_LIBS=$LIBS
  21353. LIBS="-lc $LIBS"
  21354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21355. /* end confdefs.h. */
  21356. /* Override any GCC internal prototype to avoid an error.
  21357. Use char because int might match the return type of a GCC
  21358. builtin and then its argument prototype would still apply. */
  21359. #ifdef __cplusplus
  21360. extern "C"
  21361. #endif
  21362. char clock_gettime ();
  21363. int
  21364. main ()
  21365. {
  21366. return clock_gettime ();
  21367. ;
  21368. return 0;
  21369. }
  21370. _ACEOF
  21371. if ac_fn_c_try_link "$LINENO"; then :
  21372. ac_cv_lib_c_clock_gettime=yes
  21373. else
  21374. ac_cv_lib_c_clock_gettime=no
  21375. fi
  21376. rm -f core conftest.err conftest.$ac_objext \
  21377. conftest$ac_exeext conftest.$ac_ext
  21378. LIBS=$ac_check_lib_save_LIBS
  21379. fi
  21380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  21381. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  21382. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  21383. have_clock_gettime=yes
  21384. fi
  21385. if test x$have_clock_gettime = xyes; then
  21386. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  21387. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  21388. fi
  21389. fi
  21390. fi
  21391. }
  21392. CheckLinuxVersion()
  21393. {
  21394. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  21395. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  21396. have_linux_version_h=yes
  21397. fi
  21398. if test x$have_linux_version_h = xyes; then
  21399. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  21400. fi
  21401. }
  21402. CheckRPATH()
  21403. {
  21404. # Check whether --enable-rpath was given.
  21405. if test "${enable_rpath+set}" = set; then :
  21406. enableval=$enable_rpath;
  21407. else
  21408. enable_rpath=yes
  21409. fi
  21410. }
  21411. CheckEventSignals()
  21412. {
  21413. # Check whether --enable-backgrounding-signal was given.
  21414. if test "${enable_backgrounding_signal+set}" = set; then :
  21415. enableval=$enable_backgrounding_signal;
  21416. else
  21417. enable_backgrounding_signal=no
  21418. fi
  21419. if test x$enable_backgrounding_signal != xno; then
  21420. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  21421. fi
  21422. # Check whether --enable-foregrounding-signal was given.
  21423. if test "${enable_foregrounding_signal+set}" = set; then :
  21424. enableval=$enable_foregrounding_signal;
  21425. else
  21426. enable_foregrounding_signal=no
  21427. fi
  21428. if test x$enable_foregrounding_signal != xno; then
  21429. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  21430. fi
  21431. }
  21432. CheckVirtualJoystick()
  21433. {
  21434. # Check whether --enable-joystick-virtual was given.
  21435. if test "${enable_joystick_virtual+set}" = set; then :
  21436. enableval=$enable_joystick_virtual;
  21437. else
  21438. enable_joystick_virtual=yes
  21439. fi
  21440. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  21441. $as_echo "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  21442. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  21443. have_joystick_virtual=yes
  21444. fi
  21445. }
  21446. CheckWarnAll
  21447. CheckNoStrictAliasing
  21448. CheckEventSignals
  21449. have_locale=no
  21450. case "$host" in
  21451. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  21452. case "$host" in
  21453. *-*-android*)
  21454. # Android
  21455. ARCH=android
  21456. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  21457. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  21458. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  21459. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  21460. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  21461. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  21462. if test x$enable_video = xyes; then
  21463. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  21464. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  21465. SUMMARY_video="${SUMMARY_video} android"
  21466. fi
  21467. ;;
  21468. *-*-linux*) ARCH=linux ;;
  21469. *-*-uclinux*) ARCH=linux ;;
  21470. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  21471. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  21472. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  21473. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  21474. *-*-bsdi*) ARCH=bsdi ;;
  21475. *-*-freebsd*) ARCH=freebsd ;;
  21476. *-*-dragonfly*) ARCH=freebsd ;;
  21477. *-*-netbsd*) ARCH=netbsd ;;
  21478. *-*-openbsd*) ARCH=openbsd ;;
  21479. *-*-sysv5*) ARCH=sysv5 ;;
  21480. *-*-solaris*) ARCH=solaris ;;
  21481. *-*-hpux*) ARCH=hpux ;;
  21482. *-*-aix*) ARCH=aix ;;
  21483. *-*-minix*) ARCH=minix ;;
  21484. *-*-nto*) ARCH=nto
  21485. CheckQNXVideo
  21486. ;;
  21487. esac
  21488. CheckVisibilityHidden
  21489. CheckDeclarationAfterStatement
  21490. CheckDummyVideo
  21491. CheckOffscreenVideo
  21492. CheckDiskAudio
  21493. CheckDummyAudio
  21494. CheckDLOPEN
  21495. CheckARM
  21496. CheckNEON
  21497. CheckO_CLOEXEC
  21498. CheckOSS
  21499. CheckALSA
  21500. CheckPipewire
  21501. CheckPulseAudio
  21502. CheckJACK
  21503. CheckARTSC
  21504. CheckESD
  21505. CheckNAS
  21506. CheckSNDIO
  21507. CheckFusionSound
  21508. CheckLibSampleRate
  21509. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  21510. CheckRPI
  21511. CheckX11
  21512. CheckDirectFB
  21513. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  21514. CheckEGL
  21515. CheckKMSDRM
  21516. CheckGLX
  21517. CheckOpenGL
  21518. CheckOpenGLES
  21519. CheckVulkan
  21520. CheckWayland
  21521. CheckInputEvents
  21522. CheckLibUDev
  21523. CheckDBus
  21524. CheckIME
  21525. CheckInotify
  21526. CheckIBus
  21527. CheckFcitx
  21528. case $ARCH in
  21529. linux)
  21530. CheckInputKD
  21531. ;;
  21532. freebsd)
  21533. CheckInputKBIO
  21534. ;;
  21535. openbsd|netbsd)
  21536. CheckInputWSCONS
  21537. ;;
  21538. esac
  21539. CheckUSBHID
  21540. CheckHIDAPI
  21541. CheckPTHREAD
  21542. CheckClockGettime
  21543. CheckLinuxVersion
  21544. CheckRPATH
  21545. CheckVivanteVideo
  21546. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  21547. have_misc=yes
  21548. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  21549. have_locale=yes
  21550. # Set up files for the audio library
  21551. if test x$enable_audio = xyes; then
  21552. case $ARCH in
  21553. sysv5|solaris|hpux)
  21554. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  21555. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  21556. SUMMARY_audio="${SUMMARY_audio} sun"
  21557. have_audio=yes
  21558. ;;
  21559. netbsd) # Don't use this on OpenBSD, it's busted.
  21560. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  21561. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  21562. SUMMARY_audio="${SUMMARY_audio} netbsd"
  21563. have_audio=yes
  21564. ;;
  21565. aix)
  21566. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  21567. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  21568. SUMMARY_audio="${SUMMARY_audio} paudio"
  21569. have_audio=yes
  21570. ;;
  21571. android)
  21572. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  21573. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  21574. SUMMARY_audio="${SUMMARY_audio} android"
  21575. $as_echo "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  21576. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  21577. SUMMARY_audio="${SUMMARY_audio} openslES"
  21578. $as_echo "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  21579. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  21580. SUMMARY_audio="${SUMMARY_audio} aaudio"
  21581. have_audio=yes
  21582. ;;
  21583. nto)
  21584. CheckQNXAudio
  21585. ;;
  21586. esac
  21587. fi
  21588. # Set up files for the joystick library
  21589. if test x$enable_joystick = xyes; then
  21590. case $ARCH in
  21591. linux)
  21592. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  21593. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  21594. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21595. have_joystick=yes
  21596. ;;
  21597. freebsd)
  21598. if test x$use_input_events = xyes; then
  21599. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  21600. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  21601. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21602. have_joystick=yes
  21603. fi
  21604. ;;
  21605. android)
  21606. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  21607. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  21608. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21609. have_joystick=yes
  21610. ;;
  21611. esac
  21612. fi
  21613. # Set up files for the haptic library
  21614. if test x$enable_haptic = xyes; then
  21615. case $ARCH in
  21616. linux|freebsd)
  21617. if test x$use_input_events = xyes; then
  21618. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  21619. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  21620. have_haptic=yes
  21621. fi
  21622. ;;
  21623. android)
  21624. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  21625. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  21626. have_haptic=yes
  21627. ;;
  21628. esac
  21629. fi
  21630. # Set up files for the sensor library
  21631. if test x$enable_sensor = xyes; then
  21632. case $ARCH in
  21633. android)
  21634. $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  21635. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  21636. have_sensor=yes
  21637. ;;
  21638. esac
  21639. fi
  21640. # Set up files for the power library
  21641. if test x$enable_power = xyes; then
  21642. case $ARCH in
  21643. linux)
  21644. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  21645. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  21646. have_power=yes
  21647. ;;
  21648. android)
  21649. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  21650. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  21651. have_power=yes
  21652. ;;
  21653. esac
  21654. fi
  21655. # Set up files for the filesystem library
  21656. if test x$enable_filesystem = xyes; then
  21657. case $ARCH in
  21658. android)
  21659. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  21660. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  21661. have_filesystem=yes
  21662. ;;
  21663. *)
  21664. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  21665. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  21666. have_filesystem=yes
  21667. ;;
  21668. esac
  21669. fi
  21670. # Set up files for the timer library
  21671. if test x$enable_timers = xyes; then
  21672. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21673. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21674. have_timers=yes
  21675. fi
  21676. # Set up files for udev hotplugging support
  21677. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  21678. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  21679. fi
  21680. # Set up files for evdev input
  21681. if test x$use_input_events = xyes; then
  21682. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  21683. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  21684. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  21685. fi
  21686. # Set up files for wscons input
  21687. if test x$use_input_wscons = xyes; then
  21688. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  21689. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  21690. fi
  21691. # Set up other core UNIX files
  21692. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  21693. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  21694. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21695. ;;
  21696. *-*-cygwin* | *-*-mingw*)
  21697. ARCH=win32
  21698. if test "$build" != "$host"; then # cross-compiling
  21699. # Default cross-compile location
  21700. ac_default_prefix=/usr/local/cross-tools/$host
  21701. else
  21702. # Look for the location of the tools and install there
  21703. if test "$BUILD_PREFIX" != ""; then
  21704. ac_default_prefix=$BUILD_PREFIX
  21705. fi
  21706. fi
  21707. if test x$enable_loadso = xyes; then
  21708. have_loadso=yes
  21709. fi
  21710. CheckDeclarationAfterStatement
  21711. CheckDummyVideo
  21712. CheckOffscreenVideo
  21713. CheckDiskAudio
  21714. CheckDummyAudio
  21715. CheckWINDOWS
  21716. CheckWINDOWSGL
  21717. CheckWINDOWSGLES
  21718. CheckVulkan
  21719. CheckDIRECTX
  21720. CheckHIDAPI
  21721. # Set up the core platform files
  21722. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  21723. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  21724. have_misc=yes
  21725. # Use the Windows locale APIs.
  21726. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  21727. have_locale=yes
  21728. # Set up files for the video library
  21729. if test x$enable_video = xyes; then
  21730. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  21731. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  21732. have_video=yes
  21733. # Check whether --enable-render-d3d was given.
  21734. if test "${enable_render_d3d+set}" = set; then :
  21735. enableval=$enable_render_d3d;
  21736. else
  21737. enable_render_d3d=yes
  21738. fi
  21739. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  21740. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  21741. SUMMARY_video="${SUMMARY_video} d3d9"
  21742. fi
  21743. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  21744. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  21745. SUMMARY_video="${SUMMARY_video} d3d11"
  21746. fi
  21747. fi
  21748. # Set up files for the audio library
  21749. if test x$enable_audio = xyes; then
  21750. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  21751. SUMMARY_audio="${SUMMARY_audio} winmm"
  21752. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  21753. if test x$have_dsound = xyes; then
  21754. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  21755. SUMMARY_audio="${SUMMARY_audio} directsound"
  21756. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  21757. fi
  21758. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  21759. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  21760. SUMMARY_audio="${SUMMARY_audio} wasapi"
  21761. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  21762. fi
  21763. have_audio=yes
  21764. fi
  21765. # Set up files for the joystick library
  21766. if test x$enable_joystick = xyes; then
  21767. $as_echo "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  21768. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  21769. if test x$have_xinput = xyes; then
  21770. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  21771. fi
  21772. if test x$have_wgi = xyes; then
  21773. $as_echo "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  21774. fi
  21775. if test x$have_dinput = xyes; then
  21776. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  21777. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  21778. fi
  21779. fi
  21780. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  21781. have_joystick=yes
  21782. fi
  21783. if test x$enable_haptic = xyes; then
  21784. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21785. if test x$have_xinput = xyes; then
  21786. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  21787. fi
  21788. if test x$have_dinput = xyes; then
  21789. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  21790. fi
  21791. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  21792. have_haptic=yes
  21793. fi
  21794. fi
  21795. # Set up files for the sensor library
  21796. ac_fn_c_check_header_mongrel "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  21797. if test "x$ac_cv_header_sensorsapi_h" = xyes; then :
  21798. have_winsensors=yes
  21799. else
  21800. have_winsensors=no
  21801. fi
  21802. if test x$have_winsensors = xyes; then
  21803. $as_echo "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  21804. fi
  21805. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  21806. $as_echo "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  21807. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  21808. have_sensor=yes
  21809. fi
  21810. # Set up files for the power library
  21811. if test x$enable_power = xyes; then
  21812. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  21813. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  21814. have_power=yes
  21815. fi
  21816. # Set up files for the filesystem library
  21817. if test x$enable_filesystem = xyes; then
  21818. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  21819. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  21820. have_filesystem=yes
  21821. fi
  21822. # Set up files for the thread library
  21823. if test x$enable_threads = xyes; then
  21824. $as_echo "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  21825. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  21826. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  21827. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  21828. have_threads=yes
  21829. fi
  21830. # Set up files for the timer library
  21831. if test x$enable_timers = xyes; then
  21832. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  21833. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  21834. have_timers=yes
  21835. fi
  21836. # Set up files for the shared object loading library
  21837. if test x$enable_loadso = xyes; then
  21838. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  21839. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  21840. fi
  21841. # Set up the system libraries we need
  21842. if test -f /lib/w32api/libuuid.a; then
  21843. LIBUUID=/lib/w32api/libuuid.a
  21844. else
  21845. LIBUUID=-luuid
  21846. fi
  21847. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  21848. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  21849. # The Windows platform requires special setup
  21850. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  21851. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  21852. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  21853. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  21854. # Check to see if this is a mingw or cygwin build
  21855. have_mingw32=
  21856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  21857. $as_echo_n "checking for main in -lmingw32... " >&6; }
  21858. if ${ac_cv_lib_mingw32_main+:} false; then :
  21859. $as_echo_n "(cached) " >&6
  21860. else
  21861. ac_check_lib_save_LIBS=$LIBS
  21862. LIBS="-lmingw32 $LIBS"
  21863. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21864. /* end confdefs.h. */
  21865. int
  21866. main ()
  21867. {
  21868. return main ();
  21869. ;
  21870. return 0;
  21871. }
  21872. _ACEOF
  21873. if ac_fn_c_try_link "$LINENO"; then :
  21874. ac_cv_lib_mingw32_main=yes
  21875. else
  21876. ac_cv_lib_mingw32_main=no
  21877. fi
  21878. rm -f core conftest.err conftest.$ac_objext \
  21879. conftest$ac_exeext conftest.$ac_ext
  21880. LIBS=$ac_check_lib_save_LIBS
  21881. fi
  21882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  21883. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  21884. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  21885. have_mingw32=yes
  21886. fi
  21887. if test x$have_mingw32 = xyes; then
  21888. SDL_LIBS="-lmingw32 $SDL_LIBS"
  21889. else
  21890. SDL_LIBS="-lcygwin $SDL_LIBS"
  21891. fi
  21892. ;;
  21893. *-*-beos*)
  21894. as_fn_error $? "
  21895. *** BeOS support has been removed as of SDL 2.0.2.
  21896. " "$LINENO" 5
  21897. ;;
  21898. *-*-haiku*)
  21899. ARCH=haiku
  21900. ac_default_prefix=/boot/system
  21901. CheckDummyVideo
  21902. CheckOffscreenVideo
  21903. CheckDiskAudio
  21904. CheckDummyAudio
  21905. CheckDLOPEN
  21906. CheckO_CLOEXEC
  21907. CheckHaikuVideo
  21908. CheckHaikuGL
  21909. CheckPTHREAD
  21910. # Set up files for the audio library
  21911. if test x$enable_audio = xyes; then
  21912. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  21913. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  21914. SUMMARY_audio="${SUMMARY_audio} haiku"
  21915. have_audio=yes
  21916. fi
  21917. # Set up files for the joystick library
  21918. if test x$enable_joystick = xyes; then
  21919. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  21920. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  21921. have_joystick=yes
  21922. fi
  21923. # Set up files for the timer library
  21924. if test x$enable_timers = xyes; then
  21925. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  21926. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  21927. have_timers=yes
  21928. fi
  21929. # Set up files for the system power library
  21930. if test x$enable_power = xyes; then
  21931. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  21932. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  21933. have_power=yes
  21934. fi
  21935. # Set up files for the system filesystem library
  21936. if test x$enable_filesystem = xyes; then
  21937. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  21938. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  21939. have_filesystem=yes
  21940. fi
  21941. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  21942. have_misc=yes
  21943. # Set up files for the locale library
  21944. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  21945. have_locale=yes
  21946. # The Haiku platform requires special setup.
  21947. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  21948. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  21949. ;;
  21950. *-ios-*)
  21951. ARCH=ios
  21952. CheckVisibilityHidden
  21953. CheckDeclarationAfterStatement
  21954. CheckDummyVideo
  21955. CheckOffscreenVideo
  21956. CheckDiskAudio
  21957. CheckDummyAudio
  21958. CheckDLOPEN
  21959. CheckO_CLOEXEC
  21960. CheckMETAL
  21961. CheckVulkan
  21962. CheckPTHREAD
  21963. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  21964. have_misc=yes
  21965. # Set up files for the locale library
  21966. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  21967. have_locale=yes
  21968. # Set up files for the audio library
  21969. if test x$enable_audio = xyes; then
  21970. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21971. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21972. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21973. have_audio=yes
  21974. fi
  21975. # Set up files for the joystick library
  21976. if test x$enable_joystick = xyes; then
  21977. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  21978. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21979. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21980. have_joystick=yes
  21981. else
  21982. # Need this code for accelerometer as joystick support
  21983. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21984. fi
  21985. # Set up files for the haptic library
  21986. #if test x$enable_haptic = xyes; then
  21987. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21988. # have_haptic=yes
  21989. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21990. #fi
  21991. # Set up files for the sensor library
  21992. if test x$enable_sensor = xyes; then
  21993. $as_echo "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  21994. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  21995. have_sensor=yes
  21996. fi
  21997. # Set up files for the power library
  21998. if test x$enable_power = xyes; then
  21999. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  22000. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  22001. have_power=yes
  22002. fi
  22003. # Set up files for the filesystem library
  22004. if test x$enable_filesystem = xyes; then
  22005. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  22006. have_filesystem=yes
  22007. fi
  22008. # Set up additional files for the file library
  22009. if test x$enable_file = xyes; then
  22010. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  22011. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  22012. fi
  22013. # Set up files for the timer library
  22014. if test x$enable_timers = xyes; then
  22015. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22016. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22017. have_timers=yes
  22018. fi
  22019. # Set up other core UNIX files
  22020. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22021. # The iOS platform requires special setup.
  22022. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  22023. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22024. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  22025. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  22026. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22027. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  22028. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  22029. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  22030. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  22031. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  22032. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  22033. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  22034. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  22035. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  22036. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  22037. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  22038. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  22039. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  22040. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  22041. fi
  22042. ;;
  22043. *-*-darwin* )
  22044. # This could be either full "Mac OS X", or plain "Darwin" which is
  22045. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  22046. # Next line is broken, and a few files below require Mac OS X (full)
  22047. ARCH=macosx
  22048. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  22049. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  22050. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  22051. CheckVisibilityHidden
  22052. CheckDeclarationAfterStatement
  22053. CheckDummyVideo
  22054. CheckOffscreenVideo
  22055. CheckDiskAudio
  22056. CheckDummyAudio
  22057. CheckDLOPEN
  22058. CheckO_CLOEXEC
  22059. CheckCOCOA
  22060. CheckMETAL
  22061. CheckX11
  22062. CheckMacGL
  22063. CheckMacGLES
  22064. CheckGLX
  22065. CheckOpenGL
  22066. CheckVulkan
  22067. CheckPTHREAD
  22068. CheckHIDAPI
  22069. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  22070. have_misc=yes
  22071. # Set up files for the locale library
  22072. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  22073. have_locale=yes
  22074. # Set up files for the audio library
  22075. if test x$enable_audio = xyes; then
  22076. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  22077. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  22078. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  22079. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  22080. have_audio=yes
  22081. fi
  22082. # Set up files for the joystick library
  22083. if test x$enable_joystick = xyes; then
  22084. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  22085. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  22086. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  22087. CheckJoystickMFI
  22088. have_joystick=yes
  22089. fi
  22090. # Set up files for the haptic library
  22091. if test x$enable_haptic = xyes; then
  22092. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  22093. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  22094. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  22095. have_haptic=yes
  22096. fi
  22097. # Set up files for the power library
  22098. if test x$enable_power = xyes; then
  22099. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  22100. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  22101. have_power=yes
  22102. fi
  22103. # Set up files for the filesystem library
  22104. if test x$enable_filesystem = xyes; then
  22105. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  22106. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  22107. have_filesystem=yes
  22108. fi
  22109. # Set up files for the timer library
  22110. if test x$enable_timers = xyes; then
  22111. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22112. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22113. have_timers=yes
  22114. fi
  22115. # Set up additional files for the file library
  22116. if test x$enable_file = xyes; then
  22117. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  22118. fi
  22119. # Set up other core UNIX files
  22120. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22121. # The Mac OS X platform requires special setup.
  22122. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  22123. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  22124. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  22125. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  22126. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  22127. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  22128. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  22129. fi
  22130. ;;
  22131. *-nacl|*-pnacl)
  22132. ARCH=nacl
  22133. CheckNativeClient
  22134. CheckDummyAudio
  22135. CheckDummyVideo
  22136. CheckOffscreenVideo
  22137. CheckInputEvents
  22138. CheckPTHREAD
  22139. CheckO_CLOEXEC
  22140. # Set up files for the timer library
  22141. if test x$enable_timers = xyes; then
  22142. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22143. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22144. have_timers=yes
  22145. fi
  22146. if test x$enable_filesystem = xyes; then
  22147. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  22148. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  22149. have_filesystem=yes
  22150. fi
  22151. ;;
  22152. *-*-emscripten* )
  22153. if test x$enable_video = xyes; then
  22154. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  22155. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  22156. have_video=yes
  22157. SUMMARY_video="${SUMMARY_video} emscripten"
  22158. fi
  22159. if test x$enable_audio = xyes; then
  22160. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  22161. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  22162. have_audio=yes
  22163. SUMMARY_audio="${SUMMARY_audio} emscripten"
  22164. fi
  22165. CheckVisibilityHidden
  22166. CheckDeclarationAfterStatement
  22167. CheckDummyVideo
  22168. CheckOffscreenVideo
  22169. CheckDiskAudio
  22170. CheckDummyAudio
  22171. CheckPTHREAD
  22172. CheckDLOPEN
  22173. CheckClockGettime
  22174. CheckEmscriptenGLES
  22175. # Set up files for the power library
  22176. if test x$enable_power = xyes; then
  22177. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  22178. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  22179. have_power=yes
  22180. fi
  22181. # Set up files for the power library
  22182. if test x$enable_joystick = xyes; then
  22183. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  22184. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  22185. have_joystick=yes
  22186. fi
  22187. # Set up files for the filesystem library
  22188. if test x$enable_filesystem = xyes; then
  22189. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  22190. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  22191. have_filesystem=yes
  22192. fi
  22193. # Set up files for the timer library
  22194. if test x$enable_timers = xyes; then
  22195. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22196. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22197. have_timers=yes
  22198. fi
  22199. # Set up files for the locale library
  22200. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  22201. have_locale=yes
  22202. ;;
  22203. *-*-riscos*)
  22204. ARCH=riscos
  22205. CheckVisibilityHidden
  22206. CheckDeclarationAfterStatement
  22207. CheckDummyVideo
  22208. CheckOffscreenVideo
  22209. CheckDiskAudio
  22210. CheckDummyAudio
  22211. CheckDLOPEN
  22212. CheckO_CLOEXEC
  22213. CheckOSS
  22214. CheckPTHREAD
  22215. CheckClockGettime
  22216. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  22217. have_misc=yes
  22218. # Set up files for the video library
  22219. if test x$enable_video = xyes; then
  22220. $as_echo "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  22221. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  22222. have_video=yes
  22223. SUMMARY_video="${SUMMARY_video} riscos"
  22224. fi
  22225. # Set up files for the filesystem library
  22226. if test x$enable_filesystem = xyes; then
  22227. $as_echo "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  22228. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  22229. have_filesystem=yes
  22230. fi
  22231. # Set up files for the timer library
  22232. if test x$enable_timers = xyes; then
  22233. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22234. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22235. have_timers=yes
  22236. fi
  22237. ;;
  22238. *)
  22239. as_fn_error $? "
  22240. *** Unsupported host: Please add to configure.ac
  22241. " "$LINENO" 5
  22242. ;;
  22243. esac
  22244. CheckVirtualJoystick
  22245. # Check whether to install sdl2-config
  22246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  22247. $as_echo_n "checking whether to install sdl2-config... " >&6; }
  22248. # Check whether --enable-sdl2-config was given.
  22249. if test "${enable_sdl2_config+set}" = set; then :
  22250. enableval=$enable_sdl2_config; case "${enableval}" in
  22251. yes) enable_sdl2_config="TRUE" ;;
  22252. no) enable_sdl2_config="FALSE" ;;
  22253. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  22254. esac
  22255. else
  22256. enable_sdl2_config="TRUE"
  22257. fi
  22258. if test "$enable_sdl2_config" = "TRUE"; then
  22259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22260. $as_echo "yes" >&6; }
  22261. else
  22262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22263. $as_echo "no" >&6; }
  22264. fi
  22265. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  22266. # Verify that we have all the platform specific files we need
  22267. if test x$have_misc != xyes; then
  22268. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  22269. fi
  22270. if test x$have_locale != xyes; then
  22271. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  22272. fi
  22273. if test x$have_joystick != xyes; then
  22274. if test x$enable_joystick = xyes; then
  22275. $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  22276. fi
  22277. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  22278. fi
  22279. if test x$have_haptic != xyes; then
  22280. if test x$enable_haptic = xyes; then
  22281. $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  22282. fi
  22283. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  22284. fi
  22285. if test x$have_sensor != xyes; then
  22286. if test x$enable_sensor = xyes; then
  22287. $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  22288. fi
  22289. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  22290. fi
  22291. if test x$have_threads != xyes; then
  22292. if test x$enable_threads = xyes; then
  22293. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  22294. fi
  22295. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  22296. fi
  22297. if test x$have_timers != xyes; then
  22298. if test x$enable_timers = xyes; then
  22299. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  22300. fi
  22301. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  22302. fi
  22303. if test x$have_filesystem != xyes; then
  22304. if test x$enable_filesystem = xyes; then
  22305. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  22306. fi
  22307. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  22308. fi
  22309. if test x$have_loadso != xyes; then
  22310. if test x$enable_loadso = xyes; then
  22311. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  22312. fi
  22313. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  22314. fi
  22315. if test x$SDLMAIN_SOURCES = x; then
  22316. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  22317. fi
  22318. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  22319. if test x$video_wayland = xyes; then
  22320. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  22321. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  22322. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  22323. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  22324. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  22325. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  22326. echo ;\
  22327. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  22328. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  22329. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  22330. echo ;\
  22331. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  22332. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  22333. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  22334. echo ;\
  22335. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  22336. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  22337. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  22338. done ;\
  22339. echo ;\
  22340. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  22341. fi
  22342. OBJECTS=`echo $SOURCES`
  22343. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  22344. for EXT in asm cc m c S; do
  22345. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  22346. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  22347. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  22348. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  22349. done
  22350. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  22351. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  22352. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  22353. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  22354. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  22355. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  22356. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  22357. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  22358. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  22359. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  22360. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  22361. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  22362. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  22363. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  22364. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  22365. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  22366. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  22367. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  22368. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  22369. # Set runtime shared library paths as needed
  22370. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  22371. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  22372. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  22373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  22374. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  22375. have_enable_new_dtags=no
  22376. save_LDFLAGS="$LDFLAGS"
  22377. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  22378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22379. /* end confdefs.h. */
  22380. int
  22381. main ()
  22382. {
  22383. ;
  22384. return 0;
  22385. }
  22386. _ACEOF
  22387. if ac_fn_c_try_link "$LINENO"; then :
  22388. have_enable_new_dtags=yes
  22389. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  22390. fi
  22391. rm -f core conftest.err conftest.$ac_objext \
  22392. conftest$ac_exeext conftest.$ac_ext
  22393. LDFLAGS="$save_LDFLAGS"
  22394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  22395. $as_echo "$have_enable_new_dtags" >&6; }
  22396. fi
  22397. if test $ARCH = solaris; then
  22398. SDL_RLD_FLAGS="-R\${libdir}"
  22399. fi
  22400. else
  22401. SDL_RLD_FLAGS=""
  22402. fi
  22403. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  22404. if test x$enable_shared = xyes; then
  22405. PKGCONFIG_LIBS_PRIV="
  22406. Libs.private:"
  22407. ENABLE_SHARED_TRUE=
  22408. ENABLE_SHARED_FALSE="#"
  22409. else
  22410. PKGCONFIG_LIBS_PRIV=
  22411. ENABLE_SHARED_TRUE="#"
  22412. ENABLE_SHARED_FALSE=
  22413. fi
  22414. if test x$enable_static = xyes; then
  22415. ENABLE_STATIC_TRUE=
  22416. ENABLE_STATIC_FALSE="#"
  22417. else
  22418. ENABLE_STATIC_TRUE="#"
  22419. ENABLE_STATIC_FALSE=
  22420. fi
  22421. cat >Makefile.rules <<__EOF__
  22422. # Build rules for objects
  22423. -include \$(OBJECTS:.lo=.d)
  22424. # Special dependency for SDL.c, since it depends on SDL_revision.h
  22425. $srcdir/src/SDL.c: update-revision
  22426. $DEPENDS
  22427. $VERSION_DEPENDS
  22428. $SDLMAIN_DEPENDS
  22429. $SDLTEST_DEPENDS
  22430. $WAYLAND_PROTOCOLS_DEPENDS
  22431. __EOF__
  22432. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  22433. ac_config_commands="$ac_config_commands sdl2_config"
  22434. SUMMARY="SDL2 Configure Summary:\n"
  22435. if test x$enable_shared = xyes; then
  22436. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  22437. fi
  22438. if test x$enable_static = xyes; then
  22439. SUMMARY="${SUMMARY}Building Static Libraries\n"
  22440. fi
  22441. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  22442. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  22443. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  22444. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  22445. if test x$have_x = xyes; then
  22446. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  22447. fi
  22448. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  22449. if test x$have_joystick_virtual = xyes; then
  22450. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  22451. else
  22452. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  22453. fi
  22454. if test x$have_samplerate_h_hdr = xyes; then
  22455. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  22456. else
  22457. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  22458. fi
  22459. if test x$have_libudev_h_hdr = xyes; then
  22460. SUMMARY="${SUMMARY}Using libudev : YES\n"
  22461. else
  22462. SUMMARY="${SUMMARY}Using libudev : NO\n"
  22463. fi
  22464. if test x$have_dbus_dbus_h_hdr = xyes; then
  22465. SUMMARY="${SUMMARY}Using dbus : YES\n"
  22466. else
  22467. SUMMARY="${SUMMARY}Using dbus : NO\n"
  22468. fi
  22469. if test x$enable_ime = xyes; then
  22470. SUMMARY="${SUMMARY}Using ime : YES\n"
  22471. else
  22472. SUMMARY="${SUMMARY}Using ime : NO\n"
  22473. fi
  22474. if test x$have_ibus_ibus_h_hdr = xyes; then
  22475. SUMMARY="${SUMMARY}Using ibus : YES\n"
  22476. else
  22477. SUMMARY="${SUMMARY}Using ibus : NO\n"
  22478. fi
  22479. if test x$have_fcitx = xyes; then
  22480. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  22481. else
  22482. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  22483. fi
  22484. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  22485. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  22486. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  22487. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  22488. SUMMARY="${SUMMARY}configure script with:\n"
  22489. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  22490. fi
  22491. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  22492. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  22493. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  22494. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  22495. SUMMARY="${SUMMARY}configure script with:\n"
  22496. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  22497. fi
  22498. ac_config_commands="$ac_config_commands summary"
  22499. cat >confcache <<\_ACEOF
  22500. # This file is a shell script that caches the results of configure
  22501. # tests run on this system so they can be shared between configure
  22502. # scripts and configure runs, see configure's option --config-cache.
  22503. # It is not useful on other systems. If it contains results you don't
  22504. # want to keep, you may remove or edit it.
  22505. #
  22506. # config.status only pays attention to the cache file if you give it
  22507. # the --recheck option to rerun configure.
  22508. #
  22509. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  22510. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  22511. # following values.
  22512. _ACEOF
  22513. # The following way of writing the cache mishandles newlines in values,
  22514. # but we know of no workaround that is simple, portable, and efficient.
  22515. # So, we kill variables containing newlines.
  22516. # Ultrix sh set writes to stderr and can't be redirected directly,
  22517. # and sets the high bit in the cache file unless we assign to the vars.
  22518. (
  22519. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  22520. eval ac_val=\$$ac_var
  22521. case $ac_val in #(
  22522. *${as_nl}*)
  22523. case $ac_var in #(
  22524. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  22525. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  22526. esac
  22527. case $ac_var in #(
  22528. _ | IFS | as_nl) ;; #(
  22529. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  22530. *) { eval $ac_var=; unset $ac_var;} ;;
  22531. esac ;;
  22532. esac
  22533. done
  22534. (set) 2>&1 |
  22535. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  22536. *${as_nl}ac_space=\ *)
  22537. # `set' does not quote correctly, so add quotes: double-quote
  22538. # substitution turns \\\\ into \\, and sed turns \\ into \.
  22539. sed -n \
  22540. "s/'/'\\\\''/g;
  22541. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  22542. ;; #(
  22543. *)
  22544. # `set' quotes correctly as required by POSIX, so do not add quotes.
  22545. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  22546. ;;
  22547. esac |
  22548. sort
  22549. ) |
  22550. sed '
  22551. /^ac_cv_env_/b end
  22552. t clear
  22553. :clear
  22554. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  22555. t end
  22556. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  22557. :end' >>confcache
  22558. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  22559. if test -w "$cache_file"; then
  22560. if test "x$cache_file" != "x/dev/null"; then
  22561. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  22562. $as_echo "$as_me: updating cache $cache_file" >&6;}
  22563. if test ! -f "$cache_file" || test -h "$cache_file"; then
  22564. cat confcache >"$cache_file"
  22565. else
  22566. case $cache_file in #(
  22567. */* | ?:*)
  22568. mv -f confcache "$cache_file"$$ &&
  22569. mv -f "$cache_file"$$ "$cache_file" ;; #(
  22570. *)
  22571. mv -f confcache "$cache_file" ;;
  22572. esac
  22573. fi
  22574. fi
  22575. else
  22576. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  22577. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  22578. fi
  22579. fi
  22580. rm -f confcache
  22581. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  22582. # Let make expand exec_prefix.
  22583. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  22584. DEFS=-DHAVE_CONFIG_H
  22585. ac_libobjs=
  22586. ac_ltlibobjs=
  22587. U=
  22588. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  22589. # 1. Remove the extension, and $U if already installed.
  22590. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  22591. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  22592. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  22593. # will be set to the directory where LIBOBJS objects are built.
  22594. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  22595. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  22596. done
  22597. LIBOBJS=$ac_libobjs
  22598. LTLIBOBJS=$ac_ltlibobjs
  22599. : "${CONFIG_STATUS=./config.status}"
  22600. ac_write_fail=0
  22601. ac_clean_files_save=$ac_clean_files
  22602. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  22603. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  22604. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  22605. as_write_fail=0
  22606. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  22607. #! $SHELL
  22608. # Generated by $as_me.
  22609. # Run this file to recreate the current configuration.
  22610. # Compiler output produced by configure, useful for debugging
  22611. # configure, is in config.log if it exists.
  22612. debug=false
  22613. ac_cs_recheck=false
  22614. ac_cs_silent=false
  22615. SHELL=\${CONFIG_SHELL-$SHELL}
  22616. export SHELL
  22617. _ASEOF
  22618. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  22619. ## -------------------- ##
  22620. ## M4sh Initialization. ##
  22621. ## -------------------- ##
  22622. # Be more Bourne compatible
  22623. DUALCASE=1; export DUALCASE # for MKS sh
  22624. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  22625. emulate sh
  22626. NULLCMD=:
  22627. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22628. # is contrary to our usage. Disable this feature.
  22629. alias -g '${1+"$@"}'='"$@"'
  22630. setopt NO_GLOB_SUBST
  22631. else
  22632. case `(set -o) 2>/dev/null` in #(
  22633. *posix*) :
  22634. set -o posix ;; #(
  22635. *) :
  22636. ;;
  22637. esac
  22638. fi
  22639. as_nl='
  22640. '
  22641. export as_nl
  22642. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  22643. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  22644. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  22645. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  22646. # Prefer a ksh shell builtin over an external printf program on Solaris,
  22647. # but without wasting forks for bash or zsh.
  22648. if test -z "$BASH_VERSION$ZSH_VERSION" \
  22649. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  22650. as_echo='print -r --'
  22651. as_echo_n='print -rn --'
  22652. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  22653. as_echo='printf %s\n'
  22654. as_echo_n='printf %s'
  22655. else
  22656. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  22657. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  22658. as_echo_n='/usr/ucb/echo -n'
  22659. else
  22660. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  22661. as_echo_n_body='eval
  22662. arg=$1;
  22663. case $arg in #(
  22664. *"$as_nl"*)
  22665. expr "X$arg" : "X\\(.*\\)$as_nl";
  22666. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  22667. esac;
  22668. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  22669. '
  22670. export as_echo_n_body
  22671. as_echo_n='sh -c $as_echo_n_body as_echo'
  22672. fi
  22673. export as_echo_body
  22674. as_echo='sh -c $as_echo_body as_echo'
  22675. fi
  22676. # The user is always right.
  22677. if test "${PATH_SEPARATOR+set}" != set; then
  22678. PATH_SEPARATOR=:
  22679. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  22680. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  22681. PATH_SEPARATOR=';'
  22682. }
  22683. fi
  22684. # IFS
  22685. # We need space, tab and new line, in precisely that order. Quoting is
  22686. # there to prevent editors from complaining about space-tab.
  22687. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  22688. # splitting by setting IFS to empty value.)
  22689. IFS=" "" $as_nl"
  22690. # Find who we are. Look in the path if we contain no directory separator.
  22691. as_myself=
  22692. case $0 in #((
  22693. *[\\/]* ) as_myself=$0 ;;
  22694. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22695. for as_dir in $PATH
  22696. do
  22697. IFS=$as_save_IFS
  22698. test -z "$as_dir" && as_dir=.
  22699. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  22700. done
  22701. IFS=$as_save_IFS
  22702. ;;
  22703. esac
  22704. # We did not find ourselves, most probably we were run as `sh COMMAND'
  22705. # in which case we are not to be found in the path.
  22706. if test "x$as_myself" = x; then
  22707. as_myself=$0
  22708. fi
  22709. if test ! -f "$as_myself"; then
  22710. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  22711. exit 1
  22712. fi
  22713. # Unset variables that we do not need and which cause bugs (e.g. in
  22714. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  22715. # suppresses any "Segmentation fault" message there. '((' could
  22716. # trigger a bug in pdksh 5.2.14.
  22717. for as_var in BASH_ENV ENV MAIL MAILPATH
  22718. do eval test x\${$as_var+set} = xset \
  22719. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  22720. done
  22721. PS1='$ '
  22722. PS2='> '
  22723. PS4='+ '
  22724. # NLS nuisances.
  22725. LC_ALL=C
  22726. export LC_ALL
  22727. LANGUAGE=C
  22728. export LANGUAGE
  22729. # CDPATH.
  22730. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22731. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  22732. # ----------------------------------------
  22733. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  22734. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  22735. # script with STATUS, using 1 if that was 0.
  22736. as_fn_error ()
  22737. {
  22738. as_status=$1; test $as_status -eq 0 && as_status=1
  22739. if test "$4"; then
  22740. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  22741. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  22742. fi
  22743. $as_echo "$as_me: error: $2" >&2
  22744. as_fn_exit $as_status
  22745. } # as_fn_error
  22746. # as_fn_set_status STATUS
  22747. # -----------------------
  22748. # Set $? to STATUS, without forking.
  22749. as_fn_set_status ()
  22750. {
  22751. return $1
  22752. } # as_fn_set_status
  22753. # as_fn_exit STATUS
  22754. # -----------------
  22755. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  22756. as_fn_exit ()
  22757. {
  22758. set +e
  22759. as_fn_set_status $1
  22760. exit $1
  22761. } # as_fn_exit
  22762. # as_fn_unset VAR
  22763. # ---------------
  22764. # Portably unset VAR.
  22765. as_fn_unset ()
  22766. {
  22767. { eval $1=; unset $1;}
  22768. }
  22769. as_unset=as_fn_unset
  22770. # as_fn_append VAR VALUE
  22771. # ----------------------
  22772. # Append the text in VALUE to the end of the definition contained in VAR. Take
  22773. # advantage of any shell optimizations that allow amortized linear growth over
  22774. # repeated appends, instead of the typical quadratic growth present in naive
  22775. # implementations.
  22776. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  22777. eval 'as_fn_append ()
  22778. {
  22779. eval $1+=\$2
  22780. }'
  22781. else
  22782. as_fn_append ()
  22783. {
  22784. eval $1=\$$1\$2
  22785. }
  22786. fi # as_fn_append
  22787. # as_fn_arith ARG...
  22788. # ------------------
  22789. # Perform arithmetic evaluation on the ARGs, and store the result in the
  22790. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  22791. # must be portable across $(()) and expr.
  22792. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  22793. eval 'as_fn_arith ()
  22794. {
  22795. as_val=$(( $* ))
  22796. }'
  22797. else
  22798. as_fn_arith ()
  22799. {
  22800. as_val=`expr "$@" || test $? -eq 1`
  22801. }
  22802. fi # as_fn_arith
  22803. if expr a : '\(a\)' >/dev/null 2>&1 &&
  22804. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  22805. as_expr=expr
  22806. else
  22807. as_expr=false
  22808. fi
  22809. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  22810. as_basename=basename
  22811. else
  22812. as_basename=false
  22813. fi
  22814. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  22815. as_dirname=dirname
  22816. else
  22817. as_dirname=false
  22818. fi
  22819. as_me=`$as_basename -- "$0" ||
  22820. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  22821. X"$0" : 'X\(//\)$' \| \
  22822. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  22823. $as_echo X/"$0" |
  22824. sed '/^.*\/\([^/][^/]*\)\/*$/{
  22825. s//\1/
  22826. q
  22827. }
  22828. /^X\/\(\/\/\)$/{
  22829. s//\1/
  22830. q
  22831. }
  22832. /^X\/\(\/\).*/{
  22833. s//\1/
  22834. q
  22835. }
  22836. s/.*/./; q'`
  22837. # Avoid depending upon Character Ranges.
  22838. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  22839. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  22840. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  22841. as_cr_digits='0123456789'
  22842. as_cr_alnum=$as_cr_Letters$as_cr_digits
  22843. ECHO_C= ECHO_N= ECHO_T=
  22844. case `echo -n x` in #(((((
  22845. -n*)
  22846. case `echo 'xy\c'` in
  22847. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  22848. xy) ECHO_C='\c';;
  22849. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  22850. ECHO_T=' ';;
  22851. esac;;
  22852. *)
  22853. ECHO_N='-n';;
  22854. esac
  22855. rm -f conf$$ conf$$.exe conf$$.file
  22856. if test -d conf$$.dir; then
  22857. rm -f conf$$.dir/conf$$.file
  22858. else
  22859. rm -f conf$$.dir
  22860. mkdir conf$$.dir 2>/dev/null
  22861. fi
  22862. if (echo >conf$$.file) 2>/dev/null; then
  22863. if ln -s conf$$.file conf$$ 2>/dev/null; then
  22864. as_ln_s='ln -s'
  22865. # ... but there are two gotchas:
  22866. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  22867. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  22868. # In both cases, we have to default to `cp -pR'.
  22869. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  22870. as_ln_s='cp -pR'
  22871. elif ln conf$$.file conf$$ 2>/dev/null; then
  22872. as_ln_s=ln
  22873. else
  22874. as_ln_s='cp -pR'
  22875. fi
  22876. else
  22877. as_ln_s='cp -pR'
  22878. fi
  22879. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  22880. rmdir conf$$.dir 2>/dev/null
  22881. # as_fn_mkdir_p
  22882. # -------------
  22883. # Create "$as_dir" as a directory, including parents if necessary.
  22884. as_fn_mkdir_p ()
  22885. {
  22886. case $as_dir in #(
  22887. -*) as_dir=./$as_dir;;
  22888. esac
  22889. test -d "$as_dir" || eval $as_mkdir_p || {
  22890. as_dirs=
  22891. while :; do
  22892. case $as_dir in #(
  22893. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  22894. *) as_qdir=$as_dir;;
  22895. esac
  22896. as_dirs="'$as_qdir' $as_dirs"
  22897. as_dir=`$as_dirname -- "$as_dir" ||
  22898. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22899. X"$as_dir" : 'X\(//\)[^/]' \| \
  22900. X"$as_dir" : 'X\(//\)$' \| \
  22901. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22902. $as_echo X"$as_dir" |
  22903. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22904. s//\1/
  22905. q
  22906. }
  22907. /^X\(\/\/\)[^/].*/{
  22908. s//\1/
  22909. q
  22910. }
  22911. /^X\(\/\/\)$/{
  22912. s//\1/
  22913. q
  22914. }
  22915. /^X\(\/\).*/{
  22916. s//\1/
  22917. q
  22918. }
  22919. s/.*/./; q'`
  22920. test -d "$as_dir" && break
  22921. done
  22922. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22923. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  22924. } # as_fn_mkdir_p
  22925. if mkdir -p . 2>/dev/null; then
  22926. as_mkdir_p='mkdir -p "$as_dir"'
  22927. else
  22928. test -d ./-p && rmdir ./-p
  22929. as_mkdir_p=false
  22930. fi
  22931. # as_fn_executable_p FILE
  22932. # -----------------------
  22933. # Test if FILE is an executable regular file.
  22934. as_fn_executable_p ()
  22935. {
  22936. test -f "$1" && test -x "$1"
  22937. } # as_fn_executable_p
  22938. as_test_x='test -x'
  22939. as_executable_p=as_fn_executable_p
  22940. # Sed expression to map a string onto a valid CPP name.
  22941. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  22942. # Sed expression to map a string onto a valid variable name.
  22943. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  22944. exec 6>&1
  22945. ## ----------------------------------- ##
  22946. ## Main body of $CONFIG_STATUS script. ##
  22947. ## ----------------------------------- ##
  22948. _ASEOF
  22949. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  22950. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22951. # Save the log message, to keep $0 and so on meaningful, and to
  22952. # report actual input values of CONFIG_FILES etc. instead of their
  22953. # values after options handling.
  22954. ac_log="
  22955. This file was extended by $as_me, which was
  22956. generated by GNU Autoconf 2.69. Invocation command line was
  22957. CONFIG_FILES = $CONFIG_FILES
  22958. CONFIG_HEADERS = $CONFIG_HEADERS
  22959. CONFIG_LINKS = $CONFIG_LINKS
  22960. CONFIG_COMMANDS = $CONFIG_COMMANDS
  22961. $ $0 $@
  22962. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  22963. "
  22964. _ACEOF
  22965. case $ac_config_files in *"
  22966. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  22967. esac
  22968. case $ac_config_headers in *"
  22969. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  22970. esac
  22971. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22972. # Files that config.status was made for.
  22973. config_files="$ac_config_files"
  22974. config_headers="$ac_config_headers"
  22975. config_commands="$ac_config_commands"
  22976. _ACEOF
  22977. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22978. ac_cs_usage="\
  22979. \`$as_me' instantiates files and other configuration actions
  22980. from templates according to the current configuration. Unless the files
  22981. and actions are specified as TAGs, all are instantiated by default.
  22982. Usage: $0 [OPTION]... [TAG]...
  22983. -h, --help print this help, then exit
  22984. -V, --version print version number and configuration settings, then exit
  22985. --config print configuration, then exit
  22986. -q, --quiet, --silent
  22987. do not print progress messages
  22988. -d, --debug don't remove temporary files
  22989. --recheck update $as_me by reconfiguring in the same conditions
  22990. --file=FILE[:TEMPLATE]
  22991. instantiate the configuration file FILE
  22992. --header=FILE[:TEMPLATE]
  22993. instantiate the configuration header FILE
  22994. Configuration files:
  22995. $config_files
  22996. Configuration headers:
  22997. $config_headers
  22998. Configuration commands:
  22999. $config_commands
  23000. Report bugs to the package provider."
  23001. _ACEOF
  23002. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23003. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  23004. ac_cs_version="\\
  23005. config.status
  23006. configured by $0, generated by GNU Autoconf 2.69,
  23007. with options \\"\$ac_cs_config\\"
  23008. Copyright (C) 2012 Free Software Foundation, Inc.
  23009. This config.status script is free software; the Free Software Foundation
  23010. gives unlimited permission to copy, distribute and modify it."
  23011. ac_pwd='$ac_pwd'
  23012. srcdir='$srcdir'
  23013. INSTALL='$INSTALL'
  23014. AWK='$AWK'
  23015. test -n "\$AWK" || AWK=awk
  23016. _ACEOF
  23017. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23018. # The default lists apply if the user does not specify any file.
  23019. ac_need_defaults=:
  23020. while test $# != 0
  23021. do
  23022. case $1 in
  23023. --*=?*)
  23024. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  23025. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  23026. ac_shift=:
  23027. ;;
  23028. --*=)
  23029. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  23030. ac_optarg=
  23031. ac_shift=:
  23032. ;;
  23033. *)
  23034. ac_option=$1
  23035. ac_optarg=$2
  23036. ac_shift=shift
  23037. ;;
  23038. esac
  23039. case $ac_option in
  23040. # Handling of the options.
  23041. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  23042. ac_cs_recheck=: ;;
  23043. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  23044. $as_echo "$ac_cs_version"; exit ;;
  23045. --config | --confi | --conf | --con | --co | --c )
  23046. $as_echo "$ac_cs_config"; exit ;;
  23047. --debug | --debu | --deb | --de | --d | -d )
  23048. debug=: ;;
  23049. --file | --fil | --fi | --f )
  23050. $ac_shift
  23051. case $ac_optarg in
  23052. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  23053. '') as_fn_error $? "missing file argument" ;;
  23054. esac
  23055. as_fn_append CONFIG_FILES " '$ac_optarg'"
  23056. ac_need_defaults=false;;
  23057. --header | --heade | --head | --hea )
  23058. $ac_shift
  23059. case $ac_optarg in
  23060. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  23061. esac
  23062. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  23063. ac_need_defaults=false;;
  23064. --he | --h)
  23065. # Conflict between --help and --header
  23066. as_fn_error $? "ambiguous option: \`$1'
  23067. Try \`$0 --help' for more information.";;
  23068. --help | --hel | -h )
  23069. $as_echo "$ac_cs_usage"; exit ;;
  23070. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  23071. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  23072. ac_cs_silent=: ;;
  23073. # This is an error.
  23074. -*) as_fn_error $? "unrecognized option: \`$1'
  23075. Try \`$0 --help' for more information." ;;
  23076. *) as_fn_append ac_config_targets " $1"
  23077. ac_need_defaults=false ;;
  23078. esac
  23079. shift
  23080. done
  23081. ac_configure_extra_args=
  23082. if $ac_cs_silent; then
  23083. exec 6>/dev/null
  23084. ac_configure_extra_args="$ac_configure_extra_args --silent"
  23085. fi
  23086. _ACEOF
  23087. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23088. if \$ac_cs_recheck; then
  23089. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  23090. shift
  23091. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  23092. CONFIG_SHELL='$SHELL'
  23093. export CONFIG_SHELL
  23094. exec "\$@"
  23095. fi
  23096. _ACEOF
  23097. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23098. exec 5>>config.log
  23099. {
  23100. echo
  23101. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  23102. ## Running $as_me. ##
  23103. _ASBOX
  23104. $as_echo "$ac_log"
  23105. } >&5
  23106. _ACEOF
  23107. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23108. #
  23109. # INIT-COMMANDS
  23110. #
  23111. # The HP-UX ksh and POSIX shell print the target directory to stdout
  23112. # if CDPATH is set.
  23113. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  23114. sed_quote_subst='$sed_quote_subst'
  23115. double_quote_subst='$double_quote_subst'
  23116. delay_variable_subst='$delay_variable_subst'
  23117. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  23118. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  23119. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  23120. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  23121. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  23122. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  23123. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  23124. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  23125. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  23126. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  23127. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  23128. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  23129. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  23130. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  23131. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  23132. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  23133. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  23134. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  23135. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  23136. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  23137. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  23138. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  23139. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  23140. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  23141. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  23142. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  23143. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  23144. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  23145. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  23146. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  23147. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  23148. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  23149. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  23150. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  23151. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  23152. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  23153. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  23154. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  23155. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  23156. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  23157. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  23158. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  23159. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  23160. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  23161. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  23162. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  23163. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  23164. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  23165. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  23166. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  23167. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  23168. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  23169. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  23170. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  23171. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  23172. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  23173. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  23174. 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"`'
  23175. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  23176. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  23177. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  23178. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  23179. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  23180. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  23181. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  23182. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  23183. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  23184. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  23185. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  23186. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  23187. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  23188. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  23189. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  23190. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  23191. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  23192. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  23193. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  23194. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  23195. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  23196. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  23197. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  23198. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  23199. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  23200. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  23201. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  23202. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  23203. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  23204. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  23205. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  23206. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  23207. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  23208. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  23209. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  23210. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  23211. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  23212. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  23213. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  23214. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  23215. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  23216. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  23217. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  23218. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  23219. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  23220. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  23221. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  23222. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  23223. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  23224. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  23225. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  23226. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  23227. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  23228. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  23229. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  23230. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  23231. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  23232. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  23233. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  23234. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  23235. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  23236. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  23237. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  23238. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  23239. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  23240. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  23241. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  23242. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  23243. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  23244. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  23245. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  23246. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  23247. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  23248. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  23249. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  23250. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  23251. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  23252. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  23253. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  23254. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  23255. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  23256. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  23257. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23258. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23259. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23260. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23261. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23262. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  23263. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  23264. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  23265. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  23266. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  23267. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23268. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  23269. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  23270. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  23271. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  23272. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  23273. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  23274. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  23275. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  23276. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  23277. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  23278. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  23279. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  23280. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  23281. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23282. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  23283. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23284. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  23285. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  23286. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23287. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23288. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23289. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23290. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23291. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23292. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23293. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23294. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23295. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23296. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23297. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23298. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  23299. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  23300. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  23301. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23302. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  23303. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23304. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  23305. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23306. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  23307. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  23308. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  23309. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  23310. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  23311. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  23312. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  23313. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  23314. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  23315. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  23316. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  23317. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  23318. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  23319. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  23320. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  23321. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  23322. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  23323. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  23324. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23325. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23326. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  23327. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  23328. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  23329. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  23330. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23331. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23332. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23333. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23334. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  23335. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23336. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  23337. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  23338. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  23339. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  23340. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  23341. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  23342. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  23343. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  23344. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  23345. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  23346. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  23347. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  23348. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  23349. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  23350. LTCC='$LTCC'
  23351. LTCFLAGS='$LTCFLAGS'
  23352. compiler='$compiler_DEFAULT'
  23353. # A function that is used when there is no print builtin or printf.
  23354. func_fallback_echo ()
  23355. {
  23356. eval 'cat <<_LTECHO_EOF
  23357. \$1
  23358. _LTECHO_EOF'
  23359. }
  23360. # Quote evaled strings.
  23361. for var in AS \
  23362. DLLTOOL \
  23363. OBJDUMP \
  23364. SHELL \
  23365. ECHO \
  23366. PATH_SEPARATOR \
  23367. SED \
  23368. GREP \
  23369. EGREP \
  23370. FGREP \
  23371. LD \
  23372. NM \
  23373. LN_S \
  23374. lt_SP2NL \
  23375. lt_NL2SP \
  23376. reload_flag \
  23377. deplibs_check_method \
  23378. file_magic_cmd \
  23379. file_magic_glob \
  23380. want_nocaseglob \
  23381. sharedlib_from_linklib_cmd \
  23382. AR \
  23383. AR_FLAGS \
  23384. archiver_list_spec \
  23385. STRIP \
  23386. RANLIB \
  23387. CC \
  23388. CFLAGS \
  23389. compiler \
  23390. lt_cv_sys_global_symbol_pipe \
  23391. lt_cv_sys_global_symbol_to_cdecl \
  23392. lt_cv_sys_global_symbol_to_c_name_address \
  23393. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  23394. nm_file_list_spec \
  23395. lt_prog_compiler_no_builtin_flag \
  23396. lt_prog_compiler_pic \
  23397. lt_prog_compiler_wl \
  23398. lt_prog_compiler_static \
  23399. lt_cv_prog_compiler_c_o \
  23400. need_locks \
  23401. MANIFEST_TOOL \
  23402. DSYMUTIL \
  23403. NMEDIT \
  23404. LIPO \
  23405. OTOOL \
  23406. OTOOL64 \
  23407. shrext_cmds \
  23408. export_dynamic_flag_spec \
  23409. whole_archive_flag_spec \
  23410. compiler_needs_object \
  23411. with_gnu_ld \
  23412. allow_undefined_flag \
  23413. no_undefined_flag \
  23414. hardcode_libdir_flag_spec \
  23415. hardcode_libdir_separator \
  23416. exclude_expsyms \
  23417. include_expsyms \
  23418. file_list_spec \
  23419. variables_saved_for_relink \
  23420. libname_spec \
  23421. library_names_spec \
  23422. soname_spec \
  23423. install_override_mode \
  23424. finish_eval \
  23425. old_striplib \
  23426. striplib \
  23427. compiler_lib_search_dirs \
  23428. predep_objects \
  23429. postdep_objects \
  23430. predeps \
  23431. postdeps \
  23432. compiler_lib_search_path \
  23433. LD_RC \
  23434. LD_CXX \
  23435. reload_flag_RC \
  23436. reload_flag_CXX \
  23437. compiler_RC \
  23438. compiler_CXX \
  23439. lt_prog_compiler_no_builtin_flag_RC \
  23440. lt_prog_compiler_no_builtin_flag_CXX \
  23441. lt_prog_compiler_pic_RC \
  23442. lt_prog_compiler_pic_CXX \
  23443. lt_prog_compiler_wl_RC \
  23444. lt_prog_compiler_wl_CXX \
  23445. lt_prog_compiler_static_RC \
  23446. lt_prog_compiler_static_CXX \
  23447. lt_cv_prog_compiler_c_o_RC \
  23448. lt_cv_prog_compiler_c_o_CXX \
  23449. export_dynamic_flag_spec_RC \
  23450. export_dynamic_flag_spec_CXX \
  23451. whole_archive_flag_spec_RC \
  23452. whole_archive_flag_spec_CXX \
  23453. compiler_needs_object_RC \
  23454. compiler_needs_object_CXX \
  23455. with_gnu_ld_RC \
  23456. with_gnu_ld_CXX \
  23457. allow_undefined_flag_RC \
  23458. allow_undefined_flag_CXX \
  23459. no_undefined_flag_RC \
  23460. no_undefined_flag_CXX \
  23461. hardcode_libdir_flag_spec_RC \
  23462. hardcode_libdir_flag_spec_CXX \
  23463. hardcode_libdir_separator_RC \
  23464. hardcode_libdir_separator_CXX \
  23465. exclude_expsyms_RC \
  23466. exclude_expsyms_CXX \
  23467. include_expsyms_RC \
  23468. include_expsyms_CXX \
  23469. file_list_spec_RC \
  23470. file_list_spec_CXX \
  23471. compiler_lib_search_dirs_RC \
  23472. compiler_lib_search_dirs_CXX \
  23473. predep_objects_RC \
  23474. predep_objects_CXX \
  23475. postdep_objects_RC \
  23476. postdep_objects_CXX \
  23477. predeps_RC \
  23478. predeps_CXX \
  23479. postdeps_RC \
  23480. postdeps_CXX \
  23481. compiler_lib_search_path_RC \
  23482. compiler_lib_search_path_CXX; do
  23483. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  23484. *[\\\\\\\`\\"\\\$]*)
  23485. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  23486. ;;
  23487. *)
  23488. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  23489. ;;
  23490. esac
  23491. done
  23492. # Double-quote double-evaled strings.
  23493. for var in reload_cmds \
  23494. old_postinstall_cmds \
  23495. old_postuninstall_cmds \
  23496. old_archive_cmds \
  23497. extract_expsyms_cmds \
  23498. old_archive_from_new_cmds \
  23499. old_archive_from_expsyms_cmds \
  23500. archive_cmds \
  23501. archive_expsym_cmds \
  23502. module_cmds \
  23503. module_expsym_cmds \
  23504. export_symbols_cmds \
  23505. prelink_cmds \
  23506. postlink_cmds \
  23507. postinstall_cmds \
  23508. postuninstall_cmds \
  23509. finish_cmds \
  23510. sys_lib_search_path_spec \
  23511. sys_lib_dlsearch_path_spec \
  23512. reload_cmds_RC \
  23513. reload_cmds_CXX \
  23514. old_archive_cmds_RC \
  23515. old_archive_cmds_CXX \
  23516. old_archive_from_new_cmds_RC \
  23517. old_archive_from_new_cmds_CXX \
  23518. old_archive_from_expsyms_cmds_RC \
  23519. old_archive_from_expsyms_cmds_CXX \
  23520. archive_cmds_RC \
  23521. archive_cmds_CXX \
  23522. archive_expsym_cmds_RC \
  23523. archive_expsym_cmds_CXX \
  23524. module_cmds_RC \
  23525. module_cmds_CXX \
  23526. module_expsym_cmds_RC \
  23527. module_expsym_cmds_CXX \
  23528. export_symbols_cmds_RC \
  23529. export_symbols_cmds_CXX \
  23530. prelink_cmds_RC \
  23531. prelink_cmds_CXX \
  23532. postlink_cmds_RC \
  23533. postlink_cmds_CXX; do
  23534. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  23535. *[\\\\\\\`\\"\\\$]*)
  23536. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  23537. ;;
  23538. *)
  23539. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  23540. ;;
  23541. esac
  23542. done
  23543. ac_aux_dir='$ac_aux_dir'
  23544. xsi_shell='$xsi_shell'
  23545. lt_shell_append='$lt_shell_append'
  23546. # See if we are running on zsh, and set the options which allow our
  23547. # commands through without removal of \ escapes INIT.
  23548. if test -n "\${ZSH_VERSION+set}" ; then
  23549. setopt NO_GLOB_SUBST
  23550. fi
  23551. PACKAGE='$PACKAGE'
  23552. VERSION='$VERSION'
  23553. TIMESTAMP='$TIMESTAMP'
  23554. RM='$RM'
  23555. ofile='$ofile'
  23556. SUMMARY="$SUMMARY"
  23557. _ACEOF
  23558. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23559. # Handling of arguments.
  23560. for ac_config_target in $ac_config_targets
  23561. do
  23562. case $ac_config_target in
  23563. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  23564. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  23565. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  23566. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  23567. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  23568. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  23569. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  23570. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  23571. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  23572. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  23573. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  23574. esac
  23575. done
  23576. # If the user did not use the arguments to specify the items to instantiate,
  23577. # then the envvar interface is used. Set only those that are not.
  23578. # We use the long form for the default assignment because of an extremely
  23579. # bizarre bug on SunOS 4.1.3.
  23580. if $ac_need_defaults; then
  23581. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  23582. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  23583. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  23584. fi
  23585. # Have a temporary directory for convenience. Make it in the build tree
  23586. # simply because there is no reason against having it here, and in addition,
  23587. # creating and moving files from /tmp can sometimes cause problems.
  23588. # Hook for its removal unless debugging.
  23589. # Note that there is a small window in which the directory will not be cleaned:
  23590. # after its creation but before its name has been assigned to `$tmp'.
  23591. $debug ||
  23592. {
  23593. tmp= ac_tmp=
  23594. trap 'exit_status=$?
  23595. : "${ac_tmp:=$tmp}"
  23596. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  23597. ' 0
  23598. trap 'as_fn_exit 1' 1 2 13 15
  23599. }
  23600. # Create a (secure) tmp directory for tmp files.
  23601. {
  23602. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  23603. test -d "$tmp"
  23604. } ||
  23605. {
  23606. tmp=./conf$$-$RANDOM
  23607. (umask 077 && mkdir "$tmp")
  23608. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  23609. ac_tmp=$tmp
  23610. # Set up the scripts for CONFIG_FILES section.
  23611. # No need to generate them if there are no CONFIG_FILES.
  23612. # This happens for instance with `./config.status config.h'.
  23613. if test -n "$CONFIG_FILES"; then
  23614. ac_cr=`echo X | tr X '\015'`
  23615. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  23616. # But we know of no other shell where ac_cr would be empty at this
  23617. # point, so we can use a bashism as a fallback.
  23618. if test "x$ac_cr" = x; then
  23619. eval ac_cr=\$\'\\r\'
  23620. fi
  23621. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  23622. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  23623. ac_cs_awk_cr='\\r'
  23624. else
  23625. ac_cs_awk_cr=$ac_cr
  23626. fi
  23627. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  23628. _ACEOF
  23629. {
  23630. echo "cat >conf$$subs.awk <<_ACEOF" &&
  23631. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  23632. echo "_ACEOF"
  23633. } >conf$$subs.sh ||
  23634. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23635. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  23636. ac_delim='%!_!# '
  23637. for ac_last_try in false false false false false :; do
  23638. . ./conf$$subs.sh ||
  23639. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23640. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  23641. if test $ac_delim_n = $ac_delim_num; then
  23642. break
  23643. elif $ac_last_try; then
  23644. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23645. else
  23646. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23647. fi
  23648. done
  23649. rm -f conf$$subs.sh
  23650. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23651. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  23652. _ACEOF
  23653. sed -n '
  23654. h
  23655. s/^/S["/; s/!.*/"]=/
  23656. p
  23657. g
  23658. s/^[^!]*!//
  23659. :repl
  23660. t repl
  23661. s/'"$ac_delim"'$//
  23662. t delim
  23663. :nl
  23664. h
  23665. s/\(.\{148\}\)..*/\1/
  23666. t more1
  23667. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  23668. p
  23669. n
  23670. b repl
  23671. :more1
  23672. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23673. p
  23674. g
  23675. s/.\{148\}//
  23676. t nl
  23677. :delim
  23678. h
  23679. s/\(.\{148\}\)..*/\1/
  23680. t more2
  23681. s/["\\]/\\&/g; s/^/"/; s/$/"/
  23682. p
  23683. b
  23684. :more2
  23685. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23686. p
  23687. g
  23688. s/.\{148\}//
  23689. t delim
  23690. ' <conf$$subs.awk | sed '
  23691. /^[^""]/{
  23692. N
  23693. s/\n//
  23694. }
  23695. ' >>$CONFIG_STATUS || ac_write_fail=1
  23696. rm -f conf$$subs.awk
  23697. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23698. _ACAWK
  23699. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  23700. for (key in S) S_is_set[key] = 1
  23701. FS = ""
  23702. }
  23703. {
  23704. line = $ 0
  23705. nfields = split(line, field, "@")
  23706. substed = 0
  23707. len = length(field[1])
  23708. for (i = 2; i < nfields; i++) {
  23709. key = field[i]
  23710. keylen = length(key)
  23711. if (S_is_set[key]) {
  23712. value = S[key]
  23713. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  23714. len += length(value) + length(field[++i])
  23715. substed = 1
  23716. } else
  23717. len += 1 + keylen
  23718. }
  23719. print line
  23720. }
  23721. _ACAWK
  23722. _ACEOF
  23723. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23724. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  23725. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  23726. else
  23727. cat
  23728. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  23729. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  23730. _ACEOF
  23731. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  23732. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  23733. # trailing colons and then remove the whole line if VPATH becomes empty
  23734. # (actually we leave an empty line to preserve line numbers).
  23735. if test "x$srcdir" = x.; then
  23736. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  23737. h
  23738. s///
  23739. s/^/:/
  23740. s/[ ]*$/:/
  23741. s/:\$(srcdir):/:/g
  23742. s/:\${srcdir}:/:/g
  23743. s/:@srcdir@:/:/g
  23744. s/^:*//
  23745. s/:*$//
  23746. x
  23747. s/\(=[ ]*\).*/\1/
  23748. G
  23749. s/\n//
  23750. s/^[^=]*=[ ]*$//
  23751. }'
  23752. fi
  23753. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23754. fi # test -n "$CONFIG_FILES"
  23755. # Set up the scripts for CONFIG_HEADERS section.
  23756. # No need to generate them if there are no CONFIG_HEADERS.
  23757. # This happens for instance with `./config.status Makefile'.
  23758. if test -n "$CONFIG_HEADERS"; then
  23759. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  23760. BEGIN {
  23761. _ACEOF
  23762. # Transform confdefs.h into an awk script `defines.awk', embedded as
  23763. # here-document in config.status, that substitutes the proper values into
  23764. # config.h.in to produce config.h.
  23765. # Create a delimiter string that does not exist in confdefs.h, to ease
  23766. # handling of long lines.
  23767. ac_delim='%!_!# '
  23768. for ac_last_try in false false :; do
  23769. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  23770. if test -z "$ac_tt"; then
  23771. break
  23772. elif $ac_last_try; then
  23773. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  23774. else
  23775. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23776. fi
  23777. done
  23778. # For the awk script, D is an array of macro values keyed by name,
  23779. # likewise P contains macro parameters if any. Preserve backslash
  23780. # newline sequences.
  23781. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  23782. sed -n '
  23783. s/.\{148\}/&'"$ac_delim"'/g
  23784. t rset
  23785. :rset
  23786. s/^[ ]*#[ ]*define[ ][ ]*/ /
  23787. t def
  23788. d
  23789. :def
  23790. s/\\$//
  23791. t bsnl
  23792. s/["\\]/\\&/g
  23793. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23794. D["\1"]=" \3"/p
  23795. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  23796. d
  23797. :bsnl
  23798. s/["\\]/\\&/g
  23799. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23800. D["\1"]=" \3\\\\\\n"\\/p
  23801. t cont
  23802. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  23803. t cont
  23804. d
  23805. :cont
  23806. n
  23807. s/.\{148\}/&'"$ac_delim"'/g
  23808. t clear
  23809. :clear
  23810. s/\\$//
  23811. t bsnlc
  23812. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  23813. d
  23814. :bsnlc
  23815. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  23816. b cont
  23817. ' <confdefs.h | sed '
  23818. s/'"$ac_delim"'/"\\\
  23819. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  23820. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23821. for (key in D) D_is_set[key] = 1
  23822. FS = ""
  23823. }
  23824. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  23825. line = \$ 0
  23826. split(line, arg, " ")
  23827. if (arg[1] == "#") {
  23828. defundef = arg[2]
  23829. mac1 = arg[3]
  23830. } else {
  23831. defundef = substr(arg[1], 2)
  23832. mac1 = arg[2]
  23833. }
  23834. split(mac1, mac2, "(") #)
  23835. macro = mac2[1]
  23836. prefix = substr(line, 1, index(line, defundef) - 1)
  23837. if (D_is_set[macro]) {
  23838. # Preserve the white space surrounding the "#".
  23839. print prefix "define", macro P[macro] D[macro]
  23840. next
  23841. } else {
  23842. # Replace #undef with comments. This is necessary, for example,
  23843. # in the case of _POSIX_SOURCE, which is predefined and required
  23844. # on some systems where configure will not decide to define it.
  23845. if (defundef == "undef") {
  23846. print "/*", prefix defundef, macro, "*/"
  23847. next
  23848. }
  23849. }
  23850. }
  23851. { print }
  23852. _ACAWK
  23853. _ACEOF
  23854. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23855. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  23856. fi # test -n "$CONFIG_HEADERS"
  23857. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  23858. shift
  23859. for ac_tag
  23860. do
  23861. case $ac_tag in
  23862. :[FHLC]) ac_mode=$ac_tag; continue;;
  23863. esac
  23864. case $ac_mode$ac_tag in
  23865. :[FHL]*:*);;
  23866. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  23867. :[FH]-) ac_tag=-:-;;
  23868. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  23869. esac
  23870. ac_save_IFS=$IFS
  23871. IFS=:
  23872. set x $ac_tag
  23873. IFS=$ac_save_IFS
  23874. shift
  23875. ac_file=$1
  23876. shift
  23877. case $ac_mode in
  23878. :L) ac_source=$1;;
  23879. :[FH])
  23880. ac_file_inputs=
  23881. for ac_f
  23882. do
  23883. case $ac_f in
  23884. -) ac_f="$ac_tmp/stdin";;
  23885. *) # Look for the file first in the build tree, then in the source tree
  23886. # (if the path is not absolute). The absolute path cannot be DOS-style,
  23887. # because $ac_f cannot contain `:'.
  23888. test -f "$ac_f" ||
  23889. case $ac_f in
  23890. [\\/$]*) false;;
  23891. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  23892. esac ||
  23893. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  23894. esac
  23895. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  23896. as_fn_append ac_file_inputs " '$ac_f'"
  23897. done
  23898. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23899. # use $as_me), people would be surprised to read:
  23900. # /* config.h. Generated by config.status. */
  23901. configure_input='Generated from '`
  23902. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  23903. `' by configure.'
  23904. if test x"$ac_file" != x-; then
  23905. configure_input="$ac_file. $configure_input"
  23906. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  23907. $as_echo "$as_me: creating $ac_file" >&6;}
  23908. fi
  23909. # Neutralize special characters interpreted by sed in replacement strings.
  23910. case $configure_input in #(
  23911. *\&* | *\|* | *\\* )
  23912. ac_sed_conf_input=`$as_echo "$configure_input" |
  23913. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  23914. *) ac_sed_conf_input=$configure_input;;
  23915. esac
  23916. case $ac_tag in
  23917. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  23918. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  23919. esac
  23920. ;;
  23921. esac
  23922. ac_dir=`$as_dirname -- "$ac_file" ||
  23923. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23924. X"$ac_file" : 'X\(//\)[^/]' \| \
  23925. X"$ac_file" : 'X\(//\)$' \| \
  23926. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  23927. $as_echo X"$ac_file" |
  23928. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23929. s//\1/
  23930. q
  23931. }
  23932. /^X\(\/\/\)[^/].*/{
  23933. s//\1/
  23934. q
  23935. }
  23936. /^X\(\/\/\)$/{
  23937. s//\1/
  23938. q
  23939. }
  23940. /^X\(\/\).*/{
  23941. s//\1/
  23942. q
  23943. }
  23944. s/.*/./; q'`
  23945. as_dir="$ac_dir"; as_fn_mkdir_p
  23946. ac_builddir=.
  23947. case "$ac_dir" in
  23948. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23949. *)
  23950. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  23951. # A ".." for each directory in $ac_dir_suffix.
  23952. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  23953. case $ac_top_builddir_sub in
  23954. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23955. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  23956. esac ;;
  23957. esac
  23958. ac_abs_top_builddir=$ac_pwd
  23959. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  23960. # for backward compatibility:
  23961. ac_top_builddir=$ac_top_build_prefix
  23962. case $srcdir in
  23963. .) # We are building in place.
  23964. ac_srcdir=.
  23965. ac_top_srcdir=$ac_top_builddir_sub
  23966. ac_abs_top_srcdir=$ac_pwd ;;
  23967. [\\/]* | ?:[\\/]* ) # Absolute name.
  23968. ac_srcdir=$srcdir$ac_dir_suffix;
  23969. ac_top_srcdir=$srcdir
  23970. ac_abs_top_srcdir=$srcdir ;;
  23971. *) # Relative name.
  23972. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  23973. ac_top_srcdir=$ac_top_build_prefix$srcdir
  23974. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  23975. esac
  23976. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  23977. case $ac_mode in
  23978. :F)
  23979. #
  23980. # CONFIG_FILE
  23981. #
  23982. case $INSTALL in
  23983. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  23984. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  23985. esac
  23986. _ACEOF
  23987. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23988. # If the template does not know about datarootdir, expand it.
  23989. # FIXME: This hack should be removed a few years after 2.60.
  23990. ac_datarootdir_hack=; ac_datarootdir_seen=
  23991. ac_sed_dataroot='
  23992. /datarootdir/ {
  23993. p
  23994. q
  23995. }
  23996. /@datadir@/p
  23997. /@docdir@/p
  23998. /@infodir@/p
  23999. /@localedir@/p
  24000. /@mandir@/p'
  24001. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  24002. *datarootdir*) ac_datarootdir_seen=yes;;
  24003. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  24004. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  24005. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  24006. _ACEOF
  24007. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24008. ac_datarootdir_hack='
  24009. s&@datadir@&$datadir&g
  24010. s&@docdir@&$docdir&g
  24011. s&@infodir@&$infodir&g
  24012. s&@localedir@&$localedir&g
  24013. s&@mandir@&$mandir&g
  24014. s&\\\${datarootdir}&$datarootdir&g' ;;
  24015. esac
  24016. _ACEOF
  24017. # Neutralize VPATH when `$srcdir' = `.'.
  24018. # Shell code in configure.ac might set extrasub.
  24019. # FIXME: do we really want to maintain this feature?
  24020. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24021. ac_sed_extra="$ac_vpsub
  24022. $extrasub
  24023. _ACEOF
  24024. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24025. :t
  24026. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  24027. s|@configure_input@|$ac_sed_conf_input|;t t
  24028. s&@top_builddir@&$ac_top_builddir_sub&;t t
  24029. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  24030. s&@srcdir@&$ac_srcdir&;t t
  24031. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  24032. s&@top_srcdir@&$ac_top_srcdir&;t t
  24033. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  24034. s&@builddir@&$ac_builddir&;t t
  24035. s&@abs_builddir@&$ac_abs_builddir&;t t
  24036. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  24037. s&@INSTALL@&$ac_INSTALL&;t t
  24038. $ac_datarootdir_hack
  24039. "
  24040. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  24041. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24042. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  24043. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  24044. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  24045. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  24046. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  24047. which seems to be undefined. Please make sure it is defined" >&5
  24048. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  24049. which seems to be undefined. Please make sure it is defined" >&2;}
  24050. rm -f "$ac_tmp/stdin"
  24051. case $ac_file in
  24052. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  24053. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  24054. esac \
  24055. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24056. ;;
  24057. :H)
  24058. #
  24059. # CONFIG_HEADER
  24060. #
  24061. if test x"$ac_file" != x-; then
  24062. {
  24063. $as_echo "/* $configure_input */" \
  24064. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  24065. } >"$ac_tmp/config.h" \
  24066. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24067. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  24068. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  24069. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  24070. else
  24071. rm -f "$ac_file"
  24072. mv "$ac_tmp/config.h" "$ac_file" \
  24073. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24074. fi
  24075. else
  24076. $as_echo "/* $configure_input */" \
  24077. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  24078. || as_fn_error $? "could not create -" "$LINENO" 5
  24079. fi
  24080. ;;
  24081. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  24082. $as_echo "$as_me: executing $ac_file commands" >&6;}
  24083. ;;
  24084. esac
  24085. case $ac_file$ac_mode in
  24086. "libtool":C)
  24087. # See if we are running on zsh, and set the options which allow our
  24088. # commands through without removal of \ escapes.
  24089. if test -n "${ZSH_VERSION+set}" ; then
  24090. setopt NO_GLOB_SUBST
  24091. fi
  24092. cfgfile="${ofile}T"
  24093. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  24094. $RM "$cfgfile"
  24095. cat <<_LT_EOF >> "$cfgfile"
  24096. #! $SHELL
  24097. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  24098. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  24099. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  24100. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  24101. #
  24102. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  24103. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  24104. # Foundation, Inc.
  24105. # Written by Gordon Matzigkeit, 1996
  24106. #
  24107. # This file is part of GNU Libtool.
  24108. #
  24109. # GNU Libtool is free software; you can redistribute it and/or
  24110. # modify it under the terms of the GNU General Public License as
  24111. # published by the Free Software Foundation; either version 2 of
  24112. # the License, or (at your option) any later version.
  24113. #
  24114. # As a special exception to the GNU General Public License,
  24115. # if you distribute this file as part of a program or library that
  24116. # is built using GNU Libtool, you may include this file under the
  24117. # same distribution terms that you use for the rest of that program.
  24118. #
  24119. # GNU Libtool is distributed in the hope that it will be useful,
  24120. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  24121. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24122. # GNU General Public License for more details.
  24123. #
  24124. # You should have received a copy of the GNU General Public License
  24125. # along with GNU Libtool; see the file COPYING. If not, a copy
  24126. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  24127. # obtained by writing to the Free Software Foundation, Inc.,
  24128. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  24129. # The names of the tagged configurations supported by this script.
  24130. available_tags="RC CXX "
  24131. # ### BEGIN LIBTOOL CONFIG
  24132. # Which release of libtool.m4 was used?
  24133. macro_version=$macro_version
  24134. macro_revision=$macro_revision
  24135. # Assembler program.
  24136. AS=$lt_AS
  24137. # DLL creation program.
  24138. DLLTOOL=$lt_DLLTOOL
  24139. # Object dumper program.
  24140. OBJDUMP=$lt_OBJDUMP
  24141. # Whether or not to build shared libraries.
  24142. build_libtool_libs=$enable_shared
  24143. # Whether or not to build static libraries.
  24144. build_old_libs=$enable_static
  24145. # What type of objects to build.
  24146. pic_mode=$pic_mode
  24147. # Whether or not to optimize for fast installation.
  24148. fast_install=$enable_fast_install
  24149. # Shell to use when invoking shell scripts.
  24150. SHELL=$lt_SHELL
  24151. # An echo program that protects backslashes.
  24152. ECHO=$lt_ECHO
  24153. # The PATH separator for the build system.
  24154. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  24155. # The host system.
  24156. host_alias=$host_alias
  24157. host=$host
  24158. host_os=$host_os
  24159. # The build system.
  24160. build_alias=$build_alias
  24161. build=$build
  24162. build_os=$build_os
  24163. # A sed program that does not truncate output.
  24164. SED=$lt_SED
  24165. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  24166. Xsed="\$SED -e 1s/^X//"
  24167. # A grep program that handles long lines.
  24168. GREP=$lt_GREP
  24169. # An ERE matcher.
  24170. EGREP=$lt_EGREP
  24171. # A literal string matcher.
  24172. FGREP=$lt_FGREP
  24173. # A BSD- or MS-compatible name lister.
  24174. NM=$lt_NM
  24175. # Whether we need soft or hard links.
  24176. LN_S=$lt_LN_S
  24177. # What is the maximum length of a command?
  24178. max_cmd_len=$max_cmd_len
  24179. # Object file suffix (normally "o").
  24180. objext=$ac_objext
  24181. # Executable file suffix (normally "").
  24182. exeext=$exeext
  24183. # whether the shell understands "unset".
  24184. lt_unset=$lt_unset
  24185. # turn spaces into newlines.
  24186. SP2NL=$lt_lt_SP2NL
  24187. # turn newlines into spaces.
  24188. NL2SP=$lt_lt_NL2SP
  24189. # convert \$build file names to \$host format.
  24190. to_host_file_cmd=$lt_cv_to_host_file_cmd
  24191. # convert \$build files to toolchain format.
  24192. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  24193. # Method to check whether dependent libraries are shared objects.
  24194. deplibs_check_method=$lt_deplibs_check_method
  24195. # Command to use when deplibs_check_method = "file_magic".
  24196. file_magic_cmd=$lt_file_magic_cmd
  24197. # How to find potential files when deplibs_check_method = "file_magic".
  24198. file_magic_glob=$lt_file_magic_glob
  24199. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  24200. want_nocaseglob=$lt_want_nocaseglob
  24201. # Command to associate shared and link libraries.
  24202. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  24203. # The archiver.
  24204. AR=$lt_AR
  24205. # Flags to create an archive.
  24206. AR_FLAGS=$lt_AR_FLAGS
  24207. # How to feed a file listing to the archiver.
  24208. archiver_list_spec=$lt_archiver_list_spec
  24209. # A symbol stripping program.
  24210. STRIP=$lt_STRIP
  24211. # Commands used to install an old-style archive.
  24212. RANLIB=$lt_RANLIB
  24213. old_postinstall_cmds=$lt_old_postinstall_cmds
  24214. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  24215. # Whether to use a lock for old archive extraction.
  24216. lock_old_archive_extraction=$lock_old_archive_extraction
  24217. # A C compiler.
  24218. LTCC=$lt_CC
  24219. # LTCC compiler flags.
  24220. LTCFLAGS=$lt_CFLAGS
  24221. # Take the output of nm and produce a listing of raw symbols and C names.
  24222. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  24223. # Transform the output of nm in a proper C declaration.
  24224. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  24225. # Transform the output of nm in a C name address pair.
  24226. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  24227. # Transform the output of nm in a C name address pair when lib prefix is needed.
  24228. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  24229. # Specify filename containing input files for \$NM.
  24230. nm_file_list_spec=$lt_nm_file_list_spec
  24231. # The root where to search for dependent libraries,and in which our libraries should be installed.
  24232. lt_sysroot=$lt_sysroot
  24233. # The name of the directory that contains temporary libtool files.
  24234. objdir=$objdir
  24235. # Used to examine libraries when file_magic_cmd begins with "file".
  24236. MAGIC_CMD=$MAGIC_CMD
  24237. # Must we lock files when doing compilation?
  24238. need_locks=$lt_need_locks
  24239. # Manifest tool.
  24240. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  24241. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  24242. DSYMUTIL=$lt_DSYMUTIL
  24243. # Tool to change global to local symbols on Mac OS X.
  24244. NMEDIT=$lt_NMEDIT
  24245. # Tool to manipulate fat objects and archives on Mac OS X.
  24246. LIPO=$lt_LIPO
  24247. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  24248. OTOOL=$lt_OTOOL
  24249. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  24250. OTOOL64=$lt_OTOOL64
  24251. # Old archive suffix (normally "a").
  24252. libext=$libext
  24253. # Shared library suffix (normally ".so").
  24254. shrext_cmds=$lt_shrext_cmds
  24255. # The commands to extract the exported symbol list from a shared archive.
  24256. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  24257. # Variables whose values should be saved in libtool wrapper scripts and
  24258. # restored at link time.
  24259. variables_saved_for_relink=$lt_variables_saved_for_relink
  24260. # Do we need the "lib" prefix for modules?
  24261. need_lib_prefix=$need_lib_prefix
  24262. # Do we need a version for libraries?
  24263. need_version=$need_version
  24264. # Library versioning type.
  24265. version_type=$version_type
  24266. # Shared library runtime path variable.
  24267. runpath_var=$runpath_var
  24268. # Shared library path variable.
  24269. shlibpath_var=$shlibpath_var
  24270. # Is shlibpath searched before the hard-coded library search path?
  24271. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  24272. # Format of library name prefix.
  24273. libname_spec=$lt_libname_spec
  24274. # List of archive names. First name is the real one, the rest are links.
  24275. # The last name is the one that the linker finds with -lNAME
  24276. library_names_spec=$lt_library_names_spec
  24277. # The coded name of the library, if different from the real name.
  24278. soname_spec=$lt_soname_spec
  24279. # Permission mode override for installation of shared libraries.
  24280. install_override_mode=$lt_install_override_mode
  24281. # Command to use after installation of a shared archive.
  24282. postinstall_cmds=$lt_postinstall_cmds
  24283. # Command to use after uninstallation of a shared archive.
  24284. postuninstall_cmds=$lt_postuninstall_cmds
  24285. # Commands used to finish a libtool library installation in a directory.
  24286. finish_cmds=$lt_finish_cmds
  24287. # As "finish_cmds", except a single script fragment to be evaled but
  24288. # not shown.
  24289. finish_eval=$lt_finish_eval
  24290. # Whether we should hardcode library paths into libraries.
  24291. hardcode_into_libs=$hardcode_into_libs
  24292. # Compile-time system search path for libraries.
  24293. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  24294. # Run-time system search path for libraries.
  24295. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  24296. # Whether dlopen is supported.
  24297. dlopen_support=$enable_dlopen
  24298. # Whether dlopen of programs is supported.
  24299. dlopen_self=$enable_dlopen_self
  24300. # Whether dlopen of statically linked programs is supported.
  24301. dlopen_self_static=$enable_dlopen_self_static
  24302. # Commands to strip libraries.
  24303. old_striplib=$lt_old_striplib
  24304. striplib=$lt_striplib
  24305. # The linker used to build libraries.
  24306. LD=$lt_LD
  24307. # How to create reloadable object files.
  24308. reload_flag=$lt_reload_flag
  24309. reload_cmds=$lt_reload_cmds
  24310. # Commands used to build an old-style archive.
  24311. old_archive_cmds=$lt_old_archive_cmds
  24312. # A language specific compiler.
  24313. CC=$lt_compiler
  24314. # Is the compiler the GNU compiler?
  24315. with_gcc=$GCC
  24316. # Compiler flag to turn off builtin functions.
  24317. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  24318. # Additional compiler flags for building library objects.
  24319. pic_flag=$lt_lt_prog_compiler_pic
  24320. # How to pass a linker flag through the compiler.
  24321. wl=$lt_lt_prog_compiler_wl
  24322. # Compiler flag to prevent dynamic linking.
  24323. link_static_flag=$lt_lt_prog_compiler_static
  24324. # Does compiler simultaneously support -c and -o options?
  24325. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  24326. # Whether or not to add -lc for building shared libraries.
  24327. build_libtool_need_lc=$archive_cmds_need_lc
  24328. # Whether or not to disallow shared libs when runtime libs are static.
  24329. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  24330. # Compiler flag to allow reflexive dlopens.
  24331. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  24332. # Compiler flag to generate shared objects directly from archives.
  24333. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  24334. # Whether the compiler copes with passing no objects directly.
  24335. compiler_needs_object=$lt_compiler_needs_object
  24336. # Create an old-style archive from a shared archive.
  24337. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  24338. # Create a temporary old-style archive to link instead of a shared archive.
  24339. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  24340. # Commands used to build a shared archive.
  24341. archive_cmds=$lt_archive_cmds
  24342. archive_expsym_cmds=$lt_archive_expsym_cmds
  24343. # Commands used to build a loadable module if different from building
  24344. # a shared archive.
  24345. module_cmds=$lt_module_cmds
  24346. module_expsym_cmds=$lt_module_expsym_cmds
  24347. # Whether we are building with GNU ld or not.
  24348. with_gnu_ld=$lt_with_gnu_ld
  24349. # Flag that allows shared libraries with undefined symbols to be built.
  24350. allow_undefined_flag=$lt_allow_undefined_flag
  24351. # Flag that enforces no undefined symbols.
  24352. no_undefined_flag=$lt_no_undefined_flag
  24353. # Flag to hardcode \$libdir into a binary during linking.
  24354. # This must work even if \$libdir does not exist
  24355. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  24356. # Whether we need a single "-rpath" flag with a separated argument.
  24357. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  24358. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24359. # DIR into the resulting binary.
  24360. hardcode_direct=$hardcode_direct
  24361. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24362. # DIR into the resulting binary and the resulting library dependency is
  24363. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24364. # library is relocated.
  24365. hardcode_direct_absolute=$hardcode_direct_absolute
  24366. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24367. # into the resulting binary.
  24368. hardcode_minus_L=$hardcode_minus_L
  24369. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24370. # into the resulting binary.
  24371. hardcode_shlibpath_var=$hardcode_shlibpath_var
  24372. # Set to "yes" if building a shared library automatically hardcodes DIR
  24373. # into the library and all subsequent libraries and executables linked
  24374. # against it.
  24375. hardcode_automatic=$hardcode_automatic
  24376. # Set to yes if linker adds runtime paths of dependent libraries
  24377. # to runtime path list.
  24378. inherit_rpath=$inherit_rpath
  24379. # Whether libtool must link a program against all its dependency libraries.
  24380. link_all_deplibs=$link_all_deplibs
  24381. # Set to "yes" if exported symbols are required.
  24382. always_export_symbols=$always_export_symbols
  24383. # The commands to list exported symbols.
  24384. export_symbols_cmds=$lt_export_symbols_cmds
  24385. # Symbols that should not be listed in the preloaded symbols.
  24386. exclude_expsyms=$lt_exclude_expsyms
  24387. # Symbols that must always be exported.
  24388. include_expsyms=$lt_include_expsyms
  24389. # Commands necessary for linking programs (against libraries) with templates.
  24390. prelink_cmds=$lt_prelink_cmds
  24391. # Commands necessary for finishing linking programs.
  24392. postlink_cmds=$lt_postlink_cmds
  24393. # Specify filename containing input files.
  24394. file_list_spec=$lt_file_list_spec
  24395. # How to hardcode a shared library path into an executable.
  24396. hardcode_action=$hardcode_action
  24397. # The directories searched by this compiler when creating a shared library.
  24398. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  24399. # Dependencies to place before and after the objects being linked to
  24400. # create a shared library.
  24401. predep_objects=$lt_predep_objects
  24402. postdep_objects=$lt_postdep_objects
  24403. predeps=$lt_predeps
  24404. postdeps=$lt_postdeps
  24405. # The library search path used internally by the compiler when linking
  24406. # a shared library.
  24407. compiler_lib_search_path=$lt_compiler_lib_search_path
  24408. # ### END LIBTOOL CONFIG
  24409. _LT_EOF
  24410. case $host_os in
  24411. aix3*)
  24412. cat <<\_LT_EOF >> "$cfgfile"
  24413. # AIX sometimes has problems with the GCC collect2 program. For some
  24414. # reason, if we set the COLLECT_NAMES environment variable, the problems
  24415. # vanish in a puff of smoke.
  24416. if test "X${COLLECT_NAMES+set}" != Xset; then
  24417. COLLECT_NAMES=
  24418. export COLLECT_NAMES
  24419. fi
  24420. _LT_EOF
  24421. ;;
  24422. esac
  24423. ltmain="$ac_aux_dir/ltmain.sh"
  24424. # We use sed instead of cat because bash on DJGPP gets confused if
  24425. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  24426. # text mode, it properly converts lines to CR/LF. This bash problem
  24427. # is reportedly fixed, but why not run on old versions too?
  24428. sed '$q' "$ltmain" >> "$cfgfile" \
  24429. || (rm -f "$cfgfile"; exit 1)
  24430. if test x"$xsi_shell" = xyes; then
  24431. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  24432. func_dirname ()\
  24433. {\
  24434. \ case ${1} in\
  24435. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  24436. \ * ) func_dirname_result="${3}" ;;\
  24437. \ esac\
  24438. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  24439. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24440. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24441. test 0 -eq $? || _lt_function_replace_fail=:
  24442. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  24443. func_basename ()\
  24444. {\
  24445. \ func_basename_result="${1##*/}"\
  24446. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  24447. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24448. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24449. test 0 -eq $? || _lt_function_replace_fail=:
  24450. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  24451. func_dirname_and_basename ()\
  24452. {\
  24453. \ case ${1} in\
  24454. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  24455. \ * ) func_dirname_result="${3}" ;;\
  24456. \ esac\
  24457. \ func_basename_result="${1##*/}"\
  24458. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  24459. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24460. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24461. test 0 -eq $? || _lt_function_replace_fail=:
  24462. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  24463. func_stripname ()\
  24464. {\
  24465. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  24466. \ # positional parameters, so assign one to ordinary parameter first.\
  24467. \ func_stripname_result=${3}\
  24468. \ func_stripname_result=${func_stripname_result#"${1}"}\
  24469. \ func_stripname_result=${func_stripname_result%"${2}"}\
  24470. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  24471. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24472. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24473. test 0 -eq $? || _lt_function_replace_fail=:
  24474. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  24475. func_split_long_opt ()\
  24476. {\
  24477. \ func_split_long_opt_name=${1%%=*}\
  24478. \ func_split_long_opt_arg=${1#*=}\
  24479. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  24480. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24481. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24482. test 0 -eq $? || _lt_function_replace_fail=:
  24483. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  24484. func_split_short_opt ()\
  24485. {\
  24486. \ func_split_short_opt_arg=${1#??}\
  24487. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  24488. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  24489. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24490. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24491. test 0 -eq $? || _lt_function_replace_fail=:
  24492. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  24493. func_lo2o ()\
  24494. {\
  24495. \ case ${1} in\
  24496. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  24497. \ *) func_lo2o_result=${1} ;;\
  24498. \ esac\
  24499. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  24500. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24501. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24502. test 0 -eq $? || _lt_function_replace_fail=:
  24503. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  24504. func_xform ()\
  24505. {\
  24506. func_xform_result=${1%.*}.lo\
  24507. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  24508. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24509. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24510. test 0 -eq $? || _lt_function_replace_fail=:
  24511. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  24512. func_arith ()\
  24513. {\
  24514. func_arith_result=$(( $* ))\
  24515. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  24516. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24517. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24518. test 0 -eq $? || _lt_function_replace_fail=:
  24519. sed -e '/^func_len ()$/,/^} # func_len /c\
  24520. func_len ()\
  24521. {\
  24522. func_len_result=${#1}\
  24523. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  24524. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24525. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24526. test 0 -eq $? || _lt_function_replace_fail=:
  24527. fi
  24528. if test x"$lt_shell_append" = xyes; then
  24529. sed -e '/^func_append ()$/,/^} # func_append /c\
  24530. func_append ()\
  24531. {\
  24532. eval "${1}+=\\${2}"\
  24533. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  24534. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24535. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24536. test 0 -eq $? || _lt_function_replace_fail=:
  24537. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  24538. func_append_quoted ()\
  24539. {\
  24540. \ func_quote_for_eval "${2}"\
  24541. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  24542. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  24543. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24544. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24545. test 0 -eq $? || _lt_function_replace_fail=:
  24546. # Save a `func_append' function call where possible by direct use of '+='
  24547. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  24548. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24549. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24550. test 0 -eq $? || _lt_function_replace_fail=:
  24551. else
  24552. # Save a `func_append' function call even when '+=' is not available
  24553. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  24554. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24555. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24556. test 0 -eq $? || _lt_function_replace_fail=:
  24557. fi
  24558. if test x"$_lt_function_replace_fail" = x":"; then
  24559. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  24560. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  24561. fi
  24562. mv -f "$cfgfile" "$ofile" ||
  24563. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  24564. chmod +x "$ofile"
  24565. cat <<_LT_EOF >> "$ofile"
  24566. # ### BEGIN LIBTOOL TAG CONFIG: RC
  24567. # The linker used to build libraries.
  24568. LD=$lt_LD_RC
  24569. # How to create reloadable object files.
  24570. reload_flag=$lt_reload_flag_RC
  24571. reload_cmds=$lt_reload_cmds_RC
  24572. # Commands used to build an old-style archive.
  24573. old_archive_cmds=$lt_old_archive_cmds_RC
  24574. # A language specific compiler.
  24575. CC=$lt_compiler_RC
  24576. # Is the compiler the GNU compiler?
  24577. with_gcc=$GCC_RC
  24578. # Compiler flag to turn off builtin functions.
  24579. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  24580. # Additional compiler flags for building library objects.
  24581. pic_flag=$lt_lt_prog_compiler_pic_RC
  24582. # How to pass a linker flag through the compiler.
  24583. wl=$lt_lt_prog_compiler_wl_RC
  24584. # Compiler flag to prevent dynamic linking.
  24585. link_static_flag=$lt_lt_prog_compiler_static_RC
  24586. # Does compiler simultaneously support -c and -o options?
  24587. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  24588. # Whether or not to add -lc for building shared libraries.
  24589. build_libtool_need_lc=$archive_cmds_need_lc_RC
  24590. # Whether or not to disallow shared libs when runtime libs are static.
  24591. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  24592. # Compiler flag to allow reflexive dlopens.
  24593. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  24594. # Compiler flag to generate shared objects directly from archives.
  24595. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  24596. # Whether the compiler copes with passing no objects directly.
  24597. compiler_needs_object=$lt_compiler_needs_object_RC
  24598. # Create an old-style archive from a shared archive.
  24599. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  24600. # Create a temporary old-style archive to link instead of a shared archive.
  24601. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  24602. # Commands used to build a shared archive.
  24603. archive_cmds=$lt_archive_cmds_RC
  24604. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  24605. # Commands used to build a loadable module if different from building
  24606. # a shared archive.
  24607. module_cmds=$lt_module_cmds_RC
  24608. module_expsym_cmds=$lt_module_expsym_cmds_RC
  24609. # Whether we are building with GNU ld or not.
  24610. with_gnu_ld=$lt_with_gnu_ld_RC
  24611. # Flag that allows shared libraries with undefined symbols to be built.
  24612. allow_undefined_flag=$lt_allow_undefined_flag_RC
  24613. # Flag that enforces no undefined symbols.
  24614. no_undefined_flag=$lt_no_undefined_flag_RC
  24615. # Flag to hardcode \$libdir into a binary during linking.
  24616. # This must work even if \$libdir does not exist
  24617. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  24618. # Whether we need a single "-rpath" flag with a separated argument.
  24619. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  24620. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24621. # DIR into the resulting binary.
  24622. hardcode_direct=$hardcode_direct_RC
  24623. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24624. # DIR into the resulting binary and the resulting library dependency is
  24625. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24626. # library is relocated.
  24627. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  24628. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24629. # into the resulting binary.
  24630. hardcode_minus_L=$hardcode_minus_L_RC
  24631. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24632. # into the resulting binary.
  24633. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  24634. # Set to "yes" if building a shared library automatically hardcodes DIR
  24635. # into the library and all subsequent libraries and executables linked
  24636. # against it.
  24637. hardcode_automatic=$hardcode_automatic_RC
  24638. # Set to yes if linker adds runtime paths of dependent libraries
  24639. # to runtime path list.
  24640. inherit_rpath=$inherit_rpath_RC
  24641. # Whether libtool must link a program against all its dependency libraries.
  24642. link_all_deplibs=$link_all_deplibs_RC
  24643. # Set to "yes" if exported symbols are required.
  24644. always_export_symbols=$always_export_symbols_RC
  24645. # The commands to list exported symbols.
  24646. export_symbols_cmds=$lt_export_symbols_cmds_RC
  24647. # Symbols that should not be listed in the preloaded symbols.
  24648. exclude_expsyms=$lt_exclude_expsyms_RC
  24649. # Symbols that must always be exported.
  24650. include_expsyms=$lt_include_expsyms_RC
  24651. # Commands necessary for linking programs (against libraries) with templates.
  24652. prelink_cmds=$lt_prelink_cmds_RC
  24653. # Commands necessary for finishing linking programs.
  24654. postlink_cmds=$lt_postlink_cmds_RC
  24655. # Specify filename containing input files.
  24656. file_list_spec=$lt_file_list_spec_RC
  24657. # How to hardcode a shared library path into an executable.
  24658. hardcode_action=$hardcode_action_RC
  24659. # The directories searched by this compiler when creating a shared library.
  24660. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  24661. # Dependencies to place before and after the objects being linked to
  24662. # create a shared library.
  24663. predep_objects=$lt_predep_objects_RC
  24664. postdep_objects=$lt_postdep_objects_RC
  24665. predeps=$lt_predeps_RC
  24666. postdeps=$lt_postdeps_RC
  24667. # The library search path used internally by the compiler when linking
  24668. # a shared library.
  24669. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  24670. # ### END LIBTOOL TAG CONFIG: RC
  24671. _LT_EOF
  24672. cat <<_LT_EOF >> "$ofile"
  24673. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  24674. # The linker used to build libraries.
  24675. LD=$lt_LD_CXX
  24676. # How to create reloadable object files.
  24677. reload_flag=$lt_reload_flag_CXX
  24678. reload_cmds=$lt_reload_cmds_CXX
  24679. # Commands used to build an old-style archive.
  24680. old_archive_cmds=$lt_old_archive_cmds_CXX
  24681. # A language specific compiler.
  24682. CC=$lt_compiler_CXX
  24683. # Is the compiler the GNU compiler?
  24684. with_gcc=$GCC_CXX
  24685. # Compiler flag to turn off builtin functions.
  24686. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  24687. # Additional compiler flags for building library objects.
  24688. pic_flag=$lt_lt_prog_compiler_pic_CXX
  24689. # How to pass a linker flag through the compiler.
  24690. wl=$lt_lt_prog_compiler_wl_CXX
  24691. # Compiler flag to prevent dynamic linking.
  24692. link_static_flag=$lt_lt_prog_compiler_static_CXX
  24693. # Does compiler simultaneously support -c and -o options?
  24694. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  24695. # Whether or not to add -lc for building shared libraries.
  24696. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  24697. # Whether or not to disallow shared libs when runtime libs are static.
  24698. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  24699. # Compiler flag to allow reflexive dlopens.
  24700. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  24701. # Compiler flag to generate shared objects directly from archives.
  24702. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  24703. # Whether the compiler copes with passing no objects directly.
  24704. compiler_needs_object=$lt_compiler_needs_object_CXX
  24705. # Create an old-style archive from a shared archive.
  24706. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  24707. # Create a temporary old-style archive to link instead of a shared archive.
  24708. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  24709. # Commands used to build a shared archive.
  24710. archive_cmds=$lt_archive_cmds_CXX
  24711. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  24712. # Commands used to build a loadable module if different from building
  24713. # a shared archive.
  24714. module_cmds=$lt_module_cmds_CXX
  24715. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  24716. # Whether we are building with GNU ld or not.
  24717. with_gnu_ld=$lt_with_gnu_ld_CXX
  24718. # Flag that allows shared libraries with undefined symbols to be built.
  24719. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  24720. # Flag that enforces no undefined symbols.
  24721. no_undefined_flag=$lt_no_undefined_flag_CXX
  24722. # Flag to hardcode \$libdir into a binary during linking.
  24723. # This must work even if \$libdir does not exist
  24724. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  24725. # Whether we need a single "-rpath" flag with a separated argument.
  24726. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  24727. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24728. # DIR into the resulting binary.
  24729. hardcode_direct=$hardcode_direct_CXX
  24730. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24731. # DIR into the resulting binary and the resulting library dependency is
  24732. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24733. # library is relocated.
  24734. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  24735. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24736. # into the resulting binary.
  24737. hardcode_minus_L=$hardcode_minus_L_CXX
  24738. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24739. # into the resulting binary.
  24740. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  24741. # Set to "yes" if building a shared library automatically hardcodes DIR
  24742. # into the library and all subsequent libraries and executables linked
  24743. # against it.
  24744. hardcode_automatic=$hardcode_automatic_CXX
  24745. # Set to yes if linker adds runtime paths of dependent libraries
  24746. # to runtime path list.
  24747. inherit_rpath=$inherit_rpath_CXX
  24748. # Whether libtool must link a program against all its dependency libraries.
  24749. link_all_deplibs=$link_all_deplibs_CXX
  24750. # Set to "yes" if exported symbols are required.
  24751. always_export_symbols=$always_export_symbols_CXX
  24752. # The commands to list exported symbols.
  24753. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  24754. # Symbols that should not be listed in the preloaded symbols.
  24755. exclude_expsyms=$lt_exclude_expsyms_CXX
  24756. # Symbols that must always be exported.
  24757. include_expsyms=$lt_include_expsyms_CXX
  24758. # Commands necessary for linking programs (against libraries) with templates.
  24759. prelink_cmds=$lt_prelink_cmds_CXX
  24760. # Commands necessary for finishing linking programs.
  24761. postlink_cmds=$lt_postlink_cmds_CXX
  24762. # Specify filename containing input files.
  24763. file_list_spec=$lt_file_list_spec_CXX
  24764. # How to hardcode a shared library path into an executable.
  24765. hardcode_action=$hardcode_action_CXX
  24766. # The directories searched by this compiler when creating a shared library.
  24767. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  24768. # Dependencies to place before and after the objects being linked to
  24769. # create a shared library.
  24770. predep_objects=$lt_predep_objects_CXX
  24771. postdep_objects=$lt_postdep_objects_CXX
  24772. predeps=$lt_predeps_CXX
  24773. postdeps=$lt_postdeps_CXX
  24774. # The library search path used internally by the compiler when linking
  24775. # a shared library.
  24776. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  24777. # ### END LIBTOOL TAG CONFIG: CXX
  24778. _LT_EOF
  24779. ;;
  24780. "sdl2_config":C) chmod a+x sdl2-config ;;
  24781. "summary":C) printf "$SUMMARY" ;;
  24782. esac
  24783. done # for ac_tag
  24784. as_fn_exit 0
  24785. _ACEOF
  24786. ac_clean_files=$ac_clean_files_save
  24787. test $ac_write_fail = 0 ||
  24788. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  24789. # configure is writing to config.log, and then calls config.status.
  24790. # config.status does its own redirection, appending to config.log.
  24791. # Unfortunately, on DOS this fails, as config.log is still kept open
  24792. # by configure, so config.status won't be able to write to it; its
  24793. # output is simply discarded. So we exec the FD to /dev/null,
  24794. # effectively closing config.log, so it can be properly (re)opened and
  24795. # appended to by config.status. When coming back to configure, we
  24796. # need to make the FD available again.
  24797. if test "$no_create" != yes; then
  24798. ac_cs_success=:
  24799. ac_config_status_args=
  24800. test "$silent" = yes &&
  24801. ac_config_status_args="$ac_config_status_args --quiet"
  24802. exec 5>/dev/null
  24803. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  24804. exec 5>>config.log
  24805. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  24806. # would make configure fail if this is the last instruction.
  24807. $ac_cs_success || as_fn_exit 1
  24808. fi
  24809. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  24810. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  24811. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  24812. fi