configure 844 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME=
  539. PACKAGE_TARNAME=
  540. PACKAGE_VERSION=
  541. PACKAGE_STRING=
  542. PACKAGE_BUGREPORT=
  543. PACKAGE_URL=
  544. ac_unique_file="src/SDL.c"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='LTLIBOBJS
  581. WAYLAND_SCANNER_CODE_MODE
  582. WAYLAND_SCANNER
  583. EXTRA_LDFLAGS
  584. BUILD_LDFLAGS
  585. EXTRA_CFLAGS
  586. BUILD_CFLAGS
  587. SDLTEST_OBJECTS
  588. SDLMAIN_OBJECTS
  589. VERSION_OBJECTS
  590. GEN_OBJECTS
  591. GEN_HEADERS
  592. OBJECTS
  593. INCLUDE
  594. ac_aux_dir
  595. ENABLE_STATIC_FALSE
  596. ENABLE_STATIC_TRUE
  597. ENABLE_SHARED_FALSE
  598. ENABLE_SHARED_TRUE
  599. PKG_CONFIG_LIBS_PRIV
  600. SDL_RLD_FLAGS
  601. SDL_STATIC_LIBS
  602. SDL_LIBS
  603. SDL_CFLAGS
  604. INSTALL_SDL2_CONFIG
  605. LIBUSB_LIBS
  606. LIBUSB_CFLAGS
  607. IBUS_LIBS
  608. IBUS_CFLAGS
  609. DBUS_LIBS
  610. DBUS_CFLAGS
  611. LIBGBM_LIBS
  612. LIBGBM_CFLAGS
  613. LIBDRM_LIBS
  614. LIBDRM_CFLAGS
  615. DIRECTFB_LIBS
  616. DIRECTFB_CFLAGS
  617. X_EXTRA_LIBS
  618. X_LIBS
  619. X_PRE_LIBS
  620. X_CFLAGS
  621. XMKMF
  622. RPI_LIBS
  623. RPI_CFLAGS
  624. FUSIONSOUND_LIBS
  625. FUSIONSOUND_CFLAGS
  626. ARTSCONFIG
  627. PULSEAUDIO_LIBS
  628. PULSEAUDIO_CFLAGS
  629. ESD_LIBS
  630. ESD_CFLAGS
  631. ESD_CONFIG
  632. JACK_LIBS
  633. JACK_CFLAGS
  634. ALSA_LIBS
  635. ALSA_CFLAGS
  636. POW_LIB
  637. LIBOBJS
  638. ALLOCA
  639. PKG_CONFIG_LIBDIR
  640. PKG_CONFIG_PATH
  641. PKG_CONFIG
  642. SET_MAKE
  643. INSTALL_DATA
  644. INSTALL_SCRIPT
  645. INSTALL_PROGRAM
  646. CXXCPP
  647. ac_ct_CXX
  648. CXXFLAGS
  649. CXX
  650. LT_AGE
  651. LT_REVISION
  652. LT_CURRENT
  653. LT_RELEASE
  654. RC
  655. CPP
  656. OTOOL64
  657. OTOOL
  658. LIPO
  659. NMEDIT
  660. DSYMUTIL
  661. MANIFEST_TOOL
  662. AWK
  663. RANLIB
  664. STRIP
  665. ac_ct_AR
  666. AR
  667. LN_S
  668. NM
  669. ac_ct_DUMPBIN
  670. DUMPBIN
  671. LD
  672. FGREP
  673. EGREP
  674. GREP
  675. SED
  676. OBJEXT
  677. EXEEXT
  678. ac_ct_CC
  679. CPPFLAGS
  680. LDFLAGS
  681. CFLAGS
  682. CC
  683. host_os
  684. host_vendor
  685. host_cpu
  686. host
  687. build_os
  688. build_vendor
  689. build_cpu
  690. build
  691. LIBTOOL
  692. OBJDUMP
  693. DLLTOOL
  694. AS
  695. SDL_VERSION
  696. SDL_BINARY_AGE
  697. SDL_INTERFACE_AGE
  698. SDL_MICRO_VERSION
  699. SDL_MINOR_VERSION
  700. SDL_MAJOR_VERSION
  701. target_alias
  702. host_alias
  703. build_alias
  704. LIBS
  705. ECHO_T
  706. ECHO_N
  707. ECHO_C
  708. DEFS
  709. mandir
  710. localedir
  711. libdir
  712. psdir
  713. pdfdir
  714. dvidir
  715. htmldir
  716. infodir
  717. docdir
  718. oldincludedir
  719. includedir
  720. localstatedir
  721. sharedstatedir
  722. sysconfdir
  723. datadir
  724. datarootdir
  725. libexecdir
  726. sbindir
  727. bindir
  728. program_transform_name
  729. prefix
  730. exec_prefix
  731. PACKAGE_URL
  732. PACKAGE_BUGREPORT
  733. PACKAGE_STRING
  734. PACKAGE_VERSION
  735. PACKAGE_TARNAME
  736. PACKAGE_NAME
  737. PATH_SEPARATOR
  738. SHELL'
  739. ac_subst_files=''
  740. ac_user_opts='
  741. enable_option_checking
  742. enable_shared
  743. enable_static
  744. with_pic
  745. enable_fast_install
  746. with_gnu_ld
  747. with_sysroot
  748. enable_libtool_lock
  749. enable_assertions
  750. enable_dependency_tracking
  751. enable_libc
  752. enable_gcc_atomics
  753. enable_atomic
  754. enable_audio
  755. enable_video
  756. enable_render
  757. enable_events
  758. enable_joystick
  759. enable_haptic
  760. enable_sensor
  761. enable_power
  762. enable_filesystem
  763. enable_threads
  764. enable_timers
  765. enable_file
  766. enable_loadso
  767. enable_cpuinfo
  768. enable_assembly
  769. enable_ssemath
  770. enable_mmx
  771. enable_3dnow
  772. enable_sse
  773. enable_sse2
  774. enable_sse3
  775. enable_altivec
  776. enable_oss
  777. enable_alsa
  778. with_alsa_prefix
  779. with_alsa_inc_prefix
  780. enable_alsatest
  781. enable_alsa_shared
  782. enable_jack
  783. enable_jack_shared
  784. enable_esd
  785. with_esd_prefix
  786. with_esd_exec_prefix
  787. enable_esdtest
  788. enable_esd_shared
  789. enable_pulseaudio
  790. enable_pulseaudio_shared
  791. enable_arts
  792. enable_arts_shared
  793. enable_nas
  794. enable_nas_shared
  795. enable_sndio
  796. enable_sndio_shared
  797. enable_fusionsound
  798. enable_fusionsound_shared
  799. enable_diskaudio
  800. enable_dummyaudio
  801. enable_libsamplerate
  802. enable_libsamplerate_shared
  803. enable_arm_simd
  804. enable_arm_neon
  805. enable_video_wayland
  806. enable_video_wayland_qt_touch
  807. enable_wayland_shared
  808. enable_video_rpi
  809. enable_video_x11
  810. with_x
  811. enable_x11_shared
  812. enable_video_x11_xcursor
  813. enable_video_x11_xdbe
  814. enable_video_x11_xinerama
  815. enable_video_x11_xinput
  816. enable_video_x11_xrandr
  817. enable_video_x11_scrnsaver
  818. enable_video_x11_xshape
  819. enable_video_x11_vm
  820. enable_video_vivante
  821. enable_video_cocoa
  822. enable_video_metal
  823. enable_render_metal
  824. enable_video_directfb
  825. enable_directfb_shared
  826. enable_video_kmsdrm
  827. enable_kmsdrm_shared
  828. enable_video_dummy
  829. enable_video_opengl
  830. enable_video_opengles
  831. enable_video_opengles1
  832. enable_video_opengles2
  833. enable_video_vulkan
  834. enable_libudev
  835. enable_dbus
  836. enable_ime
  837. enable_ibus
  838. enable_fcitx
  839. enable_joystick_mfi
  840. enable_pthreads
  841. enable_pthread_sem
  842. enable_directx
  843. enable_xinput
  844. enable_wasapi
  845. enable_sdl_dlopen
  846. enable_hidapi
  847. enable_hidapi_libusb
  848. enable_clock_gettime
  849. enable_rpath
  850. enable_backgrounding_signal
  851. enable_foregrounding_signal
  852. enable_joystick_virtual
  853. enable_render_d3d
  854. enable_sdl2_config
  855. '
  856. ac_precious_vars='build_alias
  857. host_alias
  858. target_alias
  859. CC
  860. CFLAGS
  861. LDFLAGS
  862. LIBS
  863. CPPFLAGS
  864. CPP
  865. CXX
  866. CXXFLAGS
  867. CCC
  868. CXXCPP
  869. PKG_CONFIG
  870. PKG_CONFIG_PATH
  871. PKG_CONFIG_LIBDIR
  872. JACK_CFLAGS
  873. JACK_LIBS
  874. PULSEAUDIO_CFLAGS
  875. PULSEAUDIO_LIBS
  876. FUSIONSOUND_CFLAGS
  877. FUSIONSOUND_LIBS
  878. RPI_CFLAGS
  879. RPI_LIBS
  880. XMKMF
  881. DIRECTFB_CFLAGS
  882. DIRECTFB_LIBS
  883. LIBDRM_CFLAGS
  884. LIBDRM_LIBS
  885. LIBGBM_CFLAGS
  886. LIBGBM_LIBS
  887. DBUS_CFLAGS
  888. DBUS_LIBS
  889. IBUS_CFLAGS
  890. IBUS_LIBS
  891. LIBUSB_CFLAGS
  892. LIBUSB_LIBS'
  893. # Initialize some variables set by options.
  894. ac_init_help=
  895. ac_init_version=false
  896. ac_unrecognized_opts=
  897. ac_unrecognized_sep=
  898. # The variables have the same names as the options, with
  899. # dashes changed to underlines.
  900. cache_file=/dev/null
  901. exec_prefix=NONE
  902. no_create=
  903. no_recursion=
  904. prefix=NONE
  905. program_prefix=NONE
  906. program_suffix=NONE
  907. program_transform_name=s,x,x,
  908. silent=
  909. site=
  910. srcdir=
  911. verbose=
  912. x_includes=NONE
  913. x_libraries=NONE
  914. # Installation directory options.
  915. # These are left unexpanded so users can "make install exec_prefix=/foo"
  916. # and all the variables that are supposed to be based on exec_prefix
  917. # by default will actually change.
  918. # Use braces instead of parens because sh, perl, etc. also accept them.
  919. # (The list follows the same order as the GNU Coding Standards.)
  920. bindir='${exec_prefix}/bin'
  921. sbindir='${exec_prefix}/sbin'
  922. libexecdir='${exec_prefix}/libexec'
  923. datarootdir='${prefix}/share'
  924. datadir='${datarootdir}'
  925. sysconfdir='${prefix}/etc'
  926. sharedstatedir='${prefix}/com'
  927. localstatedir='${prefix}/var'
  928. includedir='${prefix}/include'
  929. oldincludedir='/usr/include'
  930. docdir='${datarootdir}/doc/${PACKAGE}'
  931. infodir='${datarootdir}/info'
  932. htmldir='${docdir}'
  933. dvidir='${docdir}'
  934. pdfdir='${docdir}'
  935. psdir='${docdir}'
  936. libdir='${exec_prefix}/lib'
  937. localedir='${datarootdir}/locale'
  938. mandir='${datarootdir}/man'
  939. ac_prev=
  940. ac_dashdash=
  941. for ac_option
  942. do
  943. # If the previous option needs an argument, assign it.
  944. if test -n "$ac_prev"; then
  945. eval $ac_prev=\$ac_option
  946. ac_prev=
  947. continue
  948. fi
  949. case $ac_option in
  950. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  951. *=) ac_optarg= ;;
  952. *) ac_optarg=yes ;;
  953. esac
  954. # Accept the important Cygnus configure options, so we can diagnose typos.
  955. case $ac_dashdash$ac_option in
  956. --)
  957. ac_dashdash=yes ;;
  958. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  959. ac_prev=bindir ;;
  960. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  961. bindir=$ac_optarg ;;
  962. -build | --build | --buil | --bui | --bu)
  963. ac_prev=build_alias ;;
  964. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  965. build_alias=$ac_optarg ;;
  966. -cache-file | --cache-file | --cache-fil | --cache-fi \
  967. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  968. ac_prev=cache_file ;;
  969. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  970. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  971. cache_file=$ac_optarg ;;
  972. --config-cache | -C)
  973. cache_file=config.cache ;;
  974. -datadir | --datadir | --datadi | --datad)
  975. ac_prev=datadir ;;
  976. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  977. datadir=$ac_optarg ;;
  978. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  979. | --dataroo | --dataro | --datar)
  980. ac_prev=datarootdir ;;
  981. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  982. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  983. datarootdir=$ac_optarg ;;
  984. -disable-* | --disable-*)
  985. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  986. # Reject names that are not valid shell variable names.
  987. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  988. as_fn_error $? "invalid feature name: $ac_useropt"
  989. ac_useropt_orig=$ac_useropt
  990. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  991. case $ac_user_opts in
  992. *"
  993. "enable_$ac_useropt"
  994. "*) ;;
  995. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  996. ac_unrecognized_sep=', ';;
  997. esac
  998. eval enable_$ac_useropt=no ;;
  999. -docdir | --docdir | --docdi | --doc | --do)
  1000. ac_prev=docdir ;;
  1001. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1002. docdir=$ac_optarg ;;
  1003. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1004. ac_prev=dvidir ;;
  1005. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1006. dvidir=$ac_optarg ;;
  1007. -enable-* | --enable-*)
  1008. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1009. # Reject names that are not valid shell variable names.
  1010. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1011. as_fn_error $? "invalid feature name: $ac_useropt"
  1012. ac_useropt_orig=$ac_useropt
  1013. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1014. case $ac_user_opts in
  1015. *"
  1016. "enable_$ac_useropt"
  1017. "*) ;;
  1018. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1019. ac_unrecognized_sep=', ';;
  1020. esac
  1021. eval enable_$ac_useropt=\$ac_optarg ;;
  1022. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1023. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1024. | --exec | --exe | --ex)
  1025. ac_prev=exec_prefix ;;
  1026. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1027. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1028. | --exec=* | --exe=* | --ex=*)
  1029. exec_prefix=$ac_optarg ;;
  1030. -gas | --gas | --ga | --g)
  1031. # Obsolete; use --with-gas.
  1032. with_gas=yes ;;
  1033. -help | --help | --hel | --he | -h)
  1034. ac_init_help=long ;;
  1035. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1036. ac_init_help=recursive ;;
  1037. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1038. ac_init_help=short ;;
  1039. -host | --host | --hos | --ho)
  1040. ac_prev=host_alias ;;
  1041. -host=* | --host=* | --hos=* | --ho=*)
  1042. host_alias=$ac_optarg ;;
  1043. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1044. ac_prev=htmldir ;;
  1045. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1046. | --ht=*)
  1047. htmldir=$ac_optarg ;;
  1048. -includedir | --includedir | --includedi | --included | --include \
  1049. | --includ | --inclu | --incl | --inc)
  1050. ac_prev=includedir ;;
  1051. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1052. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1053. includedir=$ac_optarg ;;
  1054. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1055. ac_prev=infodir ;;
  1056. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1057. infodir=$ac_optarg ;;
  1058. -libdir | --libdir | --libdi | --libd)
  1059. ac_prev=libdir ;;
  1060. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1061. libdir=$ac_optarg ;;
  1062. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1063. | --libexe | --libex | --libe)
  1064. ac_prev=libexecdir ;;
  1065. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1066. | --libexe=* | --libex=* | --libe=*)
  1067. libexecdir=$ac_optarg ;;
  1068. -localedir | --localedir | --localedi | --localed | --locale)
  1069. ac_prev=localedir ;;
  1070. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1071. localedir=$ac_optarg ;;
  1072. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1073. | --localstate | --localstat | --localsta | --localst | --locals)
  1074. ac_prev=localstatedir ;;
  1075. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1076. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1077. localstatedir=$ac_optarg ;;
  1078. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1079. ac_prev=mandir ;;
  1080. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1081. mandir=$ac_optarg ;;
  1082. -nfp | --nfp | --nf)
  1083. # Obsolete; use --without-fp.
  1084. with_fp=no ;;
  1085. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1086. | --no-cr | --no-c | -n)
  1087. no_create=yes ;;
  1088. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1089. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1090. no_recursion=yes ;;
  1091. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1092. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1093. | --oldin | --oldi | --old | --ol | --o)
  1094. ac_prev=oldincludedir ;;
  1095. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1096. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1097. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1098. oldincludedir=$ac_optarg ;;
  1099. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1100. ac_prev=prefix ;;
  1101. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1102. prefix=$ac_optarg ;;
  1103. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1104. | --program-pre | --program-pr | --program-p)
  1105. ac_prev=program_prefix ;;
  1106. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1107. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1108. program_prefix=$ac_optarg ;;
  1109. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1110. | --program-suf | --program-su | --program-s)
  1111. ac_prev=program_suffix ;;
  1112. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1113. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1114. program_suffix=$ac_optarg ;;
  1115. -program-transform-name | --program-transform-name \
  1116. | --program-transform-nam | --program-transform-na \
  1117. | --program-transform-n | --program-transform- \
  1118. | --program-transform | --program-transfor \
  1119. | --program-transfo | --program-transf \
  1120. | --program-trans | --program-tran \
  1121. | --progr-tra | --program-tr | --program-t)
  1122. ac_prev=program_transform_name ;;
  1123. -program-transform-name=* | --program-transform-name=* \
  1124. | --program-transform-nam=* | --program-transform-na=* \
  1125. | --program-transform-n=* | --program-transform-=* \
  1126. | --program-transform=* | --program-transfor=* \
  1127. | --program-transfo=* | --program-transf=* \
  1128. | --program-trans=* | --program-tran=* \
  1129. | --progr-tra=* | --program-tr=* | --program-t=*)
  1130. program_transform_name=$ac_optarg ;;
  1131. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1132. ac_prev=pdfdir ;;
  1133. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1134. pdfdir=$ac_optarg ;;
  1135. -psdir | --psdir | --psdi | --psd | --ps)
  1136. ac_prev=psdir ;;
  1137. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1138. psdir=$ac_optarg ;;
  1139. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1140. | -silent | --silent | --silen | --sile | --sil)
  1141. silent=yes ;;
  1142. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1143. ac_prev=sbindir ;;
  1144. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1145. | --sbi=* | --sb=*)
  1146. sbindir=$ac_optarg ;;
  1147. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1148. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1149. | --sharedst | --shareds | --shared | --share | --shar \
  1150. | --sha | --sh)
  1151. ac_prev=sharedstatedir ;;
  1152. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1153. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1154. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1155. | --sha=* | --sh=*)
  1156. sharedstatedir=$ac_optarg ;;
  1157. -site | --site | --sit)
  1158. ac_prev=site ;;
  1159. -site=* | --site=* | --sit=*)
  1160. site=$ac_optarg ;;
  1161. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1162. ac_prev=srcdir ;;
  1163. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1164. srcdir=$ac_optarg ;;
  1165. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1166. | --syscon | --sysco | --sysc | --sys | --sy)
  1167. ac_prev=sysconfdir ;;
  1168. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1169. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1170. sysconfdir=$ac_optarg ;;
  1171. -target | --target | --targe | --targ | --tar | --ta | --t)
  1172. ac_prev=target_alias ;;
  1173. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1174. target_alias=$ac_optarg ;;
  1175. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1176. verbose=yes ;;
  1177. -version | --version | --versio | --versi | --vers | -V)
  1178. ac_init_version=: ;;
  1179. -with-* | --with-*)
  1180. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1181. # Reject names that are not valid shell variable names.
  1182. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1183. as_fn_error $? "invalid package name: $ac_useropt"
  1184. ac_useropt_orig=$ac_useropt
  1185. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1186. case $ac_user_opts in
  1187. *"
  1188. "with_$ac_useropt"
  1189. "*) ;;
  1190. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1191. ac_unrecognized_sep=', ';;
  1192. esac
  1193. eval with_$ac_useropt=\$ac_optarg ;;
  1194. -without-* | --without-*)
  1195. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1196. # Reject names that are not valid shell variable names.
  1197. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1198. as_fn_error $? "invalid package name: $ac_useropt"
  1199. ac_useropt_orig=$ac_useropt
  1200. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1201. case $ac_user_opts in
  1202. *"
  1203. "with_$ac_useropt"
  1204. "*) ;;
  1205. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1206. ac_unrecognized_sep=', ';;
  1207. esac
  1208. eval with_$ac_useropt=no ;;
  1209. --x)
  1210. # Obsolete; use --with-x.
  1211. with_x=yes ;;
  1212. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1213. | --x-incl | --x-inc | --x-in | --x-i)
  1214. ac_prev=x_includes ;;
  1215. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1216. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1217. x_includes=$ac_optarg ;;
  1218. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1219. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1220. ac_prev=x_libraries ;;
  1221. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1222. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1223. x_libraries=$ac_optarg ;;
  1224. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1225. Try \`$0 --help' for more information"
  1226. ;;
  1227. *=*)
  1228. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1229. # Reject names that are not valid shell variable names.
  1230. case $ac_envvar in #(
  1231. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1232. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1233. esac
  1234. eval $ac_envvar=\$ac_optarg
  1235. export $ac_envvar ;;
  1236. *)
  1237. # FIXME: should be removed in autoconf 3.0.
  1238. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1239. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1240. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1241. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1242. ;;
  1243. esac
  1244. done
  1245. if test -n "$ac_prev"; then
  1246. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1247. as_fn_error $? "missing argument to $ac_option"
  1248. fi
  1249. if test -n "$ac_unrecognized_opts"; then
  1250. case $enable_option_checking in
  1251. no) ;;
  1252. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1253. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1254. esac
  1255. fi
  1256. # Check all directory arguments for consistency.
  1257. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1258. datadir sysconfdir sharedstatedir localstatedir includedir \
  1259. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1260. libdir localedir mandir
  1261. do
  1262. eval ac_val=\$$ac_var
  1263. # Remove trailing slashes.
  1264. case $ac_val in
  1265. */ )
  1266. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1267. eval $ac_var=\$ac_val;;
  1268. esac
  1269. # Be sure to have absolute directory names.
  1270. case $ac_val in
  1271. [\\/$]* | ?:[\\/]* ) continue;;
  1272. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1273. esac
  1274. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1275. done
  1276. # There might be people who depend on the old broken behavior: `$host'
  1277. # used to hold the argument of --host etc.
  1278. # FIXME: To remove some day.
  1279. build=$build_alias
  1280. host=$host_alias
  1281. target=$target_alias
  1282. # FIXME: To remove some day.
  1283. if test "x$host_alias" != x; then
  1284. if test "x$build_alias" = x; then
  1285. cross_compiling=maybe
  1286. elif test "x$build_alias" != "x$host_alias"; then
  1287. cross_compiling=yes
  1288. fi
  1289. fi
  1290. ac_tool_prefix=
  1291. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1292. test "$silent" = yes && exec 6>/dev/null
  1293. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1294. ac_ls_di=`ls -di .` &&
  1295. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1296. as_fn_error $? "working directory cannot be determined"
  1297. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1298. as_fn_error $? "pwd does not report name of working directory"
  1299. # Find the source files, if location was not specified.
  1300. if test -z "$srcdir"; then
  1301. ac_srcdir_defaulted=yes
  1302. # Try the directory containing this script, then the parent directory.
  1303. ac_confdir=`$as_dirname -- "$as_myself" ||
  1304. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1305. X"$as_myself" : 'X\(//\)[^/]' \| \
  1306. X"$as_myself" : 'X\(//\)$' \| \
  1307. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1308. $as_echo X"$as_myself" |
  1309. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1310. s//\1/
  1311. q
  1312. }
  1313. /^X\(\/\/\)[^/].*/{
  1314. s//\1/
  1315. q
  1316. }
  1317. /^X\(\/\/\)$/{
  1318. s//\1/
  1319. q
  1320. }
  1321. /^X\(\/\).*/{
  1322. s//\1/
  1323. q
  1324. }
  1325. s/.*/./; q'`
  1326. srcdir=$ac_confdir
  1327. if test ! -r "$srcdir/$ac_unique_file"; then
  1328. srcdir=..
  1329. fi
  1330. else
  1331. ac_srcdir_defaulted=no
  1332. fi
  1333. if test ! -r "$srcdir/$ac_unique_file"; then
  1334. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1335. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1336. fi
  1337. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1338. ac_abs_confdir=`(
  1339. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1340. pwd)`
  1341. # When building in place, set srcdir=.
  1342. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1343. srcdir=.
  1344. fi
  1345. # Remove unnecessary trailing slashes from srcdir.
  1346. # Double slashes in file names in object file debugging info
  1347. # mess up M-x gdb in Emacs.
  1348. case $srcdir in
  1349. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1350. esac
  1351. for ac_var in $ac_precious_vars; do
  1352. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1353. eval ac_env_${ac_var}_value=\$${ac_var}
  1354. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1355. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1356. done
  1357. #
  1358. # Report the --help message.
  1359. #
  1360. if test "$ac_init_help" = "long"; then
  1361. # Omit some internal or obsolete options to make the list less imposing.
  1362. # This message is too long to be a string in the A/UX 3.1 sh.
  1363. cat <<_ACEOF
  1364. \`configure' configures this package to adapt to many kinds of systems.
  1365. Usage: $0 [OPTION]... [VAR=VALUE]...
  1366. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1367. VAR=VALUE. See below for descriptions of some of the useful variables.
  1368. Defaults for the options are specified in brackets.
  1369. Configuration:
  1370. -h, --help display this help and exit
  1371. --help=short display options specific to this package
  1372. --help=recursive display the short help of all the included packages
  1373. -V, --version display version information and exit
  1374. -q, --quiet, --silent do not print \`checking ...' messages
  1375. --cache-file=FILE cache test results in FILE [disabled]
  1376. -C, --config-cache alias for \`--cache-file=config.cache'
  1377. -n, --no-create do not create output files
  1378. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1379. Installation directories:
  1380. --prefix=PREFIX install architecture-independent files in PREFIX
  1381. [$ac_default_prefix]
  1382. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1383. [PREFIX]
  1384. By default, \`make install' will install all the files in
  1385. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1386. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1387. for instance \`--prefix=\$HOME'.
  1388. For better control, use the options below.
  1389. Fine tuning of the installation directories:
  1390. --bindir=DIR user executables [EPREFIX/bin]
  1391. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1392. --libexecdir=DIR program executables [EPREFIX/libexec]
  1393. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1394. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1395. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1396. --libdir=DIR object code libraries [EPREFIX/lib]
  1397. --includedir=DIR C header files [PREFIX/include]
  1398. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1399. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1400. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1401. --infodir=DIR info documentation [DATAROOTDIR/info]
  1402. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1403. --mandir=DIR man documentation [DATAROOTDIR/man]
  1404. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1405. --htmldir=DIR html documentation [DOCDIR]
  1406. --dvidir=DIR dvi documentation [DOCDIR]
  1407. --pdfdir=DIR pdf documentation [DOCDIR]
  1408. --psdir=DIR ps documentation [DOCDIR]
  1409. _ACEOF
  1410. cat <<\_ACEOF
  1411. X features:
  1412. --x-includes=DIR X include files are in DIR
  1413. --x-libraries=DIR X library files are in DIR
  1414. System types:
  1415. --build=BUILD configure for building on BUILD [guessed]
  1416. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1417. _ACEOF
  1418. fi
  1419. if test -n "$ac_init_help"; then
  1420. cat <<\_ACEOF
  1421. Optional Features:
  1422. --disable-option-checking ignore unrecognized --enable/--with options
  1423. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1424. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1425. --enable-shared[=PKGS] build shared libraries [default=yes]
  1426. --enable-static[=PKGS] build static libraries [default=yes]
  1427. --enable-fast-install[=PKGS]
  1428. optimize for fast installation [default=yes]
  1429. --disable-libtool-lock avoid locking (might break parallel builds)
  1430. --enable-assertions Enable internal sanity checks
  1431. (auto/disabled/release/enabled/paranoid)
  1432. [[default=auto]]
  1433. --enable-dependency-tracking
  1434. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1435. --enable-libc Use the system C library [[default=yes]]
  1436. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1437. --enable-atomic Enable the atomic operations subsystem
  1438. [[default=yes]]
  1439. --enable-audio Enable the audio subsystem [[default=yes]]
  1440. --enable-video Enable the video subsystem [[default=yes]]
  1441. --enable-render Enable the render subsystem [[default=yes]]
  1442. --enable-events Enable the events subsystem [[default=yes]]
  1443. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1444. --enable-haptic Enable the haptic (force feedback) subsystem
  1445. [[default=yes]]
  1446. --enable-sensor Enable the sensor subsystem [[default=yes]]
  1447. --enable-power Enable the power subsystem [[default=yes]]
  1448. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1449. --enable-threads Enable the threading subsystem [[default=yes]]
  1450. --enable-timers Enable the timer subsystem [[default=yes]]
  1451. --enable-file Enable the file subsystem [[default=yes]]
  1452. --enable-loadso Enable the shared object loading subsystem
  1453. [[default=yes]]
  1454. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1455. --enable-assembly Enable assembly routines [[default=yes]]
  1456. --enable-ssemath Allow GCC to use SSE floating point math
  1457. [[default=maybe]]
  1458. --enable-mmx use MMX assembly routines [[default=yes]]
  1459. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1460. --enable-sse use SSE assembly routines [[default=yes]]
  1461. --enable-sse2 use SSE2 assembly routines [[default=maybe]]
  1462. --enable-sse3 use SSE3 assembly routines [[default=maybe]]
  1463. --enable-altivec use Altivec assembly routines [[default=yes]]
  1464. --enable-oss support the OSS audio API [[default=maybe]]
  1465. --enable-alsa support the ALSA audio API [[default=yes]]
  1466. --disable-alsatest Do not try to compile and run a test Alsa program
  1467. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1468. --enable-jack use JACK audio [[default=yes]]
  1469. --enable-jack-shared dynamically load JACK audio support [[default=yes]]
  1470. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1471. --disable-esdtest Do not try to compile and run a test ESD program
  1472. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1473. --enable-pulseaudio use PulseAudio [[default=yes]]
  1474. --enable-pulseaudio-shared
  1475. dynamically load PulseAudio support [[default=yes]]
  1476. --enable-arts support the Analog Real Time Synthesizer
  1477. [[default=yes]]
  1478. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1479. --enable-nas support the NAS audio API [[default=yes]]
  1480. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1481. --enable-sndio support the sndio audio API [[default=yes]]
  1482. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1483. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1484. --enable-fusionsound-shared
  1485. dynamically load fusionsound audio support
  1486. [[default=yes]]
  1487. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1488. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1489. --enable-libsamplerate use libsamplerate for audio rate conversion
  1490. [[default=yes]]
  1491. --enable-libsamplerate-shared
  1492. dynamically load libsamplerate [[default=yes]]
  1493. --enable-arm-simd use SIMD assembly blitters on ARM [[default=no]]
  1494. --enable-arm-neon use NEON assembly blitters on ARM [[default=no]]
  1495. --enable-video-wayland use Wayland video driver [[default=yes]]
  1496. --enable-video-wayland-qt-touch
  1497. QtWayland server support for Wayland video driver
  1498. [[default=yes]]
  1499. --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1500. --enable-video-rpi use Raspberry Pi video driver [[default=yes]]
  1501. --enable-video-x11 use X11 video driver [[default=yes]]
  1502. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1503. --enable-video-x11-xcursor
  1504. enable X11 Xcursor support [[default=yes]]
  1505. --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
  1506. --enable-video-x11-xinerama
  1507. enable X11 Xinerama support [[default=yes]]
  1508. --enable-video-x11-xinput
  1509. enable X11 XInput extension for manymouse, tablets,
  1510. etc [[default=yes]]
  1511. --enable-video-x11-xrandr
  1512. enable X11 Xrandr extension for fullscreen
  1513. [[default=yes]]
  1514. --enable-video-x11-scrnsaver
  1515. enable X11 screensaver extension [[default=yes]]
  1516. --enable-video-x11-xshape
  1517. enable X11 XShape support [[default=yes]]
  1518. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1519. --enable-video-vivante use Vivante EGL video driver [[default=yes]]
  1520. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1521. --enable-video-metal include Metal support [[default=yes]]
  1522. --enable-render-metal enable the Metal render driver [[default=yes]]
  1523. --enable-video-directfb use DirectFB video driver [[default=no]]
  1524. --enable-directfb-shared
  1525. dynamically load directfb support [[default=yes]]
  1526. --enable-video-kmsdrm use KMSDRM video driver [[default=no]]
  1527. --enable-kmsdrm-shared dynamically load kmsdrm support [[default=yes]]
  1528. --enable-video-dummy use dummy video driver [[default=yes]]
  1529. --enable-video-opengl include OpenGL support [[default=yes]]
  1530. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1531. --enable-video-opengles1
  1532. include OpenGL ES 1.1 support [[default=yes]]
  1533. --enable-video-opengles2
  1534. include OpenGL ES 2.0 support [[default=yes]]
  1535. --enable-video-vulkan include Vulkan support [[default=yes]]
  1536. --enable-libudev enable libudev support [[default=yes]]
  1537. --enable-dbus enable D-Bus support [[default=yes]]
  1538. --enable-ime enable IME support [[default=yes]]
  1539. --enable-ibus enable IBus support [[default=yes]]
  1540. --enable-fcitx enable fcitx support [[default=yes]]
  1541. --enable-joystick-mfi include macOS MFI joystick support [[default=yes]]
  1542. --enable-pthreads use POSIX threads for multi-threading
  1543. [[default=yes]]
  1544. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1545. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1546. --enable-xinput use Xinput for Windows [[default=yes]]
  1547. --enable-wasapi use the Windows WASAPI audio driver [[default=yes]]
  1548. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1549. --enable-hidapi use HIDAPI for low level joystick drivers
  1550. [[default=yes]]
  1551. --enable-hidapi-libusb use libusb for low level joystick drivers
  1552. [[default=maybe]]
  1553. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1554. UNIX [[default=yes]]
  1555. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1556. --enable-backgrounding-signal
  1557. number to use for magic backgrounding signal or 'no'
  1558. [[default=no]]
  1559. --enable-foregrounding-signal
  1560. number to use for magic foregrounding signal or 'no'
  1561. [[default=no]]
  1562. --enable-joystick-virtual
  1563. enable virtual joystick APIs [[default=yes]]
  1564. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1565. --enable-sdl2-config Install sdl2-config [default=yes]
  1566. Optional Packages:
  1567. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1568. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1569. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1570. both]
  1571. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1572. --with-sysroot=DIR Search for dependent libraries within DIR
  1573. (or the compiler's sysroot if not specified).
  1574. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1575. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1576. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1577. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1578. --with-x use the X Window System
  1579. Some influential environment variables:
  1580. CC C compiler command
  1581. CFLAGS C compiler flags
  1582. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1583. nonstandard directory <lib dir>
  1584. LIBS libraries to pass to the linker, e.g. -l<library>
  1585. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1586. you have headers in a nonstandard directory <include dir>
  1587. CPP C preprocessor
  1588. CXX C++ compiler command
  1589. CXXFLAGS C++ compiler flags
  1590. CXXCPP C++ preprocessor
  1591. PKG_CONFIG path to pkg-config utility
  1592. PKG_CONFIG_PATH
  1593. directories to add to pkg-config's search path
  1594. PKG_CONFIG_LIBDIR
  1595. path overriding pkg-config's built-in search path
  1596. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1597. JACK_LIBS linker flags for JACK, overriding pkg-config
  1598. PULSEAUDIO_CFLAGS
  1599. C compiler flags for PULSEAUDIO, overriding pkg-config
  1600. PULSEAUDIO_LIBS
  1601. linker flags for PULSEAUDIO, overriding pkg-config
  1602. FUSIONSOUND_CFLAGS
  1603. C compiler flags for FUSIONSOUND, overriding pkg-config
  1604. FUSIONSOUND_LIBS
  1605. linker flags for FUSIONSOUND, overriding pkg-config
  1606. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1607. RPI_LIBS linker flags for RPI, overriding pkg-config
  1608. XMKMF Path to xmkmf, Makefile generator for X Window System
  1609. DIRECTFB_CFLAGS
  1610. C compiler flags for DIRECTFB, overriding pkg-config
  1611. DIRECTFB_LIBS
  1612. linker flags for DIRECTFB, overriding pkg-config
  1613. LIBDRM_CFLAGS
  1614. C compiler flags for LIBDRM, overriding pkg-config
  1615. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1616. LIBGBM_CFLAGS
  1617. C compiler flags for LIBGBM, overriding pkg-config
  1618. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1619. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1620. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1621. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1622. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1623. LIBUSB_CFLAGS
  1624. C compiler flags for LIBUSB, overriding pkg-config
  1625. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1626. Use these variables to override the choices made by `configure' or to help
  1627. it to find libraries and programs with nonstandard names/locations.
  1628. Report bugs to the package provider.
  1629. _ACEOF
  1630. ac_status=$?
  1631. fi
  1632. if test "$ac_init_help" = "recursive"; then
  1633. # If there are subdirs, report their specific --help.
  1634. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1635. test -d "$ac_dir" ||
  1636. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1637. continue
  1638. ac_builddir=.
  1639. case "$ac_dir" in
  1640. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1641. *)
  1642. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1643. # A ".." for each directory in $ac_dir_suffix.
  1644. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1645. case $ac_top_builddir_sub in
  1646. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1647. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1648. esac ;;
  1649. esac
  1650. ac_abs_top_builddir=$ac_pwd
  1651. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1652. # for backward compatibility:
  1653. ac_top_builddir=$ac_top_build_prefix
  1654. case $srcdir in
  1655. .) # We are building in place.
  1656. ac_srcdir=.
  1657. ac_top_srcdir=$ac_top_builddir_sub
  1658. ac_abs_top_srcdir=$ac_pwd ;;
  1659. [\\/]* | ?:[\\/]* ) # Absolute name.
  1660. ac_srcdir=$srcdir$ac_dir_suffix;
  1661. ac_top_srcdir=$srcdir
  1662. ac_abs_top_srcdir=$srcdir ;;
  1663. *) # Relative name.
  1664. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1665. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1666. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1667. esac
  1668. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1669. cd "$ac_dir" || { ac_status=$?; continue; }
  1670. # Check for guested configure.
  1671. if test -f "$ac_srcdir/configure.gnu"; then
  1672. echo &&
  1673. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1674. elif test -f "$ac_srcdir/configure"; then
  1675. echo &&
  1676. $SHELL "$ac_srcdir/configure" --help=recursive
  1677. else
  1678. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1679. fi || ac_status=$?
  1680. cd "$ac_pwd" || { ac_status=$?; break; }
  1681. done
  1682. fi
  1683. test -n "$ac_init_help" && exit $ac_status
  1684. if $ac_init_version; then
  1685. cat <<\_ACEOF
  1686. configure
  1687. generated by GNU Autoconf 2.69
  1688. Copyright (C) 2012 Free Software Foundation, Inc.
  1689. This configure script is free software; the Free Software Foundation
  1690. gives unlimited permission to copy, distribute and modify it.
  1691. _ACEOF
  1692. exit
  1693. fi
  1694. ## ------------------------ ##
  1695. ## Autoconf initialization. ##
  1696. ## ------------------------ ##
  1697. # ac_fn_c_try_compile LINENO
  1698. # --------------------------
  1699. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1700. ac_fn_c_try_compile ()
  1701. {
  1702. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1703. rm -f conftest.$ac_objext
  1704. if { { ac_try="$ac_compile"
  1705. case "(($ac_try" in
  1706. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1707. *) ac_try_echo=$ac_try;;
  1708. esac
  1709. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1710. $as_echo "$ac_try_echo"; } >&5
  1711. (eval "$ac_compile") 2>conftest.err
  1712. ac_status=$?
  1713. if test -s conftest.err; then
  1714. grep -v '^ *+' conftest.err >conftest.er1
  1715. cat conftest.er1 >&5
  1716. mv -f conftest.er1 conftest.err
  1717. fi
  1718. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1719. test $ac_status = 0; } && {
  1720. test -z "$ac_c_werror_flag" ||
  1721. test ! -s conftest.err
  1722. } && test -s conftest.$ac_objext; then :
  1723. ac_retval=0
  1724. else
  1725. $as_echo "$as_me: failed program was:" >&5
  1726. sed 's/^/| /' conftest.$ac_ext >&5
  1727. ac_retval=1
  1728. fi
  1729. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1730. as_fn_set_status $ac_retval
  1731. } # ac_fn_c_try_compile
  1732. # ac_fn_c_try_link LINENO
  1733. # -----------------------
  1734. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1735. ac_fn_c_try_link ()
  1736. {
  1737. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1738. rm -f conftest.$ac_objext conftest$ac_exeext
  1739. if { { ac_try="$ac_link"
  1740. case "(($ac_try" in
  1741. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1742. *) ac_try_echo=$ac_try;;
  1743. esac
  1744. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1745. $as_echo "$ac_try_echo"; } >&5
  1746. (eval "$ac_link") 2>conftest.err
  1747. ac_status=$?
  1748. if test -s conftest.err; then
  1749. grep -v '^ *+' conftest.err >conftest.er1
  1750. cat conftest.er1 >&5
  1751. mv -f conftest.er1 conftest.err
  1752. fi
  1753. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1754. test $ac_status = 0; } && {
  1755. test -z "$ac_c_werror_flag" ||
  1756. test ! -s conftest.err
  1757. } && test -s conftest$ac_exeext && {
  1758. test "$cross_compiling" = yes ||
  1759. test -x conftest$ac_exeext
  1760. }; then :
  1761. ac_retval=0
  1762. else
  1763. $as_echo "$as_me: failed program was:" >&5
  1764. sed 's/^/| /' conftest.$ac_ext >&5
  1765. ac_retval=1
  1766. fi
  1767. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1768. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1769. # interfere with the next link command; also delete a directory that is
  1770. # left behind by Apple's compiler. We do this before executing the actions.
  1771. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1772. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1773. as_fn_set_status $ac_retval
  1774. } # ac_fn_c_try_link
  1775. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1776. # -------------------------------------------------------
  1777. # Tests whether HEADER exists and can be compiled using the include files in
  1778. # INCLUDES, setting the cache variable VAR accordingly.
  1779. ac_fn_c_check_header_compile ()
  1780. {
  1781. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1783. $as_echo_n "checking for $2... " >&6; }
  1784. if eval \${$3+:} false; then :
  1785. $as_echo_n "(cached) " >&6
  1786. else
  1787. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1788. /* end confdefs.h. */
  1789. $4
  1790. #include <$2>
  1791. _ACEOF
  1792. if ac_fn_c_try_compile "$LINENO"; then :
  1793. eval "$3=yes"
  1794. else
  1795. eval "$3=no"
  1796. fi
  1797. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1798. fi
  1799. eval ac_res=\$$3
  1800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1801. $as_echo "$ac_res" >&6; }
  1802. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1803. } # ac_fn_c_check_header_compile
  1804. # ac_fn_c_try_cpp LINENO
  1805. # ----------------------
  1806. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1807. ac_fn_c_try_cpp ()
  1808. {
  1809. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1810. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1811. case "(($ac_try" in
  1812. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1813. *) ac_try_echo=$ac_try;;
  1814. esac
  1815. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1816. $as_echo "$ac_try_echo"; } >&5
  1817. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1818. ac_status=$?
  1819. if test -s conftest.err; then
  1820. grep -v '^ *+' conftest.err >conftest.er1
  1821. cat conftest.er1 >&5
  1822. mv -f conftest.er1 conftest.err
  1823. fi
  1824. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1825. test $ac_status = 0; } > conftest.i && {
  1826. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1827. test ! -s conftest.err
  1828. }; then :
  1829. ac_retval=0
  1830. else
  1831. $as_echo "$as_me: failed program was:" >&5
  1832. sed 's/^/| /' conftest.$ac_ext >&5
  1833. ac_retval=1
  1834. fi
  1835. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1836. as_fn_set_status $ac_retval
  1837. } # ac_fn_c_try_cpp
  1838. # ac_fn_c_try_run LINENO
  1839. # ----------------------
  1840. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1841. # that executables *can* be run.
  1842. ac_fn_c_try_run ()
  1843. {
  1844. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1845. if { { ac_try="$ac_link"
  1846. case "(($ac_try" in
  1847. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1848. *) ac_try_echo=$ac_try;;
  1849. esac
  1850. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1851. $as_echo "$ac_try_echo"; } >&5
  1852. (eval "$ac_link") 2>&5
  1853. ac_status=$?
  1854. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1855. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1856. { { case "(($ac_try" in
  1857. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1858. *) ac_try_echo=$ac_try;;
  1859. esac
  1860. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1861. $as_echo "$ac_try_echo"; } >&5
  1862. (eval "$ac_try") 2>&5
  1863. ac_status=$?
  1864. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1865. test $ac_status = 0; }; }; then :
  1866. ac_retval=0
  1867. else
  1868. $as_echo "$as_me: program exited with status $ac_status" >&5
  1869. $as_echo "$as_me: failed program was:" >&5
  1870. sed 's/^/| /' conftest.$ac_ext >&5
  1871. ac_retval=$ac_status
  1872. fi
  1873. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1874. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1875. as_fn_set_status $ac_retval
  1876. } # ac_fn_c_try_run
  1877. # ac_fn_c_check_func LINENO FUNC VAR
  1878. # ----------------------------------
  1879. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1880. ac_fn_c_check_func ()
  1881. {
  1882. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1884. $as_echo_n "checking for $2... " >&6; }
  1885. if eval \${$3+:} false; then :
  1886. $as_echo_n "(cached) " >&6
  1887. else
  1888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1889. /* end confdefs.h. */
  1890. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1891. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1892. #define $2 innocuous_$2
  1893. /* System header to define __stub macros and hopefully few prototypes,
  1894. which can conflict with char $2 (); below.
  1895. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1896. <limits.h> exists even on freestanding compilers. */
  1897. #ifdef __STDC__
  1898. # include <limits.h>
  1899. #else
  1900. # include <assert.h>
  1901. #endif
  1902. #undef $2
  1903. /* Override any GCC internal prototype to avoid an error.
  1904. Use char because int might match the return type of a GCC
  1905. builtin and then its argument prototype would still apply. */
  1906. #ifdef __cplusplus
  1907. extern "C"
  1908. #endif
  1909. char $2 ();
  1910. /* The GNU C library defines this for functions which it implements
  1911. to always fail with ENOSYS. Some functions are actually named
  1912. something starting with __ and the normal name is an alias. */
  1913. #if defined __stub_$2 || defined __stub___$2
  1914. choke me
  1915. #endif
  1916. int
  1917. main ()
  1918. {
  1919. return $2 ();
  1920. ;
  1921. return 0;
  1922. }
  1923. _ACEOF
  1924. if ac_fn_c_try_link "$LINENO"; then :
  1925. eval "$3=yes"
  1926. else
  1927. eval "$3=no"
  1928. fi
  1929. rm -f core conftest.err conftest.$ac_objext \
  1930. conftest$ac_exeext conftest.$ac_ext
  1931. fi
  1932. eval ac_res=\$$3
  1933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1934. $as_echo "$ac_res" >&6; }
  1935. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1936. } # ac_fn_c_check_func
  1937. # ac_fn_cxx_try_compile LINENO
  1938. # ----------------------------
  1939. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1940. ac_fn_cxx_try_compile ()
  1941. {
  1942. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1943. rm -f conftest.$ac_objext
  1944. if { { ac_try="$ac_compile"
  1945. case "(($ac_try" in
  1946. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1947. *) ac_try_echo=$ac_try;;
  1948. esac
  1949. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1950. $as_echo "$ac_try_echo"; } >&5
  1951. (eval "$ac_compile") 2>conftest.err
  1952. ac_status=$?
  1953. if test -s conftest.err; then
  1954. grep -v '^ *+' conftest.err >conftest.er1
  1955. cat conftest.er1 >&5
  1956. mv -f conftest.er1 conftest.err
  1957. fi
  1958. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1959. test $ac_status = 0; } && {
  1960. test -z "$ac_cxx_werror_flag" ||
  1961. test ! -s conftest.err
  1962. } && test -s conftest.$ac_objext; then :
  1963. ac_retval=0
  1964. else
  1965. $as_echo "$as_me: failed program was:" >&5
  1966. sed 's/^/| /' conftest.$ac_ext >&5
  1967. ac_retval=1
  1968. fi
  1969. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1970. as_fn_set_status $ac_retval
  1971. } # ac_fn_cxx_try_compile
  1972. # ac_fn_cxx_try_cpp LINENO
  1973. # ------------------------
  1974. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1975. ac_fn_cxx_try_cpp ()
  1976. {
  1977. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1978. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1979. case "(($ac_try" in
  1980. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1981. *) ac_try_echo=$ac_try;;
  1982. esac
  1983. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1984. $as_echo "$ac_try_echo"; } >&5
  1985. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1986. ac_status=$?
  1987. if test -s conftest.err; then
  1988. grep -v '^ *+' conftest.err >conftest.er1
  1989. cat conftest.er1 >&5
  1990. mv -f conftest.er1 conftest.err
  1991. fi
  1992. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1993. test $ac_status = 0; } > conftest.i && {
  1994. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1995. test ! -s conftest.err
  1996. }; then :
  1997. ac_retval=0
  1998. else
  1999. $as_echo "$as_me: failed program was:" >&5
  2000. sed 's/^/| /' conftest.$ac_ext >&5
  2001. ac_retval=1
  2002. fi
  2003. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2004. as_fn_set_status $ac_retval
  2005. } # ac_fn_cxx_try_cpp
  2006. # ac_fn_cxx_try_link LINENO
  2007. # -------------------------
  2008. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2009. ac_fn_cxx_try_link ()
  2010. {
  2011. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2012. rm -f conftest.$ac_objext conftest$ac_exeext
  2013. if { { ac_try="$ac_link"
  2014. case "(($ac_try" in
  2015. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2016. *) ac_try_echo=$ac_try;;
  2017. esac
  2018. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2019. $as_echo "$ac_try_echo"; } >&5
  2020. (eval "$ac_link") 2>conftest.err
  2021. ac_status=$?
  2022. if test -s conftest.err; then
  2023. grep -v '^ *+' conftest.err >conftest.er1
  2024. cat conftest.er1 >&5
  2025. mv -f conftest.er1 conftest.err
  2026. fi
  2027. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2028. test $ac_status = 0; } && {
  2029. test -z "$ac_cxx_werror_flag" ||
  2030. test ! -s conftest.err
  2031. } && test -s conftest$ac_exeext && {
  2032. test "$cross_compiling" = yes ||
  2033. test -x conftest$ac_exeext
  2034. }; then :
  2035. ac_retval=0
  2036. else
  2037. $as_echo "$as_me: failed program was:" >&5
  2038. sed 's/^/| /' conftest.$ac_ext >&5
  2039. ac_retval=1
  2040. fi
  2041. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2042. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2043. # interfere with the next link command; also delete a directory that is
  2044. # left behind by Apple's compiler. We do this before executing the actions.
  2045. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2046. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2047. as_fn_set_status $ac_retval
  2048. } # ac_fn_cxx_try_link
  2049. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2050. # -------------------------------------------------------
  2051. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2052. # the include files in INCLUDES and setting the cache variable VAR
  2053. # accordingly.
  2054. ac_fn_c_check_header_mongrel ()
  2055. {
  2056. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2057. if eval \${$3+:} false; then :
  2058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2059. $as_echo_n "checking for $2... " >&6; }
  2060. if eval \${$3+:} false; then :
  2061. $as_echo_n "(cached) " >&6
  2062. fi
  2063. eval ac_res=\$$3
  2064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2065. $as_echo "$ac_res" >&6; }
  2066. else
  2067. # Is the header compilable?
  2068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2069. $as_echo_n "checking $2 usability... " >&6; }
  2070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2071. /* end confdefs.h. */
  2072. $4
  2073. #include <$2>
  2074. _ACEOF
  2075. if ac_fn_c_try_compile "$LINENO"; then :
  2076. ac_header_compiler=yes
  2077. else
  2078. ac_header_compiler=no
  2079. fi
  2080. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2082. $as_echo "$ac_header_compiler" >&6; }
  2083. # Is the header present?
  2084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2085. $as_echo_n "checking $2 presence... " >&6; }
  2086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2087. /* end confdefs.h. */
  2088. #include <$2>
  2089. _ACEOF
  2090. if ac_fn_c_try_cpp "$LINENO"; then :
  2091. ac_header_preproc=yes
  2092. else
  2093. ac_header_preproc=no
  2094. fi
  2095. rm -f conftest.err conftest.i conftest.$ac_ext
  2096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2097. $as_echo "$ac_header_preproc" >&6; }
  2098. # So? What about this header?
  2099. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2100. yes:no: )
  2101. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2102. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2103. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2104. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2105. ;;
  2106. no:yes:* )
  2107. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2108. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2109. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2110. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2111. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2112. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2113. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2114. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2115. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2116. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2117. ;;
  2118. esac
  2119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2120. $as_echo_n "checking for $2... " >&6; }
  2121. if eval \${$3+:} false; then :
  2122. $as_echo_n "(cached) " >&6
  2123. else
  2124. eval "$3=\$ac_header_compiler"
  2125. fi
  2126. eval ac_res=\$$3
  2127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2128. $as_echo "$ac_res" >&6; }
  2129. fi
  2130. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2131. } # ac_fn_c_check_header_mongrel
  2132. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2133. # -------------------------------------------
  2134. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2135. # variable VAR accordingly.
  2136. ac_fn_c_check_type ()
  2137. {
  2138. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2140. $as_echo_n "checking for $2... " >&6; }
  2141. if eval \${$3+:} false; then :
  2142. $as_echo_n "(cached) " >&6
  2143. else
  2144. eval "$3=no"
  2145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2146. /* end confdefs.h. */
  2147. $4
  2148. int
  2149. main ()
  2150. {
  2151. if (sizeof ($2))
  2152. return 0;
  2153. ;
  2154. return 0;
  2155. }
  2156. _ACEOF
  2157. if ac_fn_c_try_compile "$LINENO"; then :
  2158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2159. /* end confdefs.h. */
  2160. $4
  2161. int
  2162. main ()
  2163. {
  2164. if (sizeof (($2)))
  2165. return 0;
  2166. ;
  2167. return 0;
  2168. }
  2169. _ACEOF
  2170. if ac_fn_c_try_compile "$LINENO"; then :
  2171. else
  2172. eval "$3=yes"
  2173. fi
  2174. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2175. fi
  2176. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2177. fi
  2178. eval ac_res=\$$3
  2179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2180. $as_echo "$ac_res" >&6; }
  2181. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2182. } # ac_fn_c_check_type
  2183. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2184. # ----------------------------------------------------
  2185. # Tries to find if the field MEMBER exists in type AGGR, after including
  2186. # INCLUDES, setting cache variable VAR accordingly.
  2187. ac_fn_c_check_member ()
  2188. {
  2189. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2191. $as_echo_n "checking for $2.$3... " >&6; }
  2192. if eval \${$4+:} false; then :
  2193. $as_echo_n "(cached) " >&6
  2194. else
  2195. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2196. /* end confdefs.h. */
  2197. $5
  2198. int
  2199. main ()
  2200. {
  2201. static $2 ac_aggr;
  2202. if (ac_aggr.$3)
  2203. return 0;
  2204. ;
  2205. return 0;
  2206. }
  2207. _ACEOF
  2208. if ac_fn_c_try_compile "$LINENO"; then :
  2209. eval "$4=yes"
  2210. else
  2211. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2212. /* end confdefs.h. */
  2213. $5
  2214. int
  2215. main ()
  2216. {
  2217. static $2 ac_aggr;
  2218. if (sizeof ac_aggr.$3)
  2219. return 0;
  2220. ;
  2221. return 0;
  2222. }
  2223. _ACEOF
  2224. if ac_fn_c_try_compile "$LINENO"; then :
  2225. eval "$4=yes"
  2226. else
  2227. eval "$4=no"
  2228. fi
  2229. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2230. fi
  2231. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2232. fi
  2233. eval ac_res=\$$4
  2234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2235. $as_echo "$ac_res" >&6; }
  2236. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2237. } # ac_fn_c_check_member
  2238. cat >config.log <<_ACEOF
  2239. This file contains any messages produced by compilers while
  2240. running configure, to aid debugging if configure makes a mistake.
  2241. It was created by $as_me, which was
  2242. generated by GNU Autoconf 2.69. Invocation command line was
  2243. $ $0 $@
  2244. _ACEOF
  2245. exec 5>>config.log
  2246. {
  2247. cat <<_ASUNAME
  2248. ## --------- ##
  2249. ## Platform. ##
  2250. ## --------- ##
  2251. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2252. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2253. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2254. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2255. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2256. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2257. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2258. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2259. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2260. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2261. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2262. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2263. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2264. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2265. _ASUNAME
  2266. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2267. for as_dir in $PATH
  2268. do
  2269. IFS=$as_save_IFS
  2270. test -z "$as_dir" && as_dir=.
  2271. $as_echo "PATH: $as_dir"
  2272. done
  2273. IFS=$as_save_IFS
  2274. } >&5
  2275. cat >&5 <<_ACEOF
  2276. ## ----------- ##
  2277. ## Core tests. ##
  2278. ## ----------- ##
  2279. _ACEOF
  2280. # Keep a trace of the command line.
  2281. # Strip out --no-create and --no-recursion so they do not pile up.
  2282. # Strip out --silent because we don't want to record it for future runs.
  2283. # Also quote any args containing shell meta-characters.
  2284. # Make two passes to allow for proper duplicate-argument suppression.
  2285. ac_configure_args=
  2286. ac_configure_args0=
  2287. ac_configure_args1=
  2288. ac_must_keep_next=false
  2289. for ac_pass in 1 2
  2290. do
  2291. for ac_arg
  2292. do
  2293. case $ac_arg in
  2294. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2295. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2296. | -silent | --silent | --silen | --sile | --sil)
  2297. continue ;;
  2298. *\'*)
  2299. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2300. esac
  2301. case $ac_pass in
  2302. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2303. 2)
  2304. as_fn_append ac_configure_args1 " '$ac_arg'"
  2305. if test $ac_must_keep_next = true; then
  2306. ac_must_keep_next=false # Got value, back to normal.
  2307. else
  2308. case $ac_arg in
  2309. *=* | --config-cache | -C | -disable-* | --disable-* \
  2310. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2311. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2312. | -with-* | --with-* | -without-* | --without-* | --x)
  2313. case "$ac_configure_args0 " in
  2314. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2315. esac
  2316. ;;
  2317. -* ) ac_must_keep_next=true ;;
  2318. esac
  2319. fi
  2320. as_fn_append ac_configure_args " '$ac_arg'"
  2321. ;;
  2322. esac
  2323. done
  2324. done
  2325. { ac_configure_args0=; unset ac_configure_args0;}
  2326. { ac_configure_args1=; unset ac_configure_args1;}
  2327. # When interrupted or exit'd, cleanup temporary files, and complete
  2328. # config.log. We remove comments because anyway the quotes in there
  2329. # would cause problems or look ugly.
  2330. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2331. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2332. trap 'exit_status=$?
  2333. # Save into config.log some information that might help in debugging.
  2334. {
  2335. echo
  2336. $as_echo "## ---------------- ##
  2337. ## Cache variables. ##
  2338. ## ---------------- ##"
  2339. echo
  2340. # The following way of writing the cache mishandles newlines in values,
  2341. (
  2342. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2343. eval ac_val=\$$ac_var
  2344. case $ac_val in #(
  2345. *${as_nl}*)
  2346. case $ac_var in #(
  2347. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2348. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2349. esac
  2350. case $ac_var in #(
  2351. _ | IFS | as_nl) ;; #(
  2352. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2353. *) { eval $ac_var=; unset $ac_var;} ;;
  2354. esac ;;
  2355. esac
  2356. done
  2357. (set) 2>&1 |
  2358. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2359. *${as_nl}ac_space=\ *)
  2360. sed -n \
  2361. "s/'\''/'\''\\\\'\'''\''/g;
  2362. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2363. ;; #(
  2364. *)
  2365. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2366. ;;
  2367. esac |
  2368. sort
  2369. )
  2370. echo
  2371. $as_echo "## ----------------- ##
  2372. ## Output variables. ##
  2373. ## ----------------- ##"
  2374. echo
  2375. for ac_var in $ac_subst_vars
  2376. do
  2377. eval ac_val=\$$ac_var
  2378. case $ac_val in
  2379. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2380. esac
  2381. $as_echo "$ac_var='\''$ac_val'\''"
  2382. done | sort
  2383. echo
  2384. if test -n "$ac_subst_files"; then
  2385. $as_echo "## ------------------- ##
  2386. ## File substitutions. ##
  2387. ## ------------------- ##"
  2388. echo
  2389. for ac_var in $ac_subst_files
  2390. do
  2391. eval ac_val=\$$ac_var
  2392. case $ac_val in
  2393. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2394. esac
  2395. $as_echo "$ac_var='\''$ac_val'\''"
  2396. done | sort
  2397. echo
  2398. fi
  2399. if test -s confdefs.h; then
  2400. $as_echo "## ----------- ##
  2401. ## confdefs.h. ##
  2402. ## ----------- ##"
  2403. echo
  2404. cat confdefs.h
  2405. echo
  2406. fi
  2407. test "$ac_signal" != 0 &&
  2408. $as_echo "$as_me: caught signal $ac_signal"
  2409. $as_echo "$as_me: exit $exit_status"
  2410. } >&5
  2411. rm -f core *.core core.conftest.* &&
  2412. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2413. exit $exit_status
  2414. ' 0
  2415. for ac_signal in 1 2 13 15; do
  2416. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2417. done
  2418. ac_signal=0
  2419. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2420. rm -f -r conftest* confdefs.h
  2421. $as_echo "/* confdefs.h */" > confdefs.h
  2422. # Predefined preprocessor variables.
  2423. cat >>confdefs.h <<_ACEOF
  2424. #define PACKAGE_NAME "$PACKAGE_NAME"
  2425. _ACEOF
  2426. cat >>confdefs.h <<_ACEOF
  2427. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2428. _ACEOF
  2429. cat >>confdefs.h <<_ACEOF
  2430. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2431. _ACEOF
  2432. cat >>confdefs.h <<_ACEOF
  2433. #define PACKAGE_STRING "$PACKAGE_STRING"
  2434. _ACEOF
  2435. cat >>confdefs.h <<_ACEOF
  2436. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2437. _ACEOF
  2438. cat >>confdefs.h <<_ACEOF
  2439. #define PACKAGE_URL "$PACKAGE_URL"
  2440. _ACEOF
  2441. # Let the site file select an alternate cache file if it wants to.
  2442. # Prefer an explicitly selected file to automatically selected ones.
  2443. ac_site_file1=NONE
  2444. ac_site_file2=NONE
  2445. if test -n "$CONFIG_SITE"; then
  2446. # We do not want a PATH search for config.site.
  2447. case $CONFIG_SITE in #((
  2448. -*) ac_site_file1=./$CONFIG_SITE;;
  2449. */*) ac_site_file1=$CONFIG_SITE;;
  2450. *) ac_site_file1=./$CONFIG_SITE;;
  2451. esac
  2452. elif test "x$prefix" != xNONE; then
  2453. ac_site_file1=$prefix/share/config.site
  2454. ac_site_file2=$prefix/etc/config.site
  2455. else
  2456. ac_site_file1=$ac_default_prefix/share/config.site
  2457. ac_site_file2=$ac_default_prefix/etc/config.site
  2458. fi
  2459. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2460. do
  2461. test "x$ac_site_file" = xNONE && continue
  2462. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2463. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2464. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2465. sed 's/^/| /' "$ac_site_file" >&5
  2466. . "$ac_site_file" \
  2467. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2468. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2469. as_fn_error $? "failed to load site script $ac_site_file
  2470. See \`config.log' for more details" "$LINENO" 5; }
  2471. fi
  2472. done
  2473. if test -r "$cache_file"; then
  2474. # Some versions of bash will fail to source /dev/null (special files
  2475. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2476. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2477. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2478. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2479. case $cache_file in
  2480. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2481. *) . "./$cache_file";;
  2482. esac
  2483. fi
  2484. else
  2485. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2486. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2487. >$cache_file
  2488. fi
  2489. # Check that the precious variables saved in the cache have kept the same
  2490. # value.
  2491. ac_cache_corrupted=false
  2492. for ac_var in $ac_precious_vars; do
  2493. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2494. eval ac_new_set=\$ac_env_${ac_var}_set
  2495. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2496. eval ac_new_val=\$ac_env_${ac_var}_value
  2497. case $ac_old_set,$ac_new_set in
  2498. set,)
  2499. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2500. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2501. ac_cache_corrupted=: ;;
  2502. ,set)
  2503. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2504. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2505. ac_cache_corrupted=: ;;
  2506. ,);;
  2507. *)
  2508. if test "x$ac_old_val" != "x$ac_new_val"; then
  2509. # differences in whitespace do not lead to failure.
  2510. ac_old_val_w=`echo x $ac_old_val`
  2511. ac_new_val_w=`echo x $ac_new_val`
  2512. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2513. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2514. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2515. ac_cache_corrupted=:
  2516. else
  2517. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2518. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2519. eval $ac_var=\$ac_old_val
  2520. fi
  2521. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2522. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2523. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2524. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2525. fi;;
  2526. esac
  2527. # Pass precious variables to config.status.
  2528. if test "$ac_new_set" = set; then
  2529. case $ac_new_val in
  2530. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2531. *) ac_arg=$ac_var=$ac_new_val ;;
  2532. esac
  2533. case " $ac_configure_args " in
  2534. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2535. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2536. esac
  2537. fi
  2538. done
  2539. if $ac_cache_corrupted; then
  2540. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2541. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2542. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2543. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2544. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2545. fi
  2546. ## -------------------- ##
  2547. ## Main body of script. ##
  2548. ## -------------------- ##
  2549. ac_ext=c
  2550. ac_cpp='$CPP $CPPFLAGS'
  2551. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2552. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2553. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2554. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2555. ac_aux_dir=
  2556. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2557. if test -f "$ac_dir/install-sh"; then
  2558. ac_aux_dir=$ac_dir
  2559. ac_install_sh="$ac_aux_dir/install-sh -c"
  2560. break
  2561. elif test -f "$ac_dir/install.sh"; then
  2562. ac_aux_dir=$ac_dir
  2563. ac_install_sh="$ac_aux_dir/install.sh -c"
  2564. break
  2565. elif test -f "$ac_dir/shtool"; then
  2566. ac_aux_dir=$ac_dir
  2567. ac_install_sh="$ac_aux_dir/shtool install -c"
  2568. break
  2569. fi
  2570. done
  2571. if test -z "$ac_aux_dir"; then
  2572. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2573. fi
  2574. # These three variables are undocumented and unsupported,
  2575. # and are intended to be withdrawn in a future Autoconf release.
  2576. # They can cause serious problems if a builder's source tree is in a directory
  2577. # whose full name contains unusual characters.
  2578. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2579. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2580. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2581. orig_CFLAGS="$CFLAGS"
  2582. #
  2583. # Making releases:
  2584. # Edit include/SDL_version.h and change the version, then:
  2585. # SDL_MICRO_VERSION += 1;
  2586. # SDL_INTERFACE_AGE += 1;
  2587. # SDL_BINARY_AGE += 1;
  2588. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2589. # if backwards compatibility has been broken,
  2590. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2591. #
  2592. SDL_MAJOR_VERSION=2
  2593. SDL_MINOR_VERSION=0
  2594. SDL_MICRO_VERSION=15
  2595. SDL_INTERFACE_AGE=1
  2596. SDL_BINARY_AGE=15
  2597. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2598. # libtool versioning
  2599. case `pwd` in
  2600. *\ * | *\ *)
  2601. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2602. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2603. esac
  2604. macro_version='2.4.2'
  2605. macro_revision='1.3337'
  2606. ltmain="$ac_aux_dir/ltmain.sh"
  2607. # Make sure we can run config.sub.
  2608. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2609. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2611. $as_echo_n "checking build system type... " >&6; }
  2612. if ${ac_cv_build+:} false; then :
  2613. $as_echo_n "(cached) " >&6
  2614. else
  2615. ac_build_alias=$build_alias
  2616. test "x$ac_build_alias" = x &&
  2617. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2618. test "x$ac_build_alias" = x &&
  2619. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2620. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2621. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2622. fi
  2623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2624. $as_echo "$ac_cv_build" >&6; }
  2625. case $ac_cv_build in
  2626. *-*-*) ;;
  2627. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2628. esac
  2629. build=$ac_cv_build
  2630. ac_save_IFS=$IFS; IFS='-'
  2631. set x $ac_cv_build
  2632. shift
  2633. build_cpu=$1
  2634. build_vendor=$2
  2635. shift; shift
  2636. # Remember, the first character of IFS is used to create $*,
  2637. # except with old shells:
  2638. build_os=$*
  2639. IFS=$ac_save_IFS
  2640. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2642. $as_echo_n "checking host system type... " >&6; }
  2643. if ${ac_cv_host+:} false; then :
  2644. $as_echo_n "(cached) " >&6
  2645. else
  2646. if test "x$host_alias" = x; then
  2647. ac_cv_host=$ac_cv_build
  2648. else
  2649. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2650. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2651. fi
  2652. fi
  2653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2654. $as_echo "$ac_cv_host" >&6; }
  2655. case $ac_cv_host in
  2656. *-*-*) ;;
  2657. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2658. esac
  2659. host=$ac_cv_host
  2660. ac_save_IFS=$IFS; IFS='-'
  2661. set x $ac_cv_host
  2662. shift
  2663. host_cpu=$1
  2664. host_vendor=$2
  2665. shift; shift
  2666. # Remember, the first character of IFS is used to create $*,
  2667. # except with old shells:
  2668. host_os=$*
  2669. IFS=$ac_save_IFS
  2670. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2671. # Backslashify metacharacters that are still active within
  2672. # double-quoted strings.
  2673. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2674. # Same as above, but do not quote variable references.
  2675. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2676. # Sed substitution to delay expansion of an escaped shell variable in a
  2677. # double_quote_subst'ed string.
  2678. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2679. # Sed substitution to delay expansion of an escaped single quote.
  2680. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2681. # Sed substitution to avoid accidental globbing in evaled expressions
  2682. no_glob_subst='s/\*/\\\*/g'
  2683. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2684. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2685. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2687. $as_echo_n "checking how to print strings... " >&6; }
  2688. # Test print first, because it will be a builtin if present.
  2689. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2690. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2691. ECHO='print -r --'
  2692. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2693. ECHO='printf %s\n'
  2694. else
  2695. # Use this function as a fallback that always works.
  2696. func_fallback_echo ()
  2697. {
  2698. eval 'cat <<_LTECHO_EOF
  2699. $1
  2700. _LTECHO_EOF'
  2701. }
  2702. ECHO='func_fallback_echo'
  2703. fi
  2704. # func_echo_all arg...
  2705. # Invoke $ECHO with all args, space-separated.
  2706. func_echo_all ()
  2707. {
  2708. $ECHO ""
  2709. }
  2710. case "$ECHO" in
  2711. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2712. $as_echo "printf" >&6; } ;;
  2713. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2714. $as_echo "print -r" >&6; } ;;
  2715. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2716. $as_echo "cat" >&6; } ;;
  2717. esac
  2718. ac_ext=c
  2719. ac_cpp='$CPP $CPPFLAGS'
  2720. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2721. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2722. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2723. if test -n "$ac_tool_prefix"; then
  2724. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2725. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2727. $as_echo_n "checking for $ac_word... " >&6; }
  2728. if ${ac_cv_prog_CC+:} false; then :
  2729. $as_echo_n "(cached) " >&6
  2730. else
  2731. if test -n "$CC"; then
  2732. ac_cv_prog_CC="$CC" # Let the user override the test.
  2733. else
  2734. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2735. for as_dir in $PATH
  2736. do
  2737. IFS=$as_save_IFS
  2738. test -z "$as_dir" && as_dir=.
  2739. for ac_exec_ext in '' $ac_executable_extensions; do
  2740. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2741. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2742. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2743. break 2
  2744. fi
  2745. done
  2746. done
  2747. IFS=$as_save_IFS
  2748. fi
  2749. fi
  2750. CC=$ac_cv_prog_CC
  2751. if test -n "$CC"; then
  2752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2753. $as_echo "$CC" >&6; }
  2754. else
  2755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2756. $as_echo "no" >&6; }
  2757. fi
  2758. fi
  2759. if test -z "$ac_cv_prog_CC"; then
  2760. ac_ct_CC=$CC
  2761. # Extract the first word of "gcc", so it can be a program name with args.
  2762. set dummy gcc; ac_word=$2
  2763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2764. $as_echo_n "checking for $ac_word... " >&6; }
  2765. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2766. $as_echo_n "(cached) " >&6
  2767. else
  2768. if test -n "$ac_ct_CC"; then
  2769. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2770. else
  2771. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2772. for as_dir in $PATH
  2773. do
  2774. IFS=$as_save_IFS
  2775. test -z "$as_dir" && as_dir=.
  2776. for ac_exec_ext in '' $ac_executable_extensions; do
  2777. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2778. ac_cv_prog_ac_ct_CC="gcc"
  2779. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2780. break 2
  2781. fi
  2782. done
  2783. done
  2784. IFS=$as_save_IFS
  2785. fi
  2786. fi
  2787. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2788. if test -n "$ac_ct_CC"; then
  2789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2790. $as_echo "$ac_ct_CC" >&6; }
  2791. else
  2792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2793. $as_echo "no" >&6; }
  2794. fi
  2795. if test "x$ac_ct_CC" = x; then
  2796. CC=""
  2797. else
  2798. case $cross_compiling:$ac_tool_warned in
  2799. yes:)
  2800. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2801. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2802. ac_tool_warned=yes ;;
  2803. esac
  2804. CC=$ac_ct_CC
  2805. fi
  2806. else
  2807. CC="$ac_cv_prog_CC"
  2808. fi
  2809. if test -z "$CC"; then
  2810. if test -n "$ac_tool_prefix"; then
  2811. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2812. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2814. $as_echo_n "checking for $ac_word... " >&6; }
  2815. if ${ac_cv_prog_CC+:} false; then :
  2816. $as_echo_n "(cached) " >&6
  2817. else
  2818. if test -n "$CC"; then
  2819. ac_cv_prog_CC="$CC" # Let the user override the test.
  2820. else
  2821. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2822. for as_dir in $PATH
  2823. do
  2824. IFS=$as_save_IFS
  2825. test -z "$as_dir" && as_dir=.
  2826. for ac_exec_ext in '' $ac_executable_extensions; do
  2827. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2828. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2829. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2830. break 2
  2831. fi
  2832. done
  2833. done
  2834. IFS=$as_save_IFS
  2835. fi
  2836. fi
  2837. CC=$ac_cv_prog_CC
  2838. if test -n "$CC"; then
  2839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2840. $as_echo "$CC" >&6; }
  2841. else
  2842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2843. $as_echo "no" >&6; }
  2844. fi
  2845. fi
  2846. fi
  2847. if test -z "$CC"; then
  2848. # Extract the first word of "cc", so it can be a program name with args.
  2849. set dummy cc; ac_word=$2
  2850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2851. $as_echo_n "checking for $ac_word... " >&6; }
  2852. if ${ac_cv_prog_CC+:} false; then :
  2853. $as_echo_n "(cached) " >&6
  2854. else
  2855. if test -n "$CC"; then
  2856. ac_cv_prog_CC="$CC" # Let the user override the test.
  2857. else
  2858. ac_prog_rejected=no
  2859. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2860. for as_dir in $PATH
  2861. do
  2862. IFS=$as_save_IFS
  2863. test -z "$as_dir" && as_dir=.
  2864. for ac_exec_ext in '' $ac_executable_extensions; do
  2865. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2866. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2867. ac_prog_rejected=yes
  2868. continue
  2869. fi
  2870. ac_cv_prog_CC="cc"
  2871. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2872. break 2
  2873. fi
  2874. done
  2875. done
  2876. IFS=$as_save_IFS
  2877. if test $ac_prog_rejected = yes; then
  2878. # We found a bogon in the path, so make sure we never use it.
  2879. set dummy $ac_cv_prog_CC
  2880. shift
  2881. if test $# != 0; then
  2882. # We chose a different compiler from the bogus one.
  2883. # However, it has the same basename, so the bogon will be chosen
  2884. # first if we set CC to just the basename; use the full file name.
  2885. shift
  2886. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2887. fi
  2888. fi
  2889. fi
  2890. fi
  2891. CC=$ac_cv_prog_CC
  2892. if test -n "$CC"; then
  2893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2894. $as_echo "$CC" >&6; }
  2895. else
  2896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2897. $as_echo "no" >&6; }
  2898. fi
  2899. fi
  2900. if test -z "$CC"; then
  2901. if test -n "$ac_tool_prefix"; then
  2902. for ac_prog in cl.exe
  2903. do
  2904. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2905. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2907. $as_echo_n "checking for $ac_word... " >&6; }
  2908. if ${ac_cv_prog_CC+:} false; then :
  2909. $as_echo_n "(cached) " >&6
  2910. else
  2911. if test -n "$CC"; then
  2912. ac_cv_prog_CC="$CC" # Let the user override the test.
  2913. else
  2914. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2915. for as_dir in $PATH
  2916. do
  2917. IFS=$as_save_IFS
  2918. test -z "$as_dir" && as_dir=.
  2919. for ac_exec_ext in '' $ac_executable_extensions; do
  2920. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2921. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2922. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2923. break 2
  2924. fi
  2925. done
  2926. done
  2927. IFS=$as_save_IFS
  2928. fi
  2929. fi
  2930. CC=$ac_cv_prog_CC
  2931. if test -n "$CC"; then
  2932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2933. $as_echo "$CC" >&6; }
  2934. else
  2935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2936. $as_echo "no" >&6; }
  2937. fi
  2938. test -n "$CC" && break
  2939. done
  2940. fi
  2941. if test -z "$CC"; then
  2942. ac_ct_CC=$CC
  2943. for ac_prog in cl.exe
  2944. do
  2945. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2946. set dummy $ac_prog; ac_word=$2
  2947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2948. $as_echo_n "checking for $ac_word... " >&6; }
  2949. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2950. $as_echo_n "(cached) " >&6
  2951. else
  2952. if test -n "$ac_ct_CC"; then
  2953. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2954. else
  2955. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2956. for as_dir in $PATH
  2957. do
  2958. IFS=$as_save_IFS
  2959. test -z "$as_dir" && as_dir=.
  2960. for ac_exec_ext in '' $ac_executable_extensions; do
  2961. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2962. ac_cv_prog_ac_ct_CC="$ac_prog"
  2963. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2964. break 2
  2965. fi
  2966. done
  2967. done
  2968. IFS=$as_save_IFS
  2969. fi
  2970. fi
  2971. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2972. if test -n "$ac_ct_CC"; then
  2973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2974. $as_echo "$ac_ct_CC" >&6; }
  2975. else
  2976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2977. $as_echo "no" >&6; }
  2978. fi
  2979. test -n "$ac_ct_CC" && break
  2980. done
  2981. if test "x$ac_ct_CC" = x; then
  2982. CC=""
  2983. else
  2984. case $cross_compiling:$ac_tool_warned in
  2985. yes:)
  2986. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2987. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2988. ac_tool_warned=yes ;;
  2989. esac
  2990. CC=$ac_ct_CC
  2991. fi
  2992. fi
  2993. fi
  2994. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2995. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2996. as_fn_error $? "no acceptable C compiler found in \$PATH
  2997. See \`config.log' for more details" "$LINENO" 5; }
  2998. # Provide some information about the compiler.
  2999. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3000. set X $ac_compile
  3001. ac_compiler=$2
  3002. for ac_option in --version -v -V -qversion; do
  3003. { { ac_try="$ac_compiler $ac_option >&5"
  3004. case "(($ac_try" in
  3005. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3006. *) ac_try_echo=$ac_try;;
  3007. esac
  3008. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3009. $as_echo "$ac_try_echo"; } >&5
  3010. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3011. ac_status=$?
  3012. if test -s conftest.err; then
  3013. sed '10a\
  3014. ... rest of stderr output deleted ...
  3015. 10q' conftest.err >conftest.er1
  3016. cat conftest.er1 >&5
  3017. fi
  3018. rm -f conftest.er1 conftest.err
  3019. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3020. test $ac_status = 0; }
  3021. done
  3022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3023. /* end confdefs.h. */
  3024. int
  3025. main ()
  3026. {
  3027. ;
  3028. return 0;
  3029. }
  3030. _ACEOF
  3031. ac_clean_files_save=$ac_clean_files
  3032. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3033. # Try to create an executable without -o first, disregard a.out.
  3034. # It will help us diagnose broken compilers, and finding out an intuition
  3035. # of exeext.
  3036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3037. $as_echo_n "checking whether the C compiler works... " >&6; }
  3038. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3039. # The possible output files:
  3040. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3041. ac_rmfiles=
  3042. for ac_file in $ac_files
  3043. do
  3044. case $ac_file in
  3045. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3046. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3047. esac
  3048. done
  3049. rm -f $ac_rmfiles
  3050. if { { ac_try="$ac_link_default"
  3051. case "(($ac_try" in
  3052. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3053. *) ac_try_echo=$ac_try;;
  3054. esac
  3055. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3056. $as_echo "$ac_try_echo"; } >&5
  3057. (eval "$ac_link_default") 2>&5
  3058. ac_status=$?
  3059. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3060. test $ac_status = 0; }; then :
  3061. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3062. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3063. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3064. # so that the user can short-circuit this test for compilers unknown to
  3065. # Autoconf.
  3066. for ac_file in $ac_files ''
  3067. do
  3068. test -f "$ac_file" || continue
  3069. case $ac_file in
  3070. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3071. ;;
  3072. [ab].out )
  3073. # We found the default executable, but exeext='' is most
  3074. # certainly right.
  3075. break;;
  3076. *.* )
  3077. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3078. then :; else
  3079. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3080. fi
  3081. # We set ac_cv_exeext here because the later test for it is not
  3082. # safe: cross compilers may not add the suffix if given an `-o'
  3083. # argument, so we may need to know it at that point already.
  3084. # Even if this section looks crufty: it has the advantage of
  3085. # actually working.
  3086. break;;
  3087. * )
  3088. break;;
  3089. esac
  3090. done
  3091. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3092. else
  3093. ac_file=''
  3094. fi
  3095. if test -z "$ac_file"; then :
  3096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3097. $as_echo "no" >&6; }
  3098. $as_echo "$as_me: failed program was:" >&5
  3099. sed 's/^/| /' conftest.$ac_ext >&5
  3100. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3101. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3102. as_fn_error 77 "C compiler cannot create executables
  3103. See \`config.log' for more details" "$LINENO" 5; }
  3104. else
  3105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3106. $as_echo "yes" >&6; }
  3107. fi
  3108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3109. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3111. $as_echo "$ac_file" >&6; }
  3112. ac_exeext=$ac_cv_exeext
  3113. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3114. ac_clean_files=$ac_clean_files_save
  3115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3116. $as_echo_n "checking for suffix of executables... " >&6; }
  3117. if { { ac_try="$ac_link"
  3118. case "(($ac_try" in
  3119. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3120. *) ac_try_echo=$ac_try;;
  3121. esac
  3122. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3123. $as_echo "$ac_try_echo"; } >&5
  3124. (eval "$ac_link") 2>&5
  3125. ac_status=$?
  3126. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3127. test $ac_status = 0; }; then :
  3128. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3129. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3130. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3131. # `rm'.
  3132. for ac_file in conftest.exe conftest conftest.*; do
  3133. test -f "$ac_file" || continue
  3134. case $ac_file in
  3135. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3136. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3137. break;;
  3138. * ) break;;
  3139. esac
  3140. done
  3141. else
  3142. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3143. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3144. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3145. See \`config.log' for more details" "$LINENO" 5; }
  3146. fi
  3147. rm -f conftest conftest$ac_cv_exeext
  3148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3149. $as_echo "$ac_cv_exeext" >&6; }
  3150. rm -f conftest.$ac_ext
  3151. EXEEXT=$ac_cv_exeext
  3152. ac_exeext=$EXEEXT
  3153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3154. /* end confdefs.h. */
  3155. #include <stdio.h>
  3156. int
  3157. main ()
  3158. {
  3159. FILE *f = fopen ("conftest.out", "w");
  3160. return ferror (f) || fclose (f) != 0;
  3161. ;
  3162. return 0;
  3163. }
  3164. _ACEOF
  3165. ac_clean_files="$ac_clean_files conftest.out"
  3166. # Check that the compiler produces executables we can run. If not, either
  3167. # the compiler is broken, or we cross compile.
  3168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3169. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3170. if test "$cross_compiling" != yes; then
  3171. { { ac_try="$ac_link"
  3172. case "(($ac_try" in
  3173. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3174. *) ac_try_echo=$ac_try;;
  3175. esac
  3176. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3177. $as_echo "$ac_try_echo"; } >&5
  3178. (eval "$ac_link") 2>&5
  3179. ac_status=$?
  3180. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3181. test $ac_status = 0; }
  3182. if { ac_try='./conftest$ac_cv_exeext'
  3183. { { case "(($ac_try" in
  3184. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3185. *) ac_try_echo=$ac_try;;
  3186. esac
  3187. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3188. $as_echo "$ac_try_echo"; } >&5
  3189. (eval "$ac_try") 2>&5
  3190. ac_status=$?
  3191. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3192. test $ac_status = 0; }; }; then
  3193. cross_compiling=no
  3194. else
  3195. if test "$cross_compiling" = maybe; then
  3196. cross_compiling=yes
  3197. else
  3198. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3199. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3200. as_fn_error $? "cannot run C compiled programs.
  3201. If you meant to cross compile, use \`--host'.
  3202. See \`config.log' for more details" "$LINENO" 5; }
  3203. fi
  3204. fi
  3205. fi
  3206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3207. $as_echo "$cross_compiling" >&6; }
  3208. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3209. ac_clean_files=$ac_clean_files_save
  3210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3211. $as_echo_n "checking for suffix of object files... " >&6; }
  3212. if ${ac_cv_objext+:} false; then :
  3213. $as_echo_n "(cached) " >&6
  3214. else
  3215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3216. /* end confdefs.h. */
  3217. int
  3218. main ()
  3219. {
  3220. ;
  3221. return 0;
  3222. }
  3223. _ACEOF
  3224. rm -f conftest.o conftest.obj
  3225. if { { ac_try="$ac_compile"
  3226. case "(($ac_try" in
  3227. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3228. *) ac_try_echo=$ac_try;;
  3229. esac
  3230. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3231. $as_echo "$ac_try_echo"; } >&5
  3232. (eval "$ac_compile") 2>&5
  3233. ac_status=$?
  3234. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3235. test $ac_status = 0; }; then :
  3236. for ac_file in conftest.o conftest.obj conftest.*; do
  3237. test -f "$ac_file" || continue;
  3238. case $ac_file in
  3239. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3240. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3241. break;;
  3242. esac
  3243. done
  3244. else
  3245. $as_echo "$as_me: failed program was:" >&5
  3246. sed 's/^/| /' conftest.$ac_ext >&5
  3247. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3248. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3249. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3250. See \`config.log' for more details" "$LINENO" 5; }
  3251. fi
  3252. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3253. fi
  3254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3255. $as_echo "$ac_cv_objext" >&6; }
  3256. OBJEXT=$ac_cv_objext
  3257. ac_objext=$OBJEXT
  3258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3259. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3260. if ${ac_cv_c_compiler_gnu+:} false; then :
  3261. $as_echo_n "(cached) " >&6
  3262. else
  3263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3264. /* end confdefs.h. */
  3265. int
  3266. main ()
  3267. {
  3268. #ifndef __GNUC__
  3269. choke me
  3270. #endif
  3271. ;
  3272. return 0;
  3273. }
  3274. _ACEOF
  3275. if ac_fn_c_try_compile "$LINENO"; then :
  3276. ac_compiler_gnu=yes
  3277. else
  3278. ac_compiler_gnu=no
  3279. fi
  3280. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3281. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3282. fi
  3283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3284. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3285. if test $ac_compiler_gnu = yes; then
  3286. GCC=yes
  3287. else
  3288. GCC=
  3289. fi
  3290. ac_test_CFLAGS=${CFLAGS+set}
  3291. ac_save_CFLAGS=$CFLAGS
  3292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3293. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3294. if ${ac_cv_prog_cc_g+:} false; then :
  3295. $as_echo_n "(cached) " >&6
  3296. else
  3297. ac_save_c_werror_flag=$ac_c_werror_flag
  3298. ac_c_werror_flag=yes
  3299. ac_cv_prog_cc_g=no
  3300. CFLAGS="-g"
  3301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3302. /* end confdefs.h. */
  3303. int
  3304. main ()
  3305. {
  3306. ;
  3307. return 0;
  3308. }
  3309. _ACEOF
  3310. if ac_fn_c_try_compile "$LINENO"; then :
  3311. ac_cv_prog_cc_g=yes
  3312. else
  3313. CFLAGS=""
  3314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3315. /* end confdefs.h. */
  3316. int
  3317. main ()
  3318. {
  3319. ;
  3320. return 0;
  3321. }
  3322. _ACEOF
  3323. if ac_fn_c_try_compile "$LINENO"; then :
  3324. else
  3325. ac_c_werror_flag=$ac_save_c_werror_flag
  3326. CFLAGS="-g"
  3327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3328. /* end confdefs.h. */
  3329. int
  3330. main ()
  3331. {
  3332. ;
  3333. return 0;
  3334. }
  3335. _ACEOF
  3336. if ac_fn_c_try_compile "$LINENO"; then :
  3337. ac_cv_prog_cc_g=yes
  3338. fi
  3339. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3340. fi
  3341. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3342. fi
  3343. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3344. ac_c_werror_flag=$ac_save_c_werror_flag
  3345. fi
  3346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3347. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3348. if test "$ac_test_CFLAGS" = set; then
  3349. CFLAGS=$ac_save_CFLAGS
  3350. elif test $ac_cv_prog_cc_g = yes; then
  3351. if test "$GCC" = yes; then
  3352. CFLAGS="-g -O2"
  3353. else
  3354. CFLAGS="-g"
  3355. fi
  3356. else
  3357. if test "$GCC" = yes; then
  3358. CFLAGS="-O2"
  3359. else
  3360. CFLAGS=
  3361. fi
  3362. fi
  3363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3364. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3365. if ${ac_cv_prog_cc_c89+:} false; then :
  3366. $as_echo_n "(cached) " >&6
  3367. else
  3368. ac_cv_prog_cc_c89=no
  3369. ac_save_CC=$CC
  3370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3371. /* end confdefs.h. */
  3372. #include <stdarg.h>
  3373. #include <stdio.h>
  3374. struct stat;
  3375. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3376. struct buf { int x; };
  3377. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3378. static char *e (p, i)
  3379. char **p;
  3380. int i;
  3381. {
  3382. return p[i];
  3383. }
  3384. static char *f (char * (*g) (char **, int), char **p, ...)
  3385. {
  3386. char *s;
  3387. va_list v;
  3388. va_start (v,p);
  3389. s = g (p, va_arg (v,int));
  3390. va_end (v);
  3391. return s;
  3392. }
  3393. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3394. function prototypes and stuff, but not '\xHH' hex character constants.
  3395. These don't provoke an error unfortunately, instead are silently treated
  3396. as 'x'. The following induces an error, until -std is added to get
  3397. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3398. array size at least. It's necessary to write '\x00'==0 to get something
  3399. that's true only with -std. */
  3400. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3401. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3402. inside strings and character constants. */
  3403. #define FOO(x) 'x'
  3404. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3405. int test (int i, double x);
  3406. struct s1 {int (*f) (int a);};
  3407. struct s2 {int (*f) (double a);};
  3408. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3409. int argc;
  3410. char **argv;
  3411. int
  3412. main ()
  3413. {
  3414. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3415. ;
  3416. return 0;
  3417. }
  3418. _ACEOF
  3419. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3420. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3421. do
  3422. CC="$ac_save_CC $ac_arg"
  3423. if ac_fn_c_try_compile "$LINENO"; then :
  3424. ac_cv_prog_cc_c89=$ac_arg
  3425. fi
  3426. rm -f core conftest.err conftest.$ac_objext
  3427. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3428. done
  3429. rm -f conftest.$ac_ext
  3430. CC=$ac_save_CC
  3431. fi
  3432. # AC_CACHE_VAL
  3433. case "x$ac_cv_prog_cc_c89" in
  3434. x)
  3435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3436. $as_echo "none needed" >&6; } ;;
  3437. xno)
  3438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3439. $as_echo "unsupported" >&6; } ;;
  3440. *)
  3441. CC="$CC $ac_cv_prog_cc_c89"
  3442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3443. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3444. esac
  3445. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3446. fi
  3447. ac_ext=c
  3448. ac_cpp='$CPP $CPPFLAGS'
  3449. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3450. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3451. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3453. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3454. if ${ac_cv_path_SED+:} false; then :
  3455. $as_echo_n "(cached) " >&6
  3456. else
  3457. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3458. for ac_i in 1 2 3 4 5 6 7; do
  3459. ac_script="$ac_script$as_nl$ac_script"
  3460. done
  3461. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3462. { ac_script=; unset ac_script;}
  3463. if test -z "$SED"; then
  3464. ac_path_SED_found=false
  3465. # Loop through the user's path and test for each of PROGNAME-LIST
  3466. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3467. for as_dir in $PATH
  3468. do
  3469. IFS=$as_save_IFS
  3470. test -z "$as_dir" && as_dir=.
  3471. for ac_prog in sed gsed; do
  3472. for ac_exec_ext in '' $ac_executable_extensions; do
  3473. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3474. as_fn_executable_p "$ac_path_SED" || continue
  3475. # Check for GNU ac_path_SED and select it if it is found.
  3476. # Check for GNU $ac_path_SED
  3477. case `"$ac_path_SED" --version 2>&1` in
  3478. *GNU*)
  3479. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3480. *)
  3481. ac_count=0
  3482. $as_echo_n 0123456789 >"conftest.in"
  3483. while :
  3484. do
  3485. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3486. mv "conftest.tmp" "conftest.in"
  3487. cp "conftest.in" "conftest.nl"
  3488. $as_echo '' >> "conftest.nl"
  3489. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3490. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3491. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3492. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3493. # Best one so far, save it but keep looking for a better one
  3494. ac_cv_path_SED="$ac_path_SED"
  3495. ac_path_SED_max=$ac_count
  3496. fi
  3497. # 10*(2^10) chars as input seems more than enough
  3498. test $ac_count -gt 10 && break
  3499. done
  3500. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3501. esac
  3502. $ac_path_SED_found && break 3
  3503. done
  3504. done
  3505. done
  3506. IFS=$as_save_IFS
  3507. if test -z "$ac_cv_path_SED"; then
  3508. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3509. fi
  3510. else
  3511. ac_cv_path_SED=$SED
  3512. fi
  3513. fi
  3514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3515. $as_echo "$ac_cv_path_SED" >&6; }
  3516. SED="$ac_cv_path_SED"
  3517. rm -f conftest.sed
  3518. test -z "$SED" && SED=sed
  3519. Xsed="$SED -e 1s/^X//"
  3520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3521. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3522. if ${ac_cv_path_GREP+:} false; then :
  3523. $as_echo_n "(cached) " >&6
  3524. else
  3525. if test -z "$GREP"; then
  3526. ac_path_GREP_found=false
  3527. # Loop through the user's path and test for each of PROGNAME-LIST
  3528. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3529. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3530. do
  3531. IFS=$as_save_IFS
  3532. test -z "$as_dir" && as_dir=.
  3533. for ac_prog in grep ggrep; do
  3534. for ac_exec_ext in '' $ac_executable_extensions; do
  3535. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3536. as_fn_executable_p "$ac_path_GREP" || continue
  3537. # Check for GNU ac_path_GREP and select it if it is found.
  3538. # Check for GNU $ac_path_GREP
  3539. case `"$ac_path_GREP" --version 2>&1` in
  3540. *GNU*)
  3541. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3542. *)
  3543. ac_count=0
  3544. $as_echo_n 0123456789 >"conftest.in"
  3545. while :
  3546. do
  3547. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3548. mv "conftest.tmp" "conftest.in"
  3549. cp "conftest.in" "conftest.nl"
  3550. $as_echo 'GREP' >> "conftest.nl"
  3551. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3552. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3553. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3554. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3555. # Best one so far, save it but keep looking for a better one
  3556. ac_cv_path_GREP="$ac_path_GREP"
  3557. ac_path_GREP_max=$ac_count
  3558. fi
  3559. # 10*(2^10) chars as input seems more than enough
  3560. test $ac_count -gt 10 && break
  3561. done
  3562. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3563. esac
  3564. $ac_path_GREP_found && break 3
  3565. done
  3566. done
  3567. done
  3568. IFS=$as_save_IFS
  3569. if test -z "$ac_cv_path_GREP"; then
  3570. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3571. fi
  3572. else
  3573. ac_cv_path_GREP=$GREP
  3574. fi
  3575. fi
  3576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3577. $as_echo "$ac_cv_path_GREP" >&6; }
  3578. GREP="$ac_cv_path_GREP"
  3579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3580. $as_echo_n "checking for egrep... " >&6; }
  3581. if ${ac_cv_path_EGREP+:} false; then :
  3582. $as_echo_n "(cached) " >&6
  3583. else
  3584. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3585. then ac_cv_path_EGREP="$GREP -E"
  3586. else
  3587. if test -z "$EGREP"; then
  3588. ac_path_EGREP_found=false
  3589. # Loop through the user's path and test for each of PROGNAME-LIST
  3590. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3591. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3592. do
  3593. IFS=$as_save_IFS
  3594. test -z "$as_dir" && as_dir=.
  3595. for ac_prog in egrep; do
  3596. for ac_exec_ext in '' $ac_executable_extensions; do
  3597. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3598. as_fn_executable_p "$ac_path_EGREP" || continue
  3599. # Check for GNU ac_path_EGREP and select it if it is found.
  3600. # Check for GNU $ac_path_EGREP
  3601. case `"$ac_path_EGREP" --version 2>&1` in
  3602. *GNU*)
  3603. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3604. *)
  3605. ac_count=0
  3606. $as_echo_n 0123456789 >"conftest.in"
  3607. while :
  3608. do
  3609. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3610. mv "conftest.tmp" "conftest.in"
  3611. cp "conftest.in" "conftest.nl"
  3612. $as_echo 'EGREP' >> "conftest.nl"
  3613. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3614. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3615. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3616. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3617. # Best one so far, save it but keep looking for a better one
  3618. ac_cv_path_EGREP="$ac_path_EGREP"
  3619. ac_path_EGREP_max=$ac_count
  3620. fi
  3621. # 10*(2^10) chars as input seems more than enough
  3622. test $ac_count -gt 10 && break
  3623. done
  3624. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3625. esac
  3626. $ac_path_EGREP_found && break 3
  3627. done
  3628. done
  3629. done
  3630. IFS=$as_save_IFS
  3631. if test -z "$ac_cv_path_EGREP"; then
  3632. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3633. fi
  3634. else
  3635. ac_cv_path_EGREP=$EGREP
  3636. fi
  3637. fi
  3638. fi
  3639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3640. $as_echo "$ac_cv_path_EGREP" >&6; }
  3641. EGREP="$ac_cv_path_EGREP"
  3642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3643. $as_echo_n "checking for fgrep... " >&6; }
  3644. if ${ac_cv_path_FGREP+:} false; then :
  3645. $as_echo_n "(cached) " >&6
  3646. else
  3647. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3648. then ac_cv_path_FGREP="$GREP -F"
  3649. else
  3650. if test -z "$FGREP"; then
  3651. ac_path_FGREP_found=false
  3652. # Loop through the user's path and test for each of PROGNAME-LIST
  3653. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3654. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3655. do
  3656. IFS=$as_save_IFS
  3657. test -z "$as_dir" && as_dir=.
  3658. for ac_prog in fgrep; do
  3659. for ac_exec_ext in '' $ac_executable_extensions; do
  3660. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3661. as_fn_executable_p "$ac_path_FGREP" || continue
  3662. # Check for GNU ac_path_FGREP and select it if it is found.
  3663. # Check for GNU $ac_path_FGREP
  3664. case `"$ac_path_FGREP" --version 2>&1` in
  3665. *GNU*)
  3666. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3667. *)
  3668. ac_count=0
  3669. $as_echo_n 0123456789 >"conftest.in"
  3670. while :
  3671. do
  3672. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3673. mv "conftest.tmp" "conftest.in"
  3674. cp "conftest.in" "conftest.nl"
  3675. $as_echo 'FGREP' >> "conftest.nl"
  3676. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3677. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3678. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3679. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3680. # Best one so far, save it but keep looking for a better one
  3681. ac_cv_path_FGREP="$ac_path_FGREP"
  3682. ac_path_FGREP_max=$ac_count
  3683. fi
  3684. # 10*(2^10) chars as input seems more than enough
  3685. test $ac_count -gt 10 && break
  3686. done
  3687. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3688. esac
  3689. $ac_path_FGREP_found && break 3
  3690. done
  3691. done
  3692. done
  3693. IFS=$as_save_IFS
  3694. if test -z "$ac_cv_path_FGREP"; then
  3695. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3696. fi
  3697. else
  3698. ac_cv_path_FGREP=$FGREP
  3699. fi
  3700. fi
  3701. fi
  3702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3703. $as_echo "$ac_cv_path_FGREP" >&6; }
  3704. FGREP="$ac_cv_path_FGREP"
  3705. test -z "$GREP" && GREP=grep
  3706. # Check whether --with-gnu-ld was given.
  3707. if test "${with_gnu_ld+set}" = set; then :
  3708. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3709. else
  3710. with_gnu_ld=no
  3711. fi
  3712. ac_prog=ld
  3713. if test "$GCC" = yes; then
  3714. # Check if gcc -print-prog-name=ld gives a path.
  3715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3716. $as_echo_n "checking for ld used by $CC... " >&6; }
  3717. case $host in
  3718. *-*-mingw*)
  3719. # gcc leaves a trailing carriage return which upsets mingw
  3720. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3721. *)
  3722. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3723. esac
  3724. case $ac_prog in
  3725. # Accept absolute paths.
  3726. [\\/]* | ?:[\\/]*)
  3727. re_direlt='/[^/][^/]*/\.\./'
  3728. # Canonicalize the pathname of ld
  3729. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3730. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3731. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3732. done
  3733. test -z "$LD" && LD="$ac_prog"
  3734. ;;
  3735. "")
  3736. # If it fails, then pretend we aren't using GCC.
  3737. ac_prog=ld
  3738. ;;
  3739. *)
  3740. # If it is relative, then search for the first ld in PATH.
  3741. with_gnu_ld=unknown
  3742. ;;
  3743. esac
  3744. elif test "$with_gnu_ld" = yes; then
  3745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3746. $as_echo_n "checking for GNU ld... " >&6; }
  3747. else
  3748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3749. $as_echo_n "checking for non-GNU ld... " >&6; }
  3750. fi
  3751. if ${lt_cv_path_LD+:} false; then :
  3752. $as_echo_n "(cached) " >&6
  3753. else
  3754. if test -z "$LD"; then
  3755. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3756. for ac_dir in $PATH; do
  3757. IFS="$lt_save_ifs"
  3758. test -z "$ac_dir" && ac_dir=.
  3759. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3760. lt_cv_path_LD="$ac_dir/$ac_prog"
  3761. # Check to see if the program is GNU ld. I'd rather use --version,
  3762. # but apparently some variants of GNU ld only accept -v.
  3763. # Break only if it was the GNU/non-GNU ld that we prefer.
  3764. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3765. *GNU* | *'with BFD'*)
  3766. test "$with_gnu_ld" != no && break
  3767. ;;
  3768. *)
  3769. test "$with_gnu_ld" != yes && break
  3770. ;;
  3771. esac
  3772. fi
  3773. done
  3774. IFS="$lt_save_ifs"
  3775. else
  3776. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3777. fi
  3778. fi
  3779. LD="$lt_cv_path_LD"
  3780. if test -n "$LD"; then
  3781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3782. $as_echo "$LD" >&6; }
  3783. else
  3784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3785. $as_echo "no" >&6; }
  3786. fi
  3787. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3789. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3790. if ${lt_cv_prog_gnu_ld+:} false; then :
  3791. $as_echo_n "(cached) " >&6
  3792. else
  3793. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3794. case `$LD -v 2>&1 </dev/null` in
  3795. *GNU* | *'with BFD'*)
  3796. lt_cv_prog_gnu_ld=yes
  3797. ;;
  3798. *)
  3799. lt_cv_prog_gnu_ld=no
  3800. ;;
  3801. esac
  3802. fi
  3803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3804. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3805. with_gnu_ld=$lt_cv_prog_gnu_ld
  3806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3807. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3808. if ${lt_cv_path_NM+:} false; then :
  3809. $as_echo_n "(cached) " >&6
  3810. else
  3811. if test -n "$NM"; then
  3812. # Let the user override the test.
  3813. lt_cv_path_NM="$NM"
  3814. else
  3815. lt_nm_to_check="${ac_tool_prefix}nm"
  3816. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3817. lt_nm_to_check="$lt_nm_to_check nm"
  3818. fi
  3819. for lt_tmp_nm in $lt_nm_to_check; do
  3820. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3821. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3822. IFS="$lt_save_ifs"
  3823. test -z "$ac_dir" && ac_dir=.
  3824. tmp_nm="$ac_dir/$lt_tmp_nm"
  3825. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3826. # Check to see if the nm accepts a BSD-compat flag.
  3827. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3828. # nm: unknown option "B" ignored
  3829. # Tru64's nm complains that /dev/null is an invalid object file
  3830. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3831. */dev/null* | *'Invalid file or object type'*)
  3832. lt_cv_path_NM="$tmp_nm -B"
  3833. break
  3834. ;;
  3835. *)
  3836. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3837. */dev/null*)
  3838. lt_cv_path_NM="$tmp_nm -p"
  3839. break
  3840. ;;
  3841. *)
  3842. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3843. continue # so that we can try to find one that supports BSD flags
  3844. ;;
  3845. esac
  3846. ;;
  3847. esac
  3848. fi
  3849. done
  3850. IFS="$lt_save_ifs"
  3851. done
  3852. : ${lt_cv_path_NM=no}
  3853. fi
  3854. fi
  3855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3856. $as_echo "$lt_cv_path_NM" >&6; }
  3857. if test "$lt_cv_path_NM" != "no"; then
  3858. NM="$lt_cv_path_NM"
  3859. else
  3860. # Didn't find any BSD compatible name lister, look for dumpbin.
  3861. if test -n "$DUMPBIN"; then :
  3862. # Let the user override the test.
  3863. else
  3864. if test -n "$ac_tool_prefix"; then
  3865. for ac_prog in dumpbin "link -dump"
  3866. do
  3867. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3868. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3870. $as_echo_n "checking for $ac_word... " >&6; }
  3871. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3872. $as_echo_n "(cached) " >&6
  3873. else
  3874. if test -n "$DUMPBIN"; then
  3875. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3876. else
  3877. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3878. for as_dir in $PATH
  3879. do
  3880. IFS=$as_save_IFS
  3881. test -z "$as_dir" && as_dir=.
  3882. for ac_exec_ext in '' $ac_executable_extensions; do
  3883. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3884. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3885. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3886. break 2
  3887. fi
  3888. done
  3889. done
  3890. IFS=$as_save_IFS
  3891. fi
  3892. fi
  3893. DUMPBIN=$ac_cv_prog_DUMPBIN
  3894. if test -n "$DUMPBIN"; then
  3895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3896. $as_echo "$DUMPBIN" >&6; }
  3897. else
  3898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3899. $as_echo "no" >&6; }
  3900. fi
  3901. test -n "$DUMPBIN" && break
  3902. done
  3903. fi
  3904. if test -z "$DUMPBIN"; then
  3905. ac_ct_DUMPBIN=$DUMPBIN
  3906. for ac_prog in dumpbin "link -dump"
  3907. do
  3908. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3909. set dummy $ac_prog; ac_word=$2
  3910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3911. $as_echo_n "checking for $ac_word... " >&6; }
  3912. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3913. $as_echo_n "(cached) " >&6
  3914. else
  3915. if test -n "$ac_ct_DUMPBIN"; then
  3916. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3917. else
  3918. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3919. for as_dir in $PATH
  3920. do
  3921. IFS=$as_save_IFS
  3922. test -z "$as_dir" && as_dir=.
  3923. for ac_exec_ext in '' $ac_executable_extensions; do
  3924. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3925. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3926. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3927. break 2
  3928. fi
  3929. done
  3930. done
  3931. IFS=$as_save_IFS
  3932. fi
  3933. fi
  3934. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3935. if test -n "$ac_ct_DUMPBIN"; then
  3936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3937. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3938. else
  3939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3940. $as_echo "no" >&6; }
  3941. fi
  3942. test -n "$ac_ct_DUMPBIN" && break
  3943. done
  3944. if test "x$ac_ct_DUMPBIN" = x; then
  3945. DUMPBIN=":"
  3946. else
  3947. case $cross_compiling:$ac_tool_warned in
  3948. yes:)
  3949. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3950. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3951. ac_tool_warned=yes ;;
  3952. esac
  3953. DUMPBIN=$ac_ct_DUMPBIN
  3954. fi
  3955. fi
  3956. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3957. *COFF*)
  3958. DUMPBIN="$DUMPBIN -symbols"
  3959. ;;
  3960. *)
  3961. DUMPBIN=:
  3962. ;;
  3963. esac
  3964. fi
  3965. if test "$DUMPBIN" != ":"; then
  3966. NM="$DUMPBIN"
  3967. fi
  3968. fi
  3969. test -z "$NM" && NM=nm
  3970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3971. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3972. if ${lt_cv_nm_interface+:} false; then :
  3973. $as_echo_n "(cached) " >&6
  3974. else
  3975. lt_cv_nm_interface="BSD nm"
  3976. echo "int some_variable = 0;" > conftest.$ac_ext
  3977. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3978. (eval "$ac_compile" 2>conftest.err)
  3979. cat conftest.err >&5
  3980. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3981. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3982. cat conftest.err >&5
  3983. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3984. cat conftest.out >&5
  3985. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3986. lt_cv_nm_interface="MS dumpbin"
  3987. fi
  3988. rm -f conftest*
  3989. fi
  3990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3991. $as_echo "$lt_cv_nm_interface" >&6; }
  3992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3993. $as_echo_n "checking whether ln -s works... " >&6; }
  3994. LN_S=$as_ln_s
  3995. if test "$LN_S" = "ln -s"; then
  3996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3997. $as_echo "yes" >&6; }
  3998. else
  3999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4000. $as_echo "no, using $LN_S" >&6; }
  4001. fi
  4002. # find the maximum length of command line arguments
  4003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4004. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4005. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4006. $as_echo_n "(cached) " >&6
  4007. else
  4008. i=0
  4009. teststring="ABCD"
  4010. case $build_os in
  4011. msdosdjgpp*)
  4012. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4013. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4014. # during glob expansion). Even if it were fixed, the result of this
  4015. # check would be larger than it should be.
  4016. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4017. ;;
  4018. gnu*)
  4019. # Under GNU Hurd, this test is not required because there is
  4020. # no limit to the length of command line arguments.
  4021. # Libtool will interpret -1 as no limit whatsoever
  4022. lt_cv_sys_max_cmd_len=-1;
  4023. ;;
  4024. cygwin* | mingw* | cegcc*)
  4025. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4026. # about 5 minutes as the teststring grows exponentially.
  4027. # Worse, since 9x/ME are not pre-emptively multitasking,
  4028. # you end up with a "frozen" computer, even though with patience
  4029. # the test eventually succeeds (with a max line length of 256k).
  4030. # Instead, let's just punt: use the minimum linelength reported by
  4031. # all of the supported platforms: 8192 (on NT/2K/XP).
  4032. lt_cv_sys_max_cmd_len=8192;
  4033. ;;
  4034. mint*)
  4035. # On MiNT this can take a long time and run out of memory.
  4036. lt_cv_sys_max_cmd_len=8192;
  4037. ;;
  4038. amigaos*)
  4039. # On AmigaOS with pdksh, this test takes hours, literally.
  4040. # So we just punt and use a minimum line length of 8192.
  4041. lt_cv_sys_max_cmd_len=8192;
  4042. ;;
  4043. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4044. # This has been around since 386BSD, at least. Likely further.
  4045. if test -x /sbin/sysctl; then
  4046. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4047. elif test -x /usr/sbin/sysctl; then
  4048. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4049. else
  4050. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4051. fi
  4052. # And add a safety zone
  4053. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4054. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4055. ;;
  4056. interix*)
  4057. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4058. lt_cv_sys_max_cmd_len=196608
  4059. ;;
  4060. os2*)
  4061. # The test takes a long time on OS/2.
  4062. lt_cv_sys_max_cmd_len=8192
  4063. ;;
  4064. osf*)
  4065. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4066. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4067. # nice to cause kernel panics so lets avoid the loop below.
  4068. # First set a reasonable default.
  4069. lt_cv_sys_max_cmd_len=16384
  4070. #
  4071. if test -x /sbin/sysconfig; then
  4072. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4073. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4074. esac
  4075. fi
  4076. ;;
  4077. sco3.2v5*)
  4078. lt_cv_sys_max_cmd_len=102400
  4079. ;;
  4080. sysv5* | sco5v6* | sysv4.2uw2*)
  4081. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4082. if test -n "$kargmax"; then
  4083. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4084. else
  4085. lt_cv_sys_max_cmd_len=32768
  4086. fi
  4087. ;;
  4088. *)
  4089. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4090. if test -n "$lt_cv_sys_max_cmd_len"; then
  4091. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4092. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4093. else
  4094. # Make teststring a little bigger before we do anything with it.
  4095. # a 1K string should be a reasonable start.
  4096. for i in 1 2 3 4 5 6 7 8 ; do
  4097. teststring=$teststring$teststring
  4098. done
  4099. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4100. # If test is not a shell built-in, we'll probably end up computing a
  4101. # maximum length that is only half of the actual maximum length, but
  4102. # we can't tell.
  4103. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4104. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4105. test $i != 17 # 1/2 MB should be enough
  4106. do
  4107. i=`expr $i + 1`
  4108. teststring=$teststring$teststring
  4109. done
  4110. # Only check the string length outside the loop.
  4111. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4112. teststring=
  4113. # Add a significant safety factor because C++ compilers can tack on
  4114. # massive amounts of additional arguments before passing them to the
  4115. # linker. It appears as though 1/2 is a usable value.
  4116. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4117. fi
  4118. ;;
  4119. esac
  4120. fi
  4121. if test -n $lt_cv_sys_max_cmd_len ; then
  4122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4123. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4124. else
  4125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4126. $as_echo "none" >&6; }
  4127. fi
  4128. max_cmd_len=$lt_cv_sys_max_cmd_len
  4129. : ${CP="cp -f"}
  4130. : ${MV="mv -f"}
  4131. : ${RM="rm -f"}
  4132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4133. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4134. # Try some XSI features
  4135. xsi_shell=no
  4136. ( _lt_dummy="a/b/c"
  4137. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4138. = c,a/b,b/c, \
  4139. && eval 'test $(( 1 + 1 )) -eq 2 \
  4140. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4141. && xsi_shell=yes
  4142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4143. $as_echo "$xsi_shell" >&6; }
  4144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4145. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4146. lt_shell_append=no
  4147. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4148. >/dev/null 2>&1 \
  4149. && lt_shell_append=yes
  4150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4151. $as_echo "$lt_shell_append" >&6; }
  4152. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4153. lt_unset=unset
  4154. else
  4155. lt_unset=false
  4156. fi
  4157. # test EBCDIC or ASCII
  4158. case `echo X|tr X '\101'` in
  4159. A) # ASCII based system
  4160. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4161. lt_SP2NL='tr \040 \012'
  4162. lt_NL2SP='tr \015\012 \040\040'
  4163. ;;
  4164. *) # EBCDIC based system
  4165. lt_SP2NL='tr \100 \n'
  4166. lt_NL2SP='tr \r\n \100\100'
  4167. ;;
  4168. esac
  4169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4170. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4171. if ${lt_cv_to_host_file_cmd+:} false; then :
  4172. $as_echo_n "(cached) " >&6
  4173. else
  4174. case $host in
  4175. *-*-mingw* )
  4176. case $build in
  4177. *-*-mingw* ) # actually msys
  4178. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4179. ;;
  4180. *-*-cygwin* )
  4181. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4182. ;;
  4183. * ) # otherwise, assume *nix
  4184. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4185. ;;
  4186. esac
  4187. ;;
  4188. *-*-cygwin* )
  4189. case $build in
  4190. *-*-mingw* ) # actually msys
  4191. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4192. ;;
  4193. *-*-cygwin* )
  4194. lt_cv_to_host_file_cmd=func_convert_file_noop
  4195. ;;
  4196. * ) # otherwise, assume *nix
  4197. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4198. ;;
  4199. esac
  4200. ;;
  4201. * ) # unhandled hosts (and "normal" native builds)
  4202. lt_cv_to_host_file_cmd=func_convert_file_noop
  4203. ;;
  4204. esac
  4205. fi
  4206. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4208. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4210. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4211. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4212. $as_echo_n "(cached) " >&6
  4213. else
  4214. #assume ordinary cross tools, or native build.
  4215. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4216. case $host in
  4217. *-*-mingw* )
  4218. case $build in
  4219. *-*-mingw* ) # actually msys
  4220. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4221. ;;
  4222. esac
  4223. ;;
  4224. esac
  4225. fi
  4226. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4228. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4230. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4231. if ${lt_cv_ld_reload_flag+:} false; then :
  4232. $as_echo_n "(cached) " >&6
  4233. else
  4234. lt_cv_ld_reload_flag='-r'
  4235. fi
  4236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4237. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4238. reload_flag=$lt_cv_ld_reload_flag
  4239. case $reload_flag in
  4240. "" | " "*) ;;
  4241. *) reload_flag=" $reload_flag" ;;
  4242. esac
  4243. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4244. case $host_os in
  4245. cygwin* | mingw* | pw32* | cegcc*)
  4246. if test "$GCC" != yes; then
  4247. reload_cmds=false
  4248. fi
  4249. ;;
  4250. darwin*)
  4251. if test "$GCC" = yes; then
  4252. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4253. else
  4254. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4255. fi
  4256. ;;
  4257. esac
  4258. if test -n "$ac_tool_prefix"; then
  4259. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4260. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4262. $as_echo_n "checking for $ac_word... " >&6; }
  4263. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4264. $as_echo_n "(cached) " >&6
  4265. else
  4266. if test -n "$OBJDUMP"; then
  4267. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4268. else
  4269. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4270. for as_dir in $PATH
  4271. do
  4272. IFS=$as_save_IFS
  4273. test -z "$as_dir" && as_dir=.
  4274. for ac_exec_ext in '' $ac_executable_extensions; do
  4275. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4276. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4277. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4278. break 2
  4279. fi
  4280. done
  4281. done
  4282. IFS=$as_save_IFS
  4283. fi
  4284. fi
  4285. OBJDUMP=$ac_cv_prog_OBJDUMP
  4286. if test -n "$OBJDUMP"; then
  4287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4288. $as_echo "$OBJDUMP" >&6; }
  4289. else
  4290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4291. $as_echo "no" >&6; }
  4292. fi
  4293. fi
  4294. if test -z "$ac_cv_prog_OBJDUMP"; then
  4295. ac_ct_OBJDUMP=$OBJDUMP
  4296. # Extract the first word of "objdump", so it can be a program name with args.
  4297. set dummy objdump; ac_word=$2
  4298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4299. $as_echo_n "checking for $ac_word... " >&6; }
  4300. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4301. $as_echo_n "(cached) " >&6
  4302. else
  4303. if test -n "$ac_ct_OBJDUMP"; then
  4304. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4305. else
  4306. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4307. for as_dir in $PATH
  4308. do
  4309. IFS=$as_save_IFS
  4310. test -z "$as_dir" && as_dir=.
  4311. for ac_exec_ext in '' $ac_executable_extensions; do
  4312. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4313. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4314. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4315. break 2
  4316. fi
  4317. done
  4318. done
  4319. IFS=$as_save_IFS
  4320. fi
  4321. fi
  4322. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4323. if test -n "$ac_ct_OBJDUMP"; then
  4324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4325. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4326. else
  4327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4328. $as_echo "no" >&6; }
  4329. fi
  4330. if test "x$ac_ct_OBJDUMP" = x; then
  4331. OBJDUMP="false"
  4332. else
  4333. case $cross_compiling:$ac_tool_warned in
  4334. yes:)
  4335. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4336. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4337. ac_tool_warned=yes ;;
  4338. esac
  4339. OBJDUMP=$ac_ct_OBJDUMP
  4340. fi
  4341. else
  4342. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4343. fi
  4344. test -z "$OBJDUMP" && OBJDUMP=objdump
  4345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4346. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4347. if ${lt_cv_deplibs_check_method+:} false; then :
  4348. $as_echo_n "(cached) " >&6
  4349. else
  4350. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4351. lt_cv_file_magic_test_file=
  4352. lt_cv_deplibs_check_method='unknown'
  4353. # Need to set the preceding variable on all platforms that support
  4354. # interlibrary dependencies.
  4355. # 'none' -- dependencies not supported.
  4356. # `unknown' -- same as none, but documents that we really don't know.
  4357. # 'pass_all' -- all dependencies passed with no checks.
  4358. # 'test_compile' -- check by making test program.
  4359. # 'file_magic [[regex]]' -- check by looking for files in library path
  4360. # which responds to the $file_magic_cmd with a given extended regex.
  4361. # If you have `file' or equivalent on your system and you're not sure
  4362. # whether `pass_all' will *always* work, you probably want this one.
  4363. case $host_os in
  4364. aix[4-9]*)
  4365. lt_cv_deplibs_check_method=pass_all
  4366. ;;
  4367. beos*)
  4368. lt_cv_deplibs_check_method=pass_all
  4369. ;;
  4370. bsdi[45]*)
  4371. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4372. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4373. lt_cv_file_magic_test_file=/shlib/libc.so
  4374. ;;
  4375. cygwin*)
  4376. # func_win32_libid is a shell function defined in ltmain.sh
  4377. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4378. lt_cv_file_magic_cmd='func_win32_libid'
  4379. lt_cv_deplibs_check_method=pass_all
  4380. ;;
  4381. mingw* | pw32*)
  4382. # Base MSYS/MinGW do not provide the 'file' command needed by
  4383. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4384. # unless we find 'file', for example because we are cross-compiling.
  4385. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4386. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4387. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4388. lt_cv_file_magic_cmd='func_win32_libid'
  4389. else
  4390. # Keep this pattern in sync with the one in func_win32_libid.
  4391. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4392. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4393. fi
  4394. lt_cv_deplibs_check_method=pass_all
  4395. ;;
  4396. cegcc*)
  4397. # use the weaker test based on 'objdump'. See mingw*.
  4398. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4399. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4400. ;;
  4401. darwin* | rhapsody*)
  4402. lt_cv_deplibs_check_method=pass_all
  4403. ;;
  4404. freebsd* | dragonfly*)
  4405. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4406. case $host_cpu in
  4407. i*86 )
  4408. # Not sure whether the presence of OpenBSD here was a mistake.
  4409. # Let's accept both of them until this is cleared up.
  4410. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4411. lt_cv_file_magic_cmd=/usr/bin/file
  4412. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4413. ;;
  4414. esac
  4415. else
  4416. lt_cv_deplibs_check_method=pass_all
  4417. fi
  4418. ;;
  4419. gnu*)
  4420. lt_cv_deplibs_check_method=pass_all
  4421. ;;
  4422. haiku*)
  4423. lt_cv_deplibs_check_method=pass_all
  4424. ;;
  4425. hpux10.20* | hpux11*)
  4426. lt_cv_file_magic_cmd=/usr/bin/file
  4427. case $host_cpu in
  4428. ia64*)
  4429. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4430. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4431. ;;
  4432. hppa*64*)
  4433. 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]'
  4434. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4435. ;;
  4436. *)
  4437. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4438. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4439. ;;
  4440. esac
  4441. ;;
  4442. interix[3-9]*)
  4443. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4444. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4445. ;;
  4446. irix5* | irix6* | nonstopux*)
  4447. case $LD in
  4448. *-32|*"-32 ") libmagic=32-bit;;
  4449. *-n32|*"-n32 ") libmagic=N32;;
  4450. *-64|*"-64 ") libmagic=64-bit;;
  4451. *) libmagic=never-match;;
  4452. esac
  4453. lt_cv_deplibs_check_method=pass_all
  4454. ;;
  4455. # This must be glibc/ELF.
  4456. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4457. lt_cv_deplibs_check_method=pass_all
  4458. ;;
  4459. netbsd*)
  4460. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4461. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4462. else
  4463. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4464. fi
  4465. ;;
  4466. newos6*)
  4467. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4468. lt_cv_file_magic_cmd=/usr/bin/file
  4469. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4470. ;;
  4471. *nto* | *qnx*)
  4472. lt_cv_deplibs_check_method=pass_all
  4473. ;;
  4474. openbsd*)
  4475. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4476. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4477. else
  4478. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4479. fi
  4480. ;;
  4481. osf3* | osf4* | osf5*)
  4482. lt_cv_deplibs_check_method=pass_all
  4483. ;;
  4484. rdos*)
  4485. lt_cv_deplibs_check_method=pass_all
  4486. ;;
  4487. solaris*)
  4488. lt_cv_deplibs_check_method=pass_all
  4489. ;;
  4490. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4491. lt_cv_deplibs_check_method=pass_all
  4492. ;;
  4493. sysv4 | sysv4.3*)
  4494. case $host_vendor in
  4495. motorola)
  4496. 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]'
  4497. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4498. ;;
  4499. ncr)
  4500. lt_cv_deplibs_check_method=pass_all
  4501. ;;
  4502. sequent)
  4503. lt_cv_file_magic_cmd='/bin/file'
  4504. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4505. ;;
  4506. sni)
  4507. lt_cv_file_magic_cmd='/bin/file'
  4508. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4509. lt_cv_file_magic_test_file=/lib/libc.so
  4510. ;;
  4511. siemens)
  4512. lt_cv_deplibs_check_method=pass_all
  4513. ;;
  4514. pc)
  4515. lt_cv_deplibs_check_method=pass_all
  4516. ;;
  4517. esac
  4518. ;;
  4519. tpf*)
  4520. lt_cv_deplibs_check_method=pass_all
  4521. ;;
  4522. esac
  4523. fi
  4524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4525. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4526. file_magic_glob=
  4527. want_nocaseglob=no
  4528. if test "$build" = "$host"; then
  4529. case $host_os in
  4530. mingw* | pw32*)
  4531. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4532. want_nocaseglob=yes
  4533. else
  4534. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4535. fi
  4536. ;;
  4537. esac
  4538. fi
  4539. file_magic_cmd=$lt_cv_file_magic_cmd
  4540. deplibs_check_method=$lt_cv_deplibs_check_method
  4541. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4542. if test -n "$ac_tool_prefix"; then
  4543. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4544. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4546. $as_echo_n "checking for $ac_word... " >&6; }
  4547. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4548. $as_echo_n "(cached) " >&6
  4549. else
  4550. if test -n "$DLLTOOL"; then
  4551. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4552. else
  4553. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4554. for as_dir in $PATH
  4555. do
  4556. IFS=$as_save_IFS
  4557. test -z "$as_dir" && as_dir=.
  4558. for ac_exec_ext in '' $ac_executable_extensions; do
  4559. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4560. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4561. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4562. break 2
  4563. fi
  4564. done
  4565. done
  4566. IFS=$as_save_IFS
  4567. fi
  4568. fi
  4569. DLLTOOL=$ac_cv_prog_DLLTOOL
  4570. if test -n "$DLLTOOL"; then
  4571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4572. $as_echo "$DLLTOOL" >&6; }
  4573. else
  4574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4575. $as_echo "no" >&6; }
  4576. fi
  4577. fi
  4578. if test -z "$ac_cv_prog_DLLTOOL"; then
  4579. ac_ct_DLLTOOL=$DLLTOOL
  4580. # Extract the first word of "dlltool", so it can be a program name with args.
  4581. set dummy dlltool; ac_word=$2
  4582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4583. $as_echo_n "checking for $ac_word... " >&6; }
  4584. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4585. $as_echo_n "(cached) " >&6
  4586. else
  4587. if test -n "$ac_ct_DLLTOOL"; then
  4588. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4589. else
  4590. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4591. for as_dir in $PATH
  4592. do
  4593. IFS=$as_save_IFS
  4594. test -z "$as_dir" && as_dir=.
  4595. for ac_exec_ext in '' $ac_executable_extensions; do
  4596. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4597. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4598. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4599. break 2
  4600. fi
  4601. done
  4602. done
  4603. IFS=$as_save_IFS
  4604. fi
  4605. fi
  4606. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4607. if test -n "$ac_ct_DLLTOOL"; then
  4608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4609. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4610. else
  4611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4612. $as_echo "no" >&6; }
  4613. fi
  4614. if test "x$ac_ct_DLLTOOL" = x; then
  4615. DLLTOOL="false"
  4616. else
  4617. case $cross_compiling:$ac_tool_warned in
  4618. yes:)
  4619. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4620. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4621. ac_tool_warned=yes ;;
  4622. esac
  4623. DLLTOOL=$ac_ct_DLLTOOL
  4624. fi
  4625. else
  4626. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4627. fi
  4628. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4630. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4631. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4632. $as_echo_n "(cached) " >&6
  4633. else
  4634. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4635. case $host_os in
  4636. cygwin* | mingw* | pw32* | cegcc*)
  4637. # two different shell functions defined in ltmain.sh
  4638. # decide which to use based on capabilities of $DLLTOOL
  4639. case `$DLLTOOL --help 2>&1` in
  4640. *--identify-strict*)
  4641. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4642. ;;
  4643. *)
  4644. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4645. ;;
  4646. esac
  4647. ;;
  4648. *)
  4649. # fallback: assume linklib IS sharedlib
  4650. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4651. ;;
  4652. esac
  4653. fi
  4654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4655. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4656. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4657. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4658. if test -n "$ac_tool_prefix"; then
  4659. for ac_prog in ar
  4660. do
  4661. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4662. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4664. $as_echo_n "checking for $ac_word... " >&6; }
  4665. if ${ac_cv_prog_AR+:} false; then :
  4666. $as_echo_n "(cached) " >&6
  4667. else
  4668. if test -n "$AR"; then
  4669. ac_cv_prog_AR="$AR" # Let the user override the test.
  4670. else
  4671. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4672. for as_dir in $PATH
  4673. do
  4674. IFS=$as_save_IFS
  4675. test -z "$as_dir" && as_dir=.
  4676. for ac_exec_ext in '' $ac_executable_extensions; do
  4677. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4678. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4679. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4680. break 2
  4681. fi
  4682. done
  4683. done
  4684. IFS=$as_save_IFS
  4685. fi
  4686. fi
  4687. AR=$ac_cv_prog_AR
  4688. if test -n "$AR"; then
  4689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4690. $as_echo "$AR" >&6; }
  4691. else
  4692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4693. $as_echo "no" >&6; }
  4694. fi
  4695. test -n "$AR" && break
  4696. done
  4697. fi
  4698. if test -z "$AR"; then
  4699. ac_ct_AR=$AR
  4700. for ac_prog in ar
  4701. do
  4702. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4703. set dummy $ac_prog; ac_word=$2
  4704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4705. $as_echo_n "checking for $ac_word... " >&6; }
  4706. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4707. $as_echo_n "(cached) " >&6
  4708. else
  4709. if test -n "$ac_ct_AR"; then
  4710. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4711. else
  4712. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4713. for as_dir in $PATH
  4714. do
  4715. IFS=$as_save_IFS
  4716. test -z "$as_dir" && as_dir=.
  4717. for ac_exec_ext in '' $ac_executable_extensions; do
  4718. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4719. ac_cv_prog_ac_ct_AR="$ac_prog"
  4720. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4721. break 2
  4722. fi
  4723. done
  4724. done
  4725. IFS=$as_save_IFS
  4726. fi
  4727. fi
  4728. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4729. if test -n "$ac_ct_AR"; then
  4730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4731. $as_echo "$ac_ct_AR" >&6; }
  4732. else
  4733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4734. $as_echo "no" >&6; }
  4735. fi
  4736. test -n "$ac_ct_AR" && break
  4737. done
  4738. if test "x$ac_ct_AR" = x; then
  4739. AR="false"
  4740. else
  4741. case $cross_compiling:$ac_tool_warned in
  4742. yes:)
  4743. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4744. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4745. ac_tool_warned=yes ;;
  4746. esac
  4747. AR=$ac_ct_AR
  4748. fi
  4749. fi
  4750. : ${AR=ar}
  4751. : ${AR_FLAGS=cru}
  4752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4753. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4754. if ${lt_cv_ar_at_file+:} false; then :
  4755. $as_echo_n "(cached) " >&6
  4756. else
  4757. lt_cv_ar_at_file=no
  4758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4759. /* end confdefs.h. */
  4760. int
  4761. main ()
  4762. {
  4763. ;
  4764. return 0;
  4765. }
  4766. _ACEOF
  4767. if ac_fn_c_try_compile "$LINENO"; then :
  4768. echo conftest.$ac_objext > conftest.lst
  4769. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4770. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4771. (eval $lt_ar_try) 2>&5
  4772. ac_status=$?
  4773. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4774. test $ac_status = 0; }
  4775. if test "$ac_status" -eq 0; then
  4776. # Ensure the archiver fails upon bogus file names.
  4777. rm -f conftest.$ac_objext libconftest.a
  4778. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4779. (eval $lt_ar_try) 2>&5
  4780. ac_status=$?
  4781. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4782. test $ac_status = 0; }
  4783. if test "$ac_status" -ne 0; then
  4784. lt_cv_ar_at_file=@
  4785. fi
  4786. fi
  4787. rm -f conftest.* libconftest.a
  4788. fi
  4789. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4790. fi
  4791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4792. $as_echo "$lt_cv_ar_at_file" >&6; }
  4793. if test "x$lt_cv_ar_at_file" = xno; then
  4794. archiver_list_spec=
  4795. else
  4796. archiver_list_spec=$lt_cv_ar_at_file
  4797. fi
  4798. if test -n "$ac_tool_prefix"; then
  4799. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4800. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4802. $as_echo_n "checking for $ac_word... " >&6; }
  4803. if ${ac_cv_prog_STRIP+:} false; then :
  4804. $as_echo_n "(cached) " >&6
  4805. else
  4806. if test -n "$STRIP"; then
  4807. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4808. else
  4809. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4810. for as_dir in $PATH
  4811. do
  4812. IFS=$as_save_IFS
  4813. test -z "$as_dir" && as_dir=.
  4814. for ac_exec_ext in '' $ac_executable_extensions; do
  4815. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4816. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4817. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4818. break 2
  4819. fi
  4820. done
  4821. done
  4822. IFS=$as_save_IFS
  4823. fi
  4824. fi
  4825. STRIP=$ac_cv_prog_STRIP
  4826. if test -n "$STRIP"; then
  4827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4828. $as_echo "$STRIP" >&6; }
  4829. else
  4830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4831. $as_echo "no" >&6; }
  4832. fi
  4833. fi
  4834. if test -z "$ac_cv_prog_STRIP"; then
  4835. ac_ct_STRIP=$STRIP
  4836. # Extract the first word of "strip", so it can be a program name with args.
  4837. set dummy strip; ac_word=$2
  4838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4839. $as_echo_n "checking for $ac_word... " >&6; }
  4840. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4841. $as_echo_n "(cached) " >&6
  4842. else
  4843. if test -n "$ac_ct_STRIP"; then
  4844. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4845. else
  4846. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4847. for as_dir in $PATH
  4848. do
  4849. IFS=$as_save_IFS
  4850. test -z "$as_dir" && as_dir=.
  4851. for ac_exec_ext in '' $ac_executable_extensions; do
  4852. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4853. ac_cv_prog_ac_ct_STRIP="strip"
  4854. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4855. break 2
  4856. fi
  4857. done
  4858. done
  4859. IFS=$as_save_IFS
  4860. fi
  4861. fi
  4862. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4863. if test -n "$ac_ct_STRIP"; then
  4864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4865. $as_echo "$ac_ct_STRIP" >&6; }
  4866. else
  4867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4868. $as_echo "no" >&6; }
  4869. fi
  4870. if test "x$ac_ct_STRIP" = x; then
  4871. STRIP=":"
  4872. else
  4873. case $cross_compiling:$ac_tool_warned in
  4874. yes:)
  4875. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4876. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4877. ac_tool_warned=yes ;;
  4878. esac
  4879. STRIP=$ac_ct_STRIP
  4880. fi
  4881. else
  4882. STRIP="$ac_cv_prog_STRIP"
  4883. fi
  4884. test -z "$STRIP" && STRIP=:
  4885. if test -n "$ac_tool_prefix"; then
  4886. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4887. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4889. $as_echo_n "checking for $ac_word... " >&6; }
  4890. if ${ac_cv_prog_RANLIB+:} false; then :
  4891. $as_echo_n "(cached) " >&6
  4892. else
  4893. if test -n "$RANLIB"; then
  4894. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4895. else
  4896. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4897. for as_dir in $PATH
  4898. do
  4899. IFS=$as_save_IFS
  4900. test -z "$as_dir" && as_dir=.
  4901. for ac_exec_ext in '' $ac_executable_extensions; do
  4902. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4903. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4904. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4905. break 2
  4906. fi
  4907. done
  4908. done
  4909. IFS=$as_save_IFS
  4910. fi
  4911. fi
  4912. RANLIB=$ac_cv_prog_RANLIB
  4913. if test -n "$RANLIB"; then
  4914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4915. $as_echo "$RANLIB" >&6; }
  4916. else
  4917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4918. $as_echo "no" >&6; }
  4919. fi
  4920. fi
  4921. if test -z "$ac_cv_prog_RANLIB"; then
  4922. ac_ct_RANLIB=$RANLIB
  4923. # Extract the first word of "ranlib", so it can be a program name with args.
  4924. set dummy ranlib; ac_word=$2
  4925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4926. $as_echo_n "checking for $ac_word... " >&6; }
  4927. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4928. $as_echo_n "(cached) " >&6
  4929. else
  4930. if test -n "$ac_ct_RANLIB"; then
  4931. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4932. else
  4933. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4934. for as_dir in $PATH
  4935. do
  4936. IFS=$as_save_IFS
  4937. test -z "$as_dir" && as_dir=.
  4938. for ac_exec_ext in '' $ac_executable_extensions; do
  4939. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4940. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4941. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4942. break 2
  4943. fi
  4944. done
  4945. done
  4946. IFS=$as_save_IFS
  4947. fi
  4948. fi
  4949. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4950. if test -n "$ac_ct_RANLIB"; then
  4951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4952. $as_echo "$ac_ct_RANLIB" >&6; }
  4953. else
  4954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4955. $as_echo "no" >&6; }
  4956. fi
  4957. if test "x$ac_ct_RANLIB" = x; then
  4958. RANLIB=":"
  4959. else
  4960. case $cross_compiling:$ac_tool_warned in
  4961. yes:)
  4962. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4963. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4964. ac_tool_warned=yes ;;
  4965. esac
  4966. RANLIB=$ac_ct_RANLIB
  4967. fi
  4968. else
  4969. RANLIB="$ac_cv_prog_RANLIB"
  4970. fi
  4971. test -z "$RANLIB" && RANLIB=:
  4972. # Determine commands to create old-style static archives.
  4973. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4974. old_postinstall_cmds='chmod 644 $oldlib'
  4975. old_postuninstall_cmds=
  4976. if test -n "$RANLIB"; then
  4977. case $host_os in
  4978. openbsd*)
  4979. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4980. ;;
  4981. *)
  4982. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4983. ;;
  4984. esac
  4985. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4986. fi
  4987. case $host_os in
  4988. darwin*)
  4989. lock_old_archive_extraction=yes ;;
  4990. *)
  4991. lock_old_archive_extraction=no ;;
  4992. esac
  4993. for ac_prog in gawk mawk nawk awk
  4994. do
  4995. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4996. set dummy $ac_prog; ac_word=$2
  4997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4998. $as_echo_n "checking for $ac_word... " >&6; }
  4999. if ${ac_cv_prog_AWK+:} false; then :
  5000. $as_echo_n "(cached) " >&6
  5001. else
  5002. if test -n "$AWK"; then
  5003. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5004. else
  5005. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5006. for as_dir in $PATH
  5007. do
  5008. IFS=$as_save_IFS
  5009. test -z "$as_dir" && as_dir=.
  5010. for ac_exec_ext in '' $ac_executable_extensions; do
  5011. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5012. ac_cv_prog_AWK="$ac_prog"
  5013. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5014. break 2
  5015. fi
  5016. done
  5017. done
  5018. IFS=$as_save_IFS
  5019. fi
  5020. fi
  5021. AWK=$ac_cv_prog_AWK
  5022. if test -n "$AWK"; then
  5023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5024. $as_echo "$AWK" >&6; }
  5025. else
  5026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5027. $as_echo "no" >&6; }
  5028. fi
  5029. test -n "$AWK" && break
  5030. done
  5031. # If no C compiler was specified, use CC.
  5032. LTCC=${LTCC-"$CC"}
  5033. # If no C compiler flags were specified, use CFLAGS.
  5034. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5035. # Allow CC to be a program name with arguments.
  5036. compiler=$CC
  5037. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5039. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5040. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5041. $as_echo_n "(cached) " >&6
  5042. else
  5043. # These are sane defaults that work on at least a few old systems.
  5044. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5045. # Character class describing NM global symbol codes.
  5046. symcode='[BCDEGRST]'
  5047. # Regexp to match symbols that can be accessed directly from C.
  5048. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5049. # Define system-specific variables.
  5050. case $host_os in
  5051. aix*)
  5052. symcode='[BCDT]'
  5053. ;;
  5054. cygwin* | mingw* | pw32* | cegcc*)
  5055. symcode='[ABCDGISTW]'
  5056. ;;
  5057. hpux*)
  5058. if test "$host_cpu" = ia64; then
  5059. symcode='[ABCDEGRST]'
  5060. fi
  5061. ;;
  5062. irix* | nonstopux*)
  5063. symcode='[BCDEGRST]'
  5064. ;;
  5065. osf*)
  5066. symcode='[BCDEGQRST]'
  5067. ;;
  5068. solaris*)
  5069. symcode='[BDRT]'
  5070. ;;
  5071. sco3.2v5*)
  5072. symcode='[DT]'
  5073. ;;
  5074. sysv4.2uw2*)
  5075. symcode='[DT]'
  5076. ;;
  5077. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5078. symcode='[ABDT]'
  5079. ;;
  5080. sysv4)
  5081. symcode='[DFNSTU]'
  5082. ;;
  5083. esac
  5084. # If we're using GNU nm, then use its standard symbol codes.
  5085. case `$NM -V 2>&1` in
  5086. *GNU* | *'with BFD'*)
  5087. symcode='[ABCDGIRSTW]' ;;
  5088. esac
  5089. # Transform an extracted symbol line into a proper C declaration.
  5090. # Some systems (esp. on ia64) link data and code symbols differently,
  5091. # so use this general approach.
  5092. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5093. # Transform an extracted symbol line into symbol name and symbol address
  5094. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5095. 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'"
  5096. # Handle CRLF in mingw tool chain
  5097. opt_cr=
  5098. case $build_os in
  5099. mingw*)
  5100. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5101. ;;
  5102. esac
  5103. # Try without a prefix underscore, then with it.
  5104. for ac_symprfx in "" "_"; do
  5105. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5106. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5107. # Write the raw and C identifiers.
  5108. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5109. # Fake it for dumpbin and say T for any non-static function
  5110. # and D for any global variable.
  5111. # Also find C++ and __fastcall symbols from MSVC++,
  5112. # which start with @ or ?.
  5113. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5114. " {last_section=section; section=\$ 3};"\
  5115. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5116. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5117. " \$ 0!~/External *\|/{next};"\
  5118. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5119. " {if(hide[section]) next};"\
  5120. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5121. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5122. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5123. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5124. " ' prfx=^$ac_symprfx"
  5125. else
  5126. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5127. fi
  5128. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5129. # Check to see that the pipe works correctly.
  5130. pipe_works=no
  5131. rm -f conftest*
  5132. cat > conftest.$ac_ext <<_LT_EOF
  5133. #ifdef __cplusplus
  5134. extern "C" {
  5135. #endif
  5136. char nm_test_var;
  5137. void nm_test_func(void);
  5138. void nm_test_func(void){}
  5139. #ifdef __cplusplus
  5140. }
  5141. #endif
  5142. int main(){nm_test_var='a';nm_test_func();return(0);}
  5143. _LT_EOF
  5144. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5145. (eval $ac_compile) 2>&5
  5146. ac_status=$?
  5147. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5148. test $ac_status = 0; }; then
  5149. # Now try to grab the symbols.
  5150. nlist=conftest.nm
  5151. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5152. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5153. ac_status=$?
  5154. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5155. test $ac_status = 0; } && test -s "$nlist"; then
  5156. # Try sorting and uniquifying the output.
  5157. if sort "$nlist" | uniq > "$nlist"T; then
  5158. mv -f "$nlist"T "$nlist"
  5159. else
  5160. rm -f "$nlist"T
  5161. fi
  5162. # Make sure that we snagged all the symbols we need.
  5163. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5164. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5165. cat <<_LT_EOF > conftest.$ac_ext
  5166. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5167. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5168. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5169. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5170. # define LT_DLSYM_CONST
  5171. #elif defined(__osf__)
  5172. /* This system does not cope well with relocations in const data. */
  5173. # define LT_DLSYM_CONST
  5174. #else
  5175. # define LT_DLSYM_CONST const
  5176. #endif
  5177. #ifdef __cplusplus
  5178. extern "C" {
  5179. #endif
  5180. _LT_EOF
  5181. # Now generate the symbol file.
  5182. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5183. cat <<_LT_EOF >> conftest.$ac_ext
  5184. /* The mapping between symbol names and symbols. */
  5185. LT_DLSYM_CONST struct {
  5186. const char *name;
  5187. void *address;
  5188. }
  5189. lt__PROGRAM__LTX_preloaded_symbols[] =
  5190. {
  5191. { "@PROGRAM@", (void *) 0 },
  5192. _LT_EOF
  5193. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5194. cat <<\_LT_EOF >> conftest.$ac_ext
  5195. {0, (void *) 0}
  5196. };
  5197. /* This works around a problem in FreeBSD linker */
  5198. #ifdef FREEBSD_WORKAROUND
  5199. static const void *lt_preloaded_setup() {
  5200. return lt__PROGRAM__LTX_preloaded_symbols;
  5201. }
  5202. #endif
  5203. #ifdef __cplusplus
  5204. }
  5205. #endif
  5206. _LT_EOF
  5207. # Now try linking the two files.
  5208. mv conftest.$ac_objext conftstm.$ac_objext
  5209. lt_globsym_save_LIBS=$LIBS
  5210. lt_globsym_save_CFLAGS=$CFLAGS
  5211. LIBS="conftstm.$ac_objext"
  5212. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5213. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5214. (eval $ac_link) 2>&5
  5215. ac_status=$?
  5216. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5217. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5218. pipe_works=yes
  5219. fi
  5220. LIBS=$lt_globsym_save_LIBS
  5221. CFLAGS=$lt_globsym_save_CFLAGS
  5222. else
  5223. echo "cannot find nm_test_func in $nlist" >&5
  5224. fi
  5225. else
  5226. echo "cannot find nm_test_var in $nlist" >&5
  5227. fi
  5228. else
  5229. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5230. fi
  5231. else
  5232. echo "$progname: failed program was:" >&5
  5233. cat conftest.$ac_ext >&5
  5234. fi
  5235. rm -rf conftest* conftst*
  5236. # Do not use the global_symbol_pipe unless it works.
  5237. if test "$pipe_works" = yes; then
  5238. break
  5239. else
  5240. lt_cv_sys_global_symbol_pipe=
  5241. fi
  5242. done
  5243. fi
  5244. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5245. lt_cv_sys_global_symbol_to_cdecl=
  5246. fi
  5247. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5249. $as_echo "failed" >&6; }
  5250. else
  5251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5252. $as_echo "ok" >&6; }
  5253. fi
  5254. # Response file support.
  5255. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5256. nm_file_list_spec='@'
  5257. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5258. nm_file_list_spec='@'
  5259. fi
  5260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5261. $as_echo_n "checking for sysroot... " >&6; }
  5262. # Check whether --with-sysroot was given.
  5263. if test "${with_sysroot+set}" = set; then :
  5264. withval=$with_sysroot;
  5265. else
  5266. with_sysroot=no
  5267. fi
  5268. lt_sysroot=
  5269. case ${with_sysroot} in #(
  5270. yes)
  5271. if test "$GCC" = yes; then
  5272. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5273. fi
  5274. ;; #(
  5275. /*)
  5276. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5277. ;; #(
  5278. no|'')
  5279. ;; #(
  5280. *)
  5281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5282. $as_echo "${with_sysroot}" >&6; }
  5283. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5284. ;;
  5285. esac
  5286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5287. $as_echo "${lt_sysroot:-no}" >&6; }
  5288. # Check whether --enable-libtool-lock was given.
  5289. if test "${enable_libtool_lock+set}" = set; then :
  5290. enableval=$enable_libtool_lock;
  5291. fi
  5292. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5293. # Some flags need to be propagated to the compiler or linker for good
  5294. # libtool support.
  5295. case $host in
  5296. ia64-*-hpux*)
  5297. # Find out which ABI we are using.
  5298. echo 'int i;' > conftest.$ac_ext
  5299. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5300. (eval $ac_compile) 2>&5
  5301. ac_status=$?
  5302. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5303. test $ac_status = 0; }; then
  5304. case `/usr/bin/file conftest.$ac_objext` in
  5305. *ELF-32*)
  5306. HPUX_IA64_MODE="32"
  5307. ;;
  5308. *ELF-64*)
  5309. HPUX_IA64_MODE="64"
  5310. ;;
  5311. esac
  5312. fi
  5313. rm -rf conftest*
  5314. ;;
  5315. *-*-irix6*)
  5316. # Find out which ABI we are using.
  5317. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5318. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5319. (eval $ac_compile) 2>&5
  5320. ac_status=$?
  5321. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5322. test $ac_status = 0; }; then
  5323. if test "$lt_cv_prog_gnu_ld" = yes; then
  5324. case `/usr/bin/file conftest.$ac_objext` in
  5325. *32-bit*)
  5326. LD="${LD-ld} -melf32bsmip"
  5327. ;;
  5328. *N32*)
  5329. LD="${LD-ld} -melf32bmipn32"
  5330. ;;
  5331. *64-bit*)
  5332. LD="${LD-ld} -melf64bmip"
  5333. ;;
  5334. esac
  5335. else
  5336. case `/usr/bin/file conftest.$ac_objext` in
  5337. *32-bit*)
  5338. LD="${LD-ld} -32"
  5339. ;;
  5340. *N32*)
  5341. LD="${LD-ld} -n32"
  5342. ;;
  5343. *64-bit*)
  5344. LD="${LD-ld} -64"
  5345. ;;
  5346. esac
  5347. fi
  5348. fi
  5349. rm -rf conftest*
  5350. ;;
  5351. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5352. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5353. # Find out which ABI we are using.
  5354. echo 'int i;' > conftest.$ac_ext
  5355. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5356. (eval $ac_compile) 2>&5
  5357. ac_status=$?
  5358. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5359. test $ac_status = 0; }; then
  5360. case `/usr/bin/file conftest.o` in
  5361. *32-bit*)
  5362. case $host in
  5363. x86_64-*kfreebsd*-gnu)
  5364. LD="${LD-ld} -m elf_i386_fbsd"
  5365. ;;
  5366. x86_64-*linux*)
  5367. LD="${LD-ld} -m elf_i386"
  5368. ;;
  5369. ppc64-*linux*|powerpc64-*linux*)
  5370. LD="${LD-ld} -m elf32ppclinux"
  5371. ;;
  5372. s390x-*linux*)
  5373. LD="${LD-ld} -m elf_s390"
  5374. ;;
  5375. sparc64-*linux*)
  5376. LD="${LD-ld} -m elf32_sparc"
  5377. ;;
  5378. esac
  5379. ;;
  5380. *64-bit*)
  5381. case $host in
  5382. x86_64-*kfreebsd*-gnu)
  5383. LD="${LD-ld} -m elf_x86_64_fbsd"
  5384. ;;
  5385. x86_64-*linux*)
  5386. LD="${LD-ld} -m elf_x86_64"
  5387. ;;
  5388. powerpc64le-*linux*)
  5389. LD="${LD-ld} -m elf64lppc"
  5390. ;;
  5391. powerpc64-*linux*)
  5392. LD="${LD-ld} -m elf64ppc"
  5393. ;;
  5394. s390*-*linux*|s390*-*tpf*)
  5395. LD="${LD-ld} -m elf64_s390"
  5396. ;;
  5397. sparc*-*linux*)
  5398. LD="${LD-ld} -m elf64_sparc"
  5399. ;;
  5400. esac
  5401. ;;
  5402. esac
  5403. fi
  5404. rm -rf conftest*
  5405. ;;
  5406. *-*-sco3.2v5*)
  5407. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5408. SAVE_CFLAGS="$CFLAGS"
  5409. CFLAGS="$CFLAGS -belf"
  5410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5411. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5412. if ${lt_cv_cc_needs_belf+:} false; then :
  5413. $as_echo_n "(cached) " >&6
  5414. else
  5415. ac_ext=c
  5416. ac_cpp='$CPP $CPPFLAGS'
  5417. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5418. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5419. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5421. /* end confdefs.h. */
  5422. int
  5423. main ()
  5424. {
  5425. ;
  5426. return 0;
  5427. }
  5428. _ACEOF
  5429. if ac_fn_c_try_link "$LINENO"; then :
  5430. lt_cv_cc_needs_belf=yes
  5431. else
  5432. lt_cv_cc_needs_belf=no
  5433. fi
  5434. rm -f core conftest.err conftest.$ac_objext \
  5435. conftest$ac_exeext conftest.$ac_ext
  5436. ac_ext=c
  5437. ac_cpp='$CPP $CPPFLAGS'
  5438. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5439. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5440. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5441. fi
  5442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5443. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5444. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5445. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5446. CFLAGS="$SAVE_CFLAGS"
  5447. fi
  5448. ;;
  5449. *-*solaris*)
  5450. # Find out which ABI we are using.
  5451. echo 'int i;' > conftest.$ac_ext
  5452. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5453. (eval $ac_compile) 2>&5
  5454. ac_status=$?
  5455. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5456. test $ac_status = 0; }; then
  5457. case `/usr/bin/file conftest.o` in
  5458. *64-bit*)
  5459. case $lt_cv_prog_gnu_ld in
  5460. yes*)
  5461. case $host in
  5462. i?86-*-solaris*)
  5463. LD="${LD-ld} -m elf_x86_64"
  5464. ;;
  5465. sparc*-*-solaris*)
  5466. LD="${LD-ld} -m elf64_sparc"
  5467. ;;
  5468. esac
  5469. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5470. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5471. LD="${LD-ld}_sol2"
  5472. fi
  5473. ;;
  5474. *)
  5475. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5476. LD="${LD-ld} -64"
  5477. fi
  5478. ;;
  5479. esac
  5480. ;;
  5481. esac
  5482. fi
  5483. rm -rf conftest*
  5484. ;;
  5485. esac
  5486. need_locks="$enable_libtool_lock"
  5487. if test -n "$ac_tool_prefix"; then
  5488. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5489. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5491. $as_echo_n "checking for $ac_word... " >&6; }
  5492. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5493. $as_echo_n "(cached) " >&6
  5494. else
  5495. if test -n "$MANIFEST_TOOL"; then
  5496. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5497. else
  5498. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5499. for as_dir in $PATH
  5500. do
  5501. IFS=$as_save_IFS
  5502. test -z "$as_dir" && as_dir=.
  5503. for ac_exec_ext in '' $ac_executable_extensions; do
  5504. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5505. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5506. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5507. break 2
  5508. fi
  5509. done
  5510. done
  5511. IFS=$as_save_IFS
  5512. fi
  5513. fi
  5514. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5515. if test -n "$MANIFEST_TOOL"; then
  5516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5517. $as_echo "$MANIFEST_TOOL" >&6; }
  5518. else
  5519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5520. $as_echo "no" >&6; }
  5521. fi
  5522. fi
  5523. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5524. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5525. # Extract the first word of "mt", so it can be a program name with args.
  5526. set dummy mt; ac_word=$2
  5527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5528. $as_echo_n "checking for $ac_word... " >&6; }
  5529. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5530. $as_echo_n "(cached) " >&6
  5531. else
  5532. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5533. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5534. else
  5535. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5536. for as_dir in $PATH
  5537. do
  5538. IFS=$as_save_IFS
  5539. test -z "$as_dir" && as_dir=.
  5540. for ac_exec_ext in '' $ac_executable_extensions; do
  5541. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5542. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5543. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5544. break 2
  5545. fi
  5546. done
  5547. done
  5548. IFS=$as_save_IFS
  5549. fi
  5550. fi
  5551. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5552. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5554. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5555. else
  5556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5557. $as_echo "no" >&6; }
  5558. fi
  5559. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5560. MANIFEST_TOOL=":"
  5561. else
  5562. case $cross_compiling:$ac_tool_warned in
  5563. yes:)
  5564. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5565. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5566. ac_tool_warned=yes ;;
  5567. esac
  5568. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5569. fi
  5570. else
  5571. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5572. fi
  5573. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5575. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5576. if ${lt_cv_path_mainfest_tool+:} false; then :
  5577. $as_echo_n "(cached) " >&6
  5578. else
  5579. lt_cv_path_mainfest_tool=no
  5580. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5581. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5582. cat conftest.err >&5
  5583. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5584. lt_cv_path_mainfest_tool=yes
  5585. fi
  5586. rm -f conftest*
  5587. fi
  5588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5589. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5590. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5591. MANIFEST_TOOL=:
  5592. fi
  5593. case $host_os in
  5594. rhapsody* | darwin*)
  5595. if test -n "$ac_tool_prefix"; then
  5596. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5597. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5599. $as_echo_n "checking for $ac_word... " >&6; }
  5600. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5601. $as_echo_n "(cached) " >&6
  5602. else
  5603. if test -n "$DSYMUTIL"; then
  5604. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5605. else
  5606. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5607. for as_dir in $PATH
  5608. do
  5609. IFS=$as_save_IFS
  5610. test -z "$as_dir" && as_dir=.
  5611. for ac_exec_ext in '' $ac_executable_extensions; do
  5612. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5613. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5614. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5615. break 2
  5616. fi
  5617. done
  5618. done
  5619. IFS=$as_save_IFS
  5620. fi
  5621. fi
  5622. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5623. if test -n "$DSYMUTIL"; then
  5624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5625. $as_echo "$DSYMUTIL" >&6; }
  5626. else
  5627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5628. $as_echo "no" >&6; }
  5629. fi
  5630. fi
  5631. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5632. ac_ct_DSYMUTIL=$DSYMUTIL
  5633. # Extract the first word of "dsymutil", so it can be a program name with args.
  5634. set dummy dsymutil; ac_word=$2
  5635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5636. $as_echo_n "checking for $ac_word... " >&6; }
  5637. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5638. $as_echo_n "(cached) " >&6
  5639. else
  5640. if test -n "$ac_ct_DSYMUTIL"; then
  5641. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5642. else
  5643. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5644. for as_dir in $PATH
  5645. do
  5646. IFS=$as_save_IFS
  5647. test -z "$as_dir" && as_dir=.
  5648. for ac_exec_ext in '' $ac_executable_extensions; do
  5649. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5650. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5651. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5652. break 2
  5653. fi
  5654. done
  5655. done
  5656. IFS=$as_save_IFS
  5657. fi
  5658. fi
  5659. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5660. if test -n "$ac_ct_DSYMUTIL"; then
  5661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5662. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5663. else
  5664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5665. $as_echo "no" >&6; }
  5666. fi
  5667. if test "x$ac_ct_DSYMUTIL" = x; then
  5668. DSYMUTIL=":"
  5669. else
  5670. case $cross_compiling:$ac_tool_warned in
  5671. yes:)
  5672. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5673. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5674. ac_tool_warned=yes ;;
  5675. esac
  5676. DSYMUTIL=$ac_ct_DSYMUTIL
  5677. fi
  5678. else
  5679. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5680. fi
  5681. if test -n "$ac_tool_prefix"; then
  5682. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5683. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5685. $as_echo_n "checking for $ac_word... " >&6; }
  5686. if ${ac_cv_prog_NMEDIT+:} false; then :
  5687. $as_echo_n "(cached) " >&6
  5688. else
  5689. if test -n "$NMEDIT"; then
  5690. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5691. else
  5692. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5693. for as_dir in $PATH
  5694. do
  5695. IFS=$as_save_IFS
  5696. test -z "$as_dir" && as_dir=.
  5697. for ac_exec_ext in '' $ac_executable_extensions; do
  5698. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5699. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5700. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5701. break 2
  5702. fi
  5703. done
  5704. done
  5705. IFS=$as_save_IFS
  5706. fi
  5707. fi
  5708. NMEDIT=$ac_cv_prog_NMEDIT
  5709. if test -n "$NMEDIT"; then
  5710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5711. $as_echo "$NMEDIT" >&6; }
  5712. else
  5713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5714. $as_echo "no" >&6; }
  5715. fi
  5716. fi
  5717. if test -z "$ac_cv_prog_NMEDIT"; then
  5718. ac_ct_NMEDIT=$NMEDIT
  5719. # Extract the first word of "nmedit", so it can be a program name with args.
  5720. set dummy nmedit; ac_word=$2
  5721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5722. $as_echo_n "checking for $ac_word... " >&6; }
  5723. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5724. $as_echo_n "(cached) " >&6
  5725. else
  5726. if test -n "$ac_ct_NMEDIT"; then
  5727. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5728. else
  5729. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5730. for as_dir in $PATH
  5731. do
  5732. IFS=$as_save_IFS
  5733. test -z "$as_dir" && as_dir=.
  5734. for ac_exec_ext in '' $ac_executable_extensions; do
  5735. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5736. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5737. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5738. break 2
  5739. fi
  5740. done
  5741. done
  5742. IFS=$as_save_IFS
  5743. fi
  5744. fi
  5745. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5746. if test -n "$ac_ct_NMEDIT"; then
  5747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5748. $as_echo "$ac_ct_NMEDIT" >&6; }
  5749. else
  5750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5751. $as_echo "no" >&6; }
  5752. fi
  5753. if test "x$ac_ct_NMEDIT" = x; then
  5754. NMEDIT=":"
  5755. else
  5756. case $cross_compiling:$ac_tool_warned in
  5757. yes:)
  5758. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5759. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5760. ac_tool_warned=yes ;;
  5761. esac
  5762. NMEDIT=$ac_ct_NMEDIT
  5763. fi
  5764. else
  5765. NMEDIT="$ac_cv_prog_NMEDIT"
  5766. fi
  5767. if test -n "$ac_tool_prefix"; then
  5768. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5769. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5771. $as_echo_n "checking for $ac_word... " >&6; }
  5772. if ${ac_cv_prog_LIPO+:} false; then :
  5773. $as_echo_n "(cached) " >&6
  5774. else
  5775. if test -n "$LIPO"; then
  5776. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5777. else
  5778. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5779. for as_dir in $PATH
  5780. do
  5781. IFS=$as_save_IFS
  5782. test -z "$as_dir" && as_dir=.
  5783. for ac_exec_ext in '' $ac_executable_extensions; do
  5784. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5785. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5786. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5787. break 2
  5788. fi
  5789. done
  5790. done
  5791. IFS=$as_save_IFS
  5792. fi
  5793. fi
  5794. LIPO=$ac_cv_prog_LIPO
  5795. if test -n "$LIPO"; then
  5796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5797. $as_echo "$LIPO" >&6; }
  5798. else
  5799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5800. $as_echo "no" >&6; }
  5801. fi
  5802. fi
  5803. if test -z "$ac_cv_prog_LIPO"; then
  5804. ac_ct_LIPO=$LIPO
  5805. # Extract the first word of "lipo", so it can be a program name with args.
  5806. set dummy lipo; ac_word=$2
  5807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5808. $as_echo_n "checking for $ac_word... " >&6; }
  5809. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5810. $as_echo_n "(cached) " >&6
  5811. else
  5812. if test -n "$ac_ct_LIPO"; then
  5813. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5814. else
  5815. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5816. for as_dir in $PATH
  5817. do
  5818. IFS=$as_save_IFS
  5819. test -z "$as_dir" && as_dir=.
  5820. for ac_exec_ext in '' $ac_executable_extensions; do
  5821. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5822. ac_cv_prog_ac_ct_LIPO="lipo"
  5823. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5824. break 2
  5825. fi
  5826. done
  5827. done
  5828. IFS=$as_save_IFS
  5829. fi
  5830. fi
  5831. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5832. if test -n "$ac_ct_LIPO"; then
  5833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5834. $as_echo "$ac_ct_LIPO" >&6; }
  5835. else
  5836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5837. $as_echo "no" >&6; }
  5838. fi
  5839. if test "x$ac_ct_LIPO" = x; then
  5840. LIPO=":"
  5841. else
  5842. case $cross_compiling:$ac_tool_warned in
  5843. yes:)
  5844. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5845. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5846. ac_tool_warned=yes ;;
  5847. esac
  5848. LIPO=$ac_ct_LIPO
  5849. fi
  5850. else
  5851. LIPO="$ac_cv_prog_LIPO"
  5852. fi
  5853. if test -n "$ac_tool_prefix"; then
  5854. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5855. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5857. $as_echo_n "checking for $ac_word... " >&6; }
  5858. if ${ac_cv_prog_OTOOL+:} false; then :
  5859. $as_echo_n "(cached) " >&6
  5860. else
  5861. if test -n "$OTOOL"; then
  5862. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5863. else
  5864. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5865. for as_dir in $PATH
  5866. do
  5867. IFS=$as_save_IFS
  5868. test -z "$as_dir" && as_dir=.
  5869. for ac_exec_ext in '' $ac_executable_extensions; do
  5870. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5871. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5872. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5873. break 2
  5874. fi
  5875. done
  5876. done
  5877. IFS=$as_save_IFS
  5878. fi
  5879. fi
  5880. OTOOL=$ac_cv_prog_OTOOL
  5881. if test -n "$OTOOL"; then
  5882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5883. $as_echo "$OTOOL" >&6; }
  5884. else
  5885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5886. $as_echo "no" >&6; }
  5887. fi
  5888. fi
  5889. if test -z "$ac_cv_prog_OTOOL"; then
  5890. ac_ct_OTOOL=$OTOOL
  5891. # Extract the first word of "otool", so it can be a program name with args.
  5892. set dummy otool; ac_word=$2
  5893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5894. $as_echo_n "checking for $ac_word... " >&6; }
  5895. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5896. $as_echo_n "(cached) " >&6
  5897. else
  5898. if test -n "$ac_ct_OTOOL"; then
  5899. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5900. else
  5901. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5902. for as_dir in $PATH
  5903. do
  5904. IFS=$as_save_IFS
  5905. test -z "$as_dir" && as_dir=.
  5906. for ac_exec_ext in '' $ac_executable_extensions; do
  5907. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5908. ac_cv_prog_ac_ct_OTOOL="otool"
  5909. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5910. break 2
  5911. fi
  5912. done
  5913. done
  5914. IFS=$as_save_IFS
  5915. fi
  5916. fi
  5917. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5918. if test -n "$ac_ct_OTOOL"; then
  5919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5920. $as_echo "$ac_ct_OTOOL" >&6; }
  5921. else
  5922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5923. $as_echo "no" >&6; }
  5924. fi
  5925. if test "x$ac_ct_OTOOL" = x; then
  5926. OTOOL=":"
  5927. else
  5928. case $cross_compiling:$ac_tool_warned in
  5929. yes:)
  5930. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5931. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5932. ac_tool_warned=yes ;;
  5933. esac
  5934. OTOOL=$ac_ct_OTOOL
  5935. fi
  5936. else
  5937. OTOOL="$ac_cv_prog_OTOOL"
  5938. fi
  5939. if test -n "$ac_tool_prefix"; then
  5940. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5941. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5943. $as_echo_n "checking for $ac_word... " >&6; }
  5944. if ${ac_cv_prog_OTOOL64+:} false; then :
  5945. $as_echo_n "(cached) " >&6
  5946. else
  5947. if test -n "$OTOOL64"; then
  5948. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5949. else
  5950. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5951. for as_dir in $PATH
  5952. do
  5953. IFS=$as_save_IFS
  5954. test -z "$as_dir" && as_dir=.
  5955. for ac_exec_ext in '' $ac_executable_extensions; do
  5956. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5957. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5958. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5959. break 2
  5960. fi
  5961. done
  5962. done
  5963. IFS=$as_save_IFS
  5964. fi
  5965. fi
  5966. OTOOL64=$ac_cv_prog_OTOOL64
  5967. if test -n "$OTOOL64"; then
  5968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5969. $as_echo "$OTOOL64" >&6; }
  5970. else
  5971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5972. $as_echo "no" >&6; }
  5973. fi
  5974. fi
  5975. if test -z "$ac_cv_prog_OTOOL64"; then
  5976. ac_ct_OTOOL64=$OTOOL64
  5977. # Extract the first word of "otool64", so it can be a program name with args.
  5978. set dummy otool64; ac_word=$2
  5979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5980. $as_echo_n "checking for $ac_word... " >&6; }
  5981. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5982. $as_echo_n "(cached) " >&6
  5983. else
  5984. if test -n "$ac_ct_OTOOL64"; then
  5985. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5986. else
  5987. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5988. for as_dir in $PATH
  5989. do
  5990. IFS=$as_save_IFS
  5991. test -z "$as_dir" && as_dir=.
  5992. for ac_exec_ext in '' $ac_executable_extensions; do
  5993. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5994. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5995. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5996. break 2
  5997. fi
  5998. done
  5999. done
  6000. IFS=$as_save_IFS
  6001. fi
  6002. fi
  6003. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6004. if test -n "$ac_ct_OTOOL64"; then
  6005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6006. $as_echo "$ac_ct_OTOOL64" >&6; }
  6007. else
  6008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6009. $as_echo "no" >&6; }
  6010. fi
  6011. if test "x$ac_ct_OTOOL64" = x; then
  6012. OTOOL64=":"
  6013. else
  6014. case $cross_compiling:$ac_tool_warned in
  6015. yes:)
  6016. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6017. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6018. ac_tool_warned=yes ;;
  6019. esac
  6020. OTOOL64=$ac_ct_OTOOL64
  6021. fi
  6022. else
  6023. OTOOL64="$ac_cv_prog_OTOOL64"
  6024. fi
  6025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6026. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6027. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6028. $as_echo_n "(cached) " >&6
  6029. else
  6030. lt_cv_apple_cc_single_mod=no
  6031. if test -z "${LT_MULTI_MODULE}"; then
  6032. # By default we will add the -single_module flag. You can override
  6033. # by either setting the environment variable LT_MULTI_MODULE
  6034. # non-empty at configure time, or by adding -multi_module to the
  6035. # link flags.
  6036. rm -rf libconftest.dylib*
  6037. echo "int foo(void){return 1;}" > conftest.c
  6038. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6039. -dynamiclib -Wl,-single_module conftest.c" >&5
  6040. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6041. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6042. _lt_result=$?
  6043. # If there is a non-empty error log, and "single_module"
  6044. # appears in it, assume the flag caused a linker warning
  6045. if test -s conftest.err && $GREP single_module conftest.err; then
  6046. cat conftest.err >&5
  6047. # Otherwise, if the output was created with a 0 exit code from
  6048. # the compiler, it worked.
  6049. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6050. lt_cv_apple_cc_single_mod=yes
  6051. else
  6052. cat conftest.err >&5
  6053. fi
  6054. rm -rf libconftest.dylib*
  6055. rm -f conftest.*
  6056. fi
  6057. fi
  6058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6059. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6061. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6062. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6063. $as_echo_n "(cached) " >&6
  6064. else
  6065. lt_cv_ld_exported_symbols_list=no
  6066. save_LDFLAGS=$LDFLAGS
  6067. echo "_main" > conftest.sym
  6068. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6070. /* end confdefs.h. */
  6071. int
  6072. main ()
  6073. {
  6074. ;
  6075. return 0;
  6076. }
  6077. _ACEOF
  6078. if ac_fn_c_try_link "$LINENO"; then :
  6079. lt_cv_ld_exported_symbols_list=yes
  6080. else
  6081. lt_cv_ld_exported_symbols_list=no
  6082. fi
  6083. rm -f core conftest.err conftest.$ac_objext \
  6084. conftest$ac_exeext conftest.$ac_ext
  6085. LDFLAGS="$save_LDFLAGS"
  6086. fi
  6087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6088. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6090. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6091. if ${lt_cv_ld_force_load+:} false; then :
  6092. $as_echo_n "(cached) " >&6
  6093. else
  6094. lt_cv_ld_force_load=no
  6095. cat > conftest.c << _LT_EOF
  6096. int forced_loaded() { return 2;}
  6097. _LT_EOF
  6098. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6099. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6100. echo "$AR cru libconftest.a conftest.o" >&5
  6101. $AR cru libconftest.a conftest.o 2>&5
  6102. echo "$RANLIB libconftest.a" >&5
  6103. $RANLIB libconftest.a 2>&5
  6104. cat > conftest.c << _LT_EOF
  6105. int main() { return 0;}
  6106. _LT_EOF
  6107. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6108. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6109. _lt_result=$?
  6110. if test -s conftest.err && $GREP force_load conftest.err; then
  6111. cat conftest.err >&5
  6112. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6113. lt_cv_ld_force_load=yes
  6114. else
  6115. cat conftest.err >&5
  6116. fi
  6117. rm -f conftest.err libconftest.a conftest conftest.c
  6118. rm -rf conftest.dSYM
  6119. fi
  6120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6121. $as_echo "$lt_cv_ld_force_load" >&6; }
  6122. case $host_os in
  6123. rhapsody* | darwin1.[012])
  6124. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6125. darwin1.*)
  6126. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6127. darwin*)
  6128. case $MACOSX_DEPLOYMENT_TARGET,$host in
  6129. 10.[012],*|,*powerpc*-darwin[5-8]*)
  6130. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6131. *)
  6132. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6133. esac
  6134. ;;
  6135. esac
  6136. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6137. _lt_dar_single_mod='$single_module'
  6138. fi
  6139. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6140. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6141. else
  6142. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6143. fi
  6144. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6145. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6146. else
  6147. _lt_dsymutil=
  6148. fi
  6149. ;;
  6150. esac
  6151. ac_ext=c
  6152. ac_cpp='$CPP $CPPFLAGS'
  6153. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6154. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6155. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6157. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6158. # On Suns, sometimes $CPP names a directory.
  6159. if test -n "$CPP" && test -d "$CPP"; then
  6160. CPP=
  6161. fi
  6162. if test -z "$CPP"; then
  6163. if ${ac_cv_prog_CPP+:} false; then :
  6164. $as_echo_n "(cached) " >&6
  6165. else
  6166. # Double quotes because CPP needs to be expanded
  6167. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6168. do
  6169. ac_preproc_ok=false
  6170. for ac_c_preproc_warn_flag in '' yes
  6171. do
  6172. # Use a header file that comes with gcc, so configuring glibc
  6173. # with a fresh cross-compiler works.
  6174. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6175. # <limits.h> exists even on freestanding compilers.
  6176. # On the NeXT, cc -E runs the code through the compiler's parser,
  6177. # not just through cpp. "Syntax error" is here to catch this case.
  6178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6179. /* end confdefs.h. */
  6180. #ifdef __STDC__
  6181. # include <limits.h>
  6182. #else
  6183. # include <assert.h>
  6184. #endif
  6185. Syntax error
  6186. _ACEOF
  6187. if ac_fn_c_try_cpp "$LINENO"; then :
  6188. else
  6189. # Broken: fails on valid input.
  6190. continue
  6191. fi
  6192. rm -f conftest.err conftest.i conftest.$ac_ext
  6193. # OK, works on sane cases. Now check whether nonexistent headers
  6194. # can be detected and how.
  6195. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6196. /* end confdefs.h. */
  6197. #include <ac_nonexistent.h>
  6198. _ACEOF
  6199. if ac_fn_c_try_cpp "$LINENO"; then :
  6200. # Broken: success on invalid input.
  6201. continue
  6202. else
  6203. # Passes both tests.
  6204. ac_preproc_ok=:
  6205. break
  6206. fi
  6207. rm -f conftest.err conftest.i conftest.$ac_ext
  6208. done
  6209. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6210. rm -f conftest.i conftest.err conftest.$ac_ext
  6211. if $ac_preproc_ok; then :
  6212. break
  6213. fi
  6214. done
  6215. ac_cv_prog_CPP=$CPP
  6216. fi
  6217. CPP=$ac_cv_prog_CPP
  6218. else
  6219. ac_cv_prog_CPP=$CPP
  6220. fi
  6221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6222. $as_echo "$CPP" >&6; }
  6223. ac_preproc_ok=false
  6224. for ac_c_preproc_warn_flag in '' yes
  6225. do
  6226. # Use a header file that comes with gcc, so configuring glibc
  6227. # with a fresh cross-compiler works.
  6228. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6229. # <limits.h> exists even on freestanding compilers.
  6230. # On the NeXT, cc -E runs the code through the compiler's parser,
  6231. # not just through cpp. "Syntax error" is here to catch this case.
  6232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6233. /* end confdefs.h. */
  6234. #ifdef __STDC__
  6235. # include <limits.h>
  6236. #else
  6237. # include <assert.h>
  6238. #endif
  6239. Syntax error
  6240. _ACEOF
  6241. if ac_fn_c_try_cpp "$LINENO"; then :
  6242. else
  6243. # Broken: fails on valid input.
  6244. continue
  6245. fi
  6246. rm -f conftest.err conftest.i conftest.$ac_ext
  6247. # OK, works on sane cases. Now check whether nonexistent headers
  6248. # can be detected and how.
  6249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6250. /* end confdefs.h. */
  6251. #include <ac_nonexistent.h>
  6252. _ACEOF
  6253. if ac_fn_c_try_cpp "$LINENO"; then :
  6254. # Broken: success on invalid input.
  6255. continue
  6256. else
  6257. # Passes both tests.
  6258. ac_preproc_ok=:
  6259. break
  6260. fi
  6261. rm -f conftest.err conftest.i conftest.$ac_ext
  6262. done
  6263. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6264. rm -f conftest.i conftest.err conftest.$ac_ext
  6265. if $ac_preproc_ok; then :
  6266. else
  6267. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6268. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6269. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6270. See \`config.log' for more details" "$LINENO" 5; }
  6271. fi
  6272. ac_ext=c
  6273. ac_cpp='$CPP $CPPFLAGS'
  6274. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6275. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6276. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6278. $as_echo_n "checking for ANSI C header files... " >&6; }
  6279. if ${ac_cv_header_stdc+:} false; then :
  6280. $as_echo_n "(cached) " >&6
  6281. else
  6282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6283. /* end confdefs.h. */
  6284. #include <stdlib.h>
  6285. #include <stdarg.h>
  6286. #include <string.h>
  6287. #include <float.h>
  6288. int
  6289. main ()
  6290. {
  6291. ;
  6292. return 0;
  6293. }
  6294. _ACEOF
  6295. if ac_fn_c_try_compile "$LINENO"; then :
  6296. ac_cv_header_stdc=yes
  6297. else
  6298. ac_cv_header_stdc=no
  6299. fi
  6300. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6301. if test $ac_cv_header_stdc = yes; then
  6302. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6304. /* end confdefs.h. */
  6305. #include <string.h>
  6306. _ACEOF
  6307. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6308. $EGREP "memchr" >/dev/null 2>&1; then :
  6309. else
  6310. ac_cv_header_stdc=no
  6311. fi
  6312. rm -f conftest*
  6313. fi
  6314. if test $ac_cv_header_stdc = yes; then
  6315. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6317. /* end confdefs.h. */
  6318. #include <stdlib.h>
  6319. _ACEOF
  6320. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6321. $EGREP "free" >/dev/null 2>&1; then :
  6322. else
  6323. ac_cv_header_stdc=no
  6324. fi
  6325. rm -f conftest*
  6326. fi
  6327. if test $ac_cv_header_stdc = yes; then
  6328. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6329. if test "$cross_compiling" = yes; then :
  6330. :
  6331. else
  6332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6333. /* end confdefs.h. */
  6334. #include <ctype.h>
  6335. #include <stdlib.h>
  6336. #if ((' ' & 0x0FF) == 0x020)
  6337. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6338. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6339. #else
  6340. # define ISLOWER(c) \
  6341. (('a' <= (c) && (c) <= 'i') \
  6342. || ('j' <= (c) && (c) <= 'r') \
  6343. || ('s' <= (c) && (c) <= 'z'))
  6344. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6345. #endif
  6346. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6347. int
  6348. main ()
  6349. {
  6350. int i;
  6351. for (i = 0; i < 256; i++)
  6352. if (XOR (islower (i), ISLOWER (i))
  6353. || toupper (i) != TOUPPER (i))
  6354. return 2;
  6355. return 0;
  6356. }
  6357. _ACEOF
  6358. if ac_fn_c_try_run "$LINENO"; then :
  6359. else
  6360. ac_cv_header_stdc=no
  6361. fi
  6362. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6363. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6364. fi
  6365. fi
  6366. fi
  6367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6368. $as_echo "$ac_cv_header_stdc" >&6; }
  6369. if test $ac_cv_header_stdc = yes; then
  6370. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6371. fi
  6372. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6373. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6374. inttypes.h stdint.h unistd.h
  6375. do :
  6376. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6377. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6378. "
  6379. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6380. cat >>confdefs.h <<_ACEOF
  6381. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6382. _ACEOF
  6383. fi
  6384. done
  6385. for ac_header in dlfcn.h
  6386. do :
  6387. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6388. "
  6389. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6390. cat >>confdefs.h <<_ACEOF
  6391. #define HAVE_DLFCN_H 1
  6392. _ACEOF
  6393. fi
  6394. done
  6395. # Set options
  6396. enable_win32_dll=yes
  6397. case $host in
  6398. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6399. if test -n "$ac_tool_prefix"; then
  6400. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6401. set dummy ${ac_tool_prefix}as; ac_word=$2
  6402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6403. $as_echo_n "checking for $ac_word... " >&6; }
  6404. if ${ac_cv_prog_AS+:} false; then :
  6405. $as_echo_n "(cached) " >&6
  6406. else
  6407. if test -n "$AS"; then
  6408. ac_cv_prog_AS="$AS" # Let the user override the test.
  6409. else
  6410. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6411. for as_dir in $PATH
  6412. do
  6413. IFS=$as_save_IFS
  6414. test -z "$as_dir" && as_dir=.
  6415. for ac_exec_ext in '' $ac_executable_extensions; do
  6416. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6417. ac_cv_prog_AS="${ac_tool_prefix}as"
  6418. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6419. break 2
  6420. fi
  6421. done
  6422. done
  6423. IFS=$as_save_IFS
  6424. fi
  6425. fi
  6426. AS=$ac_cv_prog_AS
  6427. if test -n "$AS"; then
  6428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6429. $as_echo "$AS" >&6; }
  6430. else
  6431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6432. $as_echo "no" >&6; }
  6433. fi
  6434. fi
  6435. if test -z "$ac_cv_prog_AS"; then
  6436. ac_ct_AS=$AS
  6437. # Extract the first word of "as", so it can be a program name with args.
  6438. set dummy as; ac_word=$2
  6439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6440. $as_echo_n "checking for $ac_word... " >&6; }
  6441. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6442. $as_echo_n "(cached) " >&6
  6443. else
  6444. if test -n "$ac_ct_AS"; then
  6445. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6446. else
  6447. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6448. for as_dir in $PATH
  6449. do
  6450. IFS=$as_save_IFS
  6451. test -z "$as_dir" && as_dir=.
  6452. for ac_exec_ext in '' $ac_executable_extensions; do
  6453. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6454. ac_cv_prog_ac_ct_AS="as"
  6455. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6456. break 2
  6457. fi
  6458. done
  6459. done
  6460. IFS=$as_save_IFS
  6461. fi
  6462. fi
  6463. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6464. if test -n "$ac_ct_AS"; then
  6465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6466. $as_echo "$ac_ct_AS" >&6; }
  6467. else
  6468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6469. $as_echo "no" >&6; }
  6470. fi
  6471. if test "x$ac_ct_AS" = x; then
  6472. AS="false"
  6473. else
  6474. case $cross_compiling:$ac_tool_warned in
  6475. yes:)
  6476. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6477. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6478. ac_tool_warned=yes ;;
  6479. esac
  6480. AS=$ac_ct_AS
  6481. fi
  6482. else
  6483. AS="$ac_cv_prog_AS"
  6484. fi
  6485. if test -n "$ac_tool_prefix"; then
  6486. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6487. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6489. $as_echo_n "checking for $ac_word... " >&6; }
  6490. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6491. $as_echo_n "(cached) " >&6
  6492. else
  6493. if test -n "$DLLTOOL"; then
  6494. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6495. else
  6496. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6497. for as_dir in $PATH
  6498. do
  6499. IFS=$as_save_IFS
  6500. test -z "$as_dir" && as_dir=.
  6501. for ac_exec_ext in '' $ac_executable_extensions; do
  6502. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6503. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6504. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6505. break 2
  6506. fi
  6507. done
  6508. done
  6509. IFS=$as_save_IFS
  6510. fi
  6511. fi
  6512. DLLTOOL=$ac_cv_prog_DLLTOOL
  6513. if test -n "$DLLTOOL"; then
  6514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6515. $as_echo "$DLLTOOL" >&6; }
  6516. else
  6517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6518. $as_echo "no" >&6; }
  6519. fi
  6520. fi
  6521. if test -z "$ac_cv_prog_DLLTOOL"; then
  6522. ac_ct_DLLTOOL=$DLLTOOL
  6523. # Extract the first word of "dlltool", so it can be a program name with args.
  6524. set dummy dlltool; ac_word=$2
  6525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6526. $as_echo_n "checking for $ac_word... " >&6; }
  6527. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6528. $as_echo_n "(cached) " >&6
  6529. else
  6530. if test -n "$ac_ct_DLLTOOL"; then
  6531. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6532. else
  6533. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6534. for as_dir in $PATH
  6535. do
  6536. IFS=$as_save_IFS
  6537. test -z "$as_dir" && as_dir=.
  6538. for ac_exec_ext in '' $ac_executable_extensions; do
  6539. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6540. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6541. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6542. break 2
  6543. fi
  6544. done
  6545. done
  6546. IFS=$as_save_IFS
  6547. fi
  6548. fi
  6549. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6550. if test -n "$ac_ct_DLLTOOL"; then
  6551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6552. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6553. else
  6554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6555. $as_echo "no" >&6; }
  6556. fi
  6557. if test "x$ac_ct_DLLTOOL" = x; then
  6558. DLLTOOL="false"
  6559. else
  6560. case $cross_compiling:$ac_tool_warned in
  6561. yes:)
  6562. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6563. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6564. ac_tool_warned=yes ;;
  6565. esac
  6566. DLLTOOL=$ac_ct_DLLTOOL
  6567. fi
  6568. else
  6569. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6570. fi
  6571. if test -n "$ac_tool_prefix"; then
  6572. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6573. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6575. $as_echo_n "checking for $ac_word... " >&6; }
  6576. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6577. $as_echo_n "(cached) " >&6
  6578. else
  6579. if test -n "$OBJDUMP"; then
  6580. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6581. else
  6582. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6583. for as_dir in $PATH
  6584. do
  6585. IFS=$as_save_IFS
  6586. test -z "$as_dir" && as_dir=.
  6587. for ac_exec_ext in '' $ac_executable_extensions; do
  6588. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6589. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6590. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6591. break 2
  6592. fi
  6593. done
  6594. done
  6595. IFS=$as_save_IFS
  6596. fi
  6597. fi
  6598. OBJDUMP=$ac_cv_prog_OBJDUMP
  6599. if test -n "$OBJDUMP"; then
  6600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6601. $as_echo "$OBJDUMP" >&6; }
  6602. else
  6603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6604. $as_echo "no" >&6; }
  6605. fi
  6606. fi
  6607. if test -z "$ac_cv_prog_OBJDUMP"; then
  6608. ac_ct_OBJDUMP=$OBJDUMP
  6609. # Extract the first word of "objdump", so it can be a program name with args.
  6610. set dummy objdump; ac_word=$2
  6611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6612. $as_echo_n "checking for $ac_word... " >&6; }
  6613. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6614. $as_echo_n "(cached) " >&6
  6615. else
  6616. if test -n "$ac_ct_OBJDUMP"; then
  6617. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6618. else
  6619. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6620. for as_dir in $PATH
  6621. do
  6622. IFS=$as_save_IFS
  6623. test -z "$as_dir" && as_dir=.
  6624. for ac_exec_ext in '' $ac_executable_extensions; do
  6625. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6626. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6627. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6628. break 2
  6629. fi
  6630. done
  6631. done
  6632. IFS=$as_save_IFS
  6633. fi
  6634. fi
  6635. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6636. if test -n "$ac_ct_OBJDUMP"; then
  6637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6638. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6639. else
  6640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6641. $as_echo "no" >&6; }
  6642. fi
  6643. if test "x$ac_ct_OBJDUMP" = x; then
  6644. OBJDUMP="false"
  6645. else
  6646. case $cross_compiling:$ac_tool_warned in
  6647. yes:)
  6648. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6649. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6650. ac_tool_warned=yes ;;
  6651. esac
  6652. OBJDUMP=$ac_ct_OBJDUMP
  6653. fi
  6654. else
  6655. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6656. fi
  6657. ;;
  6658. esac
  6659. test -z "$AS" && AS=as
  6660. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6661. test -z "$OBJDUMP" && OBJDUMP=objdump
  6662. enable_dlopen=no
  6663. # Check whether --enable-shared was given.
  6664. if test "${enable_shared+set}" = set; then :
  6665. enableval=$enable_shared; p=${PACKAGE-default}
  6666. case $enableval in
  6667. yes) enable_shared=yes ;;
  6668. no) enable_shared=no ;;
  6669. *)
  6670. enable_shared=no
  6671. # Look at the argument we got. We use all the common list separators.
  6672. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6673. for pkg in $enableval; do
  6674. IFS="$lt_save_ifs"
  6675. if test "X$pkg" = "X$p"; then
  6676. enable_shared=yes
  6677. fi
  6678. done
  6679. IFS="$lt_save_ifs"
  6680. ;;
  6681. esac
  6682. else
  6683. enable_shared=yes
  6684. fi
  6685. # Check whether --enable-static was given.
  6686. if test "${enable_static+set}" = set; then :
  6687. enableval=$enable_static; p=${PACKAGE-default}
  6688. case $enableval in
  6689. yes) enable_static=yes ;;
  6690. no) enable_static=no ;;
  6691. *)
  6692. enable_static=no
  6693. # Look at the argument we got. We use all the common list separators.
  6694. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6695. for pkg in $enableval; do
  6696. IFS="$lt_save_ifs"
  6697. if test "X$pkg" = "X$p"; then
  6698. enable_static=yes
  6699. fi
  6700. done
  6701. IFS="$lt_save_ifs"
  6702. ;;
  6703. esac
  6704. else
  6705. enable_static=yes
  6706. fi
  6707. # Check whether --with-pic was given.
  6708. if test "${with_pic+set}" = set; then :
  6709. withval=$with_pic; lt_p=${PACKAGE-default}
  6710. case $withval in
  6711. yes|no) pic_mode=$withval ;;
  6712. *)
  6713. pic_mode=default
  6714. # Look at the argument we got. We use all the common list separators.
  6715. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6716. for lt_pkg in $withval; do
  6717. IFS="$lt_save_ifs"
  6718. if test "X$lt_pkg" = "X$lt_p"; then
  6719. pic_mode=yes
  6720. fi
  6721. done
  6722. IFS="$lt_save_ifs"
  6723. ;;
  6724. esac
  6725. else
  6726. pic_mode=default
  6727. fi
  6728. test -z "$pic_mode" && pic_mode=default
  6729. # Check whether --enable-fast-install was given.
  6730. if test "${enable_fast_install+set}" = set; then :
  6731. enableval=$enable_fast_install; p=${PACKAGE-default}
  6732. case $enableval in
  6733. yes) enable_fast_install=yes ;;
  6734. no) enable_fast_install=no ;;
  6735. *)
  6736. enable_fast_install=no
  6737. # Look at the argument we got. We use all the common list separators.
  6738. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6739. for pkg in $enableval; do
  6740. IFS="$lt_save_ifs"
  6741. if test "X$pkg" = "X$p"; then
  6742. enable_fast_install=yes
  6743. fi
  6744. done
  6745. IFS="$lt_save_ifs"
  6746. ;;
  6747. esac
  6748. else
  6749. enable_fast_install=yes
  6750. fi
  6751. # This can be used to rebuild libtool when needed
  6752. LIBTOOL_DEPS="$ltmain"
  6753. # Always use our own libtool.
  6754. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6755. test -z "$LN_S" && LN_S="ln -s"
  6756. if test -n "${ZSH_VERSION+set}" ; then
  6757. setopt NO_GLOB_SUBST
  6758. fi
  6759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6760. $as_echo_n "checking for objdir... " >&6; }
  6761. if ${lt_cv_objdir+:} false; then :
  6762. $as_echo_n "(cached) " >&6
  6763. else
  6764. rm -f .libs 2>/dev/null
  6765. mkdir .libs 2>/dev/null
  6766. if test -d .libs; then
  6767. lt_cv_objdir=.libs
  6768. else
  6769. # MS-DOS does not allow filenames that begin with a dot.
  6770. lt_cv_objdir=_libs
  6771. fi
  6772. rmdir .libs 2>/dev/null
  6773. fi
  6774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6775. $as_echo "$lt_cv_objdir" >&6; }
  6776. objdir=$lt_cv_objdir
  6777. cat >>confdefs.h <<_ACEOF
  6778. #define LT_OBJDIR "$lt_cv_objdir/"
  6779. _ACEOF
  6780. case $host_os in
  6781. aix3*)
  6782. # AIX sometimes has problems with the GCC collect2 program. For some
  6783. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6784. # vanish in a puff of smoke.
  6785. if test "X${COLLECT_NAMES+set}" != Xset; then
  6786. COLLECT_NAMES=
  6787. export COLLECT_NAMES
  6788. fi
  6789. ;;
  6790. esac
  6791. # Global variables:
  6792. ofile=libtool
  6793. can_build_shared=yes
  6794. # All known linkers require a `.a' archive for static linking (except MSVC,
  6795. # which needs '.lib').
  6796. libext=a
  6797. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6798. old_CC="$CC"
  6799. old_CFLAGS="$CFLAGS"
  6800. # Set sane defaults for various variables
  6801. test -z "$CC" && CC=cc
  6802. test -z "$LTCC" && LTCC=$CC
  6803. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6804. test -z "$LD" && LD=ld
  6805. test -z "$ac_objext" && ac_objext=o
  6806. for cc_temp in $compiler""; do
  6807. case $cc_temp in
  6808. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6809. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6810. \-*) ;;
  6811. *) break;;
  6812. esac
  6813. done
  6814. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6815. # Only perform the check for file, if the check method requires it
  6816. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6817. case $deplibs_check_method in
  6818. file_magic*)
  6819. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6821. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6822. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6823. $as_echo_n "(cached) " >&6
  6824. else
  6825. case $MAGIC_CMD in
  6826. [\\/*] | ?:[\\/]*)
  6827. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6828. ;;
  6829. *)
  6830. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6831. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6832. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6833. for ac_dir in $ac_dummy; do
  6834. IFS="$lt_save_ifs"
  6835. test -z "$ac_dir" && ac_dir=.
  6836. if test -f $ac_dir/${ac_tool_prefix}file; then
  6837. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6838. if test -n "$file_magic_test_file"; then
  6839. case $deplibs_check_method in
  6840. "file_magic "*)
  6841. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6842. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6843. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6844. $EGREP "$file_magic_regex" > /dev/null; then
  6845. :
  6846. else
  6847. cat <<_LT_EOF 1>&2
  6848. *** Warning: the command libtool uses to detect shared libraries,
  6849. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6850. *** The result is that libtool may fail to recognize shared libraries
  6851. *** as such. This will affect the creation of libtool libraries that
  6852. *** depend on shared libraries, but programs linked with such libtool
  6853. *** libraries will work regardless of this problem. Nevertheless, you
  6854. *** may want to report the problem to your system manager and/or to
  6855. *** bug-libtool@gnu.org
  6856. _LT_EOF
  6857. fi ;;
  6858. esac
  6859. fi
  6860. break
  6861. fi
  6862. done
  6863. IFS="$lt_save_ifs"
  6864. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6865. ;;
  6866. esac
  6867. fi
  6868. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6869. if test -n "$MAGIC_CMD"; then
  6870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6871. $as_echo "$MAGIC_CMD" >&6; }
  6872. else
  6873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6874. $as_echo "no" >&6; }
  6875. fi
  6876. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6877. if test -n "$ac_tool_prefix"; then
  6878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6879. $as_echo_n "checking for file... " >&6; }
  6880. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6881. $as_echo_n "(cached) " >&6
  6882. else
  6883. case $MAGIC_CMD in
  6884. [\\/*] | ?:[\\/]*)
  6885. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6886. ;;
  6887. *)
  6888. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6889. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6890. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6891. for ac_dir in $ac_dummy; do
  6892. IFS="$lt_save_ifs"
  6893. test -z "$ac_dir" && ac_dir=.
  6894. if test -f $ac_dir/file; then
  6895. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6896. if test -n "$file_magic_test_file"; then
  6897. case $deplibs_check_method in
  6898. "file_magic "*)
  6899. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6900. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6901. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6902. $EGREP "$file_magic_regex" > /dev/null; then
  6903. :
  6904. else
  6905. cat <<_LT_EOF 1>&2
  6906. *** Warning: the command libtool uses to detect shared libraries,
  6907. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6908. *** The result is that libtool may fail to recognize shared libraries
  6909. *** as such. This will affect the creation of libtool libraries that
  6910. *** depend on shared libraries, but programs linked with such libtool
  6911. *** libraries will work regardless of this problem. Nevertheless, you
  6912. *** may want to report the problem to your system manager and/or to
  6913. *** bug-libtool@gnu.org
  6914. _LT_EOF
  6915. fi ;;
  6916. esac
  6917. fi
  6918. break
  6919. fi
  6920. done
  6921. IFS="$lt_save_ifs"
  6922. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6923. ;;
  6924. esac
  6925. fi
  6926. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6927. if test -n "$MAGIC_CMD"; then
  6928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6929. $as_echo "$MAGIC_CMD" >&6; }
  6930. else
  6931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6932. $as_echo "no" >&6; }
  6933. fi
  6934. else
  6935. MAGIC_CMD=:
  6936. fi
  6937. fi
  6938. fi
  6939. ;;
  6940. esac
  6941. # Use C for the default configuration in the libtool script
  6942. lt_save_CC="$CC"
  6943. ac_ext=c
  6944. ac_cpp='$CPP $CPPFLAGS'
  6945. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6946. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6947. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6948. # Source file extension for C test sources.
  6949. ac_ext=c
  6950. # Object file extension for compiled C test sources.
  6951. objext=o
  6952. objext=$objext
  6953. # Code to be used in simple compile tests
  6954. lt_simple_compile_test_code="int some_variable = 0;"
  6955. # Code to be used in simple link tests
  6956. lt_simple_link_test_code='int main(){return(0);}'
  6957. # If no C compiler was specified, use CC.
  6958. LTCC=${LTCC-"$CC"}
  6959. # If no C compiler flags were specified, use CFLAGS.
  6960. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6961. # Allow CC to be a program name with arguments.
  6962. compiler=$CC
  6963. # Save the default compiler, since it gets overwritten when the other
  6964. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6965. compiler_DEFAULT=$CC
  6966. # save warnings/boilerplate of simple test code
  6967. ac_outfile=conftest.$ac_objext
  6968. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6969. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6970. _lt_compiler_boilerplate=`cat conftest.err`
  6971. $RM conftest*
  6972. ac_outfile=conftest.$ac_objext
  6973. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6974. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6975. _lt_linker_boilerplate=`cat conftest.err`
  6976. $RM -r conftest*
  6977. ## CAVEAT EMPTOR:
  6978. ## There is no encapsulation within the following macros, do not change
  6979. ## the running order or otherwise move them around unless you know exactly
  6980. ## what you are doing...
  6981. if test -n "$compiler"; then
  6982. lt_prog_compiler_no_builtin_flag=
  6983. if test "$GCC" = yes; then
  6984. case $cc_basename in
  6985. nvcc*)
  6986. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6987. *)
  6988. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6989. esac
  6990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6991. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6992. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6993. $as_echo_n "(cached) " >&6
  6994. else
  6995. lt_cv_prog_compiler_rtti_exceptions=no
  6996. ac_outfile=conftest.$ac_objext
  6997. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6998. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6999. # Insert the option either (1) after the last *FLAGS variable, or
  7000. # (2) before a word containing "conftest.", or (3) at the end.
  7001. # Note that $ac_compile itself does not contain backslashes and begins
  7002. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7003. # The option is referenced via a variable to avoid confusing sed.
  7004. lt_compile=`echo "$ac_compile" | $SED \
  7005. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7006. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7007. -e 's:$: $lt_compiler_flag:'`
  7008. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7009. (eval "$lt_compile" 2>conftest.err)
  7010. ac_status=$?
  7011. cat conftest.err >&5
  7012. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7013. if (exit $ac_status) && test -s "$ac_outfile"; then
  7014. # The compiler can only warn and ignore the option if not recognized
  7015. # So say no if there are warnings other than the usual output.
  7016. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7017. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7018. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7019. lt_cv_prog_compiler_rtti_exceptions=yes
  7020. fi
  7021. fi
  7022. $RM conftest*
  7023. fi
  7024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7025. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7026. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7027. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7028. else
  7029. :
  7030. fi
  7031. fi
  7032. lt_prog_compiler_wl=
  7033. lt_prog_compiler_pic=
  7034. lt_prog_compiler_static=
  7035. if test "$GCC" = yes; then
  7036. lt_prog_compiler_wl='-Wl,'
  7037. lt_prog_compiler_static='-static'
  7038. case $host_os in
  7039. aix*)
  7040. # All AIX code is PIC.
  7041. if test "$host_cpu" = ia64; then
  7042. # AIX 5 now supports IA64 processor
  7043. lt_prog_compiler_static='-Bstatic'
  7044. fi
  7045. ;;
  7046. amigaos*)
  7047. case $host_cpu in
  7048. powerpc)
  7049. # see comment about AmigaOS4 .so support
  7050. lt_prog_compiler_pic='-fPIC'
  7051. ;;
  7052. m68k)
  7053. # FIXME: we need at least 68020 code to build shared libraries, but
  7054. # adding the `-m68020' flag to GCC prevents building anything better,
  7055. # like `-m68040'.
  7056. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7057. ;;
  7058. esac
  7059. ;;
  7060. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7061. # PIC is the default for these OSes.
  7062. ;;
  7063. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7064. # This hack is so that the source file can tell whether it is being
  7065. # built for inclusion in a dll (and should export symbols for example).
  7066. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7067. # (--disable-auto-import) libraries
  7068. lt_prog_compiler_pic='-DDLL_EXPORT'
  7069. ;;
  7070. darwin* | rhapsody*)
  7071. # PIC is the default on this platform
  7072. # Common symbols not allowed in MH_DYLIB files
  7073. lt_prog_compiler_pic='-fno-common'
  7074. ;;
  7075. haiku*)
  7076. # PIC is the default for Haiku.
  7077. # The "-static" flag exists, but is broken.
  7078. lt_prog_compiler_static=
  7079. ;;
  7080. hpux*)
  7081. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7082. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7083. # sets the default TLS model and affects inlining.
  7084. case $host_cpu in
  7085. hppa*64*)
  7086. # +Z the default
  7087. ;;
  7088. *)
  7089. lt_prog_compiler_pic='-fPIC'
  7090. ;;
  7091. esac
  7092. ;;
  7093. interix[3-9]*)
  7094. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7095. # Instead, we relocate shared libraries at runtime.
  7096. ;;
  7097. msdosdjgpp*)
  7098. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7099. # on systems that don't support them.
  7100. lt_prog_compiler_can_build_shared=no
  7101. enable_shared=no
  7102. ;;
  7103. *nto* | *qnx*)
  7104. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7105. # it will coredump.
  7106. lt_prog_compiler_pic='-fPIC -shared'
  7107. ;;
  7108. sysv4*MP*)
  7109. if test -d /usr/nec; then
  7110. lt_prog_compiler_pic=-Kconform_pic
  7111. fi
  7112. ;;
  7113. *)
  7114. lt_prog_compiler_pic='-fPIC'
  7115. ;;
  7116. esac
  7117. case $cc_basename in
  7118. nvcc*) # Cuda Compiler Driver 2.2
  7119. lt_prog_compiler_wl='-Xlinker '
  7120. if test -n "$lt_prog_compiler_pic"; then
  7121. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7122. fi
  7123. ;;
  7124. esac
  7125. else
  7126. # PORTME Check for flag to pass linker flags through the system compiler.
  7127. case $host_os in
  7128. aix*)
  7129. lt_prog_compiler_wl='-Wl,'
  7130. if test "$host_cpu" = ia64; then
  7131. # AIX 5 now supports IA64 processor
  7132. lt_prog_compiler_static='-Bstatic'
  7133. else
  7134. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7135. fi
  7136. ;;
  7137. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7138. # This hack is so that the source file can tell whether it is being
  7139. # built for inclusion in a dll (and should export symbols for example).
  7140. lt_prog_compiler_pic='-DDLL_EXPORT'
  7141. ;;
  7142. hpux9* | hpux10* | hpux11*)
  7143. lt_prog_compiler_wl='-Wl,'
  7144. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7145. # not for PA HP-UX.
  7146. case $host_cpu in
  7147. hppa*64*|ia64*)
  7148. # +Z the default
  7149. ;;
  7150. *)
  7151. lt_prog_compiler_pic='+Z'
  7152. ;;
  7153. esac
  7154. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7155. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7156. ;;
  7157. irix5* | irix6* | nonstopux*)
  7158. lt_prog_compiler_wl='-Wl,'
  7159. # PIC (with -KPIC) is the default.
  7160. lt_prog_compiler_static='-non_shared'
  7161. ;;
  7162. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7163. case $cc_basename in
  7164. # old Intel for x86_64 which still supported -KPIC.
  7165. ecc*)
  7166. lt_prog_compiler_wl='-Wl,'
  7167. lt_prog_compiler_pic='-KPIC'
  7168. lt_prog_compiler_static='-static'
  7169. ;;
  7170. # icc used to be incompatible with GCC.
  7171. # ICC 10 doesn't accept -KPIC any more.
  7172. icc* | ifort*)
  7173. lt_prog_compiler_wl='-Wl,'
  7174. lt_prog_compiler_pic='-fPIC'
  7175. lt_prog_compiler_static='-static'
  7176. ;;
  7177. # Lahey Fortran 8.1.
  7178. lf95*)
  7179. lt_prog_compiler_wl='-Wl,'
  7180. lt_prog_compiler_pic='--shared'
  7181. lt_prog_compiler_static='--static'
  7182. ;;
  7183. nagfor*)
  7184. # NAG Fortran compiler
  7185. lt_prog_compiler_wl='-Wl,-Wl,,'
  7186. lt_prog_compiler_pic='-PIC'
  7187. lt_prog_compiler_static='-Bstatic'
  7188. ;;
  7189. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7190. # Portland Group compilers (*not* the Pentium gcc compiler,
  7191. # which looks to be a dead project)
  7192. lt_prog_compiler_wl='-Wl,'
  7193. lt_prog_compiler_pic='-fpic'
  7194. lt_prog_compiler_static='-Bstatic'
  7195. ;;
  7196. ccc*)
  7197. lt_prog_compiler_wl='-Wl,'
  7198. # All Alpha code is PIC.
  7199. lt_prog_compiler_static='-non_shared'
  7200. ;;
  7201. xl* | bgxl* | bgf* | mpixl*)
  7202. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7203. lt_prog_compiler_wl='-Wl,'
  7204. lt_prog_compiler_pic='-qpic'
  7205. lt_prog_compiler_static='-qstaticlink'
  7206. ;;
  7207. *)
  7208. case `$CC -V 2>&1 | sed 5q` in
  7209. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7210. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7211. lt_prog_compiler_pic='-KPIC'
  7212. lt_prog_compiler_static='-Bstatic'
  7213. lt_prog_compiler_wl=''
  7214. ;;
  7215. *Sun\ F* | *Sun*Fortran*)
  7216. lt_prog_compiler_pic='-KPIC'
  7217. lt_prog_compiler_static='-Bstatic'
  7218. lt_prog_compiler_wl='-Qoption ld '
  7219. ;;
  7220. *Sun\ C*)
  7221. # Sun C 5.9
  7222. lt_prog_compiler_pic='-KPIC'
  7223. lt_prog_compiler_static='-Bstatic'
  7224. lt_prog_compiler_wl='-Wl,'
  7225. ;;
  7226. *Intel*\ [CF]*Compiler*)
  7227. lt_prog_compiler_wl='-Wl,'
  7228. lt_prog_compiler_pic='-fPIC'
  7229. lt_prog_compiler_static='-static'
  7230. ;;
  7231. *Portland\ Group*)
  7232. lt_prog_compiler_wl='-Wl,'
  7233. lt_prog_compiler_pic='-fpic'
  7234. lt_prog_compiler_static='-Bstatic'
  7235. ;;
  7236. esac
  7237. ;;
  7238. esac
  7239. ;;
  7240. newsos6)
  7241. lt_prog_compiler_pic='-KPIC'
  7242. lt_prog_compiler_static='-Bstatic'
  7243. ;;
  7244. *nto* | *qnx*)
  7245. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7246. # it will coredump.
  7247. lt_prog_compiler_pic='-fPIC -shared'
  7248. ;;
  7249. osf3* | osf4* | osf5*)
  7250. lt_prog_compiler_wl='-Wl,'
  7251. # All OSF/1 code is PIC.
  7252. lt_prog_compiler_static='-non_shared'
  7253. ;;
  7254. rdos*)
  7255. lt_prog_compiler_static='-non_shared'
  7256. ;;
  7257. solaris*)
  7258. lt_prog_compiler_pic='-KPIC'
  7259. lt_prog_compiler_static='-Bstatic'
  7260. case $cc_basename in
  7261. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7262. lt_prog_compiler_wl='-Qoption ld ';;
  7263. *)
  7264. lt_prog_compiler_wl='-Wl,';;
  7265. esac
  7266. ;;
  7267. sunos4*)
  7268. lt_prog_compiler_wl='-Qoption ld '
  7269. lt_prog_compiler_pic='-PIC'
  7270. lt_prog_compiler_static='-Bstatic'
  7271. ;;
  7272. sysv4 | sysv4.2uw2* | sysv4.3*)
  7273. lt_prog_compiler_wl='-Wl,'
  7274. lt_prog_compiler_pic='-KPIC'
  7275. lt_prog_compiler_static='-Bstatic'
  7276. ;;
  7277. sysv4*MP*)
  7278. if test -d /usr/nec ;then
  7279. lt_prog_compiler_pic='-Kconform_pic'
  7280. lt_prog_compiler_static='-Bstatic'
  7281. fi
  7282. ;;
  7283. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7284. lt_prog_compiler_wl='-Wl,'
  7285. lt_prog_compiler_pic='-KPIC'
  7286. lt_prog_compiler_static='-Bstatic'
  7287. ;;
  7288. unicos*)
  7289. lt_prog_compiler_wl='-Wl,'
  7290. lt_prog_compiler_can_build_shared=no
  7291. ;;
  7292. uts4*)
  7293. lt_prog_compiler_pic='-pic'
  7294. lt_prog_compiler_static='-Bstatic'
  7295. ;;
  7296. *)
  7297. lt_prog_compiler_can_build_shared=no
  7298. ;;
  7299. esac
  7300. fi
  7301. case $host_os in
  7302. # For platforms which do not support PIC, -DPIC is meaningless:
  7303. *djgpp*)
  7304. lt_prog_compiler_pic=
  7305. ;;
  7306. *)
  7307. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7308. ;;
  7309. esac
  7310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7311. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7312. if ${lt_cv_prog_compiler_pic+:} false; then :
  7313. $as_echo_n "(cached) " >&6
  7314. else
  7315. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7316. fi
  7317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7318. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7319. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7320. #
  7321. # Check to make sure the PIC flag actually works.
  7322. #
  7323. if test -n "$lt_prog_compiler_pic"; then
  7324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7325. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7326. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7327. $as_echo_n "(cached) " >&6
  7328. else
  7329. lt_cv_prog_compiler_pic_works=no
  7330. ac_outfile=conftest.$ac_objext
  7331. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7332. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7333. # Insert the option either (1) after the last *FLAGS variable, or
  7334. # (2) before a word containing "conftest.", or (3) at the end.
  7335. # Note that $ac_compile itself does not contain backslashes and begins
  7336. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7337. # The option is referenced via a variable to avoid confusing sed.
  7338. lt_compile=`echo "$ac_compile" | $SED \
  7339. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7340. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7341. -e 's:$: $lt_compiler_flag:'`
  7342. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7343. (eval "$lt_compile" 2>conftest.err)
  7344. ac_status=$?
  7345. cat conftest.err >&5
  7346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7347. if (exit $ac_status) && test -s "$ac_outfile"; then
  7348. # The compiler can only warn and ignore the option if not recognized
  7349. # So say no if there are warnings other than the usual output.
  7350. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7351. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7352. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7353. lt_cv_prog_compiler_pic_works=yes
  7354. fi
  7355. fi
  7356. $RM conftest*
  7357. fi
  7358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7359. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7360. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7361. case $lt_prog_compiler_pic in
  7362. "" | " "*) ;;
  7363. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7364. esac
  7365. else
  7366. lt_prog_compiler_pic=
  7367. lt_prog_compiler_can_build_shared=no
  7368. fi
  7369. fi
  7370. #
  7371. # Check to make sure the static flag actually works.
  7372. #
  7373. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7375. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7376. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7377. $as_echo_n "(cached) " >&6
  7378. else
  7379. lt_cv_prog_compiler_static_works=no
  7380. save_LDFLAGS="$LDFLAGS"
  7381. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7382. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7383. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7384. # The linker can only warn and ignore the option if not recognized
  7385. # So say no if there are warnings
  7386. if test -s conftest.err; then
  7387. # Append any errors to the config.log.
  7388. cat conftest.err 1>&5
  7389. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7390. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7391. if diff conftest.exp conftest.er2 >/dev/null; then
  7392. lt_cv_prog_compiler_static_works=yes
  7393. fi
  7394. else
  7395. lt_cv_prog_compiler_static_works=yes
  7396. fi
  7397. fi
  7398. $RM -r conftest*
  7399. LDFLAGS="$save_LDFLAGS"
  7400. fi
  7401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7402. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7403. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7404. :
  7405. else
  7406. lt_prog_compiler_static=
  7407. fi
  7408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7409. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7410. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7411. $as_echo_n "(cached) " >&6
  7412. else
  7413. lt_cv_prog_compiler_c_o=no
  7414. $RM -r conftest 2>/dev/null
  7415. mkdir conftest
  7416. cd conftest
  7417. mkdir out
  7418. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7419. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7420. # Insert the option either (1) after the last *FLAGS variable, or
  7421. # (2) before a word containing "conftest.", or (3) at the end.
  7422. # Note that $ac_compile itself does not contain backslashes and begins
  7423. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7424. lt_compile=`echo "$ac_compile" | $SED \
  7425. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7426. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7427. -e 's:$: $lt_compiler_flag:'`
  7428. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7429. (eval "$lt_compile" 2>out/conftest.err)
  7430. ac_status=$?
  7431. cat out/conftest.err >&5
  7432. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7433. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7434. then
  7435. # The compiler can only warn and ignore the option if not recognized
  7436. # So say no if there are warnings
  7437. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7438. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7439. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7440. lt_cv_prog_compiler_c_o=yes
  7441. fi
  7442. fi
  7443. chmod u+w . 2>&5
  7444. $RM conftest*
  7445. # SGI C++ compiler will create directory out/ii_files/ for
  7446. # template instantiation
  7447. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7448. $RM out/* && rmdir out
  7449. cd ..
  7450. $RM -r conftest
  7451. $RM conftest*
  7452. fi
  7453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7454. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7456. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7457. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7458. $as_echo_n "(cached) " >&6
  7459. else
  7460. lt_cv_prog_compiler_c_o=no
  7461. $RM -r conftest 2>/dev/null
  7462. mkdir conftest
  7463. cd conftest
  7464. mkdir out
  7465. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7466. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7467. # Insert the option either (1) after the last *FLAGS variable, or
  7468. # (2) before a word containing "conftest.", or (3) at the end.
  7469. # Note that $ac_compile itself does not contain backslashes and begins
  7470. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7471. lt_compile=`echo "$ac_compile" | $SED \
  7472. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7473. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7474. -e 's:$: $lt_compiler_flag:'`
  7475. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7476. (eval "$lt_compile" 2>out/conftest.err)
  7477. ac_status=$?
  7478. cat out/conftest.err >&5
  7479. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7480. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7481. then
  7482. # The compiler can only warn and ignore the option if not recognized
  7483. # So say no if there are warnings
  7484. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7485. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7486. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7487. lt_cv_prog_compiler_c_o=yes
  7488. fi
  7489. fi
  7490. chmod u+w . 2>&5
  7491. $RM conftest*
  7492. # SGI C++ compiler will create directory out/ii_files/ for
  7493. # template instantiation
  7494. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7495. $RM out/* && rmdir out
  7496. cd ..
  7497. $RM -r conftest
  7498. $RM conftest*
  7499. fi
  7500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7501. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7502. hard_links="nottested"
  7503. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7504. # do not overwrite the value of need_locks provided by the user
  7505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7506. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7507. hard_links=yes
  7508. $RM conftest*
  7509. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7510. touch conftest.a
  7511. ln conftest.a conftest.b 2>&5 || hard_links=no
  7512. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7514. $as_echo "$hard_links" >&6; }
  7515. if test "$hard_links" = no; then
  7516. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7517. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7518. need_locks=warn
  7519. fi
  7520. else
  7521. need_locks=no
  7522. fi
  7523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7524. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7525. runpath_var=
  7526. allow_undefined_flag=
  7527. always_export_symbols=no
  7528. archive_cmds=
  7529. archive_expsym_cmds=
  7530. compiler_needs_object=no
  7531. enable_shared_with_static_runtimes=no
  7532. export_dynamic_flag_spec=
  7533. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7534. hardcode_automatic=no
  7535. hardcode_direct=no
  7536. hardcode_direct_absolute=no
  7537. hardcode_libdir_flag_spec=
  7538. hardcode_libdir_separator=
  7539. hardcode_minus_L=no
  7540. hardcode_shlibpath_var=unsupported
  7541. inherit_rpath=no
  7542. link_all_deplibs=unknown
  7543. module_cmds=
  7544. module_expsym_cmds=
  7545. old_archive_from_new_cmds=
  7546. old_archive_from_expsyms_cmds=
  7547. thread_safe_flag_spec=
  7548. whole_archive_flag_spec=
  7549. # include_expsyms should be a list of space-separated symbols to be *always*
  7550. # included in the symbol list
  7551. include_expsyms=
  7552. # exclude_expsyms can be an extended regexp of symbols to exclude
  7553. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7554. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7555. # as well as any symbol that contains `d'.
  7556. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7557. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7558. # platforms (ab)use it in PIC code, but their linkers get confused if
  7559. # the symbol is explicitly referenced. Since portable code cannot
  7560. # rely on this symbol name, it's probably fine to never include it in
  7561. # preloaded symbol tables.
  7562. # Exclude shared library initialization/finalization symbols.
  7563. extract_expsyms_cmds=
  7564. case $host_os in
  7565. cygwin* | mingw* | pw32* | cegcc*)
  7566. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7567. # When not using gcc, we currently assume that we are using
  7568. # Microsoft Visual C++.
  7569. if test "$GCC" != yes; then
  7570. with_gnu_ld=no
  7571. fi
  7572. ;;
  7573. interix*)
  7574. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7575. with_gnu_ld=yes
  7576. ;;
  7577. openbsd*)
  7578. with_gnu_ld=no
  7579. ;;
  7580. esac
  7581. ld_shlibs=yes
  7582. # On some targets, GNU ld is compatible enough with the native linker
  7583. # that we're better off using the native interface for both.
  7584. lt_use_gnu_ld_interface=no
  7585. if test "$with_gnu_ld" = yes; then
  7586. case $host_os in
  7587. aix*)
  7588. # The AIX port of GNU ld has always aspired to compatibility
  7589. # with the native linker. However, as the warning in the GNU ld
  7590. # block says, versions before 2.19.5* couldn't really create working
  7591. # shared libraries, regardless of the interface used.
  7592. case `$LD -v 2>&1` in
  7593. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7594. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7595. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7596. *)
  7597. lt_use_gnu_ld_interface=yes
  7598. ;;
  7599. esac
  7600. ;;
  7601. *)
  7602. lt_use_gnu_ld_interface=yes
  7603. ;;
  7604. esac
  7605. fi
  7606. if test "$lt_use_gnu_ld_interface" = yes; then
  7607. # If archive_cmds runs LD, not CC, wlarc should be empty
  7608. wlarc='${wl}'
  7609. # Set some defaults for GNU ld with shared library support. These
  7610. # are reset later if shared libraries are not supported. Putting them
  7611. # here allows them to be overridden if necessary.
  7612. runpath_var=LD_RUN_PATH
  7613. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7614. export_dynamic_flag_spec='${wl}--export-dynamic'
  7615. # ancient GNU ld didn't support --whole-archive et. al.
  7616. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7617. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7618. else
  7619. whole_archive_flag_spec=
  7620. fi
  7621. supports_anon_versioning=no
  7622. case `$LD -v 2>&1` in
  7623. *GNU\ gold*) supports_anon_versioning=yes ;;
  7624. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7625. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7626. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7627. *\ 2.11.*) ;; # other 2.11 versions
  7628. *) supports_anon_versioning=yes ;;
  7629. esac
  7630. # See if GNU ld supports shared libraries.
  7631. case $host_os in
  7632. aix[3-9]*)
  7633. # On AIX/PPC, the GNU linker is very broken
  7634. if test "$host_cpu" != ia64; then
  7635. ld_shlibs=no
  7636. cat <<_LT_EOF 1>&2
  7637. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7638. *** to be unable to reliably create shared libraries on AIX.
  7639. *** Therefore, libtool is disabling shared libraries support. If you
  7640. *** really care for shared libraries, you may want to install binutils
  7641. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7642. *** You will then need to restart the configuration process.
  7643. _LT_EOF
  7644. fi
  7645. ;;
  7646. amigaos*)
  7647. case $host_cpu in
  7648. powerpc)
  7649. # see comment about AmigaOS4 .so support
  7650. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7651. archive_expsym_cmds=''
  7652. ;;
  7653. m68k)
  7654. 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)'
  7655. hardcode_libdir_flag_spec='-L$libdir'
  7656. hardcode_minus_L=yes
  7657. ;;
  7658. esac
  7659. ;;
  7660. beos*)
  7661. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7662. allow_undefined_flag=unsupported
  7663. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7664. # support --undefined. This deserves some investigation. FIXME
  7665. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7666. else
  7667. ld_shlibs=no
  7668. fi
  7669. ;;
  7670. cygwin* | mingw* | pw32* | cegcc*)
  7671. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7672. # as there is no search path for DLLs.
  7673. hardcode_libdir_flag_spec='-L$libdir'
  7674. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7675. allow_undefined_flag=unsupported
  7676. always_export_symbols=no
  7677. enable_shared_with_static_runtimes=yes
  7678. 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'
  7679. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7680. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7681. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7682. # If the export-symbols file already is a .def file (1st line
  7683. # is EXPORTS), use it as is; otherwise, prepend...
  7684. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7685. cp $export_symbols $output_objdir/$soname.def;
  7686. else
  7687. echo EXPORTS > $output_objdir/$soname.def;
  7688. cat $export_symbols >> $output_objdir/$soname.def;
  7689. fi~
  7690. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7691. else
  7692. ld_shlibs=no
  7693. fi
  7694. ;;
  7695. haiku*)
  7696. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7697. link_all_deplibs=yes
  7698. ;;
  7699. interix[3-9]*)
  7700. hardcode_direct=no
  7701. hardcode_shlibpath_var=no
  7702. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7703. export_dynamic_flag_spec='${wl}-E'
  7704. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7705. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7706. # default) and relocated if they conflict, which is a slow very memory
  7707. # consuming and fragmenting process. To avoid this, we pick a random,
  7708. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7709. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7710. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7711. 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'
  7712. ;;
  7713. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7714. tmp_diet=no
  7715. if test "$host_os" = linux-dietlibc; then
  7716. case $cc_basename in
  7717. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7718. esac
  7719. fi
  7720. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7721. && test "$tmp_diet" = no
  7722. then
  7723. tmp_addflag=' $pic_flag'
  7724. tmp_sharedflag='-shared'
  7725. case $cc_basename,$host_cpu in
  7726. pgcc*) # Portland Group C compiler
  7727. 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'
  7728. tmp_addflag=' $pic_flag'
  7729. ;;
  7730. pgf77* | pgf90* | pgf95* | pgfortran*)
  7731. # Portland Group f77 and f90 compilers
  7732. 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'
  7733. tmp_addflag=' $pic_flag -Mnomain' ;;
  7734. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7735. tmp_addflag=' -i_dynamic' ;;
  7736. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7737. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7738. ifc* | ifort*) # Intel Fortran compiler
  7739. tmp_addflag=' -nofor_main' ;;
  7740. lf95*) # Lahey Fortran 8.1
  7741. whole_archive_flag_spec=
  7742. tmp_sharedflag='--shared' ;;
  7743. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7744. tmp_sharedflag='-qmkshrobj'
  7745. tmp_addflag= ;;
  7746. nvcc*) # Cuda Compiler Driver 2.2
  7747. 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'
  7748. compiler_needs_object=yes
  7749. ;;
  7750. esac
  7751. case `$CC -V 2>&1 | sed 5q` in
  7752. *Sun\ C*) # Sun C 5.9
  7753. 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'
  7754. compiler_needs_object=yes
  7755. tmp_sharedflag='-G' ;;
  7756. *Sun\ F*) # Sun Fortran 8.3
  7757. tmp_sharedflag='-G' ;;
  7758. esac
  7759. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7760. if test "x$supports_anon_versioning" = xyes; then
  7761. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7762. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7763. echo "local: *; };" >> $output_objdir/$libname.ver~
  7764. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7765. fi
  7766. case $cc_basename in
  7767. xlf* | bgf* | bgxlf* | mpixlf*)
  7768. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7769. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7770. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7771. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7772. if test "x$supports_anon_versioning" = xyes; then
  7773. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7774. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7775. echo "local: *; };" >> $output_objdir/$libname.ver~
  7776. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7777. fi
  7778. ;;
  7779. esac
  7780. else
  7781. ld_shlibs=no
  7782. fi
  7783. ;;
  7784. netbsd*)
  7785. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7786. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7787. wlarc=
  7788. else
  7789. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7790. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7791. fi
  7792. ;;
  7793. solaris*)
  7794. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7795. ld_shlibs=no
  7796. cat <<_LT_EOF 1>&2
  7797. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7798. *** create shared libraries on Solaris systems. Therefore, libtool
  7799. *** is disabling shared libraries support. We urge you to upgrade GNU
  7800. *** binutils to release 2.9.1 or newer. Another option is to modify
  7801. *** your PATH or compiler configuration so that the native linker is
  7802. *** used, and then restart.
  7803. _LT_EOF
  7804. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7805. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7806. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7807. else
  7808. ld_shlibs=no
  7809. fi
  7810. ;;
  7811. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7812. case `$LD -v 2>&1` in
  7813. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7814. ld_shlibs=no
  7815. cat <<_LT_EOF 1>&2
  7816. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7817. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7818. *** is disabling shared libraries support. We urge you to upgrade GNU
  7819. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7820. *** your PATH or compiler configuration so that the native linker is
  7821. *** used, and then restart.
  7822. _LT_EOF
  7823. ;;
  7824. *)
  7825. # For security reasons, it is highly recommended that you always
  7826. # use absolute paths for naming shared libraries, and exclude the
  7827. # DT_RUNPATH tag from executables and libraries. But doing so
  7828. # requires that you compile everything twice, which is a pain.
  7829. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7830. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7831. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7832. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7833. else
  7834. ld_shlibs=no
  7835. fi
  7836. ;;
  7837. esac
  7838. ;;
  7839. sunos4*)
  7840. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7841. wlarc=
  7842. hardcode_direct=yes
  7843. hardcode_shlibpath_var=no
  7844. ;;
  7845. *)
  7846. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7847. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7848. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7849. else
  7850. ld_shlibs=no
  7851. fi
  7852. ;;
  7853. esac
  7854. if test "$ld_shlibs" = no; then
  7855. runpath_var=
  7856. hardcode_libdir_flag_spec=
  7857. export_dynamic_flag_spec=
  7858. whole_archive_flag_spec=
  7859. fi
  7860. else
  7861. # PORTME fill in a description of your system's linker (not GNU ld)
  7862. case $host_os in
  7863. aix3*)
  7864. allow_undefined_flag=unsupported
  7865. always_export_symbols=yes
  7866. 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'
  7867. # Note: this linker hardcodes the directories in LIBPATH if there
  7868. # are no directories specified by -L.
  7869. hardcode_minus_L=yes
  7870. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7871. # Neither direct hardcoding nor static linking is supported with a
  7872. # broken collect2.
  7873. hardcode_direct=unsupported
  7874. fi
  7875. ;;
  7876. aix[4-9]*)
  7877. if test "$host_cpu" = ia64; then
  7878. # On IA64, the linker does run time linking by default, so we don't
  7879. # have to do anything special.
  7880. aix_use_runtimelinking=no
  7881. exp_sym_flag='-Bexport'
  7882. no_entry_flag=""
  7883. else
  7884. # If we're using GNU nm, then we don't want the "-C" option.
  7885. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7886. # Also, AIX nm treats weak defined symbols like other global
  7887. # defined symbols, whereas GNU nm marks them as "W".
  7888. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7889. 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'
  7890. else
  7891. 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'
  7892. fi
  7893. aix_use_runtimelinking=no
  7894. # Test if we are trying to use run time linking or normal
  7895. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7896. # need to do runtime linking.
  7897. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7898. for ld_flag in $LDFLAGS; do
  7899. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7900. aix_use_runtimelinking=yes
  7901. break
  7902. fi
  7903. done
  7904. ;;
  7905. esac
  7906. exp_sym_flag='-bexport'
  7907. no_entry_flag='-bnoentry'
  7908. fi
  7909. # When large executables or shared objects are built, AIX ld can
  7910. # have problems creating the table of contents. If linking a library
  7911. # or program results in "error TOC overflow" add -mminimal-toc to
  7912. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7913. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7914. archive_cmds=''
  7915. hardcode_direct=yes
  7916. hardcode_direct_absolute=yes
  7917. hardcode_libdir_separator=':'
  7918. link_all_deplibs=yes
  7919. file_list_spec='${wl}-f,'
  7920. if test "$GCC" = yes; then
  7921. case $host_os in aix4.[012]|aix4.[012].*)
  7922. # We only want to do this on AIX 4.2 and lower, the check
  7923. # below for broken collect2 doesn't work under 4.3+
  7924. collect2name=`${CC} -print-prog-name=collect2`
  7925. if test -f "$collect2name" &&
  7926. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7927. then
  7928. # We have reworked collect2
  7929. :
  7930. else
  7931. # We have old collect2
  7932. hardcode_direct=unsupported
  7933. # It fails to find uninstalled libraries when the uninstalled
  7934. # path is not listed in the libpath. Setting hardcode_minus_L
  7935. # to unsupported forces relinking
  7936. hardcode_minus_L=yes
  7937. hardcode_libdir_flag_spec='-L$libdir'
  7938. hardcode_libdir_separator=
  7939. fi
  7940. ;;
  7941. esac
  7942. shared_flag='-shared'
  7943. if test "$aix_use_runtimelinking" = yes; then
  7944. shared_flag="$shared_flag "'${wl}-G'
  7945. fi
  7946. else
  7947. # not using gcc
  7948. if test "$host_cpu" = ia64; then
  7949. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7950. # chokes on -Wl,-G. The following line is correct:
  7951. shared_flag='-G'
  7952. else
  7953. if test "$aix_use_runtimelinking" = yes; then
  7954. shared_flag='${wl}-G'
  7955. else
  7956. shared_flag='${wl}-bM:SRE'
  7957. fi
  7958. fi
  7959. fi
  7960. export_dynamic_flag_spec='${wl}-bexpall'
  7961. # It seems that -bexpall does not export symbols beginning with
  7962. # underscore (_), so it is better to generate a list of symbols to export.
  7963. always_export_symbols=yes
  7964. if test "$aix_use_runtimelinking" = yes; then
  7965. # Warning - without using the other runtime loading flags (-brtl),
  7966. # -berok will link without error, but may produce a broken library.
  7967. allow_undefined_flag='-berok'
  7968. # Determine the default libpath from the value encoded in an
  7969. # empty executable.
  7970. if test "${lt_cv_aix_libpath+set}" = set; then
  7971. aix_libpath=$lt_cv_aix_libpath
  7972. else
  7973. if ${lt_cv_aix_libpath_+:} false; then :
  7974. $as_echo_n "(cached) " >&6
  7975. else
  7976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7977. /* end confdefs.h. */
  7978. int
  7979. main ()
  7980. {
  7981. ;
  7982. return 0;
  7983. }
  7984. _ACEOF
  7985. if ac_fn_c_try_link "$LINENO"; then :
  7986. lt_aix_libpath_sed='
  7987. /Import File Strings/,/^$/ {
  7988. /^0/ {
  7989. s/^0 *\([^ ]*\) *$/\1/
  7990. p
  7991. }
  7992. }'
  7993. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7994. # Check for a 64-bit object if we didn't find anything.
  7995. if test -z "$lt_cv_aix_libpath_"; then
  7996. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7997. fi
  7998. fi
  7999. rm -f core conftest.err conftest.$ac_objext \
  8000. conftest$ac_exeext conftest.$ac_ext
  8001. if test -z "$lt_cv_aix_libpath_"; then
  8002. lt_cv_aix_libpath_="/usr/lib:/lib"
  8003. fi
  8004. fi
  8005. aix_libpath=$lt_cv_aix_libpath_
  8006. fi
  8007. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8008. 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"
  8009. else
  8010. if test "$host_cpu" = ia64; then
  8011. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8012. allow_undefined_flag="-z nodefs"
  8013. 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"
  8014. else
  8015. # Determine the default libpath from the value encoded in an
  8016. # empty executable.
  8017. if test "${lt_cv_aix_libpath+set}" = set; then
  8018. aix_libpath=$lt_cv_aix_libpath
  8019. else
  8020. if ${lt_cv_aix_libpath_+:} false; then :
  8021. $as_echo_n "(cached) " >&6
  8022. else
  8023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8024. /* end confdefs.h. */
  8025. int
  8026. main ()
  8027. {
  8028. ;
  8029. return 0;
  8030. }
  8031. _ACEOF
  8032. if ac_fn_c_try_link "$LINENO"; then :
  8033. lt_aix_libpath_sed='
  8034. /Import File Strings/,/^$/ {
  8035. /^0/ {
  8036. s/^0 *\([^ ]*\) *$/\1/
  8037. p
  8038. }
  8039. }'
  8040. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8041. # Check for a 64-bit object if we didn't find anything.
  8042. if test -z "$lt_cv_aix_libpath_"; then
  8043. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8044. fi
  8045. fi
  8046. rm -f core conftest.err conftest.$ac_objext \
  8047. conftest$ac_exeext conftest.$ac_ext
  8048. if test -z "$lt_cv_aix_libpath_"; then
  8049. lt_cv_aix_libpath_="/usr/lib:/lib"
  8050. fi
  8051. fi
  8052. aix_libpath=$lt_cv_aix_libpath_
  8053. fi
  8054. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8055. # Warning - without using the other run time loading flags,
  8056. # -berok will link without error, but may produce a broken library.
  8057. no_undefined_flag=' ${wl}-bernotok'
  8058. allow_undefined_flag=' ${wl}-berok'
  8059. if test "$with_gnu_ld" = yes; then
  8060. # We only use this code for GNU lds that support --whole-archive.
  8061. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8062. else
  8063. # Exported symbols can be pulled into shared objects from archives
  8064. whole_archive_flag_spec='$convenience'
  8065. fi
  8066. archive_cmds_need_lc=yes
  8067. # This is similar to how AIX traditionally builds its shared libraries.
  8068. 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'
  8069. fi
  8070. fi
  8071. ;;
  8072. amigaos*)
  8073. case $host_cpu in
  8074. powerpc)
  8075. # see comment about AmigaOS4 .so support
  8076. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8077. archive_expsym_cmds=''
  8078. ;;
  8079. m68k)
  8080. 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)'
  8081. hardcode_libdir_flag_spec='-L$libdir'
  8082. hardcode_minus_L=yes
  8083. ;;
  8084. esac
  8085. ;;
  8086. bsdi[45]*)
  8087. export_dynamic_flag_spec=-rdynamic
  8088. ;;
  8089. cygwin* | mingw* | pw32* | cegcc*)
  8090. # When not using gcc, we currently assume that we are using
  8091. # Microsoft Visual C++.
  8092. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8093. # no search path for DLLs.
  8094. case $cc_basename in
  8095. cl*)
  8096. # Native MSVC
  8097. hardcode_libdir_flag_spec=' '
  8098. allow_undefined_flag=unsupported
  8099. always_export_symbols=yes
  8100. file_list_spec='@'
  8101. # Tell ltmain to make .lib files, not .a files.
  8102. libext=lib
  8103. # Tell ltmain to make .dll files, not .so files.
  8104. shrext_cmds=".dll"
  8105. # FIXME: Setting linknames here is a bad hack.
  8106. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8107. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8108. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8109. else
  8110. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8111. fi~
  8112. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8113. linknames='
  8114. # The linker will not automatically build a static lib if we build a DLL.
  8115. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8116. enable_shared_with_static_runtimes=yes
  8117. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8118. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8119. # Don't use ranlib
  8120. old_postinstall_cmds='chmod 644 $oldlib'
  8121. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8122. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8123. case $lt_outputfile in
  8124. *.exe|*.EXE) ;;
  8125. *)
  8126. lt_outputfile="$lt_outputfile.exe"
  8127. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8128. ;;
  8129. esac~
  8130. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8131. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8132. $RM "$lt_outputfile.manifest";
  8133. fi'
  8134. ;;
  8135. *)
  8136. # Assume MSVC wrapper
  8137. hardcode_libdir_flag_spec=' '
  8138. allow_undefined_flag=unsupported
  8139. # Tell ltmain to make .lib files, not .a files.
  8140. libext=lib
  8141. # Tell ltmain to make .dll files, not .so files.
  8142. shrext_cmds=".dll"
  8143. # FIXME: Setting linknames here is a bad hack.
  8144. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8145. # The linker will automatically build a .lib file if we build a DLL.
  8146. old_archive_from_new_cmds='true'
  8147. # FIXME: Should let the user specify the lib program.
  8148. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8149. enable_shared_with_static_runtimes=yes
  8150. ;;
  8151. esac
  8152. ;;
  8153. darwin* | rhapsody*)
  8154. archive_cmds_need_lc=no
  8155. hardcode_direct=no
  8156. hardcode_automatic=yes
  8157. hardcode_shlibpath_var=unsupported
  8158. if test "$lt_cv_ld_force_load" = "yes"; then
  8159. 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\"`'
  8160. else
  8161. whole_archive_flag_spec=''
  8162. fi
  8163. link_all_deplibs=yes
  8164. allow_undefined_flag="$_lt_dar_allow_undefined"
  8165. case $cc_basename in
  8166. ifort*) _lt_dar_can_shared=yes ;;
  8167. *) _lt_dar_can_shared=$GCC ;;
  8168. esac
  8169. if test "$_lt_dar_can_shared" = "yes"; then
  8170. output_verbose_link_cmd=func_echo_all
  8171. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8172. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8173. 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}"
  8174. 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}"
  8175. else
  8176. ld_shlibs=no
  8177. fi
  8178. ;;
  8179. dgux*)
  8180. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8181. hardcode_libdir_flag_spec='-L$libdir'
  8182. hardcode_shlibpath_var=no
  8183. ;;
  8184. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8185. # support. Future versions do this automatically, but an explicit c++rt0.o
  8186. # does not break anything, and helps significantly (at the cost of a little
  8187. # extra space).
  8188. freebsd2.2*)
  8189. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8190. hardcode_libdir_flag_spec='-R$libdir'
  8191. hardcode_direct=yes
  8192. hardcode_shlibpath_var=no
  8193. ;;
  8194. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8195. freebsd2.*)
  8196. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8197. hardcode_direct=yes
  8198. hardcode_minus_L=yes
  8199. hardcode_shlibpath_var=no
  8200. ;;
  8201. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8202. freebsd* | dragonfly*)
  8203. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8204. hardcode_libdir_flag_spec='-R$libdir'
  8205. hardcode_direct=yes
  8206. hardcode_shlibpath_var=no
  8207. ;;
  8208. hpux9*)
  8209. if test "$GCC" = yes; then
  8210. 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'
  8211. else
  8212. 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'
  8213. fi
  8214. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8215. hardcode_libdir_separator=:
  8216. hardcode_direct=yes
  8217. # hardcode_minus_L: Not really in the search PATH,
  8218. # but as the default location of the library.
  8219. hardcode_minus_L=yes
  8220. export_dynamic_flag_spec='${wl}-E'
  8221. ;;
  8222. hpux10*)
  8223. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8224. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8225. else
  8226. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8227. fi
  8228. if test "$with_gnu_ld" = no; then
  8229. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8230. hardcode_libdir_separator=:
  8231. hardcode_direct=yes
  8232. hardcode_direct_absolute=yes
  8233. export_dynamic_flag_spec='${wl}-E'
  8234. # hardcode_minus_L: Not really in the search PATH,
  8235. # but as the default location of the library.
  8236. hardcode_minus_L=yes
  8237. fi
  8238. ;;
  8239. hpux11*)
  8240. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8241. case $host_cpu in
  8242. hppa*64*)
  8243. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8244. ;;
  8245. ia64*)
  8246. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8247. ;;
  8248. *)
  8249. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8250. ;;
  8251. esac
  8252. else
  8253. case $host_cpu in
  8254. hppa*64*)
  8255. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8256. ;;
  8257. ia64*)
  8258. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8259. ;;
  8260. *)
  8261. # Older versions of the 11.00 compiler do not understand -b yet
  8262. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8264. $as_echo_n "checking if $CC understands -b... " >&6; }
  8265. if ${lt_cv_prog_compiler__b+:} false; then :
  8266. $as_echo_n "(cached) " >&6
  8267. else
  8268. lt_cv_prog_compiler__b=no
  8269. save_LDFLAGS="$LDFLAGS"
  8270. LDFLAGS="$LDFLAGS -b"
  8271. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8272. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8273. # The linker can only warn and ignore the option if not recognized
  8274. # So say no if there are warnings
  8275. if test -s conftest.err; then
  8276. # Append any errors to the config.log.
  8277. cat conftest.err 1>&5
  8278. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8279. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8280. if diff conftest.exp conftest.er2 >/dev/null; then
  8281. lt_cv_prog_compiler__b=yes
  8282. fi
  8283. else
  8284. lt_cv_prog_compiler__b=yes
  8285. fi
  8286. fi
  8287. $RM -r conftest*
  8288. LDFLAGS="$save_LDFLAGS"
  8289. fi
  8290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8291. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8292. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8293. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8294. else
  8295. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8296. fi
  8297. ;;
  8298. esac
  8299. fi
  8300. if test "$with_gnu_ld" = no; then
  8301. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8302. hardcode_libdir_separator=:
  8303. case $host_cpu in
  8304. hppa*64*|ia64*)
  8305. hardcode_direct=no
  8306. hardcode_shlibpath_var=no
  8307. ;;
  8308. *)
  8309. hardcode_direct=yes
  8310. hardcode_direct_absolute=yes
  8311. export_dynamic_flag_spec='${wl}-E'
  8312. # hardcode_minus_L: Not really in the search PATH,
  8313. # but as the default location of the library.
  8314. hardcode_minus_L=yes
  8315. ;;
  8316. esac
  8317. fi
  8318. ;;
  8319. irix5* | irix6* | nonstopux*)
  8320. if test "$GCC" = yes; then
  8321. 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'
  8322. # Try to use the -exported_symbol ld option, if it does not
  8323. # work, assume that -exports_file does not work either and
  8324. # implicitly export all symbols.
  8325. # This should be the same for all languages, so no per-tag cache variable.
  8326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8327. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8328. if ${lt_cv_irix_exported_symbol+:} false; then :
  8329. $as_echo_n "(cached) " >&6
  8330. else
  8331. save_LDFLAGS="$LDFLAGS"
  8332. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8334. /* end confdefs.h. */
  8335. int foo (void) { return 0; }
  8336. _ACEOF
  8337. if ac_fn_c_try_link "$LINENO"; then :
  8338. lt_cv_irix_exported_symbol=yes
  8339. else
  8340. lt_cv_irix_exported_symbol=no
  8341. fi
  8342. rm -f core conftest.err conftest.$ac_objext \
  8343. conftest$ac_exeext conftest.$ac_ext
  8344. LDFLAGS="$save_LDFLAGS"
  8345. fi
  8346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8347. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8348. if test "$lt_cv_irix_exported_symbol" = yes; then
  8349. 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'
  8350. fi
  8351. else
  8352. 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'
  8353. 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'
  8354. fi
  8355. archive_cmds_need_lc='no'
  8356. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8357. hardcode_libdir_separator=:
  8358. inherit_rpath=yes
  8359. link_all_deplibs=yes
  8360. ;;
  8361. netbsd*)
  8362. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8363. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8364. else
  8365. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8366. fi
  8367. hardcode_libdir_flag_spec='-R$libdir'
  8368. hardcode_direct=yes
  8369. hardcode_shlibpath_var=no
  8370. ;;
  8371. newsos6)
  8372. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8373. hardcode_direct=yes
  8374. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8375. hardcode_libdir_separator=:
  8376. hardcode_shlibpath_var=no
  8377. ;;
  8378. *nto* | *qnx*)
  8379. ;;
  8380. openbsd*)
  8381. if test -f /usr/libexec/ld.so; then
  8382. hardcode_direct=yes
  8383. hardcode_shlibpath_var=no
  8384. hardcode_direct_absolute=yes
  8385. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8386. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8387. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8388. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8389. export_dynamic_flag_spec='${wl}-E'
  8390. else
  8391. case $host_os in
  8392. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8393. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8394. hardcode_libdir_flag_spec='-R$libdir'
  8395. ;;
  8396. *)
  8397. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8398. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8399. ;;
  8400. esac
  8401. fi
  8402. else
  8403. ld_shlibs=no
  8404. fi
  8405. ;;
  8406. os2*)
  8407. hardcode_libdir_flag_spec='-L$libdir'
  8408. hardcode_minus_L=yes
  8409. allow_undefined_flag=unsupported
  8410. 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'
  8411. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8412. ;;
  8413. osf3*)
  8414. if test "$GCC" = yes; then
  8415. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8416. 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'
  8417. else
  8418. allow_undefined_flag=' -expect_unresolved \*'
  8419. 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'
  8420. fi
  8421. archive_cmds_need_lc='no'
  8422. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8423. hardcode_libdir_separator=:
  8424. ;;
  8425. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8426. if test "$GCC" = yes; then
  8427. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8428. 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'
  8429. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8430. else
  8431. allow_undefined_flag=' -expect_unresolved \*'
  8432. 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'
  8433. 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~
  8434. $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'
  8435. # Both c and cxx compiler support -rpath directly
  8436. hardcode_libdir_flag_spec='-rpath $libdir'
  8437. fi
  8438. archive_cmds_need_lc='no'
  8439. hardcode_libdir_separator=:
  8440. ;;
  8441. solaris*)
  8442. no_undefined_flag=' -z defs'
  8443. if test "$GCC" = yes; then
  8444. wlarc='${wl}'
  8445. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8446. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8447. $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'
  8448. else
  8449. case `$CC -V 2>&1` in
  8450. *"Compilers 5.0"*)
  8451. wlarc=''
  8452. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8453. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8454. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8455. ;;
  8456. *)
  8457. wlarc='${wl}'
  8458. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8459. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8460. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8461. ;;
  8462. esac
  8463. fi
  8464. hardcode_libdir_flag_spec='-R$libdir'
  8465. hardcode_shlibpath_var=no
  8466. case $host_os in
  8467. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8468. *)
  8469. # The compiler driver will combine and reorder linker options,
  8470. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8471. # but is careful enough not to reorder.
  8472. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8473. if test "$GCC" = yes; then
  8474. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8475. else
  8476. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8477. fi
  8478. ;;
  8479. esac
  8480. link_all_deplibs=yes
  8481. ;;
  8482. sunos4*)
  8483. if test "x$host_vendor" = xsequent; then
  8484. # Use $CC to link under sequent, because it throws in some extra .o
  8485. # files that make .init and .fini sections work.
  8486. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8487. else
  8488. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8489. fi
  8490. hardcode_libdir_flag_spec='-L$libdir'
  8491. hardcode_direct=yes
  8492. hardcode_minus_L=yes
  8493. hardcode_shlibpath_var=no
  8494. ;;
  8495. sysv4)
  8496. case $host_vendor in
  8497. sni)
  8498. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8499. hardcode_direct=yes # is this really true???
  8500. ;;
  8501. siemens)
  8502. ## LD is ld it makes a PLAMLIB
  8503. ## CC just makes a GrossModule.
  8504. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8505. reload_cmds='$CC -r -o $output$reload_objs'
  8506. hardcode_direct=no
  8507. ;;
  8508. motorola)
  8509. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8510. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8511. ;;
  8512. esac
  8513. runpath_var='LD_RUN_PATH'
  8514. hardcode_shlibpath_var=no
  8515. ;;
  8516. sysv4.3*)
  8517. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8518. hardcode_shlibpath_var=no
  8519. export_dynamic_flag_spec='-Bexport'
  8520. ;;
  8521. sysv4*MP*)
  8522. if test -d /usr/nec; then
  8523. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8524. hardcode_shlibpath_var=no
  8525. runpath_var=LD_RUN_PATH
  8526. hardcode_runpath_var=yes
  8527. ld_shlibs=yes
  8528. fi
  8529. ;;
  8530. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8531. no_undefined_flag='${wl}-z,text'
  8532. archive_cmds_need_lc=no
  8533. hardcode_shlibpath_var=no
  8534. runpath_var='LD_RUN_PATH'
  8535. if test "$GCC" = yes; then
  8536. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8537. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8538. else
  8539. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8540. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8541. fi
  8542. ;;
  8543. sysv5* | sco3.2v5* | sco5v6*)
  8544. # Note: We can NOT use -z defs as we might desire, because we do not
  8545. # link with -lc, and that would cause any symbols used from libc to
  8546. # always be unresolved, which means just about no library would
  8547. # ever link correctly. If we're not using GNU ld we use -z text
  8548. # though, which does catch some bad symbols but isn't as heavy-handed
  8549. # as -z defs.
  8550. no_undefined_flag='${wl}-z,text'
  8551. allow_undefined_flag='${wl}-z,nodefs'
  8552. archive_cmds_need_lc=no
  8553. hardcode_shlibpath_var=no
  8554. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8555. hardcode_libdir_separator=':'
  8556. link_all_deplibs=yes
  8557. export_dynamic_flag_spec='${wl}-Bexport'
  8558. runpath_var='LD_RUN_PATH'
  8559. if test "$GCC" = yes; then
  8560. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8561. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8562. else
  8563. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8564. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8565. fi
  8566. ;;
  8567. uts4*)
  8568. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8569. hardcode_libdir_flag_spec='-L$libdir'
  8570. hardcode_shlibpath_var=no
  8571. ;;
  8572. *)
  8573. ld_shlibs=no
  8574. ;;
  8575. esac
  8576. if test x$host_vendor = xsni; then
  8577. case $host in
  8578. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8579. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8580. ;;
  8581. esac
  8582. fi
  8583. fi
  8584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8585. $as_echo "$ld_shlibs" >&6; }
  8586. test "$ld_shlibs" = no && can_build_shared=no
  8587. with_gnu_ld=$with_gnu_ld
  8588. #
  8589. # Do we need to explicitly link libc?
  8590. #
  8591. case "x$archive_cmds_need_lc" in
  8592. x|xyes)
  8593. # Assume -lc should be added
  8594. archive_cmds_need_lc=yes
  8595. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8596. case $archive_cmds in
  8597. *'~'*)
  8598. # FIXME: we may have to deal with multi-command sequences.
  8599. ;;
  8600. '$CC '*)
  8601. # Test whether the compiler implicitly links with -lc since on some
  8602. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8603. # to ld, don't add -lc before -lgcc.
  8604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8605. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8606. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8607. $as_echo_n "(cached) " >&6
  8608. else
  8609. $RM conftest*
  8610. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8611. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8612. (eval $ac_compile) 2>&5
  8613. ac_status=$?
  8614. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8615. test $ac_status = 0; } 2>conftest.err; then
  8616. soname=conftest
  8617. lib=conftest
  8618. libobjs=conftest.$ac_objext
  8619. deplibs=
  8620. wl=$lt_prog_compiler_wl
  8621. pic_flag=$lt_prog_compiler_pic
  8622. compiler_flags=-v
  8623. linker_flags=-v
  8624. verstring=
  8625. output_objdir=.
  8626. libname=conftest
  8627. lt_save_allow_undefined_flag=$allow_undefined_flag
  8628. allow_undefined_flag=
  8629. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8630. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8631. ac_status=$?
  8632. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8633. test $ac_status = 0; }
  8634. then
  8635. lt_cv_archive_cmds_need_lc=no
  8636. else
  8637. lt_cv_archive_cmds_need_lc=yes
  8638. fi
  8639. allow_undefined_flag=$lt_save_allow_undefined_flag
  8640. else
  8641. cat conftest.err 1>&5
  8642. fi
  8643. $RM conftest*
  8644. fi
  8645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8646. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8647. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8648. ;;
  8649. esac
  8650. fi
  8651. ;;
  8652. esac
  8653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8654. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8655. if test "$GCC" = yes; then
  8656. case $host_os in
  8657. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8658. *) lt_awk_arg="/^libraries:/" ;;
  8659. esac
  8660. case $host_os in
  8661. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8662. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8663. esac
  8664. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8665. case $lt_search_path_spec in
  8666. *\;*)
  8667. # if the path contains ";" then we assume it to be the separator
  8668. # otherwise default to the standard path separator (i.e. ":") - it is
  8669. # assumed that no part of a normal pathname contains ";" but that should
  8670. # okay in the real world where ";" in dirpaths is itself problematic.
  8671. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8672. ;;
  8673. *)
  8674. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8675. ;;
  8676. esac
  8677. # Ok, now we have the path, separated by spaces, we can step through it
  8678. # and add multilib dir if necessary...
  8679. lt_tmp_lt_search_path_spec=
  8680. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8681. # ...but if some path already ends with the multilib dir we assume
  8682. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8683. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8684. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8685. lt_multi_os_dir=
  8686. ;;
  8687. esac
  8688. for lt_sys_path in $lt_search_path_spec; do
  8689. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8690. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8691. elif test -n "$lt_multi_os_dir"; then
  8692. test -d "$lt_sys_path" && \
  8693. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8694. fi
  8695. done
  8696. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8697. BEGIN {RS=" "; FS="/|\n";} {
  8698. lt_foo="";
  8699. lt_count=0;
  8700. for (lt_i = NF; lt_i > 0; lt_i--) {
  8701. if ($lt_i != "" && $lt_i != ".") {
  8702. if ($lt_i == "..") {
  8703. lt_count++;
  8704. } else {
  8705. if (lt_count == 0) {
  8706. lt_foo="/" $lt_i lt_foo;
  8707. } else {
  8708. lt_count--;
  8709. }
  8710. }
  8711. }
  8712. }
  8713. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8714. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8715. }'`
  8716. # AWK program above erroneously prepends '/' to C:/dos/paths
  8717. # for these hosts.
  8718. case $host_os in
  8719. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8720. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8721. esac
  8722. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8723. else
  8724. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8725. fi
  8726. library_names_spec=
  8727. libname_spec='lib$name'
  8728. soname_spec=
  8729. shrext_cmds=".so"
  8730. postinstall_cmds=
  8731. postuninstall_cmds=
  8732. finish_cmds=
  8733. finish_eval=
  8734. shlibpath_var=
  8735. shlibpath_overrides_runpath=unknown
  8736. version_type=none
  8737. dynamic_linker="$host_os ld.so"
  8738. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8739. need_lib_prefix=unknown
  8740. hardcode_into_libs=no
  8741. # when you set need_version to no, make sure it does not cause -set_version
  8742. # flags to be left without arguments
  8743. need_version=unknown
  8744. case $host_os in
  8745. aix3*)
  8746. version_type=linux # correct to gnu/linux during the next big refactor
  8747. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8748. shlibpath_var=LIBPATH
  8749. # AIX 3 has no versioning support, so we append a major version to the name.
  8750. soname_spec='${libname}${release}${shared_ext}$major'
  8751. ;;
  8752. aix[4-9]*)
  8753. version_type=linux # correct to gnu/linux during the next big refactor
  8754. need_lib_prefix=no
  8755. need_version=no
  8756. hardcode_into_libs=yes
  8757. if test "$host_cpu" = ia64; then
  8758. # AIX 5 supports IA64
  8759. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8760. shlibpath_var=LD_LIBRARY_PATH
  8761. else
  8762. # With GCC up to 2.95.x, collect2 would create an import file
  8763. # for dependence libraries. The import file would start with
  8764. # the line `#! .'. This would cause the generated library to
  8765. # depend on `.', always an invalid library. This was fixed in
  8766. # development snapshots of GCC prior to 3.0.
  8767. case $host_os in
  8768. aix4 | aix4.[01] | aix4.[01].*)
  8769. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8770. echo ' yes '
  8771. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8772. :
  8773. else
  8774. can_build_shared=no
  8775. fi
  8776. ;;
  8777. esac
  8778. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8779. # soname into executable. Probably we can add versioning support to
  8780. # collect2, so additional links can be useful in future.
  8781. if test "$aix_use_runtimelinking" = yes; then
  8782. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8783. # instead of lib<name>.a to let people know that these are not
  8784. # typical AIX shared libraries.
  8785. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8786. else
  8787. # We preserve .a as extension for shared libraries through AIX4.2
  8788. # and later when we are not doing run time linking.
  8789. library_names_spec='${libname}${release}.a $libname.a'
  8790. soname_spec='${libname}${release}${shared_ext}$major'
  8791. fi
  8792. shlibpath_var=LIBPATH
  8793. fi
  8794. ;;
  8795. amigaos*)
  8796. case $host_cpu in
  8797. powerpc)
  8798. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8799. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8800. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8801. ;;
  8802. m68k)
  8803. library_names_spec='$libname.ixlibrary $libname.a'
  8804. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8805. 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'
  8806. ;;
  8807. esac
  8808. ;;
  8809. beos*)
  8810. library_names_spec='${libname}${shared_ext}'
  8811. dynamic_linker="$host_os ld.so"
  8812. shlibpath_var=LIBRARY_PATH
  8813. ;;
  8814. bsdi[45]*)
  8815. version_type=linux # correct to gnu/linux during the next big refactor
  8816. need_version=no
  8817. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8818. soname_spec='${libname}${release}${shared_ext}$major'
  8819. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8820. shlibpath_var=LD_LIBRARY_PATH
  8821. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8822. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8823. # the default ld.so.conf also contains /usr/contrib/lib and
  8824. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8825. # libtool to hard-code these into programs
  8826. ;;
  8827. cygwin* | mingw* | pw32* | cegcc*)
  8828. version_type=windows
  8829. shrext_cmds=".dll"
  8830. need_version=no
  8831. need_lib_prefix=no
  8832. case $GCC,$cc_basename in
  8833. yes,*)
  8834. # gcc
  8835. library_names_spec='$libname.dll.a'
  8836. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8837. postinstall_cmds='base_file=`basename \${file}`~
  8838. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8839. dldir=$destdir/`dirname \$dlpath`~
  8840. test -d \$dldir || mkdir -p \$dldir~
  8841. $install_prog $dir/$dlname \$dldir/$dlname~
  8842. chmod a+x \$dldir/$dlname~
  8843. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8844. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8845. fi'
  8846. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8847. dlpath=$dir/\$dldll~
  8848. $RM \$dlpath'
  8849. shlibpath_overrides_runpath=yes
  8850. case $host_os in
  8851. cygwin*)
  8852. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8853. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8854. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8855. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8856. ;;
  8857. mingw* | cegcc*)
  8858. # MinGW DLLs use traditional 'lib' prefix
  8859. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8860. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8861. ;;
  8862. pw32*)
  8863. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8864. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8865. ;;
  8866. esac
  8867. dynamic_linker='Win32 ld.exe'
  8868. ;;
  8869. *,cl*)
  8870. # Native MSVC
  8871. libname_spec='$name'
  8872. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8873. library_names_spec='${libname}.dll.lib'
  8874. case $build_os in
  8875. mingw*)
  8876. sys_lib_search_path_spec=
  8877. lt_save_ifs=$IFS
  8878. IFS=';'
  8879. for lt_path in $LIB
  8880. do
  8881. IFS=$lt_save_ifs
  8882. # Let DOS variable expansion print the short 8.3 style file name.
  8883. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8884. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8885. done
  8886. IFS=$lt_save_ifs
  8887. # Convert to MSYS style.
  8888. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8889. ;;
  8890. cygwin*)
  8891. # Convert to unix form, then to dos form, then back to unix form
  8892. # but this time dos style (no spaces!) so that the unix form looks
  8893. # like /cygdrive/c/PROGRA~1:/cygdr...
  8894. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8895. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8896. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8897. ;;
  8898. *)
  8899. sys_lib_search_path_spec="$LIB"
  8900. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8901. # It is most probably a Windows format PATH.
  8902. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8903. else
  8904. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8905. fi
  8906. # FIXME: find the short name or the path components, as spaces are
  8907. # common. (e.g. "Program Files" -> "PROGRA~1")
  8908. ;;
  8909. esac
  8910. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8911. postinstall_cmds='base_file=`basename \${file}`~
  8912. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8913. dldir=$destdir/`dirname \$dlpath`~
  8914. test -d \$dldir || mkdir -p \$dldir~
  8915. $install_prog $dir/$dlname \$dldir/$dlname'
  8916. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8917. dlpath=$dir/\$dldll~
  8918. $RM \$dlpath'
  8919. shlibpath_overrides_runpath=yes
  8920. dynamic_linker='Win32 link.exe'
  8921. ;;
  8922. *)
  8923. # Assume MSVC wrapper
  8924. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8925. dynamic_linker='Win32 ld.exe'
  8926. ;;
  8927. esac
  8928. # FIXME: first we should search . and the directory the executable is in
  8929. shlibpath_var=PATH
  8930. ;;
  8931. darwin* | rhapsody*)
  8932. dynamic_linker="$host_os dyld"
  8933. version_type=darwin
  8934. need_lib_prefix=no
  8935. need_version=no
  8936. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8937. soname_spec='${libname}${release}${major}$shared_ext'
  8938. shlibpath_overrides_runpath=yes
  8939. shlibpath_var=DYLD_LIBRARY_PATH
  8940. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8941. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8942. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8943. ;;
  8944. dgux*)
  8945. version_type=linux # correct to gnu/linux during the next big refactor
  8946. need_lib_prefix=no
  8947. need_version=no
  8948. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8949. soname_spec='${libname}${release}${shared_ext}$major'
  8950. shlibpath_var=LD_LIBRARY_PATH
  8951. ;;
  8952. freebsd* | dragonfly*)
  8953. # DragonFly does not have aout. When/if they implement a new
  8954. # versioning mechanism, adjust this.
  8955. if test -x /usr/bin/objformat; then
  8956. objformat=`/usr/bin/objformat`
  8957. else
  8958. case $host_os in
  8959. freebsd[23].*) objformat=aout ;;
  8960. *) objformat=elf ;;
  8961. esac
  8962. fi
  8963. version_type=freebsd-$objformat
  8964. case $version_type in
  8965. freebsd-elf*)
  8966. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8967. need_version=no
  8968. need_lib_prefix=no
  8969. ;;
  8970. freebsd-*)
  8971. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8972. need_version=yes
  8973. ;;
  8974. esac
  8975. shlibpath_var=LD_LIBRARY_PATH
  8976. case $host_os in
  8977. freebsd2.*)
  8978. shlibpath_overrides_runpath=yes
  8979. ;;
  8980. freebsd3.[01]* | freebsdelf3.[01]*)
  8981. shlibpath_overrides_runpath=yes
  8982. hardcode_into_libs=yes
  8983. ;;
  8984. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8985. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8986. shlibpath_overrides_runpath=no
  8987. hardcode_into_libs=yes
  8988. ;;
  8989. *) # from 4.6 on, and DragonFly
  8990. shlibpath_overrides_runpath=yes
  8991. hardcode_into_libs=yes
  8992. ;;
  8993. esac
  8994. ;;
  8995. gnu*)
  8996. version_type=linux # correct to gnu/linux during the next big refactor
  8997. need_lib_prefix=no
  8998. need_version=no
  8999. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9000. soname_spec='${libname}${release}${shared_ext}$major'
  9001. shlibpath_var=LD_LIBRARY_PATH
  9002. shlibpath_overrides_runpath=no
  9003. hardcode_into_libs=yes
  9004. ;;
  9005. haiku*)
  9006. version_type=linux # correct to gnu/linux during the next big refactor
  9007. need_lib_prefix=no
  9008. need_version=no
  9009. dynamic_linker="$host_os runtime_loader"
  9010. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9011. soname_spec='${libname}${release}${shared_ext}$major'
  9012. shlibpath_var=LIBRARY_PATH
  9013. shlibpath_overrides_runpath=yes
  9014. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9015. hardcode_into_libs=yes
  9016. ;;
  9017. hpux9* | hpux10* | hpux11*)
  9018. # Give a soname corresponding to the major version so that dld.sl refuses to
  9019. # link against other versions.
  9020. version_type=sunos
  9021. need_lib_prefix=no
  9022. need_version=no
  9023. case $host_cpu in
  9024. ia64*)
  9025. shrext_cmds='.so'
  9026. hardcode_into_libs=yes
  9027. dynamic_linker="$host_os dld.so"
  9028. shlibpath_var=LD_LIBRARY_PATH
  9029. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9030. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9031. soname_spec='${libname}${release}${shared_ext}$major'
  9032. if test "X$HPUX_IA64_MODE" = X32; then
  9033. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9034. else
  9035. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9036. fi
  9037. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9038. ;;
  9039. hppa*64*)
  9040. shrext_cmds='.sl'
  9041. hardcode_into_libs=yes
  9042. dynamic_linker="$host_os dld.sl"
  9043. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9044. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9045. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9046. soname_spec='${libname}${release}${shared_ext}$major'
  9047. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9048. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9049. ;;
  9050. *)
  9051. shrext_cmds='.sl'
  9052. dynamic_linker="$host_os dld.sl"
  9053. shlibpath_var=SHLIB_PATH
  9054. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9055. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9056. soname_spec='${libname}${release}${shared_ext}$major'
  9057. ;;
  9058. esac
  9059. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9060. postinstall_cmds='chmod 555 $lib'
  9061. # or fails outright, so override atomically:
  9062. install_override_mode=555
  9063. ;;
  9064. interix[3-9]*)
  9065. version_type=linux # correct to gnu/linux during the next big refactor
  9066. need_lib_prefix=no
  9067. need_version=no
  9068. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9069. soname_spec='${libname}${release}${shared_ext}$major'
  9070. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9071. shlibpath_var=LD_LIBRARY_PATH
  9072. shlibpath_overrides_runpath=no
  9073. hardcode_into_libs=yes
  9074. ;;
  9075. irix5* | irix6* | nonstopux*)
  9076. case $host_os in
  9077. nonstopux*) version_type=nonstopux ;;
  9078. *)
  9079. if test "$lt_cv_prog_gnu_ld" = yes; then
  9080. version_type=linux # correct to gnu/linux during the next big refactor
  9081. else
  9082. version_type=irix
  9083. fi ;;
  9084. esac
  9085. need_lib_prefix=no
  9086. need_version=no
  9087. soname_spec='${libname}${release}${shared_ext}$major'
  9088. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9089. case $host_os in
  9090. irix5* | nonstopux*)
  9091. libsuff= shlibsuff=
  9092. ;;
  9093. *)
  9094. case $LD in # libtool.m4 will add one of these switches to LD
  9095. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9096. libsuff= shlibsuff= libmagic=32-bit;;
  9097. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9098. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9099. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9100. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9101. *) libsuff= shlibsuff= libmagic=never-match;;
  9102. esac
  9103. ;;
  9104. esac
  9105. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9106. shlibpath_overrides_runpath=no
  9107. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9108. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9109. hardcode_into_libs=yes
  9110. ;;
  9111. # No shared lib support for Linux oldld, aout, or coff.
  9112. linux*oldld* | linux*aout* | linux*coff*)
  9113. dynamic_linker=no
  9114. ;;
  9115. # This must be glibc/ELF.
  9116. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9117. version_type=linux # correct to gnu/linux during the next big refactor
  9118. need_lib_prefix=no
  9119. need_version=no
  9120. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9121. soname_spec='${libname}${release}${shared_ext}$major'
  9122. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9123. shlibpath_var=LD_LIBRARY_PATH
  9124. shlibpath_overrides_runpath=no
  9125. # Some binutils ld are patched to set DT_RUNPATH
  9126. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9127. $as_echo_n "(cached) " >&6
  9128. else
  9129. lt_cv_shlibpath_overrides_runpath=no
  9130. save_LDFLAGS=$LDFLAGS
  9131. save_libdir=$libdir
  9132. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9133. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9135. /* end confdefs.h. */
  9136. int
  9137. main ()
  9138. {
  9139. ;
  9140. return 0;
  9141. }
  9142. _ACEOF
  9143. if ac_fn_c_try_link "$LINENO"; then :
  9144. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9145. lt_cv_shlibpath_overrides_runpath=yes
  9146. fi
  9147. fi
  9148. rm -f core conftest.err conftest.$ac_objext \
  9149. conftest$ac_exeext conftest.$ac_ext
  9150. LDFLAGS=$save_LDFLAGS
  9151. libdir=$save_libdir
  9152. fi
  9153. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9154. # This implies no fast_install, which is unacceptable.
  9155. # Some rework will be needed to allow for fast_install
  9156. # before this can be enabled.
  9157. hardcode_into_libs=yes
  9158. # Append ld.so.conf contents to the search path
  9159. if test -f /etc/ld.so.conf; then
  9160. 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' ' '`
  9161. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9162. fi
  9163. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9164. # powerpc, because MkLinux only supported shared libraries with the
  9165. # GNU dynamic linker. Since this was broken with cross compilers,
  9166. # most powerpc-linux boxes support dynamic linking these days and
  9167. # people can always --disable-shared, the test was removed, and we
  9168. # assume the GNU/Linux dynamic linker is in use.
  9169. dynamic_linker='GNU/Linux ld.so'
  9170. ;;
  9171. netbsd*)
  9172. version_type=sunos
  9173. need_lib_prefix=no
  9174. need_version=no
  9175. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9176. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9177. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9178. dynamic_linker='NetBSD (a.out) ld.so'
  9179. else
  9180. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9181. soname_spec='${libname}${release}${shared_ext}$major'
  9182. dynamic_linker='NetBSD ld.elf_so'
  9183. fi
  9184. shlibpath_var=LD_LIBRARY_PATH
  9185. shlibpath_overrides_runpath=yes
  9186. hardcode_into_libs=yes
  9187. ;;
  9188. newsos6)
  9189. version_type=linux # correct to gnu/linux during the next big refactor
  9190. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9191. shlibpath_var=LD_LIBRARY_PATH
  9192. shlibpath_overrides_runpath=yes
  9193. ;;
  9194. *nto* | *qnx*)
  9195. version_type=qnx
  9196. need_lib_prefix=no
  9197. need_version=no
  9198. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9199. soname_spec='${libname}${release}${shared_ext}$major'
  9200. shlibpath_var=LD_LIBRARY_PATH
  9201. shlibpath_overrides_runpath=no
  9202. hardcode_into_libs=yes
  9203. dynamic_linker='ldqnx.so'
  9204. ;;
  9205. openbsd*)
  9206. version_type=sunos
  9207. sys_lib_dlsearch_path_spec="/usr/lib"
  9208. need_lib_prefix=no
  9209. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9210. case $host_os in
  9211. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9212. *) need_version=no ;;
  9213. esac
  9214. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9215. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9216. shlibpath_var=LD_LIBRARY_PATH
  9217. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9218. case $host_os in
  9219. openbsd2.[89] | openbsd2.[89].*)
  9220. shlibpath_overrides_runpath=no
  9221. ;;
  9222. *)
  9223. shlibpath_overrides_runpath=yes
  9224. ;;
  9225. esac
  9226. else
  9227. shlibpath_overrides_runpath=yes
  9228. fi
  9229. ;;
  9230. os2*)
  9231. libname_spec='$name'
  9232. shrext_cmds=".dll"
  9233. need_lib_prefix=no
  9234. library_names_spec='$libname${shared_ext} $libname.a'
  9235. dynamic_linker='OS/2 ld.exe'
  9236. shlibpath_var=LIBPATH
  9237. ;;
  9238. osf3* | osf4* | osf5*)
  9239. version_type=osf
  9240. need_lib_prefix=no
  9241. need_version=no
  9242. soname_spec='${libname}${release}${shared_ext}$major'
  9243. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9244. shlibpath_var=LD_LIBRARY_PATH
  9245. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9246. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9247. ;;
  9248. rdos*)
  9249. dynamic_linker=no
  9250. ;;
  9251. solaris*)
  9252. version_type=linux # correct to gnu/linux during the next big refactor
  9253. need_lib_prefix=no
  9254. need_version=no
  9255. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9256. soname_spec='${libname}${release}${shared_ext}$major'
  9257. shlibpath_var=LD_LIBRARY_PATH
  9258. shlibpath_overrides_runpath=yes
  9259. hardcode_into_libs=yes
  9260. # ldd complains unless libraries are executable
  9261. postinstall_cmds='chmod +x $lib'
  9262. ;;
  9263. sunos4*)
  9264. version_type=sunos
  9265. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9266. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9267. shlibpath_var=LD_LIBRARY_PATH
  9268. shlibpath_overrides_runpath=yes
  9269. if test "$with_gnu_ld" = yes; then
  9270. need_lib_prefix=no
  9271. fi
  9272. need_version=yes
  9273. ;;
  9274. sysv4 | sysv4.3*)
  9275. version_type=linux # correct to gnu/linux during the next big refactor
  9276. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9277. soname_spec='${libname}${release}${shared_ext}$major'
  9278. shlibpath_var=LD_LIBRARY_PATH
  9279. case $host_vendor in
  9280. sni)
  9281. shlibpath_overrides_runpath=no
  9282. need_lib_prefix=no
  9283. runpath_var=LD_RUN_PATH
  9284. ;;
  9285. siemens)
  9286. need_lib_prefix=no
  9287. ;;
  9288. motorola)
  9289. need_lib_prefix=no
  9290. need_version=no
  9291. shlibpath_overrides_runpath=no
  9292. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9293. ;;
  9294. esac
  9295. ;;
  9296. sysv4*MP*)
  9297. if test -d /usr/nec ;then
  9298. version_type=linux # correct to gnu/linux during the next big refactor
  9299. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9300. soname_spec='$libname${shared_ext}.$major'
  9301. shlibpath_var=LD_LIBRARY_PATH
  9302. fi
  9303. ;;
  9304. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9305. version_type=freebsd-elf
  9306. need_lib_prefix=no
  9307. need_version=no
  9308. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9309. soname_spec='${libname}${release}${shared_ext}$major'
  9310. shlibpath_var=LD_LIBRARY_PATH
  9311. shlibpath_overrides_runpath=yes
  9312. hardcode_into_libs=yes
  9313. if test "$with_gnu_ld" = yes; then
  9314. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9315. else
  9316. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9317. case $host_os in
  9318. sco3.2v5*)
  9319. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9320. ;;
  9321. esac
  9322. fi
  9323. sys_lib_dlsearch_path_spec='/usr/lib'
  9324. ;;
  9325. tpf*)
  9326. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9327. version_type=linux # correct to gnu/linux during the next big refactor
  9328. need_lib_prefix=no
  9329. need_version=no
  9330. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9331. shlibpath_var=LD_LIBRARY_PATH
  9332. shlibpath_overrides_runpath=no
  9333. hardcode_into_libs=yes
  9334. ;;
  9335. uts4*)
  9336. version_type=linux # correct to gnu/linux during the next big refactor
  9337. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9338. soname_spec='${libname}${release}${shared_ext}$major'
  9339. shlibpath_var=LD_LIBRARY_PATH
  9340. ;;
  9341. *)
  9342. dynamic_linker=no
  9343. ;;
  9344. esac
  9345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9346. $as_echo "$dynamic_linker" >&6; }
  9347. test "$dynamic_linker" = no && can_build_shared=no
  9348. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9349. if test "$GCC" = yes; then
  9350. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9351. fi
  9352. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9353. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9354. fi
  9355. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9356. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9357. fi
  9358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9359. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9360. hardcode_action=
  9361. if test -n "$hardcode_libdir_flag_spec" ||
  9362. test -n "$runpath_var" ||
  9363. test "X$hardcode_automatic" = "Xyes" ; then
  9364. # We can hardcode non-existent directories.
  9365. if test "$hardcode_direct" != no &&
  9366. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9367. # have to relink, otherwise we might link with an installed library
  9368. # when we should be linking with a yet-to-be-installed one
  9369. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9370. test "$hardcode_minus_L" != no; then
  9371. # Linking always hardcodes the temporary library directory.
  9372. hardcode_action=relink
  9373. else
  9374. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9375. hardcode_action=immediate
  9376. fi
  9377. else
  9378. # We cannot hardcode anything, or else we can only hardcode existing
  9379. # directories.
  9380. hardcode_action=unsupported
  9381. fi
  9382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9383. $as_echo "$hardcode_action" >&6; }
  9384. if test "$hardcode_action" = relink ||
  9385. test "$inherit_rpath" = yes; then
  9386. # Fast installation is not supported
  9387. enable_fast_install=no
  9388. elif test "$shlibpath_overrides_runpath" = yes ||
  9389. test "$enable_shared" = no; then
  9390. # Fast installation is not necessary
  9391. enable_fast_install=needless
  9392. fi
  9393. if test "x$enable_dlopen" != xyes; then
  9394. enable_dlopen=unknown
  9395. enable_dlopen_self=unknown
  9396. enable_dlopen_self_static=unknown
  9397. else
  9398. lt_cv_dlopen=no
  9399. lt_cv_dlopen_libs=
  9400. case $host_os in
  9401. beos*)
  9402. lt_cv_dlopen="load_add_on"
  9403. lt_cv_dlopen_libs=
  9404. lt_cv_dlopen_self=yes
  9405. ;;
  9406. mingw* | pw32* | cegcc*)
  9407. lt_cv_dlopen="LoadLibrary"
  9408. lt_cv_dlopen_libs=
  9409. ;;
  9410. cygwin*)
  9411. lt_cv_dlopen="dlopen"
  9412. lt_cv_dlopen_libs=
  9413. ;;
  9414. darwin*)
  9415. # if libdl is installed we need to link against it
  9416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9417. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9418. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9419. $as_echo_n "(cached) " >&6
  9420. else
  9421. ac_check_lib_save_LIBS=$LIBS
  9422. LIBS="-ldl $LIBS"
  9423. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9424. /* end confdefs.h. */
  9425. /* Override any GCC internal prototype to avoid an error.
  9426. Use char because int might match the return type of a GCC
  9427. builtin and then its argument prototype would still apply. */
  9428. #ifdef __cplusplus
  9429. extern "C"
  9430. #endif
  9431. char dlopen ();
  9432. int
  9433. main ()
  9434. {
  9435. return dlopen ();
  9436. ;
  9437. return 0;
  9438. }
  9439. _ACEOF
  9440. if ac_fn_c_try_link "$LINENO"; then :
  9441. ac_cv_lib_dl_dlopen=yes
  9442. else
  9443. ac_cv_lib_dl_dlopen=no
  9444. fi
  9445. rm -f core conftest.err conftest.$ac_objext \
  9446. conftest$ac_exeext conftest.$ac_ext
  9447. LIBS=$ac_check_lib_save_LIBS
  9448. fi
  9449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9450. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9451. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9452. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9453. else
  9454. lt_cv_dlopen="dyld"
  9455. lt_cv_dlopen_libs=
  9456. lt_cv_dlopen_self=yes
  9457. fi
  9458. ;;
  9459. *)
  9460. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9461. if test "x$ac_cv_func_shl_load" = xyes; then :
  9462. lt_cv_dlopen="shl_load"
  9463. else
  9464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9465. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9466. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9467. $as_echo_n "(cached) " >&6
  9468. else
  9469. ac_check_lib_save_LIBS=$LIBS
  9470. LIBS="-ldld $LIBS"
  9471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9472. /* end confdefs.h. */
  9473. /* Override any GCC internal prototype to avoid an error.
  9474. Use char because int might match the return type of a GCC
  9475. builtin and then its argument prototype would still apply. */
  9476. #ifdef __cplusplus
  9477. extern "C"
  9478. #endif
  9479. char shl_load ();
  9480. int
  9481. main ()
  9482. {
  9483. return shl_load ();
  9484. ;
  9485. return 0;
  9486. }
  9487. _ACEOF
  9488. if ac_fn_c_try_link "$LINENO"; then :
  9489. ac_cv_lib_dld_shl_load=yes
  9490. else
  9491. ac_cv_lib_dld_shl_load=no
  9492. fi
  9493. rm -f core conftest.err conftest.$ac_objext \
  9494. conftest$ac_exeext conftest.$ac_ext
  9495. LIBS=$ac_check_lib_save_LIBS
  9496. fi
  9497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9498. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9499. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9500. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9501. else
  9502. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9503. if test "x$ac_cv_func_dlopen" = xyes; then :
  9504. lt_cv_dlopen="dlopen"
  9505. else
  9506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9507. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9508. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9509. $as_echo_n "(cached) " >&6
  9510. else
  9511. ac_check_lib_save_LIBS=$LIBS
  9512. LIBS="-ldl $LIBS"
  9513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9514. /* end confdefs.h. */
  9515. /* Override any GCC internal prototype to avoid an error.
  9516. Use char because int might match the return type of a GCC
  9517. builtin and then its argument prototype would still apply. */
  9518. #ifdef __cplusplus
  9519. extern "C"
  9520. #endif
  9521. char dlopen ();
  9522. int
  9523. main ()
  9524. {
  9525. return dlopen ();
  9526. ;
  9527. return 0;
  9528. }
  9529. _ACEOF
  9530. if ac_fn_c_try_link "$LINENO"; then :
  9531. ac_cv_lib_dl_dlopen=yes
  9532. else
  9533. ac_cv_lib_dl_dlopen=no
  9534. fi
  9535. rm -f core conftest.err conftest.$ac_objext \
  9536. conftest$ac_exeext conftest.$ac_ext
  9537. LIBS=$ac_check_lib_save_LIBS
  9538. fi
  9539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9540. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9541. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9542. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9543. else
  9544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9545. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9546. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9547. $as_echo_n "(cached) " >&6
  9548. else
  9549. ac_check_lib_save_LIBS=$LIBS
  9550. LIBS="-lsvld $LIBS"
  9551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9552. /* end confdefs.h. */
  9553. /* Override any GCC internal prototype to avoid an error.
  9554. Use char because int might match the return type of a GCC
  9555. builtin and then its argument prototype would still apply. */
  9556. #ifdef __cplusplus
  9557. extern "C"
  9558. #endif
  9559. char dlopen ();
  9560. int
  9561. main ()
  9562. {
  9563. return dlopen ();
  9564. ;
  9565. return 0;
  9566. }
  9567. _ACEOF
  9568. if ac_fn_c_try_link "$LINENO"; then :
  9569. ac_cv_lib_svld_dlopen=yes
  9570. else
  9571. ac_cv_lib_svld_dlopen=no
  9572. fi
  9573. rm -f core conftest.err conftest.$ac_objext \
  9574. conftest$ac_exeext conftest.$ac_ext
  9575. LIBS=$ac_check_lib_save_LIBS
  9576. fi
  9577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9578. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9579. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9580. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9581. else
  9582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9583. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9584. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9585. $as_echo_n "(cached) " >&6
  9586. else
  9587. ac_check_lib_save_LIBS=$LIBS
  9588. LIBS="-ldld $LIBS"
  9589. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9590. /* end confdefs.h. */
  9591. /* Override any GCC internal prototype to avoid an error.
  9592. Use char because int might match the return type of a GCC
  9593. builtin and then its argument prototype would still apply. */
  9594. #ifdef __cplusplus
  9595. extern "C"
  9596. #endif
  9597. char dld_link ();
  9598. int
  9599. main ()
  9600. {
  9601. return dld_link ();
  9602. ;
  9603. return 0;
  9604. }
  9605. _ACEOF
  9606. if ac_fn_c_try_link "$LINENO"; then :
  9607. ac_cv_lib_dld_dld_link=yes
  9608. else
  9609. ac_cv_lib_dld_dld_link=no
  9610. fi
  9611. rm -f core conftest.err conftest.$ac_objext \
  9612. conftest$ac_exeext conftest.$ac_ext
  9613. LIBS=$ac_check_lib_save_LIBS
  9614. fi
  9615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9616. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9617. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9618. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9619. fi
  9620. fi
  9621. fi
  9622. fi
  9623. fi
  9624. fi
  9625. ;;
  9626. esac
  9627. if test "x$lt_cv_dlopen" != xno; then
  9628. enable_dlopen=yes
  9629. else
  9630. enable_dlopen=no
  9631. fi
  9632. case $lt_cv_dlopen in
  9633. dlopen)
  9634. save_CPPFLAGS="$CPPFLAGS"
  9635. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9636. save_LDFLAGS="$LDFLAGS"
  9637. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9638. save_LIBS="$LIBS"
  9639. LIBS="$lt_cv_dlopen_libs $LIBS"
  9640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9641. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9642. if ${lt_cv_dlopen_self+:} false; then :
  9643. $as_echo_n "(cached) " >&6
  9644. else
  9645. if test "$cross_compiling" = yes; then :
  9646. lt_cv_dlopen_self=cross
  9647. else
  9648. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9649. lt_status=$lt_dlunknown
  9650. cat > conftest.$ac_ext <<_LT_EOF
  9651. #line $LINENO "configure"
  9652. #include "confdefs.h"
  9653. #if HAVE_DLFCN_H
  9654. #include <dlfcn.h>
  9655. #endif
  9656. #include <stdio.h>
  9657. #ifdef RTLD_GLOBAL
  9658. # define LT_DLGLOBAL RTLD_GLOBAL
  9659. #else
  9660. # ifdef DL_GLOBAL
  9661. # define LT_DLGLOBAL DL_GLOBAL
  9662. # else
  9663. # define LT_DLGLOBAL 0
  9664. # endif
  9665. #endif
  9666. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9667. find out it does not work in some platform. */
  9668. #ifndef LT_DLLAZY_OR_NOW
  9669. # ifdef RTLD_LAZY
  9670. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9671. # else
  9672. # ifdef DL_LAZY
  9673. # define LT_DLLAZY_OR_NOW DL_LAZY
  9674. # else
  9675. # ifdef RTLD_NOW
  9676. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9677. # else
  9678. # ifdef DL_NOW
  9679. # define LT_DLLAZY_OR_NOW DL_NOW
  9680. # else
  9681. # define LT_DLLAZY_OR_NOW 0
  9682. # endif
  9683. # endif
  9684. # endif
  9685. # endif
  9686. #endif
  9687. /* When -fvisbility=hidden is used, assume the code has been annotated
  9688. correspondingly for the symbols needed. */
  9689. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9690. int fnord () __attribute__((visibility("default")));
  9691. #endif
  9692. int fnord () { return 42; }
  9693. int main ()
  9694. {
  9695. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9696. int status = $lt_dlunknown;
  9697. if (self)
  9698. {
  9699. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9700. else
  9701. {
  9702. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9703. else puts (dlerror ());
  9704. }
  9705. /* dlclose (self); */
  9706. }
  9707. else
  9708. puts (dlerror ());
  9709. return status;
  9710. }
  9711. _LT_EOF
  9712. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9713. (eval $ac_link) 2>&5
  9714. ac_status=$?
  9715. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9716. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9717. (./conftest; exit; ) >&5 2>/dev/null
  9718. lt_status=$?
  9719. case x$lt_status in
  9720. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9721. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9722. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9723. esac
  9724. else :
  9725. # compilation failed
  9726. lt_cv_dlopen_self=no
  9727. fi
  9728. fi
  9729. rm -fr conftest*
  9730. fi
  9731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9732. $as_echo "$lt_cv_dlopen_self" >&6; }
  9733. if test "x$lt_cv_dlopen_self" = xyes; then
  9734. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9736. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9737. if ${lt_cv_dlopen_self_static+:} false; then :
  9738. $as_echo_n "(cached) " >&6
  9739. else
  9740. if test "$cross_compiling" = yes; then :
  9741. lt_cv_dlopen_self_static=cross
  9742. else
  9743. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9744. lt_status=$lt_dlunknown
  9745. cat > conftest.$ac_ext <<_LT_EOF
  9746. #line $LINENO "configure"
  9747. #include "confdefs.h"
  9748. #if HAVE_DLFCN_H
  9749. #include <dlfcn.h>
  9750. #endif
  9751. #include <stdio.h>
  9752. #ifdef RTLD_GLOBAL
  9753. # define LT_DLGLOBAL RTLD_GLOBAL
  9754. #else
  9755. # ifdef DL_GLOBAL
  9756. # define LT_DLGLOBAL DL_GLOBAL
  9757. # else
  9758. # define LT_DLGLOBAL 0
  9759. # endif
  9760. #endif
  9761. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9762. find out it does not work in some platform. */
  9763. #ifndef LT_DLLAZY_OR_NOW
  9764. # ifdef RTLD_LAZY
  9765. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9766. # else
  9767. # ifdef DL_LAZY
  9768. # define LT_DLLAZY_OR_NOW DL_LAZY
  9769. # else
  9770. # ifdef RTLD_NOW
  9771. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9772. # else
  9773. # ifdef DL_NOW
  9774. # define LT_DLLAZY_OR_NOW DL_NOW
  9775. # else
  9776. # define LT_DLLAZY_OR_NOW 0
  9777. # endif
  9778. # endif
  9779. # endif
  9780. # endif
  9781. #endif
  9782. /* When -fvisbility=hidden is used, assume the code has been annotated
  9783. correspondingly for the symbols needed. */
  9784. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9785. int fnord () __attribute__((visibility("default")));
  9786. #endif
  9787. int fnord () { return 42; }
  9788. int main ()
  9789. {
  9790. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9791. int status = $lt_dlunknown;
  9792. if (self)
  9793. {
  9794. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9795. else
  9796. {
  9797. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9798. else puts (dlerror ());
  9799. }
  9800. /* dlclose (self); */
  9801. }
  9802. else
  9803. puts (dlerror ());
  9804. return status;
  9805. }
  9806. _LT_EOF
  9807. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9808. (eval $ac_link) 2>&5
  9809. ac_status=$?
  9810. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9811. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9812. (./conftest; exit; ) >&5 2>/dev/null
  9813. lt_status=$?
  9814. case x$lt_status in
  9815. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9816. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9817. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9818. esac
  9819. else :
  9820. # compilation failed
  9821. lt_cv_dlopen_self_static=no
  9822. fi
  9823. fi
  9824. rm -fr conftest*
  9825. fi
  9826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9827. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9828. fi
  9829. CPPFLAGS="$save_CPPFLAGS"
  9830. LDFLAGS="$save_LDFLAGS"
  9831. LIBS="$save_LIBS"
  9832. ;;
  9833. esac
  9834. case $lt_cv_dlopen_self in
  9835. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9836. *) enable_dlopen_self=unknown ;;
  9837. esac
  9838. case $lt_cv_dlopen_self_static in
  9839. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9840. *) enable_dlopen_self_static=unknown ;;
  9841. esac
  9842. fi
  9843. striplib=
  9844. old_striplib=
  9845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9846. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9847. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9848. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9849. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9851. $as_echo "yes" >&6; }
  9852. else
  9853. # FIXME - insert some real tests, host_os isn't really good enough
  9854. case $host_os in
  9855. darwin*)
  9856. if test -n "$STRIP" ; then
  9857. striplib="$STRIP -x"
  9858. old_striplib="$STRIP -S"
  9859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9860. $as_echo "yes" >&6; }
  9861. else
  9862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9863. $as_echo "no" >&6; }
  9864. fi
  9865. ;;
  9866. *)
  9867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9868. $as_echo "no" >&6; }
  9869. ;;
  9870. esac
  9871. fi
  9872. # Report which library types will actually be built
  9873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9874. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9876. $as_echo "$can_build_shared" >&6; }
  9877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9878. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9879. test "$can_build_shared" = "no" && enable_shared=no
  9880. # On AIX, shared libraries and static libraries use the same namespace, and
  9881. # are all built from PIC.
  9882. case $host_os in
  9883. aix3*)
  9884. test "$enable_shared" = yes && enable_static=no
  9885. if test -n "$RANLIB"; then
  9886. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9887. postinstall_cmds='$RANLIB $lib'
  9888. fi
  9889. ;;
  9890. aix[4-9]*)
  9891. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9892. test "$enable_shared" = yes && enable_static=no
  9893. fi
  9894. ;;
  9895. esac
  9896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9897. $as_echo "$enable_shared" >&6; }
  9898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9899. $as_echo_n "checking whether to build static libraries... " >&6; }
  9900. # Make sure either enable_shared or enable_static is yes.
  9901. test "$enable_shared" = yes || enable_static=yes
  9902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9903. $as_echo "$enable_static" >&6; }
  9904. fi
  9905. ac_ext=c
  9906. ac_cpp='$CPP $CPPFLAGS'
  9907. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9908. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9909. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9910. CC="$lt_save_CC"
  9911. ac_config_commands="$ac_config_commands libtool"
  9912. # Only expand once:
  9913. if test -n "$ac_tool_prefix"; then
  9914. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  9915. set dummy ${ac_tool_prefix}windres; ac_word=$2
  9916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9917. $as_echo_n "checking for $ac_word... " >&6; }
  9918. if ${ac_cv_prog_RC+:} false; then :
  9919. $as_echo_n "(cached) " >&6
  9920. else
  9921. if test -n "$RC"; then
  9922. ac_cv_prog_RC="$RC" # Let the user override the test.
  9923. else
  9924. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9925. for as_dir in $PATH
  9926. do
  9927. IFS=$as_save_IFS
  9928. test -z "$as_dir" && as_dir=.
  9929. for ac_exec_ext in '' $ac_executable_extensions; do
  9930. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9931. ac_cv_prog_RC="${ac_tool_prefix}windres"
  9932. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9933. break 2
  9934. fi
  9935. done
  9936. done
  9937. IFS=$as_save_IFS
  9938. fi
  9939. fi
  9940. RC=$ac_cv_prog_RC
  9941. if test -n "$RC"; then
  9942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  9943. $as_echo "$RC" >&6; }
  9944. else
  9945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9946. $as_echo "no" >&6; }
  9947. fi
  9948. fi
  9949. if test -z "$ac_cv_prog_RC"; then
  9950. ac_ct_RC=$RC
  9951. # Extract the first word of "windres", so it can be a program name with args.
  9952. set dummy windres; ac_word=$2
  9953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9954. $as_echo_n "checking for $ac_word... " >&6; }
  9955. if ${ac_cv_prog_ac_ct_RC+:} false; then :
  9956. $as_echo_n "(cached) " >&6
  9957. else
  9958. if test -n "$ac_ct_RC"; then
  9959. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  9960. else
  9961. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9962. for as_dir in $PATH
  9963. do
  9964. IFS=$as_save_IFS
  9965. test -z "$as_dir" && as_dir=.
  9966. for ac_exec_ext in '' $ac_executable_extensions; do
  9967. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9968. ac_cv_prog_ac_ct_RC="windres"
  9969. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9970. break 2
  9971. fi
  9972. done
  9973. done
  9974. IFS=$as_save_IFS
  9975. fi
  9976. fi
  9977. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  9978. if test -n "$ac_ct_RC"; then
  9979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  9980. $as_echo "$ac_ct_RC" >&6; }
  9981. else
  9982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9983. $as_echo "no" >&6; }
  9984. fi
  9985. if test "x$ac_ct_RC" = x; then
  9986. RC=""
  9987. else
  9988. case $cross_compiling:$ac_tool_warned in
  9989. yes:)
  9990. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9991. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9992. ac_tool_warned=yes ;;
  9993. esac
  9994. RC=$ac_ct_RC
  9995. fi
  9996. else
  9997. RC="$ac_cv_prog_RC"
  9998. fi
  9999. # Source file extension for RC test sources.
  10000. ac_ext=rc
  10001. # Object file extension for compiled RC test sources.
  10002. objext=o
  10003. objext_RC=$objext
  10004. # Code to be used in simple compile tests
  10005. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  10006. # Code to be used in simple link tests
  10007. lt_simple_link_test_code="$lt_simple_compile_test_code"
  10008. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10009. # If no C compiler was specified, use CC.
  10010. LTCC=${LTCC-"$CC"}
  10011. # If no C compiler flags were specified, use CFLAGS.
  10012. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10013. # Allow CC to be a program name with arguments.
  10014. compiler=$CC
  10015. # save warnings/boilerplate of simple test code
  10016. ac_outfile=conftest.$ac_objext
  10017. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10018. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10019. _lt_compiler_boilerplate=`cat conftest.err`
  10020. $RM conftest*
  10021. ac_outfile=conftest.$ac_objext
  10022. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10023. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10024. _lt_linker_boilerplate=`cat conftest.err`
  10025. $RM -r conftest*
  10026. # Allow CC to be a program name with arguments.
  10027. lt_save_CC="$CC"
  10028. lt_save_CFLAGS=$CFLAGS
  10029. lt_save_GCC=$GCC
  10030. GCC=
  10031. CC=${RC-"windres"}
  10032. CFLAGS=
  10033. compiler=$CC
  10034. compiler_RC=$CC
  10035. for cc_temp in $compiler""; do
  10036. case $cc_temp in
  10037. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10038. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10039. \-*) ;;
  10040. *) break;;
  10041. esac
  10042. done
  10043. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10044. lt_cv_prog_compiler_c_o_RC=yes
  10045. if test -n "$compiler"; then
  10046. :
  10047. fi
  10048. GCC=$lt_save_GCC
  10049. ac_ext=c
  10050. ac_cpp='$CPP $CPPFLAGS'
  10051. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10052. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10053. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10054. CC=$lt_save_CC
  10055. CFLAGS=$lt_save_CFLAGS
  10056. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  10057. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  10058. LT_REVISION=$SDL_INTERFACE_AGE
  10059. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  10060. ac_ext=c
  10061. ac_cpp='$CPP $CPPFLAGS'
  10062. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10063. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10064. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10065. if test -n "$ac_tool_prefix"; then
  10066. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  10067. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  10068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10069. $as_echo_n "checking for $ac_word... " >&6; }
  10070. if ${ac_cv_prog_CC+:} false; then :
  10071. $as_echo_n "(cached) " >&6
  10072. else
  10073. if test -n "$CC"; then
  10074. ac_cv_prog_CC="$CC" # Let the user override the test.
  10075. else
  10076. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10077. for as_dir in $PATH
  10078. do
  10079. IFS=$as_save_IFS
  10080. test -z "$as_dir" && as_dir=.
  10081. for ac_exec_ext in '' $ac_executable_extensions; do
  10082. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10083. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  10084. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10085. break 2
  10086. fi
  10087. done
  10088. done
  10089. IFS=$as_save_IFS
  10090. fi
  10091. fi
  10092. CC=$ac_cv_prog_CC
  10093. if test -n "$CC"; then
  10094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10095. $as_echo "$CC" >&6; }
  10096. else
  10097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10098. $as_echo "no" >&6; }
  10099. fi
  10100. fi
  10101. if test -z "$ac_cv_prog_CC"; then
  10102. ac_ct_CC=$CC
  10103. # Extract the first word of "gcc", so it can be a program name with args.
  10104. set dummy gcc; ac_word=$2
  10105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10106. $as_echo_n "checking for $ac_word... " >&6; }
  10107. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10108. $as_echo_n "(cached) " >&6
  10109. else
  10110. if test -n "$ac_ct_CC"; then
  10111. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10112. else
  10113. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10114. for as_dir in $PATH
  10115. do
  10116. IFS=$as_save_IFS
  10117. test -z "$as_dir" && as_dir=.
  10118. for ac_exec_ext in '' $ac_executable_extensions; do
  10119. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10120. ac_cv_prog_ac_ct_CC="gcc"
  10121. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10122. break 2
  10123. fi
  10124. done
  10125. done
  10126. IFS=$as_save_IFS
  10127. fi
  10128. fi
  10129. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10130. if test -n "$ac_ct_CC"; then
  10131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10132. $as_echo "$ac_ct_CC" >&6; }
  10133. else
  10134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10135. $as_echo "no" >&6; }
  10136. fi
  10137. if test "x$ac_ct_CC" = x; then
  10138. CC=""
  10139. else
  10140. case $cross_compiling:$ac_tool_warned in
  10141. yes:)
  10142. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10143. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10144. ac_tool_warned=yes ;;
  10145. esac
  10146. CC=$ac_ct_CC
  10147. fi
  10148. else
  10149. CC="$ac_cv_prog_CC"
  10150. fi
  10151. if test -z "$CC"; then
  10152. if test -n "$ac_tool_prefix"; then
  10153. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  10154. set dummy ${ac_tool_prefix}cc; ac_word=$2
  10155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10156. $as_echo_n "checking for $ac_word... " >&6; }
  10157. if ${ac_cv_prog_CC+:} false; then :
  10158. $as_echo_n "(cached) " >&6
  10159. else
  10160. if test -n "$CC"; then
  10161. ac_cv_prog_CC="$CC" # Let the user override the test.
  10162. else
  10163. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10164. for as_dir in $PATH
  10165. do
  10166. IFS=$as_save_IFS
  10167. test -z "$as_dir" && as_dir=.
  10168. for ac_exec_ext in '' $ac_executable_extensions; do
  10169. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10170. ac_cv_prog_CC="${ac_tool_prefix}cc"
  10171. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10172. break 2
  10173. fi
  10174. done
  10175. done
  10176. IFS=$as_save_IFS
  10177. fi
  10178. fi
  10179. CC=$ac_cv_prog_CC
  10180. if test -n "$CC"; then
  10181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10182. $as_echo "$CC" >&6; }
  10183. else
  10184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10185. $as_echo "no" >&6; }
  10186. fi
  10187. fi
  10188. fi
  10189. if test -z "$CC"; then
  10190. # Extract the first word of "cc", so it can be a program name with args.
  10191. set dummy cc; ac_word=$2
  10192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10193. $as_echo_n "checking for $ac_word... " >&6; }
  10194. if ${ac_cv_prog_CC+:} false; then :
  10195. $as_echo_n "(cached) " >&6
  10196. else
  10197. if test -n "$CC"; then
  10198. ac_cv_prog_CC="$CC" # Let the user override the test.
  10199. else
  10200. ac_prog_rejected=no
  10201. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10202. for as_dir in $PATH
  10203. do
  10204. IFS=$as_save_IFS
  10205. test -z "$as_dir" && as_dir=.
  10206. for ac_exec_ext in '' $ac_executable_extensions; do
  10207. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10208. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  10209. ac_prog_rejected=yes
  10210. continue
  10211. fi
  10212. ac_cv_prog_CC="cc"
  10213. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10214. break 2
  10215. fi
  10216. done
  10217. done
  10218. IFS=$as_save_IFS
  10219. if test $ac_prog_rejected = yes; then
  10220. # We found a bogon in the path, so make sure we never use it.
  10221. set dummy $ac_cv_prog_CC
  10222. shift
  10223. if test $# != 0; then
  10224. # We chose a different compiler from the bogus one.
  10225. # However, it has the same basename, so the bogon will be chosen
  10226. # first if we set CC to just the basename; use the full file name.
  10227. shift
  10228. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  10229. fi
  10230. fi
  10231. fi
  10232. fi
  10233. CC=$ac_cv_prog_CC
  10234. if test -n "$CC"; then
  10235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10236. $as_echo "$CC" >&6; }
  10237. else
  10238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10239. $as_echo "no" >&6; }
  10240. fi
  10241. fi
  10242. if test -z "$CC"; then
  10243. if test -n "$ac_tool_prefix"; then
  10244. for ac_prog in cl.exe
  10245. do
  10246. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10247. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10249. $as_echo_n "checking for $ac_word... " >&6; }
  10250. if ${ac_cv_prog_CC+:} false; then :
  10251. $as_echo_n "(cached) " >&6
  10252. else
  10253. if test -n "$CC"; then
  10254. ac_cv_prog_CC="$CC" # Let the user override the test.
  10255. else
  10256. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10257. for as_dir in $PATH
  10258. do
  10259. IFS=$as_save_IFS
  10260. test -z "$as_dir" && as_dir=.
  10261. for ac_exec_ext in '' $ac_executable_extensions; do
  10262. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10263. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10264. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10265. break 2
  10266. fi
  10267. done
  10268. done
  10269. IFS=$as_save_IFS
  10270. fi
  10271. fi
  10272. CC=$ac_cv_prog_CC
  10273. if test -n "$CC"; then
  10274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10275. $as_echo "$CC" >&6; }
  10276. else
  10277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10278. $as_echo "no" >&6; }
  10279. fi
  10280. test -n "$CC" && break
  10281. done
  10282. fi
  10283. if test -z "$CC"; then
  10284. ac_ct_CC=$CC
  10285. for ac_prog in cl.exe
  10286. do
  10287. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10288. set dummy $ac_prog; ac_word=$2
  10289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10290. $as_echo_n "checking for $ac_word... " >&6; }
  10291. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10292. $as_echo_n "(cached) " >&6
  10293. else
  10294. if test -n "$ac_ct_CC"; then
  10295. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10296. else
  10297. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10298. for as_dir in $PATH
  10299. do
  10300. IFS=$as_save_IFS
  10301. test -z "$as_dir" && as_dir=.
  10302. for ac_exec_ext in '' $ac_executable_extensions; do
  10303. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10304. ac_cv_prog_ac_ct_CC="$ac_prog"
  10305. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10306. break 2
  10307. fi
  10308. done
  10309. done
  10310. IFS=$as_save_IFS
  10311. fi
  10312. fi
  10313. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10314. if test -n "$ac_ct_CC"; then
  10315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10316. $as_echo "$ac_ct_CC" >&6; }
  10317. else
  10318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10319. $as_echo "no" >&6; }
  10320. fi
  10321. test -n "$ac_ct_CC" && break
  10322. done
  10323. if test "x$ac_ct_CC" = x; then
  10324. CC=""
  10325. else
  10326. case $cross_compiling:$ac_tool_warned in
  10327. yes:)
  10328. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10329. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10330. ac_tool_warned=yes ;;
  10331. esac
  10332. CC=$ac_ct_CC
  10333. fi
  10334. fi
  10335. fi
  10336. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10337. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10338. as_fn_error $? "no acceptable C compiler found in \$PATH
  10339. See \`config.log' for more details" "$LINENO" 5; }
  10340. # Provide some information about the compiler.
  10341. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10342. set X $ac_compile
  10343. ac_compiler=$2
  10344. for ac_option in --version -v -V -qversion; do
  10345. { { ac_try="$ac_compiler $ac_option >&5"
  10346. case "(($ac_try" in
  10347. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10348. *) ac_try_echo=$ac_try;;
  10349. esac
  10350. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10351. $as_echo "$ac_try_echo"; } >&5
  10352. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10353. ac_status=$?
  10354. if test -s conftest.err; then
  10355. sed '10a\
  10356. ... rest of stderr output deleted ...
  10357. 10q' conftest.err >conftest.er1
  10358. cat conftest.er1 >&5
  10359. fi
  10360. rm -f conftest.er1 conftest.err
  10361. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10362. test $ac_status = 0; }
  10363. done
  10364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10365. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10366. if ${ac_cv_c_compiler_gnu+:} false; then :
  10367. $as_echo_n "(cached) " >&6
  10368. else
  10369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10370. /* end confdefs.h. */
  10371. int
  10372. main ()
  10373. {
  10374. #ifndef __GNUC__
  10375. choke me
  10376. #endif
  10377. ;
  10378. return 0;
  10379. }
  10380. _ACEOF
  10381. if ac_fn_c_try_compile "$LINENO"; then :
  10382. ac_compiler_gnu=yes
  10383. else
  10384. ac_compiler_gnu=no
  10385. fi
  10386. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10387. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10388. fi
  10389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10390. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10391. if test $ac_compiler_gnu = yes; then
  10392. GCC=yes
  10393. else
  10394. GCC=
  10395. fi
  10396. ac_test_CFLAGS=${CFLAGS+set}
  10397. ac_save_CFLAGS=$CFLAGS
  10398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10399. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10400. if ${ac_cv_prog_cc_g+:} false; then :
  10401. $as_echo_n "(cached) " >&6
  10402. else
  10403. ac_save_c_werror_flag=$ac_c_werror_flag
  10404. ac_c_werror_flag=yes
  10405. ac_cv_prog_cc_g=no
  10406. CFLAGS="-g"
  10407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10408. /* end confdefs.h. */
  10409. int
  10410. main ()
  10411. {
  10412. ;
  10413. return 0;
  10414. }
  10415. _ACEOF
  10416. if ac_fn_c_try_compile "$LINENO"; then :
  10417. ac_cv_prog_cc_g=yes
  10418. else
  10419. CFLAGS=""
  10420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10421. /* end confdefs.h. */
  10422. int
  10423. main ()
  10424. {
  10425. ;
  10426. return 0;
  10427. }
  10428. _ACEOF
  10429. if ac_fn_c_try_compile "$LINENO"; then :
  10430. else
  10431. ac_c_werror_flag=$ac_save_c_werror_flag
  10432. CFLAGS="-g"
  10433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10434. /* end confdefs.h. */
  10435. int
  10436. main ()
  10437. {
  10438. ;
  10439. return 0;
  10440. }
  10441. _ACEOF
  10442. if ac_fn_c_try_compile "$LINENO"; then :
  10443. ac_cv_prog_cc_g=yes
  10444. fi
  10445. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10446. fi
  10447. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10448. fi
  10449. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10450. ac_c_werror_flag=$ac_save_c_werror_flag
  10451. fi
  10452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10453. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10454. if test "$ac_test_CFLAGS" = set; then
  10455. CFLAGS=$ac_save_CFLAGS
  10456. elif test $ac_cv_prog_cc_g = yes; then
  10457. if test "$GCC" = yes; then
  10458. CFLAGS="-g -O2"
  10459. else
  10460. CFLAGS="-g"
  10461. fi
  10462. else
  10463. if test "$GCC" = yes; then
  10464. CFLAGS="-O2"
  10465. else
  10466. CFLAGS=
  10467. fi
  10468. fi
  10469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10470. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10471. if ${ac_cv_prog_cc_c89+:} false; then :
  10472. $as_echo_n "(cached) " >&6
  10473. else
  10474. ac_cv_prog_cc_c89=no
  10475. ac_save_CC=$CC
  10476. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10477. /* end confdefs.h. */
  10478. #include <stdarg.h>
  10479. #include <stdio.h>
  10480. struct stat;
  10481. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10482. struct buf { int x; };
  10483. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10484. static char *e (p, i)
  10485. char **p;
  10486. int i;
  10487. {
  10488. return p[i];
  10489. }
  10490. static char *f (char * (*g) (char **, int), char **p, ...)
  10491. {
  10492. char *s;
  10493. va_list v;
  10494. va_start (v,p);
  10495. s = g (p, va_arg (v,int));
  10496. va_end (v);
  10497. return s;
  10498. }
  10499. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10500. function prototypes and stuff, but not '\xHH' hex character constants.
  10501. These don't provoke an error unfortunately, instead are silently treated
  10502. as 'x'. The following induces an error, until -std is added to get
  10503. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10504. array size at least. It's necessary to write '\x00'==0 to get something
  10505. that's true only with -std. */
  10506. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10507. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10508. inside strings and character constants. */
  10509. #define FOO(x) 'x'
  10510. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10511. int test (int i, double x);
  10512. struct s1 {int (*f) (int a);};
  10513. struct s2 {int (*f) (double a);};
  10514. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10515. int argc;
  10516. char **argv;
  10517. int
  10518. main ()
  10519. {
  10520. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10521. ;
  10522. return 0;
  10523. }
  10524. _ACEOF
  10525. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10526. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10527. do
  10528. CC="$ac_save_CC $ac_arg"
  10529. if ac_fn_c_try_compile "$LINENO"; then :
  10530. ac_cv_prog_cc_c89=$ac_arg
  10531. fi
  10532. rm -f core conftest.err conftest.$ac_objext
  10533. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10534. done
  10535. rm -f conftest.$ac_ext
  10536. CC=$ac_save_CC
  10537. fi
  10538. # AC_CACHE_VAL
  10539. case "x$ac_cv_prog_cc_c89" in
  10540. x)
  10541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10542. $as_echo "none needed" >&6; } ;;
  10543. xno)
  10544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10545. $as_echo "unsupported" >&6; } ;;
  10546. *)
  10547. CC="$CC $ac_cv_prog_cc_c89"
  10548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10549. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10550. esac
  10551. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10552. fi
  10553. ac_ext=c
  10554. ac_cpp='$CPP $CPPFLAGS'
  10555. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10556. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10557. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10558. ac_ext=cpp
  10559. ac_cpp='$CXXCPP $CPPFLAGS'
  10560. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10561. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10562. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10563. if test -z "$CXX"; then
  10564. if test -n "$CCC"; then
  10565. CXX=$CCC
  10566. else
  10567. if test -n "$ac_tool_prefix"; then
  10568. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10569. do
  10570. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10571. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10573. $as_echo_n "checking for $ac_word... " >&6; }
  10574. if ${ac_cv_prog_CXX+:} false; then :
  10575. $as_echo_n "(cached) " >&6
  10576. else
  10577. if test -n "$CXX"; then
  10578. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10579. else
  10580. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10581. for as_dir in $PATH
  10582. do
  10583. IFS=$as_save_IFS
  10584. test -z "$as_dir" && as_dir=.
  10585. for ac_exec_ext in '' $ac_executable_extensions; do
  10586. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10587. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10588. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10589. break 2
  10590. fi
  10591. done
  10592. done
  10593. IFS=$as_save_IFS
  10594. fi
  10595. fi
  10596. CXX=$ac_cv_prog_CXX
  10597. if test -n "$CXX"; then
  10598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10599. $as_echo "$CXX" >&6; }
  10600. else
  10601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10602. $as_echo "no" >&6; }
  10603. fi
  10604. test -n "$CXX" && break
  10605. done
  10606. fi
  10607. if test -z "$CXX"; then
  10608. ac_ct_CXX=$CXX
  10609. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10610. do
  10611. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10612. set dummy $ac_prog; ac_word=$2
  10613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10614. $as_echo_n "checking for $ac_word... " >&6; }
  10615. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10616. $as_echo_n "(cached) " >&6
  10617. else
  10618. if test -n "$ac_ct_CXX"; then
  10619. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10620. else
  10621. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10622. for as_dir in $PATH
  10623. do
  10624. IFS=$as_save_IFS
  10625. test -z "$as_dir" && as_dir=.
  10626. for ac_exec_ext in '' $ac_executable_extensions; do
  10627. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10628. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10629. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10630. break 2
  10631. fi
  10632. done
  10633. done
  10634. IFS=$as_save_IFS
  10635. fi
  10636. fi
  10637. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10638. if test -n "$ac_ct_CXX"; then
  10639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10640. $as_echo "$ac_ct_CXX" >&6; }
  10641. else
  10642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10643. $as_echo "no" >&6; }
  10644. fi
  10645. test -n "$ac_ct_CXX" && break
  10646. done
  10647. if test "x$ac_ct_CXX" = x; then
  10648. CXX="g++"
  10649. else
  10650. case $cross_compiling:$ac_tool_warned in
  10651. yes:)
  10652. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10653. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10654. ac_tool_warned=yes ;;
  10655. esac
  10656. CXX=$ac_ct_CXX
  10657. fi
  10658. fi
  10659. fi
  10660. fi
  10661. # Provide some information about the compiler.
  10662. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10663. set X $ac_compile
  10664. ac_compiler=$2
  10665. for ac_option in --version -v -V -qversion; do
  10666. { { ac_try="$ac_compiler $ac_option >&5"
  10667. case "(($ac_try" in
  10668. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10669. *) ac_try_echo=$ac_try;;
  10670. esac
  10671. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10672. $as_echo "$ac_try_echo"; } >&5
  10673. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10674. ac_status=$?
  10675. if test -s conftest.err; then
  10676. sed '10a\
  10677. ... rest of stderr output deleted ...
  10678. 10q' conftest.err >conftest.er1
  10679. cat conftest.er1 >&5
  10680. fi
  10681. rm -f conftest.er1 conftest.err
  10682. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10683. test $ac_status = 0; }
  10684. done
  10685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10686. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10687. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10688. $as_echo_n "(cached) " >&6
  10689. else
  10690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10691. /* end confdefs.h. */
  10692. int
  10693. main ()
  10694. {
  10695. #ifndef __GNUC__
  10696. choke me
  10697. #endif
  10698. ;
  10699. return 0;
  10700. }
  10701. _ACEOF
  10702. if ac_fn_cxx_try_compile "$LINENO"; then :
  10703. ac_compiler_gnu=yes
  10704. else
  10705. ac_compiler_gnu=no
  10706. fi
  10707. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10708. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10709. fi
  10710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10711. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10712. if test $ac_compiler_gnu = yes; then
  10713. GXX=yes
  10714. else
  10715. GXX=
  10716. fi
  10717. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10718. ac_save_CXXFLAGS=$CXXFLAGS
  10719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10720. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10721. if ${ac_cv_prog_cxx_g+:} false; then :
  10722. $as_echo_n "(cached) " >&6
  10723. else
  10724. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10725. ac_cxx_werror_flag=yes
  10726. ac_cv_prog_cxx_g=no
  10727. CXXFLAGS="-g"
  10728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10729. /* end confdefs.h. */
  10730. int
  10731. main ()
  10732. {
  10733. ;
  10734. return 0;
  10735. }
  10736. _ACEOF
  10737. if ac_fn_cxx_try_compile "$LINENO"; then :
  10738. ac_cv_prog_cxx_g=yes
  10739. else
  10740. CXXFLAGS=""
  10741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10742. /* end confdefs.h. */
  10743. int
  10744. main ()
  10745. {
  10746. ;
  10747. return 0;
  10748. }
  10749. _ACEOF
  10750. if ac_fn_cxx_try_compile "$LINENO"; then :
  10751. else
  10752. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10753. CXXFLAGS="-g"
  10754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10755. /* end confdefs.h. */
  10756. int
  10757. main ()
  10758. {
  10759. ;
  10760. return 0;
  10761. }
  10762. _ACEOF
  10763. if ac_fn_cxx_try_compile "$LINENO"; then :
  10764. ac_cv_prog_cxx_g=yes
  10765. fi
  10766. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10767. fi
  10768. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10769. fi
  10770. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10771. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10772. fi
  10773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10774. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10775. if test "$ac_test_CXXFLAGS" = set; then
  10776. CXXFLAGS=$ac_save_CXXFLAGS
  10777. elif test $ac_cv_prog_cxx_g = yes; then
  10778. if test "$GXX" = yes; then
  10779. CXXFLAGS="-g -O2"
  10780. else
  10781. CXXFLAGS="-g"
  10782. fi
  10783. else
  10784. if test "$GXX" = yes; then
  10785. CXXFLAGS="-O2"
  10786. else
  10787. CXXFLAGS=
  10788. fi
  10789. fi
  10790. ac_ext=c
  10791. ac_cpp='$CPP $CPPFLAGS'
  10792. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10793. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10794. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10795. func_stripname_cnf ()
  10796. {
  10797. case ${2} in
  10798. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10799. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10800. esac
  10801. } # func_stripname_cnf
  10802. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10803. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10804. (test "X$CXX" != "Xg++"))) ; then
  10805. ac_ext=cpp
  10806. ac_cpp='$CXXCPP $CPPFLAGS'
  10807. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10808. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10809. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10811. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10812. if test -z "$CXXCPP"; then
  10813. if ${ac_cv_prog_CXXCPP+:} false; then :
  10814. $as_echo_n "(cached) " >&6
  10815. else
  10816. # Double quotes because CXXCPP needs to be expanded
  10817. for CXXCPP in "$CXX -E" "/lib/cpp"
  10818. do
  10819. ac_preproc_ok=false
  10820. for ac_cxx_preproc_warn_flag in '' yes
  10821. do
  10822. # Use a header file that comes with gcc, so configuring glibc
  10823. # with a fresh cross-compiler works.
  10824. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10825. # <limits.h> exists even on freestanding compilers.
  10826. # On the NeXT, cc -E runs the code through the compiler's parser,
  10827. # not just through cpp. "Syntax error" is here to catch this case.
  10828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10829. /* end confdefs.h. */
  10830. #ifdef __STDC__
  10831. # include <limits.h>
  10832. #else
  10833. # include <assert.h>
  10834. #endif
  10835. Syntax error
  10836. _ACEOF
  10837. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10838. else
  10839. # Broken: fails on valid input.
  10840. continue
  10841. fi
  10842. rm -f conftest.err conftest.i conftest.$ac_ext
  10843. # OK, works on sane cases. Now check whether nonexistent headers
  10844. # can be detected and how.
  10845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10846. /* end confdefs.h. */
  10847. #include <ac_nonexistent.h>
  10848. _ACEOF
  10849. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10850. # Broken: success on invalid input.
  10851. continue
  10852. else
  10853. # Passes both tests.
  10854. ac_preproc_ok=:
  10855. break
  10856. fi
  10857. rm -f conftest.err conftest.i conftest.$ac_ext
  10858. done
  10859. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10860. rm -f conftest.i conftest.err conftest.$ac_ext
  10861. if $ac_preproc_ok; then :
  10862. break
  10863. fi
  10864. done
  10865. ac_cv_prog_CXXCPP=$CXXCPP
  10866. fi
  10867. CXXCPP=$ac_cv_prog_CXXCPP
  10868. else
  10869. ac_cv_prog_CXXCPP=$CXXCPP
  10870. fi
  10871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10872. $as_echo "$CXXCPP" >&6; }
  10873. ac_preproc_ok=false
  10874. for ac_cxx_preproc_warn_flag in '' yes
  10875. do
  10876. # Use a header file that comes with gcc, so configuring glibc
  10877. # with a fresh cross-compiler works.
  10878. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10879. # <limits.h> exists even on freestanding compilers.
  10880. # On the NeXT, cc -E runs the code through the compiler's parser,
  10881. # not just through cpp. "Syntax error" is here to catch this case.
  10882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10883. /* end confdefs.h. */
  10884. #ifdef __STDC__
  10885. # include <limits.h>
  10886. #else
  10887. # include <assert.h>
  10888. #endif
  10889. Syntax error
  10890. _ACEOF
  10891. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10892. else
  10893. # Broken: fails on valid input.
  10894. continue
  10895. fi
  10896. rm -f conftest.err conftest.i conftest.$ac_ext
  10897. # OK, works on sane cases. Now check whether nonexistent headers
  10898. # can be detected and how.
  10899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10900. /* end confdefs.h. */
  10901. #include <ac_nonexistent.h>
  10902. _ACEOF
  10903. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10904. # Broken: success on invalid input.
  10905. continue
  10906. else
  10907. # Passes both tests.
  10908. ac_preproc_ok=:
  10909. break
  10910. fi
  10911. rm -f conftest.err conftest.i conftest.$ac_ext
  10912. done
  10913. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10914. rm -f conftest.i conftest.err conftest.$ac_ext
  10915. if $ac_preproc_ok; then :
  10916. else
  10917. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10918. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10919. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10920. See \`config.log' for more details" "$LINENO" 5; }
  10921. fi
  10922. ac_ext=c
  10923. ac_cpp='$CPP $CPPFLAGS'
  10924. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10925. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10926. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10927. else
  10928. _lt_caught_CXX_error=yes
  10929. fi
  10930. ac_ext=cpp
  10931. ac_cpp='$CXXCPP $CPPFLAGS'
  10932. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10933. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10934. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10935. archive_cmds_need_lc_CXX=no
  10936. allow_undefined_flag_CXX=
  10937. always_export_symbols_CXX=no
  10938. archive_expsym_cmds_CXX=
  10939. compiler_needs_object_CXX=no
  10940. export_dynamic_flag_spec_CXX=
  10941. hardcode_direct_CXX=no
  10942. hardcode_direct_absolute_CXX=no
  10943. hardcode_libdir_flag_spec_CXX=
  10944. hardcode_libdir_separator_CXX=
  10945. hardcode_minus_L_CXX=no
  10946. hardcode_shlibpath_var_CXX=unsupported
  10947. hardcode_automatic_CXX=no
  10948. inherit_rpath_CXX=no
  10949. module_cmds_CXX=
  10950. module_expsym_cmds_CXX=
  10951. link_all_deplibs_CXX=unknown
  10952. old_archive_cmds_CXX=$old_archive_cmds
  10953. reload_flag_CXX=$reload_flag
  10954. reload_cmds_CXX=$reload_cmds
  10955. no_undefined_flag_CXX=
  10956. whole_archive_flag_spec_CXX=
  10957. enable_shared_with_static_runtimes_CXX=no
  10958. # Source file extension for C++ test sources.
  10959. ac_ext=cpp
  10960. # Object file extension for compiled C++ test sources.
  10961. objext=o
  10962. objext_CXX=$objext
  10963. # No sense in running all these tests if we already determined that
  10964. # the CXX compiler isn't working. Some variables (like enable_shared)
  10965. # are currently assumed to apply to all compilers on this platform,
  10966. # and will be corrupted by setting them based on a non-working compiler.
  10967. if test "$_lt_caught_CXX_error" != yes; then
  10968. # Code to be used in simple compile tests
  10969. lt_simple_compile_test_code="int some_variable = 0;"
  10970. # Code to be used in simple link tests
  10971. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10972. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10973. # If no C compiler was specified, use CC.
  10974. LTCC=${LTCC-"$CC"}
  10975. # If no C compiler flags were specified, use CFLAGS.
  10976. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10977. # Allow CC to be a program name with arguments.
  10978. compiler=$CC
  10979. # save warnings/boilerplate of simple test code
  10980. ac_outfile=conftest.$ac_objext
  10981. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10982. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10983. _lt_compiler_boilerplate=`cat conftest.err`
  10984. $RM conftest*
  10985. ac_outfile=conftest.$ac_objext
  10986. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10987. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10988. _lt_linker_boilerplate=`cat conftest.err`
  10989. $RM -r conftest*
  10990. # Allow CC to be a program name with arguments.
  10991. lt_save_CC=$CC
  10992. lt_save_CFLAGS=$CFLAGS
  10993. lt_save_LD=$LD
  10994. lt_save_GCC=$GCC
  10995. GCC=$GXX
  10996. lt_save_with_gnu_ld=$with_gnu_ld
  10997. lt_save_path_LD=$lt_cv_path_LD
  10998. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10999. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11000. else
  11001. $as_unset lt_cv_prog_gnu_ld
  11002. fi
  11003. if test -n "${lt_cv_path_LDCXX+set}"; then
  11004. lt_cv_path_LD=$lt_cv_path_LDCXX
  11005. else
  11006. $as_unset lt_cv_path_LD
  11007. fi
  11008. test -z "${LDCXX+set}" || LD=$LDCXX
  11009. CC=${CXX-"c++"}
  11010. CFLAGS=$CXXFLAGS
  11011. compiler=$CC
  11012. compiler_CXX=$CC
  11013. for cc_temp in $compiler""; do
  11014. case $cc_temp in
  11015. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11016. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11017. \-*) ;;
  11018. *) break;;
  11019. esac
  11020. done
  11021. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  11022. if test -n "$compiler"; then
  11023. # We don't want -fno-exception when compiling C++ code, so set the
  11024. # no_builtin_flag separately
  11025. if test "$GXX" = yes; then
  11026. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11027. else
  11028. lt_prog_compiler_no_builtin_flag_CXX=
  11029. fi
  11030. if test "$GXX" = yes; then
  11031. # Set up default GNU C++ configuration
  11032. # Check whether --with-gnu-ld was given.
  11033. if test "${with_gnu_ld+set}" = set; then :
  11034. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11035. else
  11036. with_gnu_ld=no
  11037. fi
  11038. ac_prog=ld
  11039. if test "$GCC" = yes; then
  11040. # Check if gcc -print-prog-name=ld gives a path.
  11041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11042. $as_echo_n "checking for ld used by $CC... " >&6; }
  11043. case $host in
  11044. *-*-mingw*)
  11045. # gcc leaves a trailing carriage return which upsets mingw
  11046. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11047. *)
  11048. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11049. esac
  11050. case $ac_prog in
  11051. # Accept absolute paths.
  11052. [\\/]* | ?:[\\/]*)
  11053. re_direlt='/[^/][^/]*/\.\./'
  11054. # Canonicalize the pathname of ld
  11055. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11056. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11057. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11058. done
  11059. test -z "$LD" && LD="$ac_prog"
  11060. ;;
  11061. "")
  11062. # If it fails, then pretend we aren't using GCC.
  11063. ac_prog=ld
  11064. ;;
  11065. *)
  11066. # If it is relative, then search for the first ld in PATH.
  11067. with_gnu_ld=unknown
  11068. ;;
  11069. esac
  11070. elif test "$with_gnu_ld" = yes; then
  11071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11072. $as_echo_n "checking for GNU ld... " >&6; }
  11073. else
  11074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11075. $as_echo_n "checking for non-GNU ld... " >&6; }
  11076. fi
  11077. if ${lt_cv_path_LD+:} false; then :
  11078. $as_echo_n "(cached) " >&6
  11079. else
  11080. if test -z "$LD"; then
  11081. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11082. for ac_dir in $PATH; do
  11083. IFS="$lt_save_ifs"
  11084. test -z "$ac_dir" && ac_dir=.
  11085. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11086. lt_cv_path_LD="$ac_dir/$ac_prog"
  11087. # Check to see if the program is GNU ld. I'd rather use --version,
  11088. # but apparently some variants of GNU ld only accept -v.
  11089. # Break only if it was the GNU/non-GNU ld that we prefer.
  11090. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11091. *GNU* | *'with BFD'*)
  11092. test "$with_gnu_ld" != no && break
  11093. ;;
  11094. *)
  11095. test "$with_gnu_ld" != yes && break
  11096. ;;
  11097. esac
  11098. fi
  11099. done
  11100. IFS="$lt_save_ifs"
  11101. else
  11102. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11103. fi
  11104. fi
  11105. LD="$lt_cv_path_LD"
  11106. if test -n "$LD"; then
  11107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11108. $as_echo "$LD" >&6; }
  11109. else
  11110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11111. $as_echo "no" >&6; }
  11112. fi
  11113. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11115. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11116. if ${lt_cv_prog_gnu_ld+:} false; then :
  11117. $as_echo_n "(cached) " >&6
  11118. else
  11119. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11120. case `$LD -v 2>&1 </dev/null` in
  11121. *GNU* | *'with BFD'*)
  11122. lt_cv_prog_gnu_ld=yes
  11123. ;;
  11124. *)
  11125. lt_cv_prog_gnu_ld=no
  11126. ;;
  11127. esac
  11128. fi
  11129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11130. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11131. with_gnu_ld=$lt_cv_prog_gnu_ld
  11132. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11133. # archiving commands below assume that GNU ld is being used.
  11134. if test "$with_gnu_ld" = yes; then
  11135. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11136. 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'
  11137. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11138. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11139. # If archive_cmds runs LD, not CC, wlarc should be empty
  11140. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11141. # investigate it a little bit more. (MM)
  11142. wlarc='${wl}'
  11143. # ancient GNU ld didn't support --whole-archive et. al.
  11144. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11145. $GREP 'no-whole-archive' > /dev/null; then
  11146. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11147. else
  11148. whole_archive_flag_spec_CXX=
  11149. fi
  11150. else
  11151. with_gnu_ld=no
  11152. wlarc=
  11153. # A generic and very simple default shared library creation
  11154. # command for GNU C++ for the case where it uses the native
  11155. # linker, instead of GNU ld. If possible, this setting should
  11156. # overridden to take advantage of the native linker features on
  11157. # the platform it is being used on.
  11158. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11159. fi
  11160. # Commands to make compiler produce verbose output that lists
  11161. # what "hidden" libraries, object files and flags are used when
  11162. # linking a shared library.
  11163. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11164. else
  11165. GXX=no
  11166. with_gnu_ld=no
  11167. wlarc=
  11168. fi
  11169. # PORTME: fill in a description of your system's C++ link characteristics
  11170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11171. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11172. ld_shlibs_CXX=yes
  11173. case $host_os in
  11174. aix3*)
  11175. # FIXME: insert proper C++ library support
  11176. ld_shlibs_CXX=no
  11177. ;;
  11178. aix[4-9]*)
  11179. if test "$host_cpu" = ia64; then
  11180. # On IA64, the linker does run time linking by default, so we don't
  11181. # have to do anything special.
  11182. aix_use_runtimelinking=no
  11183. exp_sym_flag='-Bexport'
  11184. no_entry_flag=""
  11185. else
  11186. aix_use_runtimelinking=no
  11187. # Test if we are trying to use run time linking or normal
  11188. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11189. # need to do runtime linking.
  11190. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11191. for ld_flag in $LDFLAGS; do
  11192. case $ld_flag in
  11193. *-brtl*)
  11194. aix_use_runtimelinking=yes
  11195. break
  11196. ;;
  11197. esac
  11198. done
  11199. ;;
  11200. esac
  11201. exp_sym_flag='-bexport'
  11202. no_entry_flag='-bnoentry'
  11203. fi
  11204. # When large executables or shared objects are built, AIX ld can
  11205. # have problems creating the table of contents. If linking a library
  11206. # or program results in "error TOC overflow" add -mminimal-toc to
  11207. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11208. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11209. archive_cmds_CXX=''
  11210. hardcode_direct_CXX=yes
  11211. hardcode_direct_absolute_CXX=yes
  11212. hardcode_libdir_separator_CXX=':'
  11213. link_all_deplibs_CXX=yes
  11214. file_list_spec_CXX='${wl}-f,'
  11215. if test "$GXX" = yes; then
  11216. case $host_os in aix4.[012]|aix4.[012].*)
  11217. # We only want to do this on AIX 4.2 and lower, the check
  11218. # below for broken collect2 doesn't work under 4.3+
  11219. collect2name=`${CC} -print-prog-name=collect2`
  11220. if test -f "$collect2name" &&
  11221. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11222. then
  11223. # We have reworked collect2
  11224. :
  11225. else
  11226. # We have old collect2
  11227. hardcode_direct_CXX=unsupported
  11228. # It fails to find uninstalled libraries when the uninstalled
  11229. # path is not listed in the libpath. Setting hardcode_minus_L
  11230. # to unsupported forces relinking
  11231. hardcode_minus_L_CXX=yes
  11232. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11233. hardcode_libdir_separator_CXX=
  11234. fi
  11235. esac
  11236. shared_flag='-shared'
  11237. if test "$aix_use_runtimelinking" = yes; then
  11238. shared_flag="$shared_flag "'${wl}-G'
  11239. fi
  11240. else
  11241. # not using gcc
  11242. if test "$host_cpu" = ia64; then
  11243. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11244. # chokes on -Wl,-G. The following line is correct:
  11245. shared_flag='-G'
  11246. else
  11247. if test "$aix_use_runtimelinking" = yes; then
  11248. shared_flag='${wl}-G'
  11249. else
  11250. shared_flag='${wl}-bM:SRE'
  11251. fi
  11252. fi
  11253. fi
  11254. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11255. # It seems that -bexpall does not export symbols beginning with
  11256. # underscore (_), so it is better to generate a list of symbols to
  11257. # export.
  11258. always_export_symbols_CXX=yes
  11259. if test "$aix_use_runtimelinking" = yes; then
  11260. # Warning - without using the other runtime loading flags (-brtl),
  11261. # -berok will link without error, but may produce a broken library.
  11262. allow_undefined_flag_CXX='-berok'
  11263. # Determine the default libpath from the value encoded in an empty
  11264. # executable.
  11265. if test "${lt_cv_aix_libpath+set}" = set; then
  11266. aix_libpath=$lt_cv_aix_libpath
  11267. else
  11268. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11269. $as_echo_n "(cached) " >&6
  11270. else
  11271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11272. /* end confdefs.h. */
  11273. int
  11274. main ()
  11275. {
  11276. ;
  11277. return 0;
  11278. }
  11279. _ACEOF
  11280. if ac_fn_cxx_try_link "$LINENO"; then :
  11281. lt_aix_libpath_sed='
  11282. /Import File Strings/,/^$/ {
  11283. /^0/ {
  11284. s/^0 *\([^ ]*\) *$/\1/
  11285. p
  11286. }
  11287. }'
  11288. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11289. # Check for a 64-bit object if we didn't find anything.
  11290. if test -z "$lt_cv_aix_libpath__CXX"; then
  11291. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11292. fi
  11293. fi
  11294. rm -f core conftest.err conftest.$ac_objext \
  11295. conftest$ac_exeext conftest.$ac_ext
  11296. if test -z "$lt_cv_aix_libpath__CXX"; then
  11297. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11298. fi
  11299. fi
  11300. aix_libpath=$lt_cv_aix_libpath__CXX
  11301. fi
  11302. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11303. 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"
  11304. else
  11305. if test "$host_cpu" = ia64; then
  11306. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11307. allow_undefined_flag_CXX="-z nodefs"
  11308. 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"
  11309. else
  11310. # Determine the default libpath from the value encoded in an
  11311. # empty executable.
  11312. if test "${lt_cv_aix_libpath+set}" = set; then
  11313. aix_libpath=$lt_cv_aix_libpath
  11314. else
  11315. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11316. $as_echo_n "(cached) " >&6
  11317. else
  11318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11319. /* end confdefs.h. */
  11320. int
  11321. main ()
  11322. {
  11323. ;
  11324. return 0;
  11325. }
  11326. _ACEOF
  11327. if ac_fn_cxx_try_link "$LINENO"; then :
  11328. lt_aix_libpath_sed='
  11329. /Import File Strings/,/^$/ {
  11330. /^0/ {
  11331. s/^0 *\([^ ]*\) *$/\1/
  11332. p
  11333. }
  11334. }'
  11335. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11336. # Check for a 64-bit object if we didn't find anything.
  11337. if test -z "$lt_cv_aix_libpath__CXX"; then
  11338. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11339. fi
  11340. fi
  11341. rm -f core conftest.err conftest.$ac_objext \
  11342. conftest$ac_exeext conftest.$ac_ext
  11343. if test -z "$lt_cv_aix_libpath__CXX"; then
  11344. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11345. fi
  11346. fi
  11347. aix_libpath=$lt_cv_aix_libpath__CXX
  11348. fi
  11349. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11350. # Warning - without using the other run time loading flags,
  11351. # -berok will link without error, but may produce a broken library.
  11352. no_undefined_flag_CXX=' ${wl}-bernotok'
  11353. allow_undefined_flag_CXX=' ${wl}-berok'
  11354. if test "$with_gnu_ld" = yes; then
  11355. # We only use this code for GNU lds that support --whole-archive.
  11356. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11357. else
  11358. # Exported symbols can be pulled into shared objects from archives
  11359. whole_archive_flag_spec_CXX='$convenience'
  11360. fi
  11361. archive_cmds_need_lc_CXX=yes
  11362. # This is similar to how AIX traditionally builds its shared
  11363. # libraries.
  11364. 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'
  11365. fi
  11366. fi
  11367. ;;
  11368. beos*)
  11369. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11370. allow_undefined_flag_CXX=unsupported
  11371. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11372. # support --undefined. This deserves some investigation. FIXME
  11373. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11374. else
  11375. ld_shlibs_CXX=no
  11376. fi
  11377. ;;
  11378. chorus*)
  11379. case $cc_basename in
  11380. *)
  11381. # FIXME: insert proper C++ library support
  11382. ld_shlibs_CXX=no
  11383. ;;
  11384. esac
  11385. ;;
  11386. cygwin* | mingw* | pw32* | cegcc*)
  11387. case $GXX,$cc_basename in
  11388. ,cl* | no,cl*)
  11389. # Native MSVC
  11390. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11391. # no search path for DLLs.
  11392. hardcode_libdir_flag_spec_CXX=' '
  11393. allow_undefined_flag_CXX=unsupported
  11394. always_export_symbols_CXX=yes
  11395. file_list_spec_CXX='@'
  11396. # Tell ltmain to make .lib files, not .a files.
  11397. libext=lib
  11398. # Tell ltmain to make .dll files, not .so files.
  11399. shrext_cmds=".dll"
  11400. # FIXME: Setting linknames here is a bad hack.
  11401. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11402. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11403. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11404. else
  11405. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11406. fi~
  11407. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11408. linknames='
  11409. # The linker will not automatically build a static lib if we build a DLL.
  11410. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11411. enable_shared_with_static_runtimes_CXX=yes
  11412. # Don't use ranlib
  11413. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11414. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11415. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11416. case $lt_outputfile in
  11417. *.exe|*.EXE) ;;
  11418. *)
  11419. lt_outputfile="$lt_outputfile.exe"
  11420. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11421. ;;
  11422. esac~
  11423. func_to_tool_file "$lt_outputfile"~
  11424. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11425. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11426. $RM "$lt_outputfile.manifest";
  11427. fi'
  11428. ;;
  11429. *)
  11430. # g++
  11431. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11432. # as there is no search path for DLLs.
  11433. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11434. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11435. allow_undefined_flag_CXX=unsupported
  11436. always_export_symbols_CXX=no
  11437. enable_shared_with_static_runtimes_CXX=yes
  11438. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11439. 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'
  11440. # If the export-symbols file already is a .def file (1st line
  11441. # is EXPORTS), use it as is; otherwise, prepend...
  11442. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11443. cp $export_symbols $output_objdir/$soname.def;
  11444. else
  11445. echo EXPORTS > $output_objdir/$soname.def;
  11446. cat $export_symbols >> $output_objdir/$soname.def;
  11447. fi~
  11448. $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'
  11449. else
  11450. ld_shlibs_CXX=no
  11451. fi
  11452. ;;
  11453. esac
  11454. ;;
  11455. darwin* | rhapsody*)
  11456. archive_cmds_need_lc_CXX=no
  11457. hardcode_direct_CXX=no
  11458. hardcode_automatic_CXX=yes
  11459. hardcode_shlibpath_var_CXX=unsupported
  11460. if test "$lt_cv_ld_force_load" = "yes"; then
  11461. 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\"`'
  11462. else
  11463. whole_archive_flag_spec_CXX=''
  11464. fi
  11465. link_all_deplibs_CXX=yes
  11466. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11467. case $cc_basename in
  11468. ifort*) _lt_dar_can_shared=yes ;;
  11469. *) _lt_dar_can_shared=$GCC ;;
  11470. esac
  11471. if test "$_lt_dar_can_shared" = "yes"; then
  11472. output_verbose_link_cmd=func_echo_all
  11473. 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}"
  11474. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11475. 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}"
  11476. 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}"
  11477. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11478. 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}"
  11479. 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}"
  11480. fi
  11481. else
  11482. ld_shlibs_CXX=no
  11483. fi
  11484. ;;
  11485. dgux*)
  11486. case $cc_basename in
  11487. ec++*)
  11488. # FIXME: insert proper C++ library support
  11489. ld_shlibs_CXX=no
  11490. ;;
  11491. ghcx*)
  11492. # Green Hills C++ Compiler
  11493. # FIXME: insert proper C++ library support
  11494. ld_shlibs_CXX=no
  11495. ;;
  11496. *)
  11497. # FIXME: insert proper C++ library support
  11498. ld_shlibs_CXX=no
  11499. ;;
  11500. esac
  11501. ;;
  11502. freebsd2.*)
  11503. # C++ shared libraries reported to be fairly broken before
  11504. # switch to ELF
  11505. ld_shlibs_CXX=no
  11506. ;;
  11507. freebsd-elf*)
  11508. archive_cmds_need_lc_CXX=no
  11509. ;;
  11510. freebsd* | dragonfly*)
  11511. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11512. # conventions
  11513. ld_shlibs_CXX=yes
  11514. ;;
  11515. gnu*)
  11516. ;;
  11517. haiku*)
  11518. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11519. link_all_deplibs_CXX=yes
  11520. ;;
  11521. hpux9*)
  11522. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11523. hardcode_libdir_separator_CXX=:
  11524. export_dynamic_flag_spec_CXX='${wl}-E'
  11525. hardcode_direct_CXX=yes
  11526. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11527. # but as the default
  11528. # location of the library.
  11529. case $cc_basename in
  11530. CC*)
  11531. # FIXME: insert proper C++ library support
  11532. ld_shlibs_CXX=no
  11533. ;;
  11534. aCC*)
  11535. 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'
  11536. # Commands to make compiler produce verbose output that lists
  11537. # what "hidden" libraries, object files and flags are used when
  11538. # linking a shared library.
  11539. #
  11540. # There doesn't appear to be a way to prevent this compiler from
  11541. # explicitly linking system object files so we need to strip them
  11542. # from the output so that they don't get included in the library
  11543. # dependencies.
  11544. 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"'
  11545. ;;
  11546. *)
  11547. if test "$GXX" = yes; then
  11548. 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'
  11549. else
  11550. # FIXME: insert proper C++ library support
  11551. ld_shlibs_CXX=no
  11552. fi
  11553. ;;
  11554. esac
  11555. ;;
  11556. hpux10*|hpux11*)
  11557. if test $with_gnu_ld = no; then
  11558. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11559. hardcode_libdir_separator_CXX=:
  11560. case $host_cpu in
  11561. hppa*64*|ia64*)
  11562. ;;
  11563. *)
  11564. export_dynamic_flag_spec_CXX='${wl}-E'
  11565. ;;
  11566. esac
  11567. fi
  11568. case $host_cpu in
  11569. hppa*64*|ia64*)
  11570. hardcode_direct_CXX=no
  11571. hardcode_shlibpath_var_CXX=no
  11572. ;;
  11573. *)
  11574. hardcode_direct_CXX=yes
  11575. hardcode_direct_absolute_CXX=yes
  11576. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11577. # but as the default
  11578. # location of the library.
  11579. ;;
  11580. esac
  11581. case $cc_basename in
  11582. CC*)
  11583. # FIXME: insert proper C++ library support
  11584. ld_shlibs_CXX=no
  11585. ;;
  11586. aCC*)
  11587. case $host_cpu in
  11588. hppa*64*)
  11589. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11590. ;;
  11591. ia64*)
  11592. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11593. ;;
  11594. *)
  11595. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11596. ;;
  11597. esac
  11598. # Commands to make compiler produce verbose output that lists
  11599. # what "hidden" libraries, object files and flags are used when
  11600. # linking a shared library.
  11601. #
  11602. # There doesn't appear to be a way to prevent this compiler from
  11603. # explicitly linking system object files so we need to strip them
  11604. # from the output so that they don't get included in the library
  11605. # dependencies.
  11606. 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"'
  11607. ;;
  11608. *)
  11609. if test "$GXX" = yes; then
  11610. if test $with_gnu_ld = no; then
  11611. case $host_cpu in
  11612. hppa*64*)
  11613. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11614. ;;
  11615. ia64*)
  11616. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11617. ;;
  11618. *)
  11619. 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'
  11620. ;;
  11621. esac
  11622. fi
  11623. else
  11624. # FIXME: insert proper C++ library support
  11625. ld_shlibs_CXX=no
  11626. fi
  11627. ;;
  11628. esac
  11629. ;;
  11630. interix[3-9]*)
  11631. hardcode_direct_CXX=no
  11632. hardcode_shlibpath_var_CXX=no
  11633. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11634. export_dynamic_flag_spec_CXX='${wl}-E'
  11635. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11636. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11637. # default) and relocated if they conflict, which is a slow very memory
  11638. # consuming and fragmenting process. To avoid this, we pick a random,
  11639. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11640. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11641. 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'
  11642. 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'
  11643. ;;
  11644. irix5* | irix6*)
  11645. case $cc_basename in
  11646. CC*)
  11647. # SGI C++
  11648. 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'
  11649. # Archives containing C++ object files must be created using
  11650. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11651. # necessary to make sure instantiated templates are included
  11652. # in the archive.
  11653. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11654. ;;
  11655. *)
  11656. if test "$GXX" = yes; then
  11657. if test "$with_gnu_ld" = no; then
  11658. 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'
  11659. else
  11660. 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'
  11661. fi
  11662. fi
  11663. link_all_deplibs_CXX=yes
  11664. ;;
  11665. esac
  11666. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11667. hardcode_libdir_separator_CXX=:
  11668. inherit_rpath_CXX=yes
  11669. ;;
  11670. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11671. case $cc_basename in
  11672. KCC*)
  11673. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11674. # KCC will only create a shared library if the output file
  11675. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11676. # to its proper name (with version) after linking.
  11677. 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'
  11678. 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'
  11679. # Commands to make compiler produce verbose output that lists
  11680. # what "hidden" libraries, object files and flags are used when
  11681. # linking a shared library.
  11682. #
  11683. # There doesn't appear to be a way to prevent this compiler from
  11684. # explicitly linking system object files so we need to strip them
  11685. # from the output so that they don't get included in the library
  11686. # dependencies.
  11687. 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"'
  11688. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11689. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11690. # Archives containing C++ object files must be created using
  11691. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11692. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11693. ;;
  11694. icpc* | ecpc* )
  11695. # Intel C++
  11696. with_gnu_ld=yes
  11697. # version 8.0 and above of icpc choke on multiply defined symbols
  11698. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11699. # earlier do not add the objects themselves.
  11700. case `$CC -V 2>&1` in
  11701. *"Version 7."*)
  11702. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11703. 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'
  11704. ;;
  11705. *) # Version 8.0 or newer
  11706. tmp_idyn=
  11707. case $host_cpu in
  11708. ia64*) tmp_idyn=' -i_dynamic';;
  11709. esac
  11710. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11711. 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'
  11712. ;;
  11713. esac
  11714. archive_cmds_need_lc_CXX=no
  11715. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11716. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11717. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11718. ;;
  11719. pgCC* | pgcpp*)
  11720. # Portland Group C++ compiler
  11721. case `$CC -V` in
  11722. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11723. prelink_cmds_CXX='tpldir=Template.dir~
  11724. rm -rf $tpldir~
  11725. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11726. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11727. old_archive_cmds_CXX='tpldir=Template.dir~
  11728. rm -rf $tpldir~
  11729. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11730. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11731. $RANLIB $oldlib'
  11732. archive_cmds_CXX='tpldir=Template.dir~
  11733. rm -rf $tpldir~
  11734. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11735. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11736. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11737. rm -rf $tpldir~
  11738. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11739. $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'
  11740. ;;
  11741. *) # Version 6 and above use weak symbols
  11742. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11743. 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'
  11744. ;;
  11745. esac
  11746. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11747. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11748. 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'
  11749. ;;
  11750. cxx*)
  11751. # Compaq C++
  11752. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11753. 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'
  11754. runpath_var=LD_RUN_PATH
  11755. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11756. hardcode_libdir_separator_CXX=:
  11757. # Commands to make compiler produce verbose output that lists
  11758. # what "hidden" libraries, object files and flags are used when
  11759. # linking a shared library.
  11760. #
  11761. # There doesn't appear to be a way to prevent this compiler from
  11762. # explicitly linking system object files so we need to strip them
  11763. # from the output so that they don't get included in the library
  11764. # dependencies.
  11765. 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'
  11766. ;;
  11767. xl* | mpixl* | bgxl*)
  11768. # IBM XL 8.0 on PPC, with GNU ld
  11769. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11770. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11771. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11772. if test "x$supports_anon_versioning" = xyes; then
  11773. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11774. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11775. echo "local: *; };" >> $output_objdir/$libname.ver~
  11776. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11777. fi
  11778. ;;
  11779. *)
  11780. case `$CC -V 2>&1 | sed 5q` in
  11781. *Sun\ C*)
  11782. # Sun C++ 5.9
  11783. no_undefined_flag_CXX=' -zdefs'
  11784. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11785. 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'
  11786. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11787. 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'
  11788. compiler_needs_object_CXX=yes
  11789. # Not sure whether something based on
  11790. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11791. # would be better.
  11792. output_verbose_link_cmd='func_echo_all'
  11793. # Archives containing C++ object files must be created using
  11794. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11795. # necessary to make sure instantiated templates are included
  11796. # in the archive.
  11797. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11798. ;;
  11799. esac
  11800. ;;
  11801. esac
  11802. ;;
  11803. lynxos*)
  11804. # FIXME: insert proper C++ library support
  11805. ld_shlibs_CXX=no
  11806. ;;
  11807. m88k*)
  11808. # FIXME: insert proper C++ library support
  11809. ld_shlibs_CXX=no
  11810. ;;
  11811. mvs*)
  11812. case $cc_basename in
  11813. cxx*)
  11814. # FIXME: insert proper C++ library support
  11815. ld_shlibs_CXX=no
  11816. ;;
  11817. *)
  11818. # FIXME: insert proper C++ library support
  11819. ld_shlibs_CXX=no
  11820. ;;
  11821. esac
  11822. ;;
  11823. netbsd*)
  11824. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11825. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11826. wlarc=
  11827. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11828. hardcode_direct_CXX=yes
  11829. hardcode_shlibpath_var_CXX=no
  11830. fi
  11831. # Workaround some broken pre-1.5 toolchains
  11832. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11833. ;;
  11834. *nto* | *qnx*)
  11835. ld_shlibs_CXX=yes
  11836. ;;
  11837. openbsd2*)
  11838. # C++ shared libraries are fairly broken
  11839. ld_shlibs_CXX=no
  11840. ;;
  11841. openbsd*)
  11842. if test -f /usr/libexec/ld.so; then
  11843. hardcode_direct_CXX=yes
  11844. hardcode_shlibpath_var_CXX=no
  11845. hardcode_direct_absolute_CXX=yes
  11846. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11847. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11848. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11849. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11850. export_dynamic_flag_spec_CXX='${wl}-E'
  11851. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11852. fi
  11853. output_verbose_link_cmd=func_echo_all
  11854. else
  11855. ld_shlibs_CXX=no
  11856. fi
  11857. ;;
  11858. osf3* | osf4* | osf5*)
  11859. case $cc_basename in
  11860. KCC*)
  11861. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11862. # KCC will only create a shared library if the output file
  11863. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11864. # to its proper name (with version) after linking.
  11865. 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'
  11866. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11867. hardcode_libdir_separator_CXX=:
  11868. # Archives containing C++ object files must be created using
  11869. # the KAI C++ compiler.
  11870. case $host in
  11871. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11872. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11873. esac
  11874. ;;
  11875. RCC*)
  11876. # Rational C++ 2.4.1
  11877. # FIXME: insert proper C++ library support
  11878. ld_shlibs_CXX=no
  11879. ;;
  11880. cxx*)
  11881. case $host in
  11882. osf3*)
  11883. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11884. 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'
  11885. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11886. ;;
  11887. *)
  11888. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11889. 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'
  11890. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11891. echo "-hidden">> $lib.exp~
  11892. $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~
  11893. $RM $lib.exp'
  11894. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11895. ;;
  11896. esac
  11897. hardcode_libdir_separator_CXX=:
  11898. # Commands to make compiler produce verbose output that lists
  11899. # what "hidden" libraries, object files and flags are used when
  11900. # linking a shared library.
  11901. #
  11902. # There doesn't appear to be a way to prevent this compiler from
  11903. # explicitly linking system object files so we need to strip them
  11904. # from the output so that they don't get included in the library
  11905. # dependencies.
  11906. 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"'
  11907. ;;
  11908. *)
  11909. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11910. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11911. case $host in
  11912. osf3*)
  11913. 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'
  11914. ;;
  11915. *)
  11916. 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'
  11917. ;;
  11918. esac
  11919. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11920. hardcode_libdir_separator_CXX=:
  11921. # Commands to make compiler produce verbose output that lists
  11922. # what "hidden" libraries, object files and flags are used when
  11923. # linking a shared library.
  11924. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11925. else
  11926. # FIXME: insert proper C++ library support
  11927. ld_shlibs_CXX=no
  11928. fi
  11929. ;;
  11930. esac
  11931. ;;
  11932. psos*)
  11933. # FIXME: insert proper C++ library support
  11934. ld_shlibs_CXX=no
  11935. ;;
  11936. sunos4*)
  11937. case $cc_basename in
  11938. CC*)
  11939. # Sun C++ 4.x
  11940. # FIXME: insert proper C++ library support
  11941. ld_shlibs_CXX=no
  11942. ;;
  11943. lcc*)
  11944. # Lucid
  11945. # FIXME: insert proper C++ library support
  11946. ld_shlibs_CXX=no
  11947. ;;
  11948. *)
  11949. # FIXME: insert proper C++ library support
  11950. ld_shlibs_CXX=no
  11951. ;;
  11952. esac
  11953. ;;
  11954. solaris*)
  11955. case $cc_basename in
  11956. CC* | sunCC*)
  11957. # Sun C++ 4.2, 5.x and Centerline C++
  11958. archive_cmds_need_lc_CXX=yes
  11959. no_undefined_flag_CXX=' -zdefs'
  11960. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11961. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11962. $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'
  11963. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11964. hardcode_shlibpath_var_CXX=no
  11965. case $host_os in
  11966. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11967. *)
  11968. # The compiler driver will combine and reorder linker options,
  11969. # but understands `-z linker_flag'.
  11970. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11971. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11972. ;;
  11973. esac
  11974. link_all_deplibs_CXX=yes
  11975. output_verbose_link_cmd='func_echo_all'
  11976. # Archives containing C++ object files must be created using
  11977. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11978. # necessary to make sure instantiated templates are included
  11979. # in the archive.
  11980. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11981. ;;
  11982. gcx*)
  11983. # Green Hills C++ Compiler
  11984. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11985. # The C++ compiler must be used to create the archive.
  11986. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11987. ;;
  11988. *)
  11989. # GNU C++ compiler with Solaris linker
  11990. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11991. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11992. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11993. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11994. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11995. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11996. # Commands to make compiler produce verbose output that lists
  11997. # what "hidden" libraries, object files and flags are used when
  11998. # linking a shared library.
  11999. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12000. else
  12001. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  12002. # platform.
  12003. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12004. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12005. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12006. # Commands to make compiler produce verbose output that lists
  12007. # what "hidden" libraries, object files and flags are used when
  12008. # linking a shared library.
  12009. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12010. fi
  12011. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  12012. case $host_os in
  12013. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12014. *)
  12015. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  12016. ;;
  12017. esac
  12018. fi
  12019. ;;
  12020. esac
  12021. ;;
  12022. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12023. no_undefined_flag_CXX='${wl}-z,text'
  12024. archive_cmds_need_lc_CXX=no
  12025. hardcode_shlibpath_var_CXX=no
  12026. runpath_var='LD_RUN_PATH'
  12027. case $cc_basename in
  12028. CC*)
  12029. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12030. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12031. ;;
  12032. *)
  12033. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12034. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12035. ;;
  12036. esac
  12037. ;;
  12038. sysv5* | sco3.2v5* | sco5v6*)
  12039. # Note: We can NOT use -z defs as we might desire, because we do not
  12040. # link with -lc, and that would cause any symbols used from libc to
  12041. # always be unresolved, which means just about no library would
  12042. # ever link correctly. If we're not using GNU ld we use -z text
  12043. # though, which does catch some bad symbols but isn't as heavy-handed
  12044. # as -z defs.
  12045. no_undefined_flag_CXX='${wl}-z,text'
  12046. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12047. archive_cmds_need_lc_CXX=no
  12048. hardcode_shlibpath_var_CXX=no
  12049. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  12050. hardcode_libdir_separator_CXX=':'
  12051. link_all_deplibs_CXX=yes
  12052. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  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. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12059. '"$old_archive_cmds_CXX"
  12060. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12061. '"$reload_cmds_CXX"
  12062. ;;
  12063. *)
  12064. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12065. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12066. ;;
  12067. esac
  12068. ;;
  12069. tandem*)
  12070. case $cc_basename in
  12071. NCC*)
  12072. # NonStop-UX NCC 3.20
  12073. # FIXME: insert proper C++ library support
  12074. ld_shlibs_CXX=no
  12075. ;;
  12076. *)
  12077. # FIXME: insert proper C++ library support
  12078. ld_shlibs_CXX=no
  12079. ;;
  12080. esac
  12081. ;;
  12082. vxworks*)
  12083. # FIXME: insert proper C++ library support
  12084. ld_shlibs_CXX=no
  12085. ;;
  12086. *)
  12087. # FIXME: insert proper C++ library support
  12088. ld_shlibs_CXX=no
  12089. ;;
  12090. esac
  12091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12092. $as_echo "$ld_shlibs_CXX" >&6; }
  12093. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12094. GCC_CXX="$GXX"
  12095. LD_CXX="$LD"
  12096. ## CAVEAT EMPTOR:
  12097. ## There is no encapsulation within the following macros, do not change
  12098. ## the running order or otherwise move them around unless you know exactly
  12099. ## what you are doing...
  12100. # Dependencies to place before and after the object being linked:
  12101. predep_objects_CXX=
  12102. postdep_objects_CXX=
  12103. predeps_CXX=
  12104. postdeps_CXX=
  12105. compiler_lib_search_path_CXX=
  12106. cat > conftest.$ac_ext <<_LT_EOF
  12107. class Foo
  12108. {
  12109. public:
  12110. Foo (void) { a = 0; }
  12111. private:
  12112. int a;
  12113. };
  12114. _LT_EOF
  12115. _lt_libdeps_save_CFLAGS=$CFLAGS
  12116. case "$CC $CFLAGS " in #(
  12117. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12118. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12119. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12120. esac
  12121. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12122. (eval $ac_compile) 2>&5
  12123. ac_status=$?
  12124. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12125. test $ac_status = 0; }; then
  12126. # Parse the compiler output and extract the necessary
  12127. # objects, libraries and library flags.
  12128. # Sentinel used to keep track of whether or not we are before
  12129. # the conftest object file.
  12130. pre_test_object_deps_done=no
  12131. for p in `eval "$output_verbose_link_cmd"`; do
  12132. case ${prev}${p} in
  12133. -L* | -R* | -l*)
  12134. # Some compilers place space between "-{L,R}" and the path.
  12135. # Remove the space.
  12136. if test $p = "-L" ||
  12137. test $p = "-R"; then
  12138. prev=$p
  12139. continue
  12140. fi
  12141. # Expand the sysroot to ease extracting the directories later.
  12142. if test -z "$prev"; then
  12143. case $p in
  12144. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12145. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12146. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12147. esac
  12148. fi
  12149. case $p in
  12150. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12151. esac
  12152. if test "$pre_test_object_deps_done" = no; then
  12153. case ${prev} in
  12154. -L | -R)
  12155. # Internal compiler library paths should come after those
  12156. # provided the user. The postdeps already come after the
  12157. # user supplied libs so there is no need to process them.
  12158. if test -z "$compiler_lib_search_path_CXX"; then
  12159. compiler_lib_search_path_CXX="${prev}${p}"
  12160. else
  12161. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12162. fi
  12163. ;;
  12164. # The "-l" case would never come before the object being
  12165. # linked, so don't bother handling this case.
  12166. esac
  12167. else
  12168. if test -z "$postdeps_CXX"; then
  12169. postdeps_CXX="${prev}${p}"
  12170. else
  12171. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12172. fi
  12173. fi
  12174. prev=
  12175. ;;
  12176. *.lto.$objext) ;; # Ignore GCC LTO objects
  12177. *.$objext)
  12178. # This assumes that the test object file only shows up
  12179. # once in the compiler output.
  12180. if test "$p" = "conftest.$objext"; then
  12181. pre_test_object_deps_done=yes
  12182. continue
  12183. fi
  12184. if test "$pre_test_object_deps_done" = no; then
  12185. if test -z "$predep_objects_CXX"; then
  12186. predep_objects_CXX="$p"
  12187. else
  12188. predep_objects_CXX="$predep_objects_CXX $p"
  12189. fi
  12190. else
  12191. if test -z "$postdep_objects_CXX"; then
  12192. postdep_objects_CXX="$p"
  12193. else
  12194. postdep_objects_CXX="$postdep_objects_CXX $p"
  12195. fi
  12196. fi
  12197. ;;
  12198. *) ;; # Ignore the rest.
  12199. esac
  12200. done
  12201. # Clean up.
  12202. rm -f a.out a.exe
  12203. else
  12204. echo "libtool.m4: error: problem compiling CXX test program"
  12205. fi
  12206. $RM -f confest.$objext
  12207. CFLAGS=$_lt_libdeps_save_CFLAGS
  12208. # PORTME: override above test on systems where it is broken
  12209. case $host_os in
  12210. interix[3-9]*)
  12211. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12212. # hack all around it, let's just trust "g++" to DTRT.
  12213. predep_objects_CXX=
  12214. postdep_objects_CXX=
  12215. postdeps_CXX=
  12216. ;;
  12217. linux*)
  12218. case `$CC -V 2>&1 | sed 5q` in
  12219. *Sun\ C*)
  12220. # Sun C++ 5.9
  12221. # The more standards-conforming stlport4 library is
  12222. # incompatible with the Cstd library. Avoid specifying
  12223. # it if it's in CXXFLAGS. Ignore libCrun as
  12224. # -library=stlport4 depends on it.
  12225. case " $CXX $CXXFLAGS " in
  12226. *" -library=stlport4 "*)
  12227. solaris_use_stlport4=yes
  12228. ;;
  12229. esac
  12230. if test "$solaris_use_stlport4" != yes; then
  12231. postdeps_CXX='-library=Cstd -library=Crun'
  12232. fi
  12233. ;;
  12234. esac
  12235. ;;
  12236. solaris*)
  12237. case $cc_basename in
  12238. CC* | sunCC*)
  12239. # The more standards-conforming stlport4 library is
  12240. # incompatible with the Cstd library. Avoid specifying
  12241. # it if it's in CXXFLAGS. Ignore libCrun as
  12242. # -library=stlport4 depends on it.
  12243. case " $CXX $CXXFLAGS " in
  12244. *" -library=stlport4 "*)
  12245. solaris_use_stlport4=yes
  12246. ;;
  12247. esac
  12248. # Adding this requires a known-good setup of shared libraries for
  12249. # Sun compiler versions before 5.6, else PIC objects from an old
  12250. # archive will be linked into the output, leading to subtle bugs.
  12251. if test "$solaris_use_stlport4" != yes; then
  12252. postdeps_CXX='-library=Cstd -library=Crun'
  12253. fi
  12254. ;;
  12255. esac
  12256. ;;
  12257. esac
  12258. case " $postdeps_CXX " in
  12259. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12260. esac
  12261. compiler_lib_search_dirs_CXX=
  12262. if test -n "${compiler_lib_search_path_CXX}"; then
  12263. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12264. fi
  12265. lt_prog_compiler_wl_CXX=
  12266. lt_prog_compiler_pic_CXX=
  12267. lt_prog_compiler_static_CXX=
  12268. # C++ specific cases for pic, static, wl, etc.
  12269. if test "$GXX" = yes; then
  12270. lt_prog_compiler_wl_CXX='-Wl,'
  12271. lt_prog_compiler_static_CXX='-static'
  12272. case $host_os in
  12273. aix*)
  12274. # All AIX code is PIC.
  12275. if test "$host_cpu" = ia64; then
  12276. # AIX 5 now supports IA64 processor
  12277. lt_prog_compiler_static_CXX='-Bstatic'
  12278. fi
  12279. ;;
  12280. amigaos*)
  12281. case $host_cpu in
  12282. powerpc)
  12283. # see comment about AmigaOS4 .so support
  12284. lt_prog_compiler_pic_CXX='-fPIC'
  12285. ;;
  12286. m68k)
  12287. # FIXME: we need at least 68020 code to build shared libraries, but
  12288. # adding the `-m68020' flag to GCC prevents building anything better,
  12289. # like `-m68040'.
  12290. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12291. ;;
  12292. esac
  12293. ;;
  12294. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12295. # PIC is the default for these OSes.
  12296. ;;
  12297. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12298. # This hack is so that the source file can tell whether it is being
  12299. # built for inclusion in a dll (and should export symbols for example).
  12300. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12301. # (--disable-auto-import) libraries
  12302. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12303. ;;
  12304. darwin* | rhapsody*)
  12305. # PIC is the default on this platform
  12306. # Common symbols not allowed in MH_DYLIB files
  12307. lt_prog_compiler_pic_CXX='-fno-common'
  12308. ;;
  12309. *djgpp*)
  12310. # DJGPP does not support shared libraries at all
  12311. lt_prog_compiler_pic_CXX=
  12312. ;;
  12313. haiku*)
  12314. # PIC is the default for Haiku.
  12315. # The "-static" flag exists, but is broken.
  12316. lt_prog_compiler_static_CXX=
  12317. ;;
  12318. interix[3-9]*)
  12319. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12320. # Instead, we relocate shared libraries at runtime.
  12321. ;;
  12322. sysv4*MP*)
  12323. if test -d /usr/nec; then
  12324. lt_prog_compiler_pic_CXX=-Kconform_pic
  12325. fi
  12326. ;;
  12327. hpux*)
  12328. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12329. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12330. # sets the default TLS model and affects inlining.
  12331. case $host_cpu in
  12332. hppa*64*)
  12333. ;;
  12334. *)
  12335. lt_prog_compiler_pic_CXX='-fPIC'
  12336. ;;
  12337. esac
  12338. ;;
  12339. *qnx* | *nto*)
  12340. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12341. # it will coredump.
  12342. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12343. ;;
  12344. *)
  12345. lt_prog_compiler_pic_CXX='-fPIC'
  12346. ;;
  12347. esac
  12348. else
  12349. case $host_os in
  12350. aix[4-9]*)
  12351. # All AIX code is PIC.
  12352. if test "$host_cpu" = ia64; then
  12353. # AIX 5 now supports IA64 processor
  12354. lt_prog_compiler_static_CXX='-Bstatic'
  12355. else
  12356. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12357. fi
  12358. ;;
  12359. chorus*)
  12360. case $cc_basename in
  12361. cxch68*)
  12362. # Green Hills C++ Compiler
  12363. # _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"
  12364. ;;
  12365. esac
  12366. ;;
  12367. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12368. # This hack is so that the source file can tell whether it is being
  12369. # built for inclusion in a dll (and should export symbols for example).
  12370. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12371. ;;
  12372. dgux*)
  12373. case $cc_basename in
  12374. ec++*)
  12375. lt_prog_compiler_pic_CXX='-KPIC'
  12376. ;;
  12377. ghcx*)
  12378. # Green Hills C++ Compiler
  12379. lt_prog_compiler_pic_CXX='-pic'
  12380. ;;
  12381. *)
  12382. ;;
  12383. esac
  12384. ;;
  12385. freebsd* | dragonfly*)
  12386. # FreeBSD uses GNU C++
  12387. ;;
  12388. hpux9* | hpux10* | hpux11*)
  12389. case $cc_basename in
  12390. CC*)
  12391. lt_prog_compiler_wl_CXX='-Wl,'
  12392. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12393. if test "$host_cpu" != ia64; then
  12394. lt_prog_compiler_pic_CXX='+Z'
  12395. fi
  12396. ;;
  12397. aCC*)
  12398. lt_prog_compiler_wl_CXX='-Wl,'
  12399. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12400. case $host_cpu in
  12401. hppa*64*|ia64*)
  12402. # +Z the default
  12403. ;;
  12404. *)
  12405. lt_prog_compiler_pic_CXX='+Z'
  12406. ;;
  12407. esac
  12408. ;;
  12409. *)
  12410. ;;
  12411. esac
  12412. ;;
  12413. interix*)
  12414. # This is c89, which is MS Visual C++ (no shared libs)
  12415. # Anyone wants to do a port?
  12416. ;;
  12417. irix5* | irix6* | nonstopux*)
  12418. case $cc_basename in
  12419. CC*)
  12420. lt_prog_compiler_wl_CXX='-Wl,'
  12421. lt_prog_compiler_static_CXX='-non_shared'
  12422. # CC pic flag -KPIC is the default.
  12423. ;;
  12424. *)
  12425. ;;
  12426. esac
  12427. ;;
  12428. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12429. case $cc_basename in
  12430. KCC*)
  12431. # KAI C++ Compiler
  12432. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12433. lt_prog_compiler_pic_CXX='-fPIC'
  12434. ;;
  12435. ecpc* )
  12436. # old Intel C++ for x86_64 which still supported -KPIC.
  12437. lt_prog_compiler_wl_CXX='-Wl,'
  12438. lt_prog_compiler_pic_CXX='-KPIC'
  12439. lt_prog_compiler_static_CXX='-static'
  12440. ;;
  12441. icpc* )
  12442. # Intel C++, used to be incompatible with GCC.
  12443. # ICC 10 doesn't accept -KPIC any more.
  12444. lt_prog_compiler_wl_CXX='-Wl,'
  12445. lt_prog_compiler_pic_CXX='-fPIC'
  12446. lt_prog_compiler_static_CXX='-static'
  12447. ;;
  12448. pgCC* | pgcpp*)
  12449. # Portland Group C++ compiler
  12450. lt_prog_compiler_wl_CXX='-Wl,'
  12451. lt_prog_compiler_pic_CXX='-fpic'
  12452. lt_prog_compiler_static_CXX='-Bstatic'
  12453. ;;
  12454. cxx*)
  12455. # Compaq C++
  12456. # Make sure the PIC flag is empty. It appears that all Alpha
  12457. # Linux and Compaq Tru64 Unix objects are PIC.
  12458. lt_prog_compiler_pic_CXX=
  12459. lt_prog_compiler_static_CXX='-non_shared'
  12460. ;;
  12461. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12462. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12463. lt_prog_compiler_wl_CXX='-Wl,'
  12464. lt_prog_compiler_pic_CXX='-qpic'
  12465. lt_prog_compiler_static_CXX='-qstaticlink'
  12466. ;;
  12467. *)
  12468. case `$CC -V 2>&1 | sed 5q` in
  12469. *Sun\ C*)
  12470. # Sun C++ 5.9
  12471. lt_prog_compiler_pic_CXX='-KPIC'
  12472. lt_prog_compiler_static_CXX='-Bstatic'
  12473. lt_prog_compiler_wl_CXX='-Qoption ld '
  12474. ;;
  12475. esac
  12476. ;;
  12477. esac
  12478. ;;
  12479. lynxos*)
  12480. ;;
  12481. m88k*)
  12482. ;;
  12483. mvs*)
  12484. case $cc_basename in
  12485. cxx*)
  12486. lt_prog_compiler_pic_CXX='-W c,exportall'
  12487. ;;
  12488. *)
  12489. ;;
  12490. esac
  12491. ;;
  12492. netbsd*)
  12493. ;;
  12494. *qnx* | *nto*)
  12495. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12496. # it will coredump.
  12497. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12498. ;;
  12499. osf3* | osf4* | osf5*)
  12500. case $cc_basename in
  12501. KCC*)
  12502. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12503. ;;
  12504. RCC*)
  12505. # Rational C++ 2.4.1
  12506. lt_prog_compiler_pic_CXX='-pic'
  12507. ;;
  12508. cxx*)
  12509. # Digital/Compaq C++
  12510. lt_prog_compiler_wl_CXX='-Wl,'
  12511. # Make sure the PIC flag is empty. It appears that all Alpha
  12512. # Linux and Compaq Tru64 Unix objects are PIC.
  12513. lt_prog_compiler_pic_CXX=
  12514. lt_prog_compiler_static_CXX='-non_shared'
  12515. ;;
  12516. *)
  12517. ;;
  12518. esac
  12519. ;;
  12520. psos*)
  12521. ;;
  12522. solaris*)
  12523. case $cc_basename in
  12524. CC* | sunCC*)
  12525. # Sun C++ 4.2, 5.x and Centerline C++
  12526. lt_prog_compiler_pic_CXX='-KPIC'
  12527. lt_prog_compiler_static_CXX='-Bstatic'
  12528. lt_prog_compiler_wl_CXX='-Qoption ld '
  12529. ;;
  12530. gcx*)
  12531. # Green Hills C++ Compiler
  12532. lt_prog_compiler_pic_CXX='-PIC'
  12533. ;;
  12534. *)
  12535. ;;
  12536. esac
  12537. ;;
  12538. sunos4*)
  12539. case $cc_basename in
  12540. CC*)
  12541. # Sun C++ 4.x
  12542. lt_prog_compiler_pic_CXX='-pic'
  12543. lt_prog_compiler_static_CXX='-Bstatic'
  12544. ;;
  12545. lcc*)
  12546. # Lucid
  12547. lt_prog_compiler_pic_CXX='-pic'
  12548. ;;
  12549. *)
  12550. ;;
  12551. esac
  12552. ;;
  12553. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12554. case $cc_basename in
  12555. CC*)
  12556. lt_prog_compiler_wl_CXX='-Wl,'
  12557. lt_prog_compiler_pic_CXX='-KPIC'
  12558. lt_prog_compiler_static_CXX='-Bstatic'
  12559. ;;
  12560. esac
  12561. ;;
  12562. tandem*)
  12563. case $cc_basename in
  12564. NCC*)
  12565. # NonStop-UX NCC 3.20
  12566. lt_prog_compiler_pic_CXX='-KPIC'
  12567. ;;
  12568. *)
  12569. ;;
  12570. esac
  12571. ;;
  12572. vxworks*)
  12573. ;;
  12574. *)
  12575. lt_prog_compiler_can_build_shared_CXX=no
  12576. ;;
  12577. esac
  12578. fi
  12579. case $host_os in
  12580. # For platforms which do not support PIC, -DPIC is meaningless:
  12581. *djgpp*)
  12582. lt_prog_compiler_pic_CXX=
  12583. ;;
  12584. *)
  12585. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12586. ;;
  12587. esac
  12588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12589. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12590. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12591. $as_echo_n "(cached) " >&6
  12592. else
  12593. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12594. fi
  12595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12596. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12597. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12598. #
  12599. # Check to make sure the PIC flag actually works.
  12600. #
  12601. if test -n "$lt_prog_compiler_pic_CXX"; then
  12602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12603. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12604. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12605. $as_echo_n "(cached) " >&6
  12606. else
  12607. lt_cv_prog_compiler_pic_works_CXX=no
  12608. ac_outfile=conftest.$ac_objext
  12609. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12610. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12611. # Insert the option either (1) after the last *FLAGS variable, or
  12612. # (2) before a word containing "conftest.", or (3) at the end.
  12613. # Note that $ac_compile itself does not contain backslashes and begins
  12614. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12615. # The option is referenced via a variable to avoid confusing sed.
  12616. lt_compile=`echo "$ac_compile" | $SED \
  12617. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12618. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12619. -e 's:$: $lt_compiler_flag:'`
  12620. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12621. (eval "$lt_compile" 2>conftest.err)
  12622. ac_status=$?
  12623. cat conftest.err >&5
  12624. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12625. if (exit $ac_status) && test -s "$ac_outfile"; then
  12626. # The compiler can only warn and ignore the option if not recognized
  12627. # So say no if there are warnings other than the usual output.
  12628. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12629. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12630. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12631. lt_cv_prog_compiler_pic_works_CXX=yes
  12632. fi
  12633. fi
  12634. $RM conftest*
  12635. fi
  12636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12637. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12638. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12639. case $lt_prog_compiler_pic_CXX in
  12640. "" | " "*) ;;
  12641. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12642. esac
  12643. else
  12644. lt_prog_compiler_pic_CXX=
  12645. lt_prog_compiler_can_build_shared_CXX=no
  12646. fi
  12647. fi
  12648. #
  12649. # Check to make sure the static flag actually works.
  12650. #
  12651. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12653. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12654. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12655. $as_echo_n "(cached) " >&6
  12656. else
  12657. lt_cv_prog_compiler_static_works_CXX=no
  12658. save_LDFLAGS="$LDFLAGS"
  12659. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12660. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12661. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12662. # The linker can only warn and ignore the option if not recognized
  12663. # So say no if there are warnings
  12664. if test -s conftest.err; then
  12665. # Append any errors to the config.log.
  12666. cat conftest.err 1>&5
  12667. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12668. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12669. if diff conftest.exp conftest.er2 >/dev/null; then
  12670. lt_cv_prog_compiler_static_works_CXX=yes
  12671. fi
  12672. else
  12673. lt_cv_prog_compiler_static_works_CXX=yes
  12674. fi
  12675. fi
  12676. $RM -r conftest*
  12677. LDFLAGS="$save_LDFLAGS"
  12678. fi
  12679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12680. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12681. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12682. :
  12683. else
  12684. lt_prog_compiler_static_CXX=
  12685. fi
  12686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12687. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12688. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12689. $as_echo_n "(cached) " >&6
  12690. else
  12691. lt_cv_prog_compiler_c_o_CXX=no
  12692. $RM -r conftest 2>/dev/null
  12693. mkdir conftest
  12694. cd conftest
  12695. mkdir out
  12696. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12697. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12698. # Insert the option either (1) after the last *FLAGS variable, or
  12699. # (2) before a word containing "conftest.", or (3) at the end.
  12700. # Note that $ac_compile itself does not contain backslashes and begins
  12701. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12702. lt_compile=`echo "$ac_compile" | $SED \
  12703. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12704. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12705. -e 's:$: $lt_compiler_flag:'`
  12706. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12707. (eval "$lt_compile" 2>out/conftest.err)
  12708. ac_status=$?
  12709. cat out/conftest.err >&5
  12710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12711. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12712. then
  12713. # The compiler can only warn and ignore the option if not recognized
  12714. # So say no if there are warnings
  12715. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12716. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12717. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12718. lt_cv_prog_compiler_c_o_CXX=yes
  12719. fi
  12720. fi
  12721. chmod u+w . 2>&5
  12722. $RM conftest*
  12723. # SGI C++ compiler will create directory out/ii_files/ for
  12724. # template instantiation
  12725. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12726. $RM out/* && rmdir out
  12727. cd ..
  12728. $RM -r conftest
  12729. $RM conftest*
  12730. fi
  12731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12732. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12734. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12735. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12736. $as_echo_n "(cached) " >&6
  12737. else
  12738. lt_cv_prog_compiler_c_o_CXX=no
  12739. $RM -r conftest 2>/dev/null
  12740. mkdir conftest
  12741. cd conftest
  12742. mkdir out
  12743. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12744. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12745. # Insert the option either (1) after the last *FLAGS variable, or
  12746. # (2) before a word containing "conftest.", or (3) at the end.
  12747. # Note that $ac_compile itself does not contain backslashes and begins
  12748. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12749. lt_compile=`echo "$ac_compile" | $SED \
  12750. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12751. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12752. -e 's:$: $lt_compiler_flag:'`
  12753. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12754. (eval "$lt_compile" 2>out/conftest.err)
  12755. ac_status=$?
  12756. cat out/conftest.err >&5
  12757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12758. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12759. then
  12760. # The compiler can only warn and ignore the option if not recognized
  12761. # So say no if there are warnings
  12762. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12763. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12764. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12765. lt_cv_prog_compiler_c_o_CXX=yes
  12766. fi
  12767. fi
  12768. chmod u+w . 2>&5
  12769. $RM conftest*
  12770. # SGI C++ compiler will create directory out/ii_files/ for
  12771. # template instantiation
  12772. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12773. $RM out/* && rmdir out
  12774. cd ..
  12775. $RM -r conftest
  12776. $RM conftest*
  12777. fi
  12778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12779. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12780. hard_links="nottested"
  12781. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12782. # do not overwrite the value of need_locks provided by the user
  12783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12784. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12785. hard_links=yes
  12786. $RM conftest*
  12787. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12788. touch conftest.a
  12789. ln conftest.a conftest.b 2>&5 || hard_links=no
  12790. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12792. $as_echo "$hard_links" >&6; }
  12793. if test "$hard_links" = no; then
  12794. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12795. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12796. need_locks=warn
  12797. fi
  12798. else
  12799. need_locks=no
  12800. fi
  12801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12802. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12803. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12804. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12805. case $host_os in
  12806. aix[4-9]*)
  12807. # If we're using GNU nm, then we don't want the "-C" option.
  12808. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12809. # Also, AIX nm treats weak defined symbols like other global defined
  12810. # symbols, whereas GNU nm marks them as "W".
  12811. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12812. 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'
  12813. else
  12814. 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'
  12815. fi
  12816. ;;
  12817. pw32*)
  12818. export_symbols_cmds_CXX="$ltdll_cmds"
  12819. ;;
  12820. cygwin* | mingw* | cegcc*)
  12821. case $cc_basename in
  12822. cl*)
  12823. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12824. ;;
  12825. *)
  12826. 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'
  12827. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12828. ;;
  12829. esac
  12830. ;;
  12831. *)
  12832. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12833. ;;
  12834. esac
  12835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12836. $as_echo "$ld_shlibs_CXX" >&6; }
  12837. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12838. with_gnu_ld_CXX=$with_gnu_ld
  12839. #
  12840. # Do we need to explicitly link libc?
  12841. #
  12842. case "x$archive_cmds_need_lc_CXX" in
  12843. x|xyes)
  12844. # Assume -lc should be added
  12845. archive_cmds_need_lc_CXX=yes
  12846. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12847. case $archive_cmds_CXX in
  12848. *'~'*)
  12849. # FIXME: we may have to deal with multi-command sequences.
  12850. ;;
  12851. '$CC '*)
  12852. # Test whether the compiler implicitly links with -lc since on some
  12853. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12854. # to ld, don't add -lc before -lgcc.
  12855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12856. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12857. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12858. $as_echo_n "(cached) " >&6
  12859. else
  12860. $RM conftest*
  12861. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12862. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12863. (eval $ac_compile) 2>&5
  12864. ac_status=$?
  12865. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12866. test $ac_status = 0; } 2>conftest.err; then
  12867. soname=conftest
  12868. lib=conftest
  12869. libobjs=conftest.$ac_objext
  12870. deplibs=
  12871. wl=$lt_prog_compiler_wl_CXX
  12872. pic_flag=$lt_prog_compiler_pic_CXX
  12873. compiler_flags=-v
  12874. linker_flags=-v
  12875. verstring=
  12876. output_objdir=.
  12877. libname=conftest
  12878. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12879. allow_undefined_flag_CXX=
  12880. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12881. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12882. ac_status=$?
  12883. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12884. test $ac_status = 0; }
  12885. then
  12886. lt_cv_archive_cmds_need_lc_CXX=no
  12887. else
  12888. lt_cv_archive_cmds_need_lc_CXX=yes
  12889. fi
  12890. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12891. else
  12892. cat conftest.err 1>&5
  12893. fi
  12894. $RM conftest*
  12895. fi
  12896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12897. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12898. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12899. ;;
  12900. esac
  12901. fi
  12902. ;;
  12903. esac
  12904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12905. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12906. library_names_spec=
  12907. libname_spec='lib$name'
  12908. soname_spec=
  12909. shrext_cmds=".so"
  12910. postinstall_cmds=
  12911. postuninstall_cmds=
  12912. finish_cmds=
  12913. finish_eval=
  12914. shlibpath_var=
  12915. shlibpath_overrides_runpath=unknown
  12916. version_type=none
  12917. dynamic_linker="$host_os ld.so"
  12918. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12919. need_lib_prefix=unknown
  12920. hardcode_into_libs=no
  12921. # when you set need_version to no, make sure it does not cause -set_version
  12922. # flags to be left without arguments
  12923. need_version=unknown
  12924. case $host_os in
  12925. aix3*)
  12926. version_type=linux # correct to gnu/linux during the next big refactor
  12927. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12928. shlibpath_var=LIBPATH
  12929. # AIX 3 has no versioning support, so we append a major version to the name.
  12930. soname_spec='${libname}${release}${shared_ext}$major'
  12931. ;;
  12932. aix[4-9]*)
  12933. version_type=linux # correct to gnu/linux during the next big refactor
  12934. need_lib_prefix=no
  12935. need_version=no
  12936. hardcode_into_libs=yes
  12937. if test "$host_cpu" = ia64; then
  12938. # AIX 5 supports IA64
  12939. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12940. shlibpath_var=LD_LIBRARY_PATH
  12941. else
  12942. # With GCC up to 2.95.x, collect2 would create an import file
  12943. # for dependence libraries. The import file would start with
  12944. # the line `#! .'. This would cause the generated library to
  12945. # depend on `.', always an invalid library. This was fixed in
  12946. # development snapshots of GCC prior to 3.0.
  12947. case $host_os in
  12948. aix4 | aix4.[01] | aix4.[01].*)
  12949. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12950. echo ' yes '
  12951. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12952. :
  12953. else
  12954. can_build_shared=no
  12955. fi
  12956. ;;
  12957. esac
  12958. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12959. # soname into executable. Probably we can add versioning support to
  12960. # collect2, so additional links can be useful in future.
  12961. if test "$aix_use_runtimelinking" = yes; then
  12962. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12963. # instead of lib<name>.a to let people know that these are not
  12964. # typical AIX shared libraries.
  12965. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12966. else
  12967. # We preserve .a as extension for shared libraries through AIX4.2
  12968. # and later when we are not doing run time linking.
  12969. library_names_spec='${libname}${release}.a $libname.a'
  12970. soname_spec='${libname}${release}${shared_ext}$major'
  12971. fi
  12972. shlibpath_var=LIBPATH
  12973. fi
  12974. ;;
  12975. amigaos*)
  12976. case $host_cpu in
  12977. powerpc)
  12978. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12979. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12980. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12981. ;;
  12982. m68k)
  12983. library_names_spec='$libname.ixlibrary $libname.a'
  12984. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12985. 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'
  12986. ;;
  12987. esac
  12988. ;;
  12989. beos*)
  12990. library_names_spec='${libname}${shared_ext}'
  12991. dynamic_linker="$host_os ld.so"
  12992. shlibpath_var=LIBRARY_PATH
  12993. ;;
  12994. bsdi[45]*)
  12995. version_type=linux # correct to gnu/linux during the next big refactor
  12996. need_version=no
  12997. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12998. soname_spec='${libname}${release}${shared_ext}$major'
  12999. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13000. shlibpath_var=LD_LIBRARY_PATH
  13001. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13002. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13003. # the default ld.so.conf also contains /usr/contrib/lib and
  13004. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13005. # libtool to hard-code these into programs
  13006. ;;
  13007. cygwin* | mingw* | pw32* | cegcc*)
  13008. version_type=windows
  13009. shrext_cmds=".dll"
  13010. need_version=no
  13011. need_lib_prefix=no
  13012. case $GCC,$cc_basename in
  13013. yes,*)
  13014. # gcc
  13015. library_names_spec='$libname.dll.a'
  13016. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13017. postinstall_cmds='base_file=`basename \${file}`~
  13018. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13019. dldir=$destdir/`dirname \$dlpath`~
  13020. test -d \$dldir || mkdir -p \$dldir~
  13021. $install_prog $dir/$dlname \$dldir/$dlname~
  13022. chmod a+x \$dldir/$dlname~
  13023. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13024. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13025. fi'
  13026. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13027. dlpath=$dir/\$dldll~
  13028. $RM \$dlpath'
  13029. shlibpath_overrides_runpath=yes
  13030. case $host_os in
  13031. cygwin*)
  13032. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13033. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  13034. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  13035. ;;
  13036. mingw* | cegcc*)
  13037. # MinGW DLLs use traditional 'lib' prefix
  13038. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  13039. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  13040. ;;
  13041. pw32*)
  13042. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13043. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13044. ;;
  13045. esac
  13046. dynamic_linker='Win32 ld.exe'
  13047. ;;
  13048. *,cl*)
  13049. # Native MSVC
  13050. libname_spec='$name'
  13051. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13052. library_names_spec='${libname}.dll.lib'
  13053. case $build_os in
  13054. mingw*)
  13055. sys_lib_search_path_spec=
  13056. lt_save_ifs=$IFS
  13057. IFS=';'
  13058. for lt_path in $LIB
  13059. do
  13060. IFS=$lt_save_ifs
  13061. # Let DOS variable expansion print the short 8.3 style file name.
  13062. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13063. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13064. done
  13065. IFS=$lt_save_ifs
  13066. # Convert to MSYS style.
  13067. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13068. ;;
  13069. cygwin*)
  13070. # Convert to unix form, then to dos form, then back to unix form
  13071. # but this time dos style (no spaces!) so that the unix form looks
  13072. # like /cygdrive/c/PROGRA~1:/cygdr...
  13073. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13074. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13075. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13076. ;;
  13077. *)
  13078. sys_lib_search_path_spec="$LIB"
  13079. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13080. # It is most probably a Windows format PATH.
  13081. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13082. else
  13083. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13084. fi
  13085. # FIXME: find the short name or the path components, as spaces are
  13086. # common. (e.g. "Program Files" -> "PROGRA~1")
  13087. ;;
  13088. esac
  13089. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13090. postinstall_cmds='base_file=`basename \${file}`~
  13091. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13092. dldir=$destdir/`dirname \$dlpath`~
  13093. test -d \$dldir || mkdir -p \$dldir~
  13094. $install_prog $dir/$dlname \$dldir/$dlname'
  13095. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13096. dlpath=$dir/\$dldll~
  13097. $RM \$dlpath'
  13098. shlibpath_overrides_runpath=yes
  13099. dynamic_linker='Win32 link.exe'
  13100. ;;
  13101. *)
  13102. # Assume MSVC wrapper
  13103. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13104. dynamic_linker='Win32 ld.exe'
  13105. ;;
  13106. esac
  13107. # FIXME: first we should search . and the directory the executable is in
  13108. shlibpath_var=PATH
  13109. ;;
  13110. darwin* | rhapsody*)
  13111. dynamic_linker="$host_os dyld"
  13112. version_type=darwin
  13113. need_lib_prefix=no
  13114. need_version=no
  13115. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13116. soname_spec='${libname}${release}${major}$shared_ext'
  13117. shlibpath_overrides_runpath=yes
  13118. shlibpath_var=DYLD_LIBRARY_PATH
  13119. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13120. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13121. ;;
  13122. dgux*)
  13123. version_type=linux # correct to gnu/linux during the next big refactor
  13124. need_lib_prefix=no
  13125. need_version=no
  13126. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13127. soname_spec='${libname}${release}${shared_ext}$major'
  13128. shlibpath_var=LD_LIBRARY_PATH
  13129. ;;
  13130. freebsd* | dragonfly*)
  13131. # DragonFly does not have aout. When/if they implement a new
  13132. # versioning mechanism, adjust this.
  13133. if test -x /usr/bin/objformat; then
  13134. objformat=`/usr/bin/objformat`
  13135. else
  13136. case $host_os in
  13137. freebsd[23].*) objformat=aout ;;
  13138. *) objformat=elf ;;
  13139. esac
  13140. fi
  13141. version_type=freebsd-$objformat
  13142. case $version_type in
  13143. freebsd-elf*)
  13144. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13145. need_version=no
  13146. need_lib_prefix=no
  13147. ;;
  13148. freebsd-*)
  13149. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13150. need_version=yes
  13151. ;;
  13152. esac
  13153. shlibpath_var=LD_LIBRARY_PATH
  13154. case $host_os in
  13155. freebsd2.*)
  13156. shlibpath_overrides_runpath=yes
  13157. ;;
  13158. freebsd3.[01]* | freebsdelf3.[01]*)
  13159. shlibpath_overrides_runpath=yes
  13160. hardcode_into_libs=yes
  13161. ;;
  13162. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13163. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13164. shlibpath_overrides_runpath=no
  13165. hardcode_into_libs=yes
  13166. ;;
  13167. *) # from 4.6 on, and DragonFly
  13168. shlibpath_overrides_runpath=yes
  13169. hardcode_into_libs=yes
  13170. ;;
  13171. esac
  13172. ;;
  13173. gnu*)
  13174. version_type=linux # correct to gnu/linux during the next big refactor
  13175. need_lib_prefix=no
  13176. need_version=no
  13177. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13178. soname_spec='${libname}${release}${shared_ext}$major'
  13179. shlibpath_var=LD_LIBRARY_PATH
  13180. shlibpath_overrides_runpath=no
  13181. hardcode_into_libs=yes
  13182. ;;
  13183. haiku*)
  13184. version_type=linux # correct to gnu/linux during the next big refactor
  13185. need_lib_prefix=no
  13186. need_version=no
  13187. dynamic_linker="$host_os runtime_loader"
  13188. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13189. soname_spec='${libname}${release}${shared_ext}$major'
  13190. shlibpath_var=LIBRARY_PATH
  13191. shlibpath_overrides_runpath=yes
  13192. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13193. hardcode_into_libs=yes
  13194. ;;
  13195. hpux9* | hpux10* | hpux11*)
  13196. # Give a soname corresponding to the major version so that dld.sl refuses to
  13197. # link against other versions.
  13198. version_type=sunos
  13199. need_lib_prefix=no
  13200. need_version=no
  13201. case $host_cpu in
  13202. ia64*)
  13203. shrext_cmds='.so'
  13204. hardcode_into_libs=yes
  13205. dynamic_linker="$host_os dld.so"
  13206. shlibpath_var=LD_LIBRARY_PATH
  13207. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13208. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13209. soname_spec='${libname}${release}${shared_ext}$major'
  13210. if test "X$HPUX_IA64_MODE" = X32; then
  13211. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13212. else
  13213. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13214. fi
  13215. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13216. ;;
  13217. hppa*64*)
  13218. shrext_cmds='.sl'
  13219. hardcode_into_libs=yes
  13220. dynamic_linker="$host_os dld.sl"
  13221. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13222. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13223. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13224. soname_spec='${libname}${release}${shared_ext}$major'
  13225. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13226. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13227. ;;
  13228. *)
  13229. shrext_cmds='.sl'
  13230. dynamic_linker="$host_os dld.sl"
  13231. shlibpath_var=SHLIB_PATH
  13232. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13233. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13234. soname_spec='${libname}${release}${shared_ext}$major'
  13235. ;;
  13236. esac
  13237. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13238. postinstall_cmds='chmod 555 $lib'
  13239. # or fails outright, so override atomically:
  13240. install_override_mode=555
  13241. ;;
  13242. interix[3-9]*)
  13243. version_type=linux # correct to gnu/linux during the next big refactor
  13244. need_lib_prefix=no
  13245. need_version=no
  13246. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13247. soname_spec='${libname}${release}${shared_ext}$major'
  13248. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13249. shlibpath_var=LD_LIBRARY_PATH
  13250. shlibpath_overrides_runpath=no
  13251. hardcode_into_libs=yes
  13252. ;;
  13253. irix5* | irix6* | nonstopux*)
  13254. case $host_os in
  13255. nonstopux*) version_type=nonstopux ;;
  13256. *)
  13257. if test "$lt_cv_prog_gnu_ld" = yes; then
  13258. version_type=linux # correct to gnu/linux during the next big refactor
  13259. else
  13260. version_type=irix
  13261. fi ;;
  13262. esac
  13263. need_lib_prefix=no
  13264. need_version=no
  13265. soname_spec='${libname}${release}${shared_ext}$major'
  13266. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13267. case $host_os in
  13268. irix5* | nonstopux*)
  13269. libsuff= shlibsuff=
  13270. ;;
  13271. *)
  13272. case $LD in # libtool.m4 will add one of these switches to LD
  13273. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13274. libsuff= shlibsuff= libmagic=32-bit;;
  13275. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13276. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13277. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13278. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13279. *) libsuff= shlibsuff= libmagic=never-match;;
  13280. esac
  13281. ;;
  13282. esac
  13283. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13284. shlibpath_overrides_runpath=no
  13285. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13286. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13287. hardcode_into_libs=yes
  13288. ;;
  13289. # No shared lib support for Linux oldld, aout, or coff.
  13290. linux*oldld* | linux*aout* | linux*coff*)
  13291. dynamic_linker=no
  13292. ;;
  13293. # This must be glibc/ELF.
  13294. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13295. version_type=linux # correct to gnu/linux during the next big refactor
  13296. need_lib_prefix=no
  13297. need_version=no
  13298. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13299. soname_spec='${libname}${release}${shared_ext}$major'
  13300. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13301. shlibpath_var=LD_LIBRARY_PATH
  13302. shlibpath_overrides_runpath=no
  13303. # Some binutils ld are patched to set DT_RUNPATH
  13304. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13305. $as_echo_n "(cached) " >&6
  13306. else
  13307. lt_cv_shlibpath_overrides_runpath=no
  13308. save_LDFLAGS=$LDFLAGS
  13309. save_libdir=$libdir
  13310. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13311. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13313. /* end confdefs.h. */
  13314. int
  13315. main ()
  13316. {
  13317. ;
  13318. return 0;
  13319. }
  13320. _ACEOF
  13321. if ac_fn_cxx_try_link "$LINENO"; then :
  13322. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13323. lt_cv_shlibpath_overrides_runpath=yes
  13324. fi
  13325. fi
  13326. rm -f core conftest.err conftest.$ac_objext \
  13327. conftest$ac_exeext conftest.$ac_ext
  13328. LDFLAGS=$save_LDFLAGS
  13329. libdir=$save_libdir
  13330. fi
  13331. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13332. # This implies no fast_install, which is unacceptable.
  13333. # Some rework will be needed to allow for fast_install
  13334. # before this can be enabled.
  13335. hardcode_into_libs=yes
  13336. # Append ld.so.conf contents to the search path
  13337. if test -f /etc/ld.so.conf; then
  13338. 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' ' '`
  13339. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13340. fi
  13341. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13342. # powerpc, because MkLinux only supported shared libraries with the
  13343. # GNU dynamic linker. Since this was broken with cross compilers,
  13344. # most powerpc-linux boxes support dynamic linking these days and
  13345. # people can always --disable-shared, the test was removed, and we
  13346. # assume the GNU/Linux dynamic linker is in use.
  13347. dynamic_linker='GNU/Linux ld.so'
  13348. ;;
  13349. netbsd*)
  13350. version_type=sunos
  13351. need_lib_prefix=no
  13352. need_version=no
  13353. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13354. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13355. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13356. dynamic_linker='NetBSD (a.out) ld.so'
  13357. else
  13358. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13359. soname_spec='${libname}${release}${shared_ext}$major'
  13360. dynamic_linker='NetBSD ld.elf_so'
  13361. fi
  13362. shlibpath_var=LD_LIBRARY_PATH
  13363. shlibpath_overrides_runpath=yes
  13364. hardcode_into_libs=yes
  13365. ;;
  13366. newsos6)
  13367. version_type=linux # correct to gnu/linux during the next big refactor
  13368. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13369. shlibpath_var=LD_LIBRARY_PATH
  13370. shlibpath_overrides_runpath=yes
  13371. ;;
  13372. *nto* | *qnx*)
  13373. version_type=qnx
  13374. need_lib_prefix=no
  13375. need_version=no
  13376. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13377. soname_spec='${libname}${release}${shared_ext}$major'
  13378. shlibpath_var=LD_LIBRARY_PATH
  13379. shlibpath_overrides_runpath=no
  13380. hardcode_into_libs=yes
  13381. dynamic_linker='ldqnx.so'
  13382. ;;
  13383. openbsd*)
  13384. version_type=sunos
  13385. sys_lib_dlsearch_path_spec="/usr/lib"
  13386. need_lib_prefix=no
  13387. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13388. case $host_os in
  13389. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13390. *) need_version=no ;;
  13391. esac
  13392. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13393. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13394. shlibpath_var=LD_LIBRARY_PATH
  13395. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13396. case $host_os in
  13397. openbsd2.[89] | openbsd2.[89].*)
  13398. shlibpath_overrides_runpath=no
  13399. ;;
  13400. *)
  13401. shlibpath_overrides_runpath=yes
  13402. ;;
  13403. esac
  13404. else
  13405. shlibpath_overrides_runpath=yes
  13406. fi
  13407. ;;
  13408. os2*)
  13409. libname_spec='$name'
  13410. shrext_cmds=".dll"
  13411. need_lib_prefix=no
  13412. library_names_spec='$libname${shared_ext} $libname.a'
  13413. dynamic_linker='OS/2 ld.exe'
  13414. shlibpath_var=LIBPATH
  13415. ;;
  13416. osf3* | osf4* | osf5*)
  13417. version_type=osf
  13418. need_lib_prefix=no
  13419. need_version=no
  13420. soname_spec='${libname}${release}${shared_ext}$major'
  13421. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13422. shlibpath_var=LD_LIBRARY_PATH
  13423. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13424. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13425. ;;
  13426. rdos*)
  13427. dynamic_linker=no
  13428. ;;
  13429. solaris*)
  13430. version_type=linux # correct to gnu/linux during the next big refactor
  13431. need_lib_prefix=no
  13432. need_version=no
  13433. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13434. soname_spec='${libname}${release}${shared_ext}$major'
  13435. shlibpath_var=LD_LIBRARY_PATH
  13436. shlibpath_overrides_runpath=yes
  13437. hardcode_into_libs=yes
  13438. # ldd complains unless libraries are executable
  13439. postinstall_cmds='chmod +x $lib'
  13440. ;;
  13441. sunos4*)
  13442. version_type=sunos
  13443. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13444. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13445. shlibpath_var=LD_LIBRARY_PATH
  13446. shlibpath_overrides_runpath=yes
  13447. if test "$with_gnu_ld" = yes; then
  13448. need_lib_prefix=no
  13449. fi
  13450. need_version=yes
  13451. ;;
  13452. sysv4 | sysv4.3*)
  13453. version_type=linux # correct to gnu/linux during the next big refactor
  13454. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13455. soname_spec='${libname}${release}${shared_ext}$major'
  13456. shlibpath_var=LD_LIBRARY_PATH
  13457. case $host_vendor in
  13458. sni)
  13459. shlibpath_overrides_runpath=no
  13460. need_lib_prefix=no
  13461. runpath_var=LD_RUN_PATH
  13462. ;;
  13463. siemens)
  13464. need_lib_prefix=no
  13465. ;;
  13466. motorola)
  13467. need_lib_prefix=no
  13468. need_version=no
  13469. shlibpath_overrides_runpath=no
  13470. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13471. ;;
  13472. esac
  13473. ;;
  13474. sysv4*MP*)
  13475. if test -d /usr/nec ;then
  13476. version_type=linux # correct to gnu/linux during the next big refactor
  13477. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13478. soname_spec='$libname${shared_ext}.$major'
  13479. shlibpath_var=LD_LIBRARY_PATH
  13480. fi
  13481. ;;
  13482. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13483. version_type=freebsd-elf
  13484. need_lib_prefix=no
  13485. need_version=no
  13486. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13487. soname_spec='${libname}${release}${shared_ext}$major'
  13488. shlibpath_var=LD_LIBRARY_PATH
  13489. shlibpath_overrides_runpath=yes
  13490. hardcode_into_libs=yes
  13491. if test "$with_gnu_ld" = yes; then
  13492. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13493. else
  13494. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13495. case $host_os in
  13496. sco3.2v5*)
  13497. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13498. ;;
  13499. esac
  13500. fi
  13501. sys_lib_dlsearch_path_spec='/usr/lib'
  13502. ;;
  13503. tpf*)
  13504. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13505. version_type=linux # correct to gnu/linux during the next big refactor
  13506. need_lib_prefix=no
  13507. need_version=no
  13508. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13509. shlibpath_var=LD_LIBRARY_PATH
  13510. shlibpath_overrides_runpath=no
  13511. hardcode_into_libs=yes
  13512. ;;
  13513. uts4*)
  13514. version_type=linux # correct to gnu/linux during the next big refactor
  13515. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13516. soname_spec='${libname}${release}${shared_ext}$major'
  13517. shlibpath_var=LD_LIBRARY_PATH
  13518. ;;
  13519. *)
  13520. dynamic_linker=no
  13521. ;;
  13522. esac
  13523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13524. $as_echo "$dynamic_linker" >&6; }
  13525. test "$dynamic_linker" = no && can_build_shared=no
  13526. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13527. if test "$GCC" = yes; then
  13528. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13529. fi
  13530. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13531. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13532. fi
  13533. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13534. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13535. fi
  13536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13537. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13538. hardcode_action_CXX=
  13539. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13540. test -n "$runpath_var_CXX" ||
  13541. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13542. # We can hardcode non-existent directories.
  13543. if test "$hardcode_direct_CXX" != no &&
  13544. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13545. # have to relink, otherwise we might link with an installed library
  13546. # when we should be linking with a yet-to-be-installed one
  13547. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13548. test "$hardcode_minus_L_CXX" != no; then
  13549. # Linking always hardcodes the temporary library directory.
  13550. hardcode_action_CXX=relink
  13551. else
  13552. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13553. hardcode_action_CXX=immediate
  13554. fi
  13555. else
  13556. # We cannot hardcode anything, or else we can only hardcode existing
  13557. # directories.
  13558. hardcode_action_CXX=unsupported
  13559. fi
  13560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13561. $as_echo "$hardcode_action_CXX" >&6; }
  13562. if test "$hardcode_action_CXX" = relink ||
  13563. test "$inherit_rpath_CXX" = yes; then
  13564. # Fast installation is not supported
  13565. enable_fast_install=no
  13566. elif test "$shlibpath_overrides_runpath" = yes ||
  13567. test "$enable_shared" = no; then
  13568. # Fast installation is not necessary
  13569. enable_fast_install=needless
  13570. fi
  13571. fi # test -n "$compiler"
  13572. CC=$lt_save_CC
  13573. CFLAGS=$lt_save_CFLAGS
  13574. LDCXX=$LD
  13575. LD=$lt_save_LD
  13576. GCC=$lt_save_GCC
  13577. with_gnu_ld=$lt_save_with_gnu_ld
  13578. lt_cv_path_LDCXX=$lt_cv_path_LD
  13579. lt_cv_path_LD=$lt_save_path_LD
  13580. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13581. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13582. fi # test "$_lt_caught_CXX_error" != yes
  13583. ac_ext=c
  13584. ac_cpp='$CPP $CPPFLAGS'
  13585. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13586. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13587. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13588. # Find a good install program. We prefer a C program (faster),
  13589. # so one script is as good as another. But avoid the broken or
  13590. # incompatible versions:
  13591. # SysV /etc/install, /usr/sbin/install
  13592. # SunOS /usr/etc/install
  13593. # IRIX /sbin/install
  13594. # AIX /bin/install
  13595. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13596. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13597. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13598. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13599. # OS/2's system install, which has a completely different semantic
  13600. # ./install, which can be erroneously created by make from ./install.sh.
  13601. # Reject install programs that cannot install multiple files.
  13602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13603. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13604. if test -z "$INSTALL"; then
  13605. if ${ac_cv_path_install+:} false; then :
  13606. $as_echo_n "(cached) " >&6
  13607. else
  13608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13609. for as_dir in $PATH
  13610. do
  13611. IFS=$as_save_IFS
  13612. test -z "$as_dir" && as_dir=.
  13613. # Account for people who put trailing slashes in PATH elements.
  13614. case $as_dir/ in #((
  13615. ./ | .// | /[cC]/* | \
  13616. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13617. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13618. /usr/ucb/* ) ;;
  13619. *)
  13620. # OSF1 and SCO ODT 3.0 have their own names for install.
  13621. # Don't use installbsd from OSF since it installs stuff as root
  13622. # by default.
  13623. for ac_prog in ginstall scoinst install; do
  13624. for ac_exec_ext in '' $ac_executable_extensions; do
  13625. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13626. if test $ac_prog = install &&
  13627. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13628. # AIX install. It has an incompatible calling convention.
  13629. :
  13630. elif test $ac_prog = install &&
  13631. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13632. # program-specific install script used by HP pwplus--don't use.
  13633. :
  13634. else
  13635. rm -rf conftest.one conftest.two conftest.dir
  13636. echo one > conftest.one
  13637. echo two > conftest.two
  13638. mkdir conftest.dir
  13639. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13640. test -s conftest.one && test -s conftest.two &&
  13641. test -s conftest.dir/conftest.one &&
  13642. test -s conftest.dir/conftest.two
  13643. then
  13644. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13645. break 3
  13646. fi
  13647. fi
  13648. fi
  13649. done
  13650. done
  13651. ;;
  13652. esac
  13653. done
  13654. IFS=$as_save_IFS
  13655. rm -rf conftest.one conftest.two conftest.dir
  13656. fi
  13657. if test "${ac_cv_path_install+set}" = set; then
  13658. INSTALL=$ac_cv_path_install
  13659. else
  13660. # As a last resort, use the slow shell script. Don't cache a
  13661. # value for INSTALL within a source directory, because that will
  13662. # break other packages using the cache if that directory is
  13663. # removed, or if the value is a relative name.
  13664. INSTALL=$ac_install_sh
  13665. fi
  13666. fi
  13667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13668. $as_echo "$INSTALL" >&6; }
  13669. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13670. # It thinks the first close brace ends the variable substitution.
  13671. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13672. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13673. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13675. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13676. set x ${MAKE-make}
  13677. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13678. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13679. $as_echo_n "(cached) " >&6
  13680. else
  13681. cat >conftest.make <<\_ACEOF
  13682. SHELL = /bin/sh
  13683. all:
  13684. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13685. _ACEOF
  13686. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13687. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13688. *@@@%%%=?*=@@@%%%*)
  13689. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13690. *)
  13691. eval ac_cv_prog_make_${ac_make}_set=no;;
  13692. esac
  13693. rm -f conftest.make
  13694. fi
  13695. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13697. $as_echo "yes" >&6; }
  13698. SET_MAKE=
  13699. else
  13700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13701. $as_echo "no" >&6; }
  13702. SET_MAKE="MAKE=${MAKE-make}"
  13703. fi
  13704. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  13705. if test -n "$ac_tool_prefix"; then
  13706. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  13707. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  13708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13709. $as_echo_n "checking for $ac_word... " >&6; }
  13710. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  13711. $as_echo_n "(cached) " >&6
  13712. else
  13713. case $PKG_CONFIG in
  13714. [\\/]* | ?:[\\/]*)
  13715. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13716. ;;
  13717. *)
  13718. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13719. for as_dir in $PATH
  13720. do
  13721. IFS=$as_save_IFS
  13722. test -z "$as_dir" && as_dir=.
  13723. for ac_exec_ext in '' $ac_executable_extensions; do
  13724. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13725. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13726. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13727. break 2
  13728. fi
  13729. done
  13730. done
  13731. IFS=$as_save_IFS
  13732. ;;
  13733. esac
  13734. fi
  13735. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13736. if test -n "$PKG_CONFIG"; then
  13737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13738. $as_echo "$PKG_CONFIG" >&6; }
  13739. else
  13740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13741. $as_echo "no" >&6; }
  13742. fi
  13743. fi
  13744. if test -z "$ac_cv_path_PKG_CONFIG"; then
  13745. ac_pt_PKG_CONFIG=$PKG_CONFIG
  13746. # Extract the first word of "pkg-config", so it can be a program name with args.
  13747. set dummy pkg-config; ac_word=$2
  13748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13749. $as_echo_n "checking for $ac_word... " >&6; }
  13750. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  13751. $as_echo_n "(cached) " >&6
  13752. else
  13753. case $ac_pt_PKG_CONFIG in
  13754. [\\/]* | ?:[\\/]*)
  13755. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  13756. ;;
  13757. *)
  13758. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13759. for as_dir in $PATH
  13760. do
  13761. IFS=$as_save_IFS
  13762. test -z "$as_dir" && as_dir=.
  13763. for ac_exec_ext in '' $ac_executable_extensions; do
  13764. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13765. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13766. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13767. break 2
  13768. fi
  13769. done
  13770. done
  13771. IFS=$as_save_IFS
  13772. ;;
  13773. esac
  13774. fi
  13775. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  13776. if test -n "$ac_pt_PKG_CONFIG"; then
  13777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  13778. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  13779. else
  13780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13781. $as_echo "no" >&6; }
  13782. fi
  13783. if test "x$ac_pt_PKG_CONFIG" = x; then
  13784. PKG_CONFIG=""
  13785. else
  13786. case $cross_compiling:$ac_tool_warned in
  13787. yes:)
  13788. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13789. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13790. ac_tool_warned=yes ;;
  13791. esac
  13792. PKG_CONFIG=$ac_pt_PKG_CONFIG
  13793. fi
  13794. else
  13795. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  13796. fi
  13797. fi
  13798. if test -n "$PKG_CONFIG"; then
  13799. _pkg_min_version=0.9.0
  13800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  13801. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  13802. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  13803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13804. $as_echo "yes" >&6; }
  13805. else
  13806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13807. $as_echo "no" >&6; }
  13808. PKG_CONFIG=""
  13809. fi
  13810. fi
  13811. case "$host" in
  13812. *-*-mingw*)
  13813. # Except on msys, where make can't handle full pathnames (bug 1972)
  13814. ;;
  13815. *)
  13816. srcdir=`cd $srcdir && pwd`
  13817. ;;
  13818. esac
  13819. INCLUDE="-I$srcdir/include"
  13820. case "$host" in
  13821. *-*-nto-qnx*)
  13822. ;;
  13823. *)
  13824. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  13825. ;;
  13826. esac
  13827. if test x$srcdir != x.; then
  13828. INCLUDE="-Iinclude $INCLUDE"
  13829. elif test -d .git; then
  13830. as_fn_error $? "
  13831. *** When building from a git clone you should configure and build in a
  13832. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13833. " "$LINENO" 5
  13834. fi
  13835. BASE_CFLAGS=""
  13836. BASE_LDFLAGS=""
  13837. case "$host" in
  13838. *-*-cygwin*)
  13839. # We build SDL on cygwin without the UNIX emulation layer
  13840. save_CFLAGS="$CFLAGS"
  13841. have_no_cygwin=no
  13842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13843. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13844. CFLAGS="$save_CFLAGS -mno-cygwin"
  13845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13846. /* end confdefs.h. */
  13847. int
  13848. main ()
  13849. {
  13850. ;
  13851. return 0;
  13852. }
  13853. _ACEOF
  13854. if ac_fn_c_try_compile "$LINENO"; then :
  13855. have_no_cygwin=yes
  13856. fi
  13857. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13859. $as_echo "$have_no_cygwin" >&6; }
  13860. CFLAGS="$save_CFLAGS"
  13861. if test x$have_no_cygwin = xyes; then
  13862. BASE_CFLAGS="-mno-cygwin"
  13863. BASE_LDFLAGS="-mno-cygwin"
  13864. fi
  13865. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13866. ;;
  13867. esac
  13868. # Uncomment the following line if you want to force SDL and applications
  13869. # built with it to be compiled for a particular architecture.
  13870. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13871. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13872. # The default optimization for SDL is -O3 (Bug #31)
  13873. if test "x$orig_CFLAGS" = x; then
  13874. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13875. fi
  13876. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13877. BUILD_LDFLAGS="$LDFLAGS"
  13878. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13879. ## These are common directories to find software packages
  13880. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13881. # if test -d $path/include; then
  13882. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13883. # fi
  13884. # if test -d $path/lib; then
  13885. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13886. # fi
  13887. #done
  13888. SDL_CFLAGS="$BASE_CFLAGS"
  13889. SDL_LIBS="-lSDL2"
  13890. if test "x$BASE_LDFLAGS" != x; then
  13891. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  13892. fi
  13893. if test "x$EXTRA_CFLAGS" != x; then
  13894. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13895. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13896. fi
  13897. if test "x$EXTRA_LDFLAGS" != x; then
  13898. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13899. fi
  13900. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13901. find_lib()
  13902. {
  13903. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13904. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13905. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13906. if test "$cross_compiling" = yes; then
  13907. host_lib_path=""
  13908. else
  13909. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13910. fi
  13911. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13912. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13913. if test x$lib != x; then
  13914. echo $lib
  13915. return
  13916. fi
  13917. done
  13918. # Try again, this time allowing more than one version digit after the .so
  13919. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13920. lib=`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1`
  13921. if test x$lib != x; then
  13922. echo $lib
  13923. return
  13924. fi
  13925. done
  13926. }
  13927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13928. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13929. if ${ac_cv_c_const+:} false; then :
  13930. $as_echo_n "(cached) " >&6
  13931. else
  13932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13933. /* end confdefs.h. */
  13934. int
  13935. main ()
  13936. {
  13937. #ifndef __cplusplus
  13938. /* Ultrix mips cc rejects this sort of thing. */
  13939. typedef int charset[2];
  13940. const charset cs = { 0, 0 };
  13941. /* SunOS 4.1.1 cc rejects this. */
  13942. char const *const *pcpcc;
  13943. char **ppc;
  13944. /* NEC SVR4.0.2 mips cc rejects this. */
  13945. struct point {int x, y;};
  13946. static struct point const zero = {0,0};
  13947. /* AIX XL C 1.02.0.0 rejects this.
  13948. It does not let you subtract one const X* pointer from another in
  13949. an arm of an if-expression whose if-part is not a constant
  13950. expression */
  13951. const char *g = "string";
  13952. pcpcc = &g + (g ? g-g : 0);
  13953. /* HPUX 7.0 cc rejects these. */
  13954. ++pcpcc;
  13955. ppc = (char**) pcpcc;
  13956. pcpcc = (char const *const *) ppc;
  13957. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13958. char tx;
  13959. char *t = &tx;
  13960. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13961. *t++ = 0;
  13962. if (s) return 0;
  13963. }
  13964. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13965. int x[] = {25, 17};
  13966. const int *foo = &x[0];
  13967. ++foo;
  13968. }
  13969. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13970. typedef const int *iptr;
  13971. iptr p = 0;
  13972. ++p;
  13973. }
  13974. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13975. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13976. struct s { int j; const int *ap[3]; } bx;
  13977. struct s *b = &bx; b->j = 5;
  13978. }
  13979. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13980. const int foo = 10;
  13981. if (!foo) return 0;
  13982. }
  13983. return !cs[0] && !zero.x;
  13984. #endif
  13985. ;
  13986. return 0;
  13987. }
  13988. _ACEOF
  13989. if ac_fn_c_try_compile "$LINENO"; then :
  13990. ac_cv_c_const=yes
  13991. else
  13992. ac_cv_c_const=no
  13993. fi
  13994. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13995. fi
  13996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13997. $as_echo "$ac_cv_c_const" >&6; }
  13998. if test $ac_cv_c_const = no; then
  13999. $as_echo "#define const /**/" >>confdefs.h
  14000. fi
  14001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  14002. $as_echo_n "checking for inline... " >&6; }
  14003. if ${ac_cv_c_inline+:} false; then :
  14004. $as_echo_n "(cached) " >&6
  14005. else
  14006. ac_cv_c_inline=no
  14007. for ac_kw in inline __inline__ __inline; do
  14008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14009. /* end confdefs.h. */
  14010. #ifndef __cplusplus
  14011. typedef int foo_t;
  14012. static $ac_kw foo_t static_foo () {return 0; }
  14013. $ac_kw foo_t foo () {return 0; }
  14014. #endif
  14015. _ACEOF
  14016. if ac_fn_c_try_compile "$LINENO"; then :
  14017. ac_cv_c_inline=$ac_kw
  14018. fi
  14019. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14020. test "$ac_cv_c_inline" != no && break
  14021. done
  14022. fi
  14023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  14024. $as_echo "$ac_cv_c_inline" >&6; }
  14025. case $ac_cv_c_inline in
  14026. inline | yes) ;;
  14027. *)
  14028. case $ac_cv_c_inline in
  14029. no) ac_val=;;
  14030. *) ac_val=$ac_cv_c_inline;;
  14031. esac
  14032. cat >>confdefs.h <<_ACEOF
  14033. #ifndef __cplusplus
  14034. #define inline $ac_val
  14035. #endif
  14036. _ACEOF
  14037. ;;
  14038. esac
  14039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  14040. $as_echo_n "checking for working volatile... " >&6; }
  14041. if ${ac_cv_c_volatile+:} false; then :
  14042. $as_echo_n "(cached) " >&6
  14043. else
  14044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14045. /* end confdefs.h. */
  14046. int
  14047. main ()
  14048. {
  14049. volatile int x;
  14050. int * volatile y = (int *) 0;
  14051. return !x && !y;
  14052. ;
  14053. return 0;
  14054. }
  14055. _ACEOF
  14056. if ac_fn_c_try_compile "$LINENO"; then :
  14057. ac_cv_c_volatile=yes
  14058. else
  14059. ac_cv_c_volatile=no
  14060. fi
  14061. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14062. fi
  14063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  14064. $as_echo "$ac_cv_c_volatile" >&6; }
  14065. if test $ac_cv_c_volatile = no; then
  14066. $as_echo "#define volatile /**/" >>confdefs.h
  14067. fi
  14068. # Check whether --enable-assertions was given.
  14069. if test "${enable_assertions+set}" = set; then :
  14070. enableval=$enable_assertions;
  14071. else
  14072. enable_assertions=auto
  14073. fi
  14074. case "$enable_assertions" in
  14075. auto) # Use optimization settings to determine assertion level
  14076. ;;
  14077. disabled)
  14078. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  14079. ;;
  14080. release)
  14081. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  14082. ;;
  14083. enabled)
  14084. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  14085. ;;
  14086. paranoid)
  14087. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  14088. ;;
  14089. *)
  14090. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  14091. ;;
  14092. esac
  14093. # Check whether --enable-dependency-tracking was given.
  14094. if test "${enable_dependency_tracking+set}" = set; then :
  14095. enableval=$enable_dependency_tracking;
  14096. else
  14097. enable_dependency_tracking=yes
  14098. fi
  14099. if test x$enable_dependency_tracking = xyes; then
  14100. have_gcc_mmd_mt=no
  14101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  14102. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  14103. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14104. /* end confdefs.h. */
  14105. #if !defined(__GNUC__) || __GNUC__ < 3
  14106. #error Dependency tracking requires GCC 3.0 or newer
  14107. #endif
  14108. int
  14109. main ()
  14110. {
  14111. ;
  14112. return 0;
  14113. }
  14114. _ACEOF
  14115. if ac_fn_c_try_compile "$LINENO"; then :
  14116. have_gcc_mmd_mt=yes
  14117. fi
  14118. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  14120. $as_echo "$have_gcc_mmd_mt" >&6; }
  14121. if test x$have_gcc_mmd_mt = xyes; then
  14122. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  14123. fi
  14124. fi
  14125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  14126. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  14127. have_no_undefined=no
  14128. case "$host" in
  14129. *-*-openbsd*)
  14130. ;;
  14131. *)
  14132. save_LDFLAGS="$LDFLAGS"
  14133. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  14134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14135. /* end confdefs.h. */
  14136. int
  14137. main ()
  14138. {
  14139. ;
  14140. return 0;
  14141. }
  14142. _ACEOF
  14143. if ac_fn_c_try_link "$LINENO"; then :
  14144. have_no_undefined=yes
  14145. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  14146. fi
  14147. rm -f core conftest.err conftest.$ac_objext \
  14148. conftest$ac_exeext conftest.$ac_ext
  14149. LDFLAGS="$save_LDFLAGS"
  14150. ;;
  14151. esac
  14152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  14153. $as_echo "$have_no_undefined" >&6; }
  14154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  14155. $as_echo_n "checking for linker option --dynamicbase... " >&6; }
  14156. have_dynamicbase=no
  14157. case "$host" in
  14158. *)
  14159. save_LDFLAGS="$LDFLAGS"
  14160. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  14161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14162. /* end confdefs.h. */
  14163. int
  14164. main ()
  14165. {
  14166. ;
  14167. return 0;
  14168. }
  14169. _ACEOF
  14170. if ac_fn_c_try_link "$LINENO"; then :
  14171. have_dynamicbase=yes
  14172. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  14173. fi
  14174. rm -f core conftest.err conftest.$ac_objext \
  14175. conftest$ac_exeext conftest.$ac_ext
  14176. LDFLAGS="$save_LDFLAGS"
  14177. ;;
  14178. esac
  14179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  14180. $as_echo "$have_dynamicbase" >&6; }
  14181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  14182. $as_echo_n "checking for linker option --nxcompat... " >&6; }
  14183. have_nxcompat=no
  14184. case "$host" in
  14185. *)
  14186. save_LDFLAGS="$LDFLAGS"
  14187. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  14188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14189. /* end confdefs.h. */
  14190. int
  14191. main ()
  14192. {
  14193. ;
  14194. return 0;
  14195. }
  14196. _ACEOF
  14197. if ac_fn_c_try_link "$LINENO"; then :
  14198. have_nxcompat=yes
  14199. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  14200. fi
  14201. rm -f core conftest.err conftest.$ac_objext \
  14202. conftest$ac_exeext conftest.$ac_ext
  14203. LDFLAGS="$save_LDFLAGS"
  14204. ;;
  14205. esac
  14206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  14207. $as_echo "$have_nxcompat" >&6; }
  14208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  14209. $as_echo_n "checking for linker option --high-entropy-va... " >&6; }
  14210. have_high_entropy_va=no
  14211. case "$host" in
  14212. *)
  14213. save_LDFLAGS="$LDFLAGS"
  14214. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  14215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14216. /* end confdefs.h. */
  14217. int
  14218. main ()
  14219. {
  14220. ;
  14221. return 0;
  14222. }
  14223. _ACEOF
  14224. if ac_fn_c_try_link "$LINENO"; then :
  14225. have_high_entropy_va=yes
  14226. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  14227. fi
  14228. rm -f core conftest.err conftest.$ac_objext \
  14229. conftest$ac_exeext conftest.$ac_ext
  14230. LDFLAGS="$save_LDFLAGS"
  14231. ;;
  14232. esac
  14233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  14234. $as_echo "$have_high_entropy_va" >&6; }
  14235. # Check whether --enable-libc was given.
  14236. if test "${enable_libc+set}" = set; then :
  14237. enableval=$enable_libc;
  14238. else
  14239. enable_libc=yes
  14240. fi
  14241. if test x$enable_libc = xyes; then
  14242. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  14243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14244. $as_echo_n "checking for ANSI C header files... " >&6; }
  14245. if ${ac_cv_header_stdc+:} false; then :
  14246. $as_echo_n "(cached) " >&6
  14247. else
  14248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14249. /* end confdefs.h. */
  14250. #include <stdlib.h>
  14251. #include <stdarg.h>
  14252. #include <string.h>
  14253. #include <float.h>
  14254. int
  14255. main ()
  14256. {
  14257. ;
  14258. return 0;
  14259. }
  14260. _ACEOF
  14261. if ac_fn_c_try_compile "$LINENO"; then :
  14262. ac_cv_header_stdc=yes
  14263. else
  14264. ac_cv_header_stdc=no
  14265. fi
  14266. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14267. if test $ac_cv_header_stdc = yes; then
  14268. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14269. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14270. /* end confdefs.h. */
  14271. #include <string.h>
  14272. _ACEOF
  14273. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14274. $EGREP "memchr" >/dev/null 2>&1; then :
  14275. else
  14276. ac_cv_header_stdc=no
  14277. fi
  14278. rm -f conftest*
  14279. fi
  14280. if test $ac_cv_header_stdc = yes; then
  14281. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14283. /* end confdefs.h. */
  14284. #include <stdlib.h>
  14285. _ACEOF
  14286. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14287. $EGREP "free" >/dev/null 2>&1; then :
  14288. else
  14289. ac_cv_header_stdc=no
  14290. fi
  14291. rm -f conftest*
  14292. fi
  14293. if test $ac_cv_header_stdc = yes; then
  14294. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14295. if test "$cross_compiling" = yes; then :
  14296. :
  14297. else
  14298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14299. /* end confdefs.h. */
  14300. #include <ctype.h>
  14301. #include <stdlib.h>
  14302. #if ((' ' & 0x0FF) == 0x020)
  14303. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14304. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14305. #else
  14306. # define ISLOWER(c) \
  14307. (('a' <= (c) && (c) <= 'i') \
  14308. || ('j' <= (c) && (c) <= 'r') \
  14309. || ('s' <= (c) && (c) <= 'z'))
  14310. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14311. #endif
  14312. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14313. int
  14314. main ()
  14315. {
  14316. int i;
  14317. for (i = 0; i < 256; i++)
  14318. if (XOR (islower (i), ISLOWER (i))
  14319. || toupper (i) != TOUPPER (i))
  14320. return 2;
  14321. return 0;
  14322. }
  14323. _ACEOF
  14324. if ac_fn_c_try_run "$LINENO"; then :
  14325. else
  14326. ac_cv_header_stdc=no
  14327. fi
  14328. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14329. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14330. fi
  14331. fi
  14332. fi
  14333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14334. $as_echo "$ac_cv_header_stdc" >&6; }
  14335. if test $ac_cv_header_stdc = yes; then
  14336. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14337. fi
  14338. 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
  14339. do :
  14340. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14341. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14342. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14343. cat >>confdefs.h <<_ACEOF
  14344. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14345. _ACEOF
  14346. fi
  14347. done
  14348. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14349. if test "x$ac_cv_type_size_t" = xyes; then :
  14350. else
  14351. cat >>confdefs.h <<_ACEOF
  14352. #define size_t unsigned int
  14353. _ACEOF
  14354. fi
  14355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  14356. $as_echo_n "checking for M_PI in math.h... " >&6; }
  14357. if ${ac_cv_define_M_PI+:} false; then :
  14358. $as_echo_n "(cached) " >&6
  14359. else
  14360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14361. /* end confdefs.h. */
  14362. #include <math.h>
  14363. #ifdef M_PI
  14364. YES_IS_DEFINED
  14365. #endif
  14366. _ACEOF
  14367. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14368. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  14369. ac_cv_define_M_PI=yes
  14370. else
  14371. ac_cv_define_M_PI=no
  14372. fi
  14373. rm -f conftest*
  14374. fi
  14375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14376. $as_echo "$ac_cv_define_M_PI" >&6; }
  14377. if test "$ac_cv_define_M_PI" = "yes" ; then
  14378. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14379. fi
  14380. case "$host" in
  14381. *-*-cygwin* | *-*-mingw*)
  14382. ;;
  14383. *)
  14384. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14385. # for constant arguments. Useless!
  14386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14387. $as_echo_n "checking for working alloca.h... " >&6; }
  14388. if ${ac_cv_working_alloca_h+:} false; then :
  14389. $as_echo_n "(cached) " >&6
  14390. else
  14391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14392. /* end confdefs.h. */
  14393. #include <alloca.h>
  14394. int
  14395. main ()
  14396. {
  14397. char *p = (char *) alloca (2 * sizeof (int));
  14398. if (p) return 0;
  14399. ;
  14400. return 0;
  14401. }
  14402. _ACEOF
  14403. if ac_fn_c_try_link "$LINENO"; then :
  14404. ac_cv_working_alloca_h=yes
  14405. else
  14406. ac_cv_working_alloca_h=no
  14407. fi
  14408. rm -f core conftest.err conftest.$ac_objext \
  14409. conftest$ac_exeext conftest.$ac_ext
  14410. fi
  14411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14412. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14413. if test $ac_cv_working_alloca_h = yes; then
  14414. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14415. fi
  14416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14417. $as_echo_n "checking for alloca... " >&6; }
  14418. if ${ac_cv_func_alloca_works+:} false; then :
  14419. $as_echo_n "(cached) " >&6
  14420. else
  14421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14422. /* end confdefs.h. */
  14423. #ifdef __GNUC__
  14424. # define alloca __builtin_alloca
  14425. #else
  14426. # ifdef _MSC_VER
  14427. # include <malloc.h>
  14428. # define alloca _alloca
  14429. # else
  14430. # ifdef HAVE_ALLOCA_H
  14431. # include <alloca.h>
  14432. # else
  14433. # ifdef _AIX
  14434. #pragma alloca
  14435. # else
  14436. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14437. void *alloca (size_t);
  14438. # endif
  14439. # endif
  14440. # endif
  14441. # endif
  14442. #endif
  14443. int
  14444. main ()
  14445. {
  14446. char *p = (char *) alloca (1);
  14447. if (p) return 0;
  14448. ;
  14449. return 0;
  14450. }
  14451. _ACEOF
  14452. if ac_fn_c_try_link "$LINENO"; then :
  14453. ac_cv_func_alloca_works=yes
  14454. else
  14455. ac_cv_func_alloca_works=no
  14456. fi
  14457. rm -f core conftest.err conftest.$ac_objext \
  14458. conftest$ac_exeext conftest.$ac_ext
  14459. fi
  14460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14461. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14462. if test $ac_cv_func_alloca_works = yes; then
  14463. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14464. else
  14465. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14466. # that cause trouble. Some versions do not even contain alloca or
  14467. # contain a buggy version. If you still want to use their alloca,
  14468. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14469. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14470. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14472. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14473. if ${ac_cv_os_cray+:} false; then :
  14474. $as_echo_n "(cached) " >&6
  14475. else
  14476. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14477. /* end confdefs.h. */
  14478. #if defined CRAY && ! defined CRAY2
  14479. webecray
  14480. #else
  14481. wenotbecray
  14482. #endif
  14483. _ACEOF
  14484. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14485. $EGREP "webecray" >/dev/null 2>&1; then :
  14486. ac_cv_os_cray=yes
  14487. else
  14488. ac_cv_os_cray=no
  14489. fi
  14490. rm -f conftest*
  14491. fi
  14492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14493. $as_echo "$ac_cv_os_cray" >&6; }
  14494. if test $ac_cv_os_cray = yes; then
  14495. for ac_func in _getb67 GETB67 getb67; do
  14496. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14497. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14498. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14499. cat >>confdefs.h <<_ACEOF
  14500. #define CRAY_STACKSEG_END $ac_func
  14501. _ACEOF
  14502. break
  14503. fi
  14504. done
  14505. fi
  14506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14507. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14508. if ${ac_cv_c_stack_direction+:} false; then :
  14509. $as_echo_n "(cached) " >&6
  14510. else
  14511. if test "$cross_compiling" = yes; then :
  14512. ac_cv_c_stack_direction=0
  14513. else
  14514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14515. /* end confdefs.h. */
  14516. $ac_includes_default
  14517. int
  14518. find_stack_direction (int *addr, int depth)
  14519. {
  14520. int dir, dummy = 0;
  14521. if (! addr)
  14522. addr = &dummy;
  14523. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14524. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14525. return dir + dummy;
  14526. }
  14527. int
  14528. main (int argc, char **argv)
  14529. {
  14530. return find_stack_direction (0, argc + !argv + 20) < 0;
  14531. }
  14532. _ACEOF
  14533. if ac_fn_c_try_run "$LINENO"; then :
  14534. ac_cv_c_stack_direction=1
  14535. else
  14536. ac_cv_c_stack_direction=-1
  14537. fi
  14538. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14539. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14540. fi
  14541. fi
  14542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14543. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14544. cat >>confdefs.h <<_ACEOF
  14545. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14546. _ACEOF
  14547. fi
  14548. ;;
  14549. esac
  14550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14551. $as_echo_n "checking for working memcmp... " >&6; }
  14552. if ${ac_cv_func_memcmp_working+:} false; then :
  14553. $as_echo_n "(cached) " >&6
  14554. else
  14555. if test "$cross_compiling" = yes; then :
  14556. ac_cv_func_memcmp_working=no
  14557. else
  14558. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14559. /* end confdefs.h. */
  14560. $ac_includes_default
  14561. int
  14562. main ()
  14563. {
  14564. /* Some versions of memcmp are not 8-bit clean. */
  14565. char c0 = '\100', c1 = '\200', c2 = '\201';
  14566. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14567. return 1;
  14568. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14569. or more and with at least one buffer not starting on a 4-byte boundary.
  14570. William Lewis provided this test program. */
  14571. {
  14572. char foo[21];
  14573. char bar[21];
  14574. int i;
  14575. for (i = 0; i < 4; i++)
  14576. {
  14577. char *a = foo + i;
  14578. char *b = bar + i;
  14579. strcpy (a, "--------01111111");
  14580. strcpy (b, "--------10000000");
  14581. if (memcmp (a, b, 16) >= 0)
  14582. return 1;
  14583. }
  14584. return 0;
  14585. }
  14586. ;
  14587. return 0;
  14588. }
  14589. _ACEOF
  14590. if ac_fn_c_try_run "$LINENO"; then :
  14591. ac_cv_func_memcmp_working=yes
  14592. else
  14593. ac_cv_func_memcmp_working=no
  14594. fi
  14595. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14596. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14597. fi
  14598. fi
  14599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14600. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14601. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14602. *" memcmp.$ac_objext "* ) ;;
  14603. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14604. ;;
  14605. esac
  14606. if test x$ac_cv_func_memcmp_working = xyes; then
  14607. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14608. fi
  14609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14610. $as_echo_n "checking for working strtod... " >&6; }
  14611. if ${ac_cv_func_strtod+:} false; then :
  14612. $as_echo_n "(cached) " >&6
  14613. else
  14614. if test "$cross_compiling" = yes; then :
  14615. ac_cv_func_strtod=no
  14616. else
  14617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14618. /* end confdefs.h. */
  14619. $ac_includes_default
  14620. #ifndef strtod
  14621. double strtod ();
  14622. #endif
  14623. int
  14624. main()
  14625. {
  14626. {
  14627. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14628. char *string = " +69";
  14629. char *term;
  14630. double value;
  14631. value = strtod (string, &term);
  14632. if (value != 69 || term != (string + 4))
  14633. return 1;
  14634. }
  14635. {
  14636. /* Under Solaris 2.4, strtod returns the wrong value for the
  14637. terminating character under some conditions. */
  14638. char *string = "NaN";
  14639. char *term;
  14640. strtod (string, &term);
  14641. if (term != string && *(term - 1) == 0)
  14642. return 1;
  14643. }
  14644. return 0;
  14645. }
  14646. _ACEOF
  14647. if ac_fn_c_try_run "$LINENO"; then :
  14648. ac_cv_func_strtod=yes
  14649. else
  14650. ac_cv_func_strtod=no
  14651. fi
  14652. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14653. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14654. fi
  14655. fi
  14656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14657. $as_echo "$ac_cv_func_strtod" >&6; }
  14658. if test $ac_cv_func_strtod = no; then
  14659. case " $LIBOBJS " in
  14660. *" strtod.$ac_objext "* ) ;;
  14661. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14662. ;;
  14663. esac
  14664. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14665. if test "x$ac_cv_func_pow" = xyes; then :
  14666. fi
  14667. if test $ac_cv_func_pow = no; then
  14668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14669. $as_echo_n "checking for pow in -lm... " >&6; }
  14670. if ${ac_cv_lib_m_pow+:} false; then :
  14671. $as_echo_n "(cached) " >&6
  14672. else
  14673. ac_check_lib_save_LIBS=$LIBS
  14674. LIBS="-lm $LIBS"
  14675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14676. /* end confdefs.h. */
  14677. /* Override any GCC internal prototype to avoid an error.
  14678. Use char because int might match the return type of a GCC
  14679. builtin and then its argument prototype would still apply. */
  14680. #ifdef __cplusplus
  14681. extern "C"
  14682. #endif
  14683. char pow ();
  14684. int
  14685. main ()
  14686. {
  14687. return pow ();
  14688. ;
  14689. return 0;
  14690. }
  14691. _ACEOF
  14692. if ac_fn_c_try_link "$LINENO"; then :
  14693. ac_cv_lib_m_pow=yes
  14694. else
  14695. ac_cv_lib_m_pow=no
  14696. fi
  14697. rm -f core conftest.err conftest.$ac_objext \
  14698. conftest$ac_exeext conftest.$ac_ext
  14699. LIBS=$ac_check_lib_save_LIBS
  14700. fi
  14701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14702. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14703. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14704. POW_LIB=-lm
  14705. else
  14706. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14707. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14708. fi
  14709. fi
  14710. fi
  14711. if test x$ac_cv_func_strtod = xyes; then
  14712. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14713. fi
  14714. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14715. if test "x$ac_cv_func_mprotect" = xyes; then :
  14716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14717. /* end confdefs.h. */
  14718. #include <sys/types.h>
  14719. #include <sys/mman.h>
  14720. int
  14721. main ()
  14722. {
  14723. ;
  14724. return 0;
  14725. }
  14726. _ACEOF
  14727. if ac_fn_c_try_compile "$LINENO"; then :
  14728. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14729. fi
  14730. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14731. fi
  14732. 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
  14733. do :
  14734. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14735. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14736. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14737. cat >>confdefs.h <<_ACEOF
  14738. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14739. _ACEOF
  14740. fi
  14741. done
  14742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14743. $as_echo_n "checking for pow in -lm... " >&6; }
  14744. if ${ac_cv_lib_m_pow+:} false; then :
  14745. $as_echo_n "(cached) " >&6
  14746. else
  14747. ac_check_lib_save_LIBS=$LIBS
  14748. LIBS="-lm $LIBS"
  14749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14750. /* end confdefs.h. */
  14751. /* Override any GCC internal prototype to avoid an error.
  14752. Use char because int might match the return type of a GCC
  14753. builtin and then its argument prototype would still apply. */
  14754. #ifdef __cplusplus
  14755. extern "C"
  14756. #endif
  14757. char pow ();
  14758. int
  14759. main ()
  14760. {
  14761. return pow ();
  14762. ;
  14763. return 0;
  14764. }
  14765. _ACEOF
  14766. if ac_fn_c_try_link "$LINENO"; then :
  14767. ac_cv_lib_m_pow=yes
  14768. else
  14769. ac_cv_lib_m_pow=no
  14770. fi
  14771. rm -f core conftest.err conftest.$ac_objext \
  14772. conftest$ac_exeext conftest.$ac_ext
  14773. LIBS=$ac_check_lib_save_LIBS
  14774. fi
  14775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14776. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14777. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14778. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14779. fi
  14780. 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
  14781. do :
  14782. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14783. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14784. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14785. cat >>confdefs.h <<_ACEOF
  14786. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14787. _ACEOF
  14788. fi
  14789. done
  14790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14791. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14792. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14793. $as_echo_n "(cached) " >&6
  14794. else
  14795. ac_check_lib_save_LIBS=$LIBS
  14796. LIBS="-liconv $LIBS"
  14797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14798. /* end confdefs.h. */
  14799. /* Override any GCC internal prototype to avoid an error.
  14800. Use char because int might match the return type of a GCC
  14801. builtin and then its argument prototype would still apply. */
  14802. #ifdef __cplusplus
  14803. extern "C"
  14804. #endif
  14805. char iconv_open ();
  14806. int
  14807. main ()
  14808. {
  14809. return iconv_open ();
  14810. ;
  14811. return 0;
  14812. }
  14813. _ACEOF
  14814. if ac_fn_c_try_link "$LINENO"; then :
  14815. ac_cv_lib_iconv_iconv_open=yes
  14816. else
  14817. ac_cv_lib_iconv_iconv_open=no
  14818. fi
  14819. rm -f core conftest.err conftest.$ac_objext \
  14820. conftest$ac_exeext conftest.$ac_ext
  14821. LIBS=$ac_check_lib_save_LIBS
  14822. fi
  14823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14824. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14825. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14826. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14827. fi
  14828. for ac_func in iconv
  14829. do :
  14830. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14831. if test "x$ac_cv_func_iconv" = xyes; then :
  14832. cat >>confdefs.h <<_ACEOF
  14833. #define HAVE_ICONV 1
  14834. _ACEOF
  14835. fi
  14836. done
  14837. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14838. "
  14839. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14840. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14841. fi
  14842. for ac_header in libunwind.h
  14843. do :
  14844. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  14845. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  14846. cat >>confdefs.h <<_ACEOF
  14847. #define HAVE_LIBUNWIND_H 1
  14848. _ACEOF
  14849. fi
  14850. done
  14851. fi
  14852. # Check whether --enable-gcc-atomics was given.
  14853. if test "${enable_gcc_atomics+set}" = set; then :
  14854. enableval=$enable_gcc_atomics;
  14855. else
  14856. enable_gcc_atomics=yes
  14857. fi
  14858. if test x$enable_gcc_atomics = xyes; then
  14859. have_gcc_atomics=no
  14860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14861. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14863. /* end confdefs.h. */
  14864. int
  14865. main ()
  14866. {
  14867. int a;
  14868. void *x, *y, *z;
  14869. __sync_lock_test_and_set(&a, 4);
  14870. __sync_lock_test_and_set(&x, y);
  14871. __sync_fetch_and_add(&a, 1);
  14872. __sync_bool_compare_and_swap(&a, 5, 10);
  14873. __sync_bool_compare_and_swap(&x, y, z);
  14874. ;
  14875. return 0;
  14876. }
  14877. _ACEOF
  14878. if ac_fn_c_try_link "$LINENO"; then :
  14879. have_gcc_atomics=yes
  14880. fi
  14881. rm -f core conftest.err conftest.$ac_objext \
  14882. conftest$ac_exeext conftest.$ac_ext
  14883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14884. $as_echo "$have_gcc_atomics" >&6; }
  14885. if test x$have_gcc_atomics = xyes; then
  14886. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14887. else
  14888. # See if we have the minimum operation needed for GCC atomics
  14889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14890. /* end confdefs.h. */
  14891. int
  14892. main ()
  14893. {
  14894. int a;
  14895. __sync_lock_test_and_set(&a, 1);
  14896. __sync_lock_release(&a);
  14897. ;
  14898. return 0;
  14899. }
  14900. _ACEOF
  14901. if ac_fn_c_try_link "$LINENO"; then :
  14902. have_gcc_sync_lock_test_and_set=yes
  14903. fi
  14904. rm -f core conftest.err conftest.$ac_objext \
  14905. conftest$ac_exeext conftest.$ac_ext
  14906. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14907. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14908. fi
  14909. fi
  14910. fi
  14911. # Standard C sources
  14912. SOURCES="$SOURCES $srcdir/src/*.c"
  14913. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14914. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14915. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14916. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14917. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14918. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14919. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14920. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14921. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14922. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  14923. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14924. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14925. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14926. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14927. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  14928. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14929. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14930. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14931. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14932. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  14933. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  14934. # Check whether --enable-atomic was given.
  14935. if test "${enable_atomic+set}" = set; then :
  14936. enableval=$enable_atomic;
  14937. else
  14938. enable_atomic=yes
  14939. fi
  14940. if test x$enable_atomic != xyes; then
  14941. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14942. else
  14943. SUMMARY_modules="${SUMMARY_modules} atomic"
  14944. fi
  14945. # Check whether --enable-audio was given.
  14946. if test "${enable_audio+set}" = set; then :
  14947. enableval=$enable_audio;
  14948. else
  14949. enable_audio=yes
  14950. fi
  14951. if test x$enable_audio != xyes; then
  14952. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14953. else
  14954. SUMMARY_modules="${SUMMARY_modules} audio"
  14955. fi
  14956. # Check whether --enable-video was given.
  14957. if test "${enable_video+set}" = set; then :
  14958. enableval=$enable_video;
  14959. else
  14960. enable_video=yes
  14961. fi
  14962. if test x$enable_video != xyes; then
  14963. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14964. else
  14965. SUMMARY_modules="${SUMMARY_modules} video"
  14966. fi
  14967. # Check whether --enable-render was given.
  14968. if test "${enable_render+set}" = set; then :
  14969. enableval=$enable_render;
  14970. else
  14971. enable_render=yes
  14972. fi
  14973. if test x$enable_render != xyes; then
  14974. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14975. else
  14976. SUMMARY_modules="${SUMMARY_modules} render"
  14977. fi
  14978. # Check whether --enable-events was given.
  14979. if test "${enable_events+set}" = set; then :
  14980. enableval=$enable_events;
  14981. else
  14982. enable_events=yes
  14983. fi
  14984. if test x$enable_events != xyes; then
  14985. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14986. else
  14987. SUMMARY_modules="${SUMMARY_modules} events"
  14988. fi
  14989. # Check whether --enable-joystick was given.
  14990. if test "${enable_joystick+set}" = set; then :
  14991. enableval=$enable_joystick;
  14992. else
  14993. enable_joystick=yes
  14994. fi
  14995. if test x$enable_joystick != xyes; then
  14996. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14997. else
  14998. SUMMARY_modules="${SUMMARY_modules} joystick"
  14999. fi
  15000. # Check whether --enable-haptic was given.
  15001. if test "${enable_haptic+set}" = set; then :
  15002. enableval=$enable_haptic;
  15003. else
  15004. enable_haptic=yes
  15005. fi
  15006. if test x$enable_haptic != xyes; then
  15007. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  15008. else
  15009. SUMMARY_modules="${SUMMARY_modules} haptic"
  15010. fi
  15011. # Check whether --enable-sensor was given.
  15012. if test "${enable_sensor+set}" = set; then :
  15013. enableval=$enable_sensor;
  15014. else
  15015. enable_sensor=yes
  15016. fi
  15017. if test x$enable_sensor != xyes; then
  15018. $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  15019. else
  15020. SUMMARY_modules="${SUMMARY_modules} sensor"
  15021. fi
  15022. # Check whether --enable-power was given.
  15023. if test "${enable_power+set}" = set; then :
  15024. enableval=$enable_power;
  15025. else
  15026. enable_power=yes
  15027. fi
  15028. if test x$enable_power != xyes; then
  15029. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  15030. else
  15031. SUMMARY_modules="${SUMMARY_modules} power"
  15032. fi
  15033. # Check whether --enable-filesystem was given.
  15034. if test "${enable_filesystem+set}" = set; then :
  15035. enableval=$enable_filesystem;
  15036. else
  15037. enable_filesystem=yes
  15038. fi
  15039. if test x$enable_filesystem != xyes; then
  15040. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  15041. else
  15042. SUMMARY_modules="${SUMMARY_modules} filesystem"
  15043. fi
  15044. # Check whether --enable-threads was given.
  15045. if test "${enable_threads+set}" = set; then :
  15046. enableval=$enable_threads;
  15047. else
  15048. enable_threads=yes
  15049. fi
  15050. if test x$enable_threads != xyes; then
  15051. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  15052. else
  15053. SUMMARY_modules="${SUMMARY_modules} threads"
  15054. fi
  15055. # Check whether --enable-timers was given.
  15056. if test "${enable_timers+set}" = set; then :
  15057. enableval=$enable_timers;
  15058. else
  15059. enable_timers=yes
  15060. fi
  15061. if test x$enable_timers != xyes; then
  15062. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  15063. else
  15064. SUMMARY_modules="${SUMMARY_modules} timers"
  15065. fi
  15066. # Check whether --enable-file was given.
  15067. if test "${enable_file+set}" = set; then :
  15068. enableval=$enable_file;
  15069. else
  15070. enable_file=yes
  15071. fi
  15072. if test x$enable_file != xyes; then
  15073. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  15074. else
  15075. SUMMARY_modules="${SUMMARY_modules} file"
  15076. fi
  15077. # Check whether --enable-loadso was given.
  15078. if test "${enable_loadso+set}" = set; then :
  15079. enableval=$enable_loadso;
  15080. else
  15081. enable_loadso=yes
  15082. fi
  15083. if test x$enable_loadso != xyes; then
  15084. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  15085. else
  15086. SUMMARY_modules="${SUMMARY_modules} loadso"
  15087. fi
  15088. # Check whether --enable-cpuinfo was given.
  15089. if test "${enable_cpuinfo+set}" = set; then :
  15090. enableval=$enable_cpuinfo;
  15091. else
  15092. enable_cpuinfo=yes
  15093. fi
  15094. if test x$enable_cpuinfo != xyes; then
  15095. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  15096. else
  15097. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  15098. fi
  15099. # Check whether --enable-assembly was given.
  15100. if test "${enable_assembly+set}" = set; then :
  15101. enableval=$enable_assembly;
  15102. else
  15103. enable_assembly=yes
  15104. fi
  15105. if test x$enable_assembly = xyes; then
  15106. SUMMARY_modules="${SUMMARY_modules} assembly"
  15107. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  15108. # Make sure that we don't generate floating point code that would
  15109. # cause illegal instruction exceptions on older processors
  15110. case "$host" in
  15111. *-*-darwin*)
  15112. # Don't need to worry about Apple hardware, it's all SSE capable
  15113. default_ssemath=yes
  15114. ;;
  15115. *64-*-*)
  15116. # x86 64-bit architectures all have SSE instructions
  15117. default_ssemath=yes
  15118. ;;
  15119. *)
  15120. default_ssemath=no
  15121. ;;
  15122. esac
  15123. # Check whether --enable-ssemath was given.
  15124. if test "${enable_ssemath+set}" = set; then :
  15125. enableval=$enable_ssemath;
  15126. else
  15127. enable_ssemath=$default_ssemath
  15128. fi
  15129. if test x$enable_ssemath = xno; then
  15130. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  15131. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  15132. fi
  15133. fi
  15134. # Check whether --enable-mmx was given.
  15135. if test "${enable_mmx+set}" = set; then :
  15136. enableval=$enable_mmx;
  15137. else
  15138. enable_mmx=yes
  15139. fi
  15140. if test x$enable_mmx = xyes; then
  15141. save_CFLAGS="$CFLAGS"
  15142. have_gcc_mmx=no
  15143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  15144. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  15145. mmx_CFLAGS="-mmmx"
  15146. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  15147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15148. /* end confdefs.h. */
  15149. #ifdef __MINGW32__
  15150. #include <_mingw.h>
  15151. #ifdef __MINGW64_VERSION_MAJOR
  15152. #include <intrin.h>
  15153. #else
  15154. #include <mmintrin.h>
  15155. #endif
  15156. #else
  15157. #include <mmintrin.h>
  15158. #endif
  15159. #ifndef __MMX__
  15160. #error Assembler CPP flag not enabled
  15161. #endif
  15162. int
  15163. main ()
  15164. {
  15165. ;
  15166. return 0;
  15167. }
  15168. _ACEOF
  15169. if ac_fn_c_try_compile "$LINENO"; then :
  15170. have_gcc_mmx=yes
  15171. fi
  15172. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  15174. $as_echo "$have_gcc_mmx" >&6; }
  15175. CFLAGS="$save_CFLAGS"
  15176. if test x$have_gcc_mmx = xyes; then
  15177. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  15178. SUMMARY_math="${SUMMARY_math} mmx"
  15179. fi
  15180. fi
  15181. # Check whether --enable-3dnow was given.
  15182. if test "${enable_3dnow+set}" = set; then :
  15183. enableval=$enable_3dnow;
  15184. else
  15185. enable_3dnow=yes
  15186. fi
  15187. if test x$enable_3dnow = xyes; then
  15188. save_CFLAGS="$CFLAGS"
  15189. have_gcc_3dnow=no
  15190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  15191. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  15192. amd3dnow_CFLAGS="-m3dnow"
  15193. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  15194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15195. /* end confdefs.h. */
  15196. #include <mm3dnow.h>
  15197. #ifndef __3dNOW__
  15198. #error Assembler CPP flag not enabled
  15199. #endif
  15200. int
  15201. main ()
  15202. {
  15203. void *p = 0;
  15204. _m_prefetch(p);
  15205. ;
  15206. return 0;
  15207. }
  15208. _ACEOF
  15209. if ac_fn_c_try_link "$LINENO"; then :
  15210. have_gcc_3dnow=yes
  15211. fi
  15212. rm -f core conftest.err conftest.$ac_objext \
  15213. conftest$ac_exeext conftest.$ac_ext
  15214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  15215. $as_echo "$have_gcc_3dnow" >&6; }
  15216. CFLAGS="$save_CFLAGS"
  15217. if test x$have_gcc_3dnow = xyes; then
  15218. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  15219. SUMMARY_math="${SUMMARY_math} 3dnow"
  15220. fi
  15221. fi
  15222. # Check whether --enable-sse was given.
  15223. if test "${enable_sse+set}" = set; then :
  15224. enableval=$enable_sse;
  15225. else
  15226. enable_sse=yes
  15227. fi
  15228. if test x$enable_sse = xyes; then
  15229. save_CFLAGS="$CFLAGS"
  15230. have_gcc_sse=no
  15231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  15232. $as_echo_n "checking for GCC -msse option... " >&6; }
  15233. sse_CFLAGS="-msse"
  15234. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  15235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15236. /* end confdefs.h. */
  15237. #ifdef __MINGW32__
  15238. #include <_mingw.h>
  15239. #ifdef __MINGW64_VERSION_MAJOR
  15240. #include <intrin.h>
  15241. #else
  15242. #include <xmmintrin.h>
  15243. #endif
  15244. #else
  15245. #include <xmmintrin.h>
  15246. #endif
  15247. #ifndef __SSE__
  15248. #error Assembler CPP flag not enabled
  15249. #endif
  15250. int
  15251. main ()
  15252. {
  15253. ;
  15254. return 0;
  15255. }
  15256. _ACEOF
  15257. if ac_fn_c_try_compile "$LINENO"; then :
  15258. have_gcc_sse=yes
  15259. fi
  15260. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  15262. $as_echo "$have_gcc_sse" >&6; }
  15263. CFLAGS="$save_CFLAGS"
  15264. if test x$have_gcc_sse = xyes; then
  15265. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  15266. SUMMARY_math="${SUMMARY_math} sse"
  15267. fi
  15268. fi
  15269. # Check whether --enable-sse2 was given.
  15270. if test "${enable_sse2+set}" = set; then :
  15271. enableval=$enable_sse2;
  15272. else
  15273. enable_sse2=$default_ssemath
  15274. fi
  15275. if test x$enable_sse2 = xyes; then
  15276. save_CFLAGS="$CFLAGS"
  15277. have_gcc_sse2=no
  15278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  15279. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  15280. sse2_CFLAGS="-msse2"
  15281. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  15282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15283. /* end confdefs.h. */
  15284. #ifdef __MINGW32__
  15285. #include <_mingw.h>
  15286. #ifdef __MINGW64_VERSION_MAJOR
  15287. #include <intrin.h>
  15288. #else
  15289. #include <emmintrin.h>
  15290. #endif
  15291. #else
  15292. #include <emmintrin.h>
  15293. #endif
  15294. #ifndef __SSE2__
  15295. #error Assembler CPP flag not enabled
  15296. #endif
  15297. int
  15298. main ()
  15299. {
  15300. ;
  15301. return 0;
  15302. }
  15303. _ACEOF
  15304. if ac_fn_c_try_compile "$LINENO"; then :
  15305. have_gcc_sse2=yes
  15306. fi
  15307. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  15309. $as_echo "$have_gcc_sse2" >&6; }
  15310. CFLAGS="$save_CFLAGS"
  15311. if test x$have_gcc_sse2 = xyes; then
  15312. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  15313. SUMMARY_math="${SUMMARY_math} sse2"
  15314. fi
  15315. fi
  15316. # Check whether --enable-sse3 was given.
  15317. if test "${enable_sse3+set}" = set; then :
  15318. enableval=$enable_sse3;
  15319. else
  15320. enable_sse3=$default_ssemath
  15321. fi
  15322. if test x$enable_sse3 = xyes; then
  15323. save_CFLAGS="$CFLAGS"
  15324. have_gcc_sse3=no
  15325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  15326. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  15327. sse3_CFLAGS="-msse3"
  15328. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  15329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15330. /* end confdefs.h. */
  15331. #ifdef __MINGW32__
  15332. #include <_mingw.h>
  15333. #ifdef __MINGW64_VERSION_MAJOR
  15334. #include <intrin.h>
  15335. #else
  15336. #include <pmmintrin.h>
  15337. #endif
  15338. #else
  15339. #include <pmmintrin.h>
  15340. #endif
  15341. #ifndef __SSE2__
  15342. #error Assembler CPP flag not enabled
  15343. #endif
  15344. int
  15345. main ()
  15346. {
  15347. ;
  15348. return 0;
  15349. }
  15350. _ACEOF
  15351. if ac_fn_c_try_compile "$LINENO"; then :
  15352. have_gcc_sse3=yes
  15353. fi
  15354. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  15356. $as_echo "$have_gcc_sse3" >&6; }
  15357. CFLAGS="$save_CFLAGS"
  15358. if test x$have_gcc_sse3 = xyes; then
  15359. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  15360. SUMMARY_math="${SUMMARY_math} sse3"
  15361. fi
  15362. fi
  15363. ac_fn_c_check_header_mongrel "$LINENO" "immintrin.h" "ac_cv_header_immintrin_h" "$ac_includes_default"
  15364. if test "x$ac_cv_header_immintrin_h" = xyes; then :
  15365. have_immintrin_h_hdr=yes
  15366. else
  15367. have_immintrin_h_hdr=no
  15368. fi
  15369. if test x$have_immintrin_h_hdr = xyes; then
  15370. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  15371. fi
  15372. # Check whether --enable-altivec was given.
  15373. if test "${enable_altivec+set}" = set; then :
  15374. enableval=$enable_altivec;
  15375. else
  15376. enable_altivec=yes
  15377. fi
  15378. if test x$enable_altivec = xyes; then
  15379. save_CFLAGS="$CFLAGS"
  15380. have_gcc_altivec=no
  15381. have_altivec_h_hdr=no
  15382. altivec_CFLAGS="-maltivec"
  15383. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  15385. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  15386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15387. /* end confdefs.h. */
  15388. #include <altivec.h>
  15389. vector unsigned int vzero() {
  15390. return vec_splat_u32(0);
  15391. }
  15392. int
  15393. main ()
  15394. {
  15395. ;
  15396. return 0;
  15397. }
  15398. _ACEOF
  15399. if ac_fn_c_try_compile "$LINENO"; then :
  15400. have_gcc_altivec=yes
  15401. have_altivec_h_hdr=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_altivec" >&5
  15405. $as_echo "$have_gcc_altivec" >&6; }
  15406. if test x$have_gcc_altivec = xno; then
  15407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  15408. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  15409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15410. /* end confdefs.h. */
  15411. vector unsigned int vzero() {
  15412. return vec_splat_u32(0);
  15413. }
  15414. int
  15415. main ()
  15416. {
  15417. ;
  15418. return 0;
  15419. }
  15420. _ACEOF
  15421. if ac_fn_c_try_compile "$LINENO"; then :
  15422. have_gcc_altivec=yes
  15423. fi
  15424. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15426. $as_echo "$have_gcc_altivec" >&6; }
  15427. fi
  15428. if test x$have_gcc_altivec = xno; then
  15429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  15430. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  15431. altivec_CFLAGS="-faltivec"
  15432. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15434. /* end confdefs.h. */
  15435. #include <altivec.h>
  15436. vector unsigned int vzero() {
  15437. return vec_splat_u32(0);
  15438. }
  15439. int
  15440. main ()
  15441. {
  15442. ;
  15443. return 0;
  15444. }
  15445. _ACEOF
  15446. if ac_fn_c_try_compile "$LINENO"; then :
  15447. have_gcc_altivec=yes
  15448. have_altivec_h_hdr=yes
  15449. fi
  15450. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15452. $as_echo "$have_gcc_altivec" >&6; }
  15453. fi
  15454. if test x$have_gcc_altivec = xno; then
  15455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  15456. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  15457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15458. /* end confdefs.h. */
  15459. vector unsigned int vzero() {
  15460. return vec_splat_u32(0);
  15461. }
  15462. int
  15463. main ()
  15464. {
  15465. ;
  15466. return 0;
  15467. }
  15468. _ACEOF
  15469. if ac_fn_c_try_compile "$LINENO"; then :
  15470. have_gcc_altivec=yes
  15471. fi
  15472. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15474. $as_echo "$have_gcc_altivec" >&6; }
  15475. fi
  15476. CFLAGS="$save_CFLAGS"
  15477. if test x$have_gcc_altivec = xyes; then
  15478. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15479. if test x$have_altivec_h_hdr = xyes; then
  15480. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15481. fi
  15482. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15483. SUMMARY_math="${SUMMARY_math} altivec"
  15484. fi
  15485. fi
  15486. fi
  15487. CheckOSS()
  15488. {
  15489. # Check whether --enable-oss was given.
  15490. if test "${enable_oss+set}" = set; then :
  15491. enableval=$enable_oss;
  15492. else
  15493. enable_oss=maybe
  15494. fi
  15495. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15496. # use sndio instead. So on there, we default to disabled. You can force
  15497. # it on if you really want, though.
  15498. if test x$enable_oss = xmaybe; then
  15499. enable_oss=yes
  15500. case "$host" in
  15501. *-*-openbsd*)
  15502. enable_oss=no;;
  15503. esac
  15504. fi
  15505. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15507. $as_echo_n "checking for OSS audio support... " >&6; }
  15508. have_oss=no
  15509. if test x$have_oss != xyes; then
  15510. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15511. /* end confdefs.h. */
  15512. #include <sys/soundcard.h>
  15513. int
  15514. main ()
  15515. {
  15516. int arg = SNDCTL_DSP_SETFRAGMENT;
  15517. ;
  15518. return 0;
  15519. }
  15520. _ACEOF
  15521. if ac_fn_c_try_compile "$LINENO"; then :
  15522. have_oss=yes
  15523. fi
  15524. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15525. fi
  15526. if test x$have_oss != xyes; then
  15527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15528. /* end confdefs.h. */
  15529. #include <soundcard.h>
  15530. int
  15531. main ()
  15532. {
  15533. int arg = SNDCTL_DSP_SETFRAGMENT;
  15534. ;
  15535. return 0;
  15536. }
  15537. _ACEOF
  15538. if ac_fn_c_try_compile "$LINENO"; then :
  15539. have_oss=yes
  15540. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15541. fi
  15542. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15543. fi
  15544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15545. $as_echo "$have_oss" >&6; }
  15546. if test x$have_oss = xyes; then
  15547. SUMMARY_audio="${SUMMARY_audio} oss"
  15548. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15549. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15550. have_audio=yes
  15551. # We may need to link with ossaudio emulation library
  15552. case "$host" in
  15553. *-*-openbsd*|*-*-netbsd*)
  15554. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15555. esac
  15556. fi
  15557. fi
  15558. }
  15559. CheckALSA()
  15560. {
  15561. # Check whether --enable-alsa was given.
  15562. if test "${enable_alsa+set}" = set; then :
  15563. enableval=$enable_alsa;
  15564. else
  15565. enable_alsa=yes
  15566. fi
  15567. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15568. alsa_save_CFLAGS="$CFLAGS"
  15569. alsa_save_LDFLAGS="$LDFLAGS"
  15570. alsa_save_LIBS="$LIBS"
  15571. alsa_found=yes
  15572. # Check whether --with-alsa-prefix was given.
  15573. if test "${with_alsa_prefix+set}" = set; then :
  15574. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15575. else
  15576. alsa_prefix=""
  15577. fi
  15578. # Check whether --with-alsa-inc-prefix was given.
  15579. if test "${with_alsa_inc_prefix+set}" = set; then :
  15580. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15581. else
  15582. alsa_inc_prefix=""
  15583. fi
  15584. # Check whether --enable-alsatest was given.
  15585. if test "${enable_alsatest+set}" = set; then :
  15586. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15587. else
  15588. enable_alsatest=yes
  15589. fi
  15590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15591. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15592. if test "$alsa_inc_prefix" != "" ; then
  15593. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15594. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15595. fi
  15596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15597. $as_echo "$ALSA_CFLAGS" >&6; }
  15598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15599. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15600. if test "$alsa_prefix" != "" ; then
  15601. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15602. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15603. fi
  15604. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15605. LIBS=`echo $LIBS | sed 's/-lm//'`
  15606. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15607. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15608. LIBS=`echo $LIBS | sed 's/ //'`
  15609. LIBS="$ALSA_LIBS $LIBS"
  15610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15611. $as_echo "$ALSA_LIBS" >&6; }
  15612. min_alsa_version=1.0.11
  15613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15614. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15615. no_alsa=""
  15616. alsa_min_major_version=`echo $min_alsa_version | \
  15617. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15618. alsa_min_minor_version=`echo $min_alsa_version | \
  15619. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15620. alsa_min_micro_version=`echo $min_alsa_version | \
  15621. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15622. ac_ext=c
  15623. ac_cpp='$CPP $CPPFLAGS'
  15624. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15625. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15626. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15628. /* end confdefs.h. */
  15629. #include <alsa/asoundlib.h>
  15630. int
  15631. main ()
  15632. {
  15633. /* ensure backward compatibility */
  15634. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15635. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15636. #endif
  15637. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15638. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15639. #endif
  15640. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15641. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15642. #endif
  15643. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15644. exit(0);
  15645. # else
  15646. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15647. # error not present
  15648. # endif
  15649. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15650. exit(0);
  15651. # else
  15652. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15653. # error not present
  15654. # endif
  15655. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15656. # error not present
  15657. # endif
  15658. # endif
  15659. # endif
  15660. exit(0);
  15661. ;
  15662. return 0;
  15663. }
  15664. _ACEOF
  15665. if ac_fn_c_try_compile "$LINENO"; then :
  15666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15667. $as_echo "found." >&6; }
  15668. else
  15669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15670. $as_echo "not present." >&6; }
  15671. alsa_found=no
  15672. fi
  15673. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15674. ac_ext=c
  15675. ac_cpp='$CPP $CPPFLAGS'
  15676. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15677. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15678. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15679. if test "x$enable_alsatest" = "xyes"; then
  15680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15681. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15682. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15683. $as_echo_n "(cached) " >&6
  15684. else
  15685. ac_check_lib_save_LIBS=$LIBS
  15686. LIBS="-lasound $LIBS"
  15687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15688. /* end confdefs.h. */
  15689. /* Override any GCC internal prototype to avoid an error.
  15690. Use char because int might match the return type of a GCC
  15691. builtin and then its argument prototype would still apply. */
  15692. #ifdef __cplusplus
  15693. extern "C"
  15694. #endif
  15695. char snd_ctl_open ();
  15696. int
  15697. main ()
  15698. {
  15699. return snd_ctl_open ();
  15700. ;
  15701. return 0;
  15702. }
  15703. _ACEOF
  15704. if ac_fn_c_try_link "$LINENO"; then :
  15705. ac_cv_lib_asound_snd_ctl_open=yes
  15706. else
  15707. ac_cv_lib_asound_snd_ctl_open=no
  15708. fi
  15709. rm -f core conftest.err conftest.$ac_objext \
  15710. conftest$ac_exeext conftest.$ac_ext
  15711. LIBS=$ac_check_lib_save_LIBS
  15712. fi
  15713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15714. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15715. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15716. cat >>confdefs.h <<_ACEOF
  15717. #define HAVE_LIBASOUND 1
  15718. _ACEOF
  15719. LIBS="-lasound $LIBS"
  15720. else
  15721. alsa_found=no
  15722. fi
  15723. fi
  15724. if test "x$alsa_found" = "xyes" ; then
  15725. have_alsa=yes
  15726. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15727. LIBS=`echo $LIBS | sed 's/ //'`
  15728. LIBS="-lasound $LIBS"
  15729. fi
  15730. if test "x$alsa_found" = "xno" ; then
  15731. have_alsa=no
  15732. CFLAGS="$alsa_save_CFLAGS"
  15733. LDFLAGS="$alsa_save_LDFLAGS"
  15734. LIBS="$alsa_save_LIBS"
  15735. ALSA_CFLAGS=""
  15736. ALSA_LIBS=""
  15737. fi
  15738. # Restore all flags from before the ALSA detection runs
  15739. CFLAGS="$alsa_save_CFLAGS"
  15740. LDFLAGS="$alsa_save_LDFLAGS"
  15741. LIBS="$alsa_save_LIBS"
  15742. if test x$have_alsa = xyes; then
  15743. # Check whether --enable-alsa-shared was given.
  15744. if test "${enable_alsa_shared+set}" = set; then :
  15745. enableval=$enable_alsa_shared;
  15746. else
  15747. enable_alsa_shared=yes
  15748. fi
  15749. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15750. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15751. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15752. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15753. if test x$have_loadso != xyes && \
  15754. test x$enable_alsa_shared = xyes; then
  15755. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15756. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15757. fi
  15758. if test x$have_loadso = xyes && \
  15759. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15760. echo "-- dynamic libasound -> $alsa_lib"
  15761. cat >>confdefs.h <<_ACEOF
  15762. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15763. _ACEOF
  15764. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15765. else
  15766. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15767. SUMMARY_audio="${SUMMARY_audio} alsa"
  15768. fi
  15769. have_audio=yes
  15770. fi
  15771. fi
  15772. }
  15773. CheckJACK()
  15774. {
  15775. # Check whether --enable-jack was given.
  15776. if test "${enable_jack+set}" = set; then :
  15777. enableval=$enable_jack;
  15778. else
  15779. enable_jack=yes
  15780. fi
  15781. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  15782. pkg_failed=no
  15783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  15784. $as_echo_n "checking for jack >= 0.125... " >&6; }
  15785. if test -n "$JACK_CFLAGS"; then
  15786. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  15787. elif test -n "$PKG_CONFIG"; then
  15788. if test -n "$PKG_CONFIG" && \
  15789. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15790. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15791. ac_status=$?
  15792. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15793. test $ac_status = 0; }; then
  15794. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  15795. test "x$?" != "x0" && pkg_failed=yes
  15796. else
  15797. pkg_failed=yes
  15798. fi
  15799. else
  15800. pkg_failed=untried
  15801. fi
  15802. if test -n "$JACK_LIBS"; then
  15803. pkg_cv_JACK_LIBS="$JACK_LIBS"
  15804. elif test -n "$PKG_CONFIG"; then
  15805. if test -n "$PKG_CONFIG" && \
  15806. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15807. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15808. ac_status=$?
  15809. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15810. test $ac_status = 0; }; then
  15811. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  15812. test "x$?" != "x0" && pkg_failed=yes
  15813. else
  15814. pkg_failed=yes
  15815. fi
  15816. else
  15817. pkg_failed=untried
  15818. fi
  15819. if test $pkg_failed = yes; then
  15820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15821. $as_echo "no" >&6; }
  15822. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15823. _pkg_short_errors_supported=yes
  15824. else
  15825. _pkg_short_errors_supported=no
  15826. fi
  15827. if test $_pkg_short_errors_supported = yes; then
  15828. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  15829. else
  15830. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  15831. fi
  15832. # Put the nasty error message in config.log where it belongs
  15833. echo "$JACK_PKG_ERRORS" >&5
  15834. audio_jack=no
  15835. elif test $pkg_failed = untried; then
  15836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15837. $as_echo "no" >&6; }
  15838. audio_jack=no
  15839. else
  15840. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  15841. JACK_LIBS=$pkg_cv_JACK_LIBS
  15842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15843. $as_echo "yes" >&6; }
  15844. audio_jack=yes
  15845. fi
  15846. if test x$audio_jack = xyes; then
  15847. # Check whether --enable-jack-shared was given.
  15848. if test "${enable_jack_shared+set}" = set; then :
  15849. enableval=$enable_jack_shared;
  15850. else
  15851. enable_jack_shared=yes
  15852. fi
  15853. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15854. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  15855. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  15856. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  15857. if test x$have_loadso != xyes && \
  15858. test x$enable_jack_shared = xyes; then
  15859. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  15860. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  15861. fi
  15862. if test x$have_loadso = xyes && \
  15863. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  15864. echo "-- dynamic libjack -> $jack_lib"
  15865. cat >>confdefs.h <<_ACEOF
  15866. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  15867. _ACEOF
  15868. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  15869. case "$host" in
  15870. # On Solaris, jack must be linked deferred explicitly
  15871. # to prevent undefined symbol failures.
  15872. *-*-solaris*)
  15873. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  15874. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  15875. esac
  15876. else
  15877. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  15878. SUMMARY_audio="${SUMMARY_audio} jack"
  15879. fi
  15880. have_audio=yes
  15881. fi
  15882. fi
  15883. }
  15884. CheckESD()
  15885. {
  15886. # Check whether --enable-esd was given.
  15887. if test "${enable_esd+set}" = set; then :
  15888. enableval=$enable_esd;
  15889. else
  15890. enable_esd=yes
  15891. fi
  15892. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15893. # Check whether --with-esd-prefix was given.
  15894. if test "${with_esd_prefix+set}" = set; then :
  15895. withval=$with_esd_prefix; esd_prefix="$withval"
  15896. else
  15897. esd_prefix=""
  15898. fi
  15899. # Check whether --with-esd-exec-prefix was given.
  15900. if test "${with_esd_exec_prefix+set}" = set; then :
  15901. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15902. else
  15903. esd_exec_prefix=""
  15904. fi
  15905. # Check whether --enable-esdtest was given.
  15906. if test "${enable_esdtest+set}" = set; then :
  15907. enableval=$enable_esdtest;
  15908. else
  15909. enable_esdtest=yes
  15910. fi
  15911. if test x$esd_exec_prefix != x ; then
  15912. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15913. if test x${ESD_CONFIG+set} != xset ; then
  15914. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15915. fi
  15916. fi
  15917. if test x$esd_prefix != x ; then
  15918. esd_args="$esd_args --prefix=$esd_prefix"
  15919. if test x${ESD_CONFIG+set} != xset ; then
  15920. ESD_CONFIG=$esd_prefix/bin/esd-config
  15921. fi
  15922. fi
  15923. # Extract the first word of "esd-config", so it can be a program name with args.
  15924. set dummy esd-config; ac_word=$2
  15925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15926. $as_echo_n "checking for $ac_word... " >&6; }
  15927. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15928. $as_echo_n "(cached) " >&6
  15929. else
  15930. case $ESD_CONFIG in
  15931. [\\/]* | ?:[\\/]*)
  15932. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15933. ;;
  15934. *)
  15935. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15936. for as_dir in $PATH
  15937. do
  15938. IFS=$as_save_IFS
  15939. test -z "$as_dir" && as_dir=.
  15940. for ac_exec_ext in '' $ac_executable_extensions; do
  15941. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15942. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15943. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15944. break 2
  15945. fi
  15946. done
  15947. done
  15948. IFS=$as_save_IFS
  15949. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15950. ;;
  15951. esac
  15952. fi
  15953. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15954. if test -n "$ESD_CONFIG"; then
  15955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15956. $as_echo "$ESD_CONFIG" >&6; }
  15957. else
  15958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15959. $as_echo "no" >&6; }
  15960. fi
  15961. min_esd_version=0.2.8
  15962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15963. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15964. no_esd=""
  15965. if test "$ESD_CONFIG" = "no" ; then
  15966. no_esd=yes
  15967. else
  15968. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15969. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15970. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15971. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15972. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15973. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15974. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15975. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15976. if test "x$enable_esdtest" = "xyes" ; then
  15977. ac_ext=c
  15978. ac_cpp='$CPP $CPPFLAGS'
  15979. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15980. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15981. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15982. ac_save_CFLAGS="$CFLAGS"
  15983. ac_save_LIBS="$LIBS"
  15984. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15985. LIBS="$LIBS $ESD_LIBS"
  15986. rm -f conf.esdtest
  15987. if test "$cross_compiling" = yes; then :
  15988. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15989. else
  15990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15991. /* end confdefs.h. */
  15992. #include <stdio.h>
  15993. #include <stdlib.h>
  15994. #include <esd.h>
  15995. int main (void)
  15996. {
  15997. int major, minor, micro;
  15998. FILE *fp = fopen("conf.esdtest", "w");
  15999. if (fp) fclose(fp);
  16000. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  16001. printf("%s, bad version string\n", "$min_esd_version");
  16002. exit(1);
  16003. }
  16004. if (($esd_major_version > major) ||
  16005. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  16006. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  16007. {
  16008. return 0;
  16009. }
  16010. else
  16011. {
  16012. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  16013. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  16014. printf("*** best to upgrade to the required version.\n");
  16015. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  16016. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  16017. printf("*** config.cache before re-running configure\n");
  16018. return 1;
  16019. }
  16020. }
  16021. _ACEOF
  16022. if ac_fn_c_try_run "$LINENO"; then :
  16023. else
  16024. no_esd=yes
  16025. fi
  16026. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16027. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16028. fi
  16029. CFLAGS="$ac_save_CFLAGS"
  16030. LIBS="$ac_save_LIBS"
  16031. ac_ext=c
  16032. ac_cpp='$CPP $CPPFLAGS'
  16033. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16034. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16035. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16036. fi
  16037. fi
  16038. if test "x$no_esd" = x ; then
  16039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16040. $as_echo "yes" >&6; }
  16041. have_esd=yes
  16042. else
  16043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16044. $as_echo "no" >&6; }
  16045. if test "$ESD_CONFIG" = "no" ; then
  16046. echo "*** The esd-config script installed by ESD could not be found"
  16047. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  16048. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  16049. echo "*** full path to esd-config."
  16050. else
  16051. if test -f conf.esdtest ; then
  16052. :
  16053. else
  16054. echo "*** Could not run ESD test program, checking why..."
  16055. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16056. LIBS="$LIBS $ESD_LIBS"
  16057. ac_ext=c
  16058. ac_cpp='$CPP $CPPFLAGS'
  16059. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16060. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16061. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16063. /* end confdefs.h. */
  16064. #include <stdio.h>
  16065. #include <esd.h>
  16066. int
  16067. main ()
  16068. {
  16069. return 0;
  16070. ;
  16071. return 0;
  16072. }
  16073. _ACEOF
  16074. if ac_fn_c_try_link "$LINENO"; then :
  16075. echo "*** The test program compiled, but did not run. This usually means"
  16076. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  16077. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  16078. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  16079. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  16080. echo "*** is required on your system"
  16081. echo "***"
  16082. echo "*** If you have an old version installed, it is best to remove it, although"
  16083. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  16084. else
  16085. echo "*** The test program failed to compile or link. See the file config.log for the"
  16086. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  16087. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  16088. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  16089. fi
  16090. rm -f core conftest.err conftest.$ac_objext \
  16091. conftest$ac_exeext conftest.$ac_ext
  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. ESD_CFLAGS=""
  16102. ESD_LIBS=""
  16103. have_esd=no
  16104. fi
  16105. rm -f conf.esdtest
  16106. if test x$have_esd = xyes; then
  16107. # Check whether --enable-esd-shared was given.
  16108. if test "${enable_esd_shared+set}" = set; then :
  16109. enableval=$enable_esd_shared;
  16110. else
  16111. enable_esd_shared=yes
  16112. fi
  16113. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16114. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  16115. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  16116. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  16117. if test x$have_loadso != xyes && \
  16118. test x$enable_esd_shared = xyes; then
  16119. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  16120. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  16121. fi
  16122. if test x$have_loadso = xyes && \
  16123. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  16124. echo "-- dynamic libesd -> $esd_lib"
  16125. cat >>confdefs.h <<_ACEOF
  16126. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  16127. _ACEOF
  16128. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  16129. else
  16130. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  16131. SUMMARY_audio="${SUMMARY_audio} esd"
  16132. fi
  16133. have_audio=yes
  16134. fi
  16135. fi
  16136. }
  16137. CheckPulseAudio()
  16138. {
  16139. # Check whether --enable-pulseaudio was given.
  16140. if test "${enable_pulseaudio+set}" = set; then :
  16141. enableval=$enable_pulseaudio;
  16142. else
  16143. enable_pulseaudio=yes
  16144. fi
  16145. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  16146. pkg_failed=no
  16147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  16148. $as_echo_n "checking for libpulse-simple >= 0.9... " >&6; }
  16149. if test -n "$PULSEAUDIO_CFLAGS"; then
  16150. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  16151. elif test -n "$PKG_CONFIG"; then
  16152. if test -n "$PKG_CONFIG" && \
  16153. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16154. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16155. ac_status=$?
  16156. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16157. test $ac_status = 0; }; then
  16158. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  16159. test "x$?" != "x0" && pkg_failed=yes
  16160. else
  16161. pkg_failed=yes
  16162. fi
  16163. else
  16164. pkg_failed=untried
  16165. fi
  16166. if test -n "$PULSEAUDIO_LIBS"; then
  16167. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  16168. elif test -n "$PKG_CONFIG"; then
  16169. if test -n "$PKG_CONFIG" && \
  16170. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16171. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16172. ac_status=$?
  16173. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16174. test $ac_status = 0; }; then
  16175. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  16176. test "x$?" != "x0" && pkg_failed=yes
  16177. else
  16178. pkg_failed=yes
  16179. fi
  16180. else
  16181. pkg_failed=untried
  16182. fi
  16183. if test $pkg_failed = yes; then
  16184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16185. $as_echo "no" >&6; }
  16186. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16187. _pkg_short_errors_supported=yes
  16188. else
  16189. _pkg_short_errors_supported=no
  16190. fi
  16191. if test $_pkg_short_errors_supported = yes; then
  16192. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  16193. else
  16194. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  16195. fi
  16196. # Put the nasty error message in config.log where it belongs
  16197. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  16198. audio_pulseaudio=no
  16199. elif test $pkg_failed = untried; then
  16200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16201. $as_echo "no" >&6; }
  16202. audio_pulseaudio=no
  16203. else
  16204. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  16205. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  16206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16207. $as_echo "yes" >&6; }
  16208. audio_pulseaudio=yes
  16209. fi
  16210. if test x$audio_pulseaudio = xyes; then
  16211. # Check whether --enable-pulseaudio-shared was given.
  16212. if test "${enable_pulseaudio_shared+set}" = set; then :
  16213. enableval=$enable_pulseaudio_shared;
  16214. else
  16215. enable_pulseaudio_shared=yes
  16216. fi
  16217. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16218. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  16219. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  16220. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  16221. if test x$have_loadso != xyes && \
  16222. test x$enable_pulseaudio_shared = xyes; then
  16223. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  16224. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  16225. fi
  16226. if test x$have_loadso = xyes && \
  16227. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  16228. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  16229. cat >>confdefs.h <<_ACEOF
  16230. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  16231. _ACEOF
  16232. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  16233. case "$host" in
  16234. # On Solaris, pulseaudio must be linked deferred explicitly
  16235. # to prevent undefined symbol failures.
  16236. *-*-solaris*)
  16237. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  16238. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  16239. esac
  16240. else
  16241. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  16242. SUMMARY_audio="${SUMMARY_audio} pulse"
  16243. fi
  16244. have_audio=yes
  16245. fi
  16246. fi
  16247. }
  16248. CheckARTSC()
  16249. {
  16250. # Check whether --enable-arts was given.
  16251. if test "${enable_arts+set}" = set; then :
  16252. enableval=$enable_arts;
  16253. else
  16254. enable_arts=yes
  16255. fi
  16256. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  16257. # Extract the first word of "artsc-config", so it can be a program name with args.
  16258. set dummy artsc-config; ac_word=$2
  16259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16260. $as_echo_n "checking for $ac_word... " >&6; }
  16261. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  16262. $as_echo_n "(cached) " >&6
  16263. else
  16264. case $ARTSCONFIG in
  16265. [\\/]* | ?:[\\/]*)
  16266. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  16267. ;;
  16268. *)
  16269. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16270. for as_dir in $PATH
  16271. do
  16272. IFS=$as_save_IFS
  16273. test -z "$as_dir" && as_dir=.
  16274. for ac_exec_ext in '' $ac_executable_extensions; do
  16275. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16276. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  16277. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16278. break 2
  16279. fi
  16280. done
  16281. done
  16282. IFS=$as_save_IFS
  16283. ;;
  16284. esac
  16285. fi
  16286. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  16287. if test -n "$ARTSCONFIG"; then
  16288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  16289. $as_echo "$ARTSCONFIG" >&6; }
  16290. else
  16291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16292. $as_echo "no" >&6; }
  16293. fi
  16294. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  16295. : # arts isn't installed
  16296. else
  16297. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  16298. ARTS_LIBS=`$ARTSCONFIG --libs`
  16299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  16300. $as_echo_n "checking for aRts development environment... " >&6; }
  16301. audio_arts=no
  16302. save_CFLAGS="$CFLAGS"
  16303. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  16304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16305. /* end confdefs.h. */
  16306. #include <artsc.h>
  16307. int
  16308. main ()
  16309. {
  16310. arts_stream_t stream;
  16311. ;
  16312. return 0;
  16313. }
  16314. _ACEOF
  16315. if ac_fn_c_try_compile "$LINENO"; then :
  16316. audio_arts=yes
  16317. fi
  16318. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16319. CFLAGS="$save_CFLAGS"
  16320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  16321. $as_echo "$audio_arts" >&6; }
  16322. if test x$audio_arts = xyes; then
  16323. # Check whether --enable-arts-shared was given.
  16324. if test "${enable_arts_shared+set}" = set; then :
  16325. enableval=$enable_arts_shared;
  16326. else
  16327. enable_arts_shared=yes
  16328. fi
  16329. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16330. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  16331. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  16332. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  16333. if test x$have_loadso != xyes && \
  16334. test x$enable_arts_shared = xyes; then
  16335. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  16336. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  16337. fi
  16338. if test x$have_loadso = xyes && \
  16339. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  16340. echo "-- dynamic libartsc -> $arts_lib"
  16341. cat >>confdefs.h <<_ACEOF
  16342. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  16343. _ACEOF
  16344. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  16345. else
  16346. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  16347. SUMMARY_audio="${SUMMARY_audio} arts"
  16348. fi
  16349. have_audio=yes
  16350. fi
  16351. fi
  16352. fi
  16353. }
  16354. CheckNAS()
  16355. {
  16356. # Check whether --enable-nas was given.
  16357. if test "${enable_nas+set}" = set; then :
  16358. enableval=$enable_nas;
  16359. else
  16360. enable_nas=yes
  16361. fi
  16362. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  16363. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  16364. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  16365. have_nas_hdr=yes
  16366. fi
  16367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  16368. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  16369. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  16370. $as_echo_n "(cached) " >&6
  16371. else
  16372. ac_check_lib_save_LIBS=$LIBS
  16373. LIBS="-laudio $LIBS"
  16374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16375. /* end confdefs.h. */
  16376. /* Override any GCC internal prototype to avoid an error.
  16377. Use char because int might match the return type of a GCC
  16378. builtin and then its argument prototype would still apply. */
  16379. #ifdef __cplusplus
  16380. extern "C"
  16381. #endif
  16382. char AuOpenServer ();
  16383. int
  16384. main ()
  16385. {
  16386. return AuOpenServer ();
  16387. ;
  16388. return 0;
  16389. }
  16390. _ACEOF
  16391. if ac_fn_c_try_link "$LINENO"; then :
  16392. ac_cv_lib_audio_AuOpenServer=yes
  16393. else
  16394. ac_cv_lib_audio_AuOpenServer=no
  16395. fi
  16396. rm -f core conftest.err conftest.$ac_objext \
  16397. conftest$ac_exeext conftest.$ac_ext
  16398. LIBS=$ac_check_lib_save_LIBS
  16399. fi
  16400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  16401. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  16402. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  16403. have_nas_lib=yes
  16404. fi
  16405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  16406. $as_echo_n "checking for NAS audio support... " >&6; }
  16407. have_nas=no
  16408. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  16409. have_nas=yes
  16410. NAS_LIBS="-laudio"
  16411. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  16412. have_nas=yes
  16413. NAS_CFLAGS="-I/usr/X11R6/include/"
  16414. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  16415. fi
  16416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  16417. $as_echo "$have_nas" >&6; }
  16418. if test x$have_nas = xyes; then
  16419. # Check whether --enable-nas-shared was given.
  16420. if test "${enable_nas_shared+set}" = set; then :
  16421. enableval=$enable_nas_shared;
  16422. else
  16423. enable_nas_shared=yes
  16424. fi
  16425. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16426. if test x$have_loadso != xyes && \
  16427. test x$enable_nas_shared = xyes; then
  16428. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  16429. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  16430. fi
  16431. if test x$have_loadso = xyes && \
  16432. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  16433. echo "-- dynamic libaudio -> $nas_lib"
  16434. cat >>confdefs.h <<_ACEOF
  16435. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  16436. _ACEOF
  16437. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  16438. else
  16439. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  16440. SUMMARY_audio="${SUMMARY_audio} nas"
  16441. fi
  16442. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  16443. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  16444. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  16445. have_audio=yes
  16446. fi
  16447. fi
  16448. }
  16449. CheckSNDIO()
  16450. {
  16451. # Check whether --enable-sndio was given.
  16452. if test "${enable_sndio+set}" = set; then :
  16453. enableval=$enable_sndio;
  16454. else
  16455. enable_sndio=yes
  16456. fi
  16457. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  16458. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  16459. if test "x$ac_cv_header_sndio_h" = xyes; then :
  16460. have_sndio_hdr=yes
  16461. fi
  16462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  16463. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  16464. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  16465. $as_echo_n "(cached) " >&6
  16466. else
  16467. ac_check_lib_save_LIBS=$LIBS
  16468. LIBS="-lsndio $LIBS"
  16469. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16470. /* end confdefs.h. */
  16471. /* Override any GCC internal prototype to avoid an error.
  16472. Use char because int might match the return type of a GCC
  16473. builtin and then its argument prototype would still apply. */
  16474. #ifdef __cplusplus
  16475. extern "C"
  16476. #endif
  16477. char sio_open ();
  16478. int
  16479. main ()
  16480. {
  16481. return sio_open ();
  16482. ;
  16483. return 0;
  16484. }
  16485. _ACEOF
  16486. if ac_fn_c_try_link "$LINENO"; then :
  16487. ac_cv_lib_sndio_sio_open=yes
  16488. else
  16489. ac_cv_lib_sndio_sio_open=no
  16490. fi
  16491. rm -f core conftest.err conftest.$ac_objext \
  16492. conftest$ac_exeext conftest.$ac_ext
  16493. LIBS=$ac_check_lib_save_LIBS
  16494. fi
  16495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  16496. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  16497. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  16498. have_sndio_lib=yes
  16499. fi
  16500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  16501. $as_echo_n "checking for sndio audio support... " >&6; }
  16502. have_sndio=no
  16503. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  16504. have_sndio=yes
  16505. SNDIO_LIBS="-lsndio"
  16506. fi
  16507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  16508. $as_echo "$have_sndio" >&6; }
  16509. if test x$have_sndio = xyes; then
  16510. # Check whether --enable-sndio-shared was given.
  16511. if test "${enable_sndio_shared+set}" = set; then :
  16512. enableval=$enable_sndio_shared;
  16513. else
  16514. enable_sndio_shared=yes
  16515. fi
  16516. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16517. if test x$have_loadso != xyes && \
  16518. test x$enable_sndio_shared = xyes; then
  16519. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  16520. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  16521. fi
  16522. if test x$have_loadso = xyes && \
  16523. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  16524. echo "-- dynamic libsndio -> $sndio_lib"
  16525. cat >>confdefs.h <<_ACEOF
  16526. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  16527. _ACEOF
  16528. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  16529. else
  16530. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  16531. SUMMARY_audio="${SUMMARY_audio} sndio"
  16532. fi
  16533. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  16534. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  16535. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  16536. have_audio=yes
  16537. fi
  16538. fi
  16539. }
  16540. CheckFusionSound()
  16541. {
  16542. # Check whether --enable-fusionsound was given.
  16543. if test "${enable_fusionsound+set}" = set; then :
  16544. enableval=$enable_fusionsound;
  16545. else
  16546. enable_fusionsound=no
  16547. fi
  16548. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  16549. pkg_failed=no
  16550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  16551. $as_echo_n "checking for fusionsound >= 1.1.1... " >&6; }
  16552. if test -n "$FUSIONSOUND_CFLAGS"; then
  16553. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  16554. elif test -n "$PKG_CONFIG"; then
  16555. if test -n "$PKG_CONFIG" && \
  16556. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16557. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16558. ac_status=$?
  16559. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16560. test $ac_status = 0; }; then
  16561. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  16562. test "x$?" != "x0" && pkg_failed=yes
  16563. else
  16564. pkg_failed=yes
  16565. fi
  16566. else
  16567. pkg_failed=untried
  16568. fi
  16569. if test -n "$FUSIONSOUND_LIBS"; then
  16570. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  16571. elif test -n "$PKG_CONFIG"; then
  16572. if test -n "$PKG_CONFIG" && \
  16573. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16574. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16575. ac_status=$?
  16576. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16577. test $ac_status = 0; }; then
  16578. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  16579. test "x$?" != "x0" && pkg_failed=yes
  16580. else
  16581. pkg_failed=yes
  16582. fi
  16583. else
  16584. pkg_failed=untried
  16585. fi
  16586. if test $pkg_failed = yes; then
  16587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16588. $as_echo "no" >&6; }
  16589. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16590. _pkg_short_errors_supported=yes
  16591. else
  16592. _pkg_short_errors_supported=no
  16593. fi
  16594. if test $_pkg_short_errors_supported = yes; then
  16595. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  16596. else
  16597. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  16598. fi
  16599. # Put the nasty error message in config.log where it belongs
  16600. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  16601. fusionsound=no
  16602. elif test $pkg_failed = untried; then
  16603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16604. $as_echo "no" >&6; }
  16605. fusionsound=no
  16606. else
  16607. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  16608. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  16609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16610. $as_echo "yes" >&6; }
  16611. fusionsound=yes
  16612. fi
  16613. if test x$fusionsound = xyes; then
  16614. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  16615. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  16616. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  16617. # Check whether --enable-fusionsound-shared was given.
  16618. if test "${enable_fusionsound_shared+set}" = set; then :
  16619. enableval=$enable_fusionsound_shared;
  16620. else
  16621. enable_fusionsound_shared=yes
  16622. fi
  16623. fusionsound_shared=no
  16624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  16625. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  16626. if test x$have_loadso != xyes && \
  16627. test x$enable_fusionsound_shared = xyes; then
  16628. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  16629. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  16630. fi
  16631. if test x$have_loadso = xyes && \
  16632. test x$enable_fusionsound_shared = xyes; then
  16633. cat >>confdefs.h <<_ACEOF
  16634. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  16635. _ACEOF
  16636. fusionsound_shared=yes
  16637. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  16638. else
  16639. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  16640. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  16641. fi
  16642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  16643. $as_echo "$fusionsound_shared" >&6; }
  16644. have_audio=yes
  16645. fi
  16646. fi
  16647. }
  16648. CheckDiskAudio()
  16649. {
  16650. # Check whether --enable-diskaudio was given.
  16651. if test "${enable_diskaudio+set}" = set; then :
  16652. enableval=$enable_diskaudio;
  16653. else
  16654. enable_diskaudio=yes
  16655. fi
  16656. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  16657. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  16658. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  16659. SUMMARY_audio="${SUMMARY_audio} disk"
  16660. fi
  16661. }
  16662. CheckDummyAudio()
  16663. {
  16664. # Check whether --enable-dummyaudio was given.
  16665. if test "${enable_dummyaudio+set}" = set; then :
  16666. enableval=$enable_dummyaudio;
  16667. else
  16668. enable_dummyaudio=yes
  16669. fi
  16670. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  16671. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  16672. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  16673. SUMMARY_audio="${SUMMARY_audio} dummy"
  16674. fi
  16675. }
  16676. CheckLibSampleRate()
  16677. {
  16678. # Check whether --enable-libsamplerate was given.
  16679. if test "${enable_libsamplerate+set}" = set; then :
  16680. enableval=$enable_libsamplerate;
  16681. else
  16682. enable_libsamplerate=yes
  16683. fi
  16684. if test x$enable_libsamplerate = xyes; then
  16685. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  16686. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  16687. have_samplerate_h_hdr=yes
  16688. else
  16689. have_samplerate_h_hdr=no
  16690. fi
  16691. if test x$have_samplerate_h_hdr = xyes; then
  16692. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  16693. # Check whether --enable-libsamplerate-shared was given.
  16694. if test "${enable_libsamplerate_shared+set}" = set; then :
  16695. enableval=$enable_libsamplerate_shared;
  16696. else
  16697. enable_libsamplerate_shared=yes
  16698. fi
  16699. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  16700. if test x$have_loadso != xyes && \
  16701. test x$enable_libsamplerate_shared = xyes; then
  16702. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  16703. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  16704. fi
  16705. if test x$have_loadso = xyes && \
  16706. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  16707. echo "-- dynamic libsamplerate -> $samplerate_lib"
  16708. cat >>confdefs.h <<_ACEOF
  16709. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  16710. _ACEOF
  16711. else
  16712. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  16713. fi
  16714. fi
  16715. fi
  16716. }
  16717. CheckARM()
  16718. {
  16719. # Check whether --enable-arm-simd was given.
  16720. if test "${enable_arm_simd+set}" = set; then :
  16721. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  16722. else
  16723. enable_arm_simd=no
  16724. fi
  16725. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  16726. save_CFLAGS="$CFLAGS"
  16727. have_arm_simd=no
  16728. CFLAGS="-x assembler-with-cpp $CFLAGS"
  16729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  16730. $as_echo_n "checking for ARM SIMD... " >&6; }
  16731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16732. /* end confdefs.h. */
  16733. .text
  16734. .arch armv6
  16735. .object_arch armv4
  16736. .arm
  16737. .altmacro
  16738. #ifndef __ARM_EABI__
  16739. #error EABI is required (to be sure that calling conventions are compatible)
  16740. #endif
  16741. pld [r0]
  16742. uqadd8 r0, r0, r0
  16743. _ACEOF
  16744. if ac_fn_c_try_compile "$LINENO"; then :
  16745. have_arm_simd=yes
  16746. fi
  16747. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  16749. $as_echo "$have_arm_simd" >&6; }
  16750. CFLAGS="$save_CFLAGS"
  16751. if test x$have_arm_simd = xyes; then
  16752. $as_echo "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  16753. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  16754. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  16755. fi
  16756. fi
  16757. }
  16758. CheckNEON()
  16759. {
  16760. # Check whether --enable-arm-neon was given.
  16761. if test "${enable_arm_neon+set}" = set; then :
  16762. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  16763. else
  16764. enable_arm_neon=no
  16765. fi
  16766. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  16767. save_CFLAGS="$CFLAGS"
  16768. have_arm_neon=no
  16769. CFLAGS="-x assembler-with-cpp $CFLAGS"
  16770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  16771. $as_echo_n "checking for ARM NEON... " >&6; }
  16772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16773. /* end confdefs.h. */
  16774. .text
  16775. .fpu neon
  16776. .arch armv7a
  16777. .object_arch armv4
  16778. .eabi_attribute 10, 0
  16779. .arm
  16780. .altmacro
  16781. #ifndef __ARM_EABI__
  16782. #error EABI is required (to be sure that calling conventions are compatible)
  16783. #endif
  16784. pld [r0]
  16785. vmovn.u16 d0, q0
  16786. _ACEOF
  16787. if ac_fn_c_try_compile "$LINENO"; then :
  16788. have_arm_neon=yes
  16789. fi
  16790. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  16792. $as_echo "$have_arm_neon" >&6; }
  16793. CFLAGS="$save_CFLAGS"
  16794. if test x$have_arm_neon = xyes; then
  16795. $as_echo "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  16796. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  16797. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  16798. fi
  16799. fi
  16800. }
  16801. CheckVisibilityHidden()
  16802. {
  16803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  16804. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  16805. have_gcc_fvisibility=no
  16806. visibility_CFLAGS="-fvisibility=hidden"
  16807. save_CFLAGS="$CFLAGS"
  16808. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  16809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16810. /* end confdefs.h. */
  16811. #if !defined(__GNUC__) || __GNUC__ < 4
  16812. #error SDL only uses visibility attributes in GCC 4 or newer
  16813. #endif
  16814. int
  16815. main ()
  16816. {
  16817. ;
  16818. return 0;
  16819. }
  16820. _ACEOF
  16821. if ac_fn_c_try_compile "$LINENO"; then :
  16822. have_gcc_fvisibility=yes
  16823. fi
  16824. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  16826. $as_echo "$have_gcc_fvisibility" >&6; }
  16827. CFLAGS="$save_CFLAGS"
  16828. if test x$have_gcc_fvisibility = xyes; then
  16829. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  16830. fi
  16831. }
  16832. CheckNoStrictAliasing()
  16833. {
  16834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  16835. $as_echo_n "checking for GCC -fno-strict-aliasing option... " >&6; }
  16836. have_gcc_no_strict_aliasing=no
  16837. save_CFLAGS="$CFLAGS"
  16838. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  16839. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16840. /* end confdefs.h. */
  16841. int x = 0;
  16842. int
  16843. main ()
  16844. {
  16845. ;
  16846. return 0;
  16847. }
  16848. _ACEOF
  16849. if ac_fn_c_try_compile "$LINENO"; then :
  16850. have_gcc_no_strict_aliasing=yes
  16851. fi
  16852. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  16854. $as_echo "$have_gcc_no_strict_aliasing" >&6; }
  16855. CFLAGS="$save_CFLAGS"
  16856. if test x$have_gcc_no_strict_aliasing = xyes; then
  16857. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  16858. fi
  16859. }
  16860. CheckStackBoundary()
  16861. {
  16862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  16863. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  16864. have_gcc_preferred_stack_boundary=no
  16865. save_CFLAGS="$CFLAGS"
  16866. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  16867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16868. /* end confdefs.h. */
  16869. int x = 0;
  16870. int
  16871. main ()
  16872. {
  16873. ;
  16874. return 0;
  16875. }
  16876. _ACEOF
  16877. if ac_fn_c_try_compile "$LINENO"; then :
  16878. have_gcc_preferred_stack_boundary=yes
  16879. fi
  16880. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  16882. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  16883. CFLAGS="$save_CFLAGS"
  16884. if test x$have_gcc_preferred_stack_boundary = xyes; then
  16885. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  16886. fi
  16887. }
  16888. CheckDeclarationAfterStatement()
  16889. {
  16890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  16891. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  16892. have_gcc_declaration_after_statement=no
  16893. save_CFLAGS="$CFLAGS"
  16894. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16896. /* end confdefs.h. */
  16897. int x = 0;
  16898. int
  16899. main ()
  16900. {
  16901. ;
  16902. return 0;
  16903. }
  16904. _ACEOF
  16905. if ac_fn_c_try_compile "$LINENO"; then :
  16906. have_gcc_declaration_after_statement=yes
  16907. fi
  16908. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  16910. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  16911. CFLAGS="$save_CFLAGS"
  16912. if test x$have_gcc_declaration_after_statement = xyes; then
  16913. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16914. fi
  16915. }
  16916. CheckWarnAll()
  16917. {
  16918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  16919. $as_echo_n "checking for GCC -Wall option... " >&6; }
  16920. have_gcc_Wall=no
  16921. save_CFLAGS="$CFLAGS"
  16922. CFLAGS="$save_CFLAGS -Wall"
  16923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16924. /* end confdefs.h. */
  16925. int x = 0;
  16926. int
  16927. main ()
  16928. {
  16929. ;
  16930. return 0;
  16931. }
  16932. _ACEOF
  16933. if ac_fn_c_try_compile "$LINENO"; then :
  16934. have_gcc_Wall=yes
  16935. fi
  16936. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16938. $as_echo "$have_gcc_Wall" >&6; }
  16939. CFLAGS="$save_CFLAGS"
  16940. if test x$have_gcc_Wall = xyes; then
  16941. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16943. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16944. need_gcc_Wno_multichar=no
  16945. case "$host" in
  16946. *-*-haiku*)
  16947. need_gcc_Wno_multichar=yes
  16948. ;;
  16949. esac
  16950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16951. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16952. if test x$need_gcc_Wno_multichar = xyes; then
  16953. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16954. fi
  16955. fi
  16956. }
  16957. CheckWayland()
  16958. {
  16959. # Check whether --enable-video-wayland was given.
  16960. if test "${enable_video_wayland+set}" = set; then :
  16961. enableval=$enable_video_wayland;
  16962. else
  16963. enable_video_wayland=yes
  16964. fi
  16965. # Check whether --enable-video-wayland-qt-touch was given.
  16966. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16967. enableval=$enable_video_wayland_qt_touch;
  16968. else
  16969. enable_video_wayland_qt_touch=yes
  16970. fi
  16971. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16973. $as_echo_n "checking for Wayland support... " >&6; }
  16974. video_wayland=no
  16975. if test x$video_opengl_egl = xyes && \
  16976. test x$video_opengles_v2 = xyes; then
  16977. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-egl wayland-cursor egl xkbcommon ; then
  16978. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16979. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16980. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  16981. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'; then :
  16982. WAYLAND_SCANNER_CODE_MODE=private-code
  16983. else
  16984. WAYLAND_SCANNER_CODE_MODE=code
  16985. fi
  16986. video_wayland=yes
  16987. fi
  16988. fi
  16989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16990. $as_echo "$video_wayland" >&6; }
  16991. if test x$video_wayland = xyes; then
  16992. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16993. if test x$enable_video_wayland_qt_touch = xyes; then
  16994. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16995. fi
  16996. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  16997. SOURCES="$SOURCES $WAYLAND_SOURCES"
  16998. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  16999. # Check whether --enable-wayland-shared was given.
  17000. if test "${enable_wayland_shared+set}" = set; then :
  17001. enableval=$enable_wayland_shared;
  17002. else
  17003. enable_wayland_shared=maybe
  17004. fi
  17005. case "$host" in
  17006. *)
  17007. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17008. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17009. if test x$wayland_egl_lib = x; then
  17010. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17011. fi
  17012. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17013. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17014. ;;
  17015. esac
  17016. if test x$enable_wayland_shared = xmaybe; then
  17017. enable_wayland_shared=yes
  17018. fi
  17019. if test x$have_loadso != xyes && \
  17020. test x$enable_wayland_shared = xyes; then
  17021. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  17022. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  17023. enable_wayland_shared=no
  17024. fi
  17025. if test x$have_loadso = xyes && \
  17026. test x$enable_wayland_shared = xyes && \
  17027. test x$wayland_client_lib != x && \
  17028. test x$wayland_egl_lib != x && \
  17029. test x$wayland_cursor_lib != x && \
  17030. test x$xkbcommon_lib != x; then
  17031. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  17032. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  17033. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  17034. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  17035. cat >>confdefs.h <<_ACEOF
  17036. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  17037. _ACEOF
  17038. cat >>confdefs.h <<_ACEOF
  17039. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  17040. _ACEOF
  17041. cat >>confdefs.h <<_ACEOF
  17042. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  17043. _ACEOF
  17044. cat >>confdefs.h <<_ACEOF
  17045. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  17046. _ACEOF
  17047. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  17048. else
  17049. enable_wayland_shared=no
  17050. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  17051. SUMMARY_video="${SUMMARY_video} wayland"
  17052. fi
  17053. have_video=yes
  17054. fi
  17055. fi
  17056. }
  17057. CheckNativeClient()
  17058. {
  17059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17060. /* end confdefs.h. */
  17061. #if !defined(__native_client__)
  17062. #error "NO NACL"
  17063. #endif
  17064. int
  17065. main ()
  17066. {
  17067. ;
  17068. return 0;
  17069. }
  17070. _ACEOF
  17071. if ac_fn_c_try_compile "$LINENO"; then :
  17072. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  17073. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  17074. $as_echo "#define HAVE_POW 1" >>confdefs.h
  17075. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  17076. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  17077. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  17078. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  17079. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  17080. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  17081. SUMMARY_audio="${SUMMARY_audio} nacl"
  17082. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  17083. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  17084. fi
  17085. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17086. }
  17087. CheckRPI()
  17088. {
  17089. # Check whether --enable-video-rpi was given.
  17090. if test "${enable_video_rpi+set}" = set; then :
  17091. enableval=$enable_video_rpi;
  17092. else
  17093. enable_video_rpi=yes
  17094. fi
  17095. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  17096. pkg_failed=no
  17097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  17098. $as_echo_n "checking for bcm_host brcmegl... " >&6; }
  17099. if test -n "$RPI_CFLAGS"; then
  17100. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  17101. elif test -n "$PKG_CONFIG"; then
  17102. if test -n "$PKG_CONFIG" && \
  17103. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17104. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17105. ac_status=$?
  17106. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17107. test $ac_status = 0; }; then
  17108. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  17109. test "x$?" != "x0" && pkg_failed=yes
  17110. else
  17111. pkg_failed=yes
  17112. fi
  17113. else
  17114. pkg_failed=untried
  17115. fi
  17116. if test -n "$RPI_LIBS"; then
  17117. pkg_cv_RPI_LIBS="$RPI_LIBS"
  17118. elif test -n "$PKG_CONFIG"; then
  17119. if test -n "$PKG_CONFIG" && \
  17120. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17121. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17122. ac_status=$?
  17123. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17124. test $ac_status = 0; }; then
  17125. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  17126. test "x$?" != "x0" && pkg_failed=yes
  17127. else
  17128. pkg_failed=yes
  17129. fi
  17130. else
  17131. pkg_failed=untried
  17132. fi
  17133. if test $pkg_failed = yes; then
  17134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17135. $as_echo "no" >&6; }
  17136. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17137. _pkg_short_errors_supported=yes
  17138. else
  17139. _pkg_short_errors_supported=no
  17140. fi
  17141. if test $_pkg_short_errors_supported = yes; then
  17142. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  17143. else
  17144. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  17145. fi
  17146. # Put the nasty error message in config.log where it belongs
  17147. echo "$RPI_PKG_ERRORS" >&5
  17148. video_rpi=no
  17149. elif test $pkg_failed = untried; then
  17150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17151. $as_echo "no" >&6; }
  17152. video_rpi=no
  17153. else
  17154. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  17155. RPI_LIBS=$pkg_cv_RPI_LIBS
  17156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17157. $as_echo "yes" >&6; }
  17158. video_rpi=yes
  17159. fi
  17160. if test x$video_rpi = xno; then
  17161. if test x$ARCH = xnetbsd; then
  17162. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  17163. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  17164. else
  17165. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  17166. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  17167. fi
  17168. fi
  17169. # Save the original compiler flags and libraries
  17170. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  17171. # Add the Raspberry Pi compiler flags and libraries
  17172. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  17173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi" >&5
  17174. $as_echo_n "checking for Raspberry Pi... " >&6; }
  17175. have_video_rpi=no
  17176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17177. /* end confdefs.h. */
  17178. #include <bcm_host.h>
  17179. int
  17180. main ()
  17181. {
  17182. bcm_host_init();
  17183. ;
  17184. return 0;
  17185. }
  17186. _ACEOF
  17187. if ac_fn_c_try_link "$LINENO"; then :
  17188. have_video_rpi=yes
  17189. fi
  17190. rm -f core conftest.err conftest.$ac_objext \
  17191. conftest$ac_exeext conftest.$ac_ext
  17192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  17193. $as_echo "$have_video_rpi" >&6; }
  17194. # Restore the compiler flags and libraries
  17195. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  17196. if test x$have_video_rpi = xyes; then
  17197. CFLAGS="$CFLAGS $RPI_CFLAGS"
  17198. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  17199. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  17200. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  17201. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  17202. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  17203. SUMMARY_video="${SUMMARY_video} rpi"
  17204. fi
  17205. fi
  17206. }
  17207. CheckX11()
  17208. {
  17209. # Check whether --enable-video-x11 was given.
  17210. if test "${enable_video_x11+set}" = set; then :
  17211. enableval=$enable_video_x11;
  17212. else
  17213. enable_video_x11=yes
  17214. fi
  17215. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  17216. case "$host" in
  17217. *-*-darwin*)
  17218. # This isn't necessary for X11, but fixes GLX detection
  17219. if test "x$x_includes" = xNONE && \
  17220. test "x$x_libraries" = xNONE && \
  17221. test -d /opt/X11/include && \
  17222. test -d /opt/X11/lib; then
  17223. x_includes="/opt/X11/include"
  17224. x_libraries="/opt/X11/lib"
  17225. fi
  17226. ;;
  17227. esac
  17228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  17229. $as_echo_n "checking for X... " >&6; }
  17230. # Check whether --with-x was given.
  17231. if test "${with_x+set}" = set; then :
  17232. withval=$with_x;
  17233. fi
  17234. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  17235. if test "x$with_x" = xno; then
  17236. # The user explicitly disabled X.
  17237. have_x=disabled
  17238. else
  17239. case $x_includes,$x_libraries in #(
  17240. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  17241. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  17242. $as_echo_n "(cached) " >&6
  17243. else
  17244. # One or both of the vars are not set, and there is no cached value.
  17245. ac_x_includes=no
  17246. ac_x_libraries=no
  17247. # Do we need to do anything special at all?
  17248. ac_save_LIBS=$LIBS
  17249. LIBS="-lX11 $LIBS"
  17250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17251. /* end confdefs.h. */
  17252. #include <X11/Xlib.h>
  17253. int
  17254. main ()
  17255. {
  17256. XrmInitialize ()
  17257. ;
  17258. return 0;
  17259. }
  17260. _ACEOF
  17261. if ac_fn_c_try_link "$LINENO"; then :
  17262. # We can compile and link X programs with no special options.
  17263. ac_x_includes=
  17264. ac_x_libraries=
  17265. fi
  17266. rm -f core conftest.err conftest.$ac_objext \
  17267. conftest$ac_exeext conftest.$ac_ext
  17268. LIBS="$ac_save_LIBS"
  17269. # If that didn't work, only try xmkmf and filesystem searches
  17270. # for native compilation.
  17271. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no; then :
  17272. rm -f -r conftest.dir
  17273. if mkdir conftest.dir; then
  17274. cd conftest.dir
  17275. cat >Imakefile <<'_ACEOF'
  17276. incroot:
  17277. @echo incroot='${INCROOT}'
  17278. usrlibdir:
  17279. @echo usrlibdir='${USRLIBDIR}'
  17280. libdir:
  17281. @echo libdir='${LIBDIR}'
  17282. _ACEOF
  17283. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  17284. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  17285. for ac_var in incroot usrlibdir libdir; do
  17286. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  17287. done
  17288. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  17289. for ac_extension in a so sl dylib la dll; do
  17290. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  17291. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  17292. ac_im_usrlibdir=$ac_im_libdir; break
  17293. fi
  17294. done
  17295. # Screen out bogus values from the imake configuration. They are
  17296. # bogus both because they are the default anyway, and because
  17297. # using them would break gcc on systems where it needs fixed includes.
  17298. case $ac_im_incroot in
  17299. /usr/include) ac_x_includes= ;;
  17300. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  17301. esac
  17302. case $ac_im_usrlibdir in
  17303. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  17304. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  17305. esac
  17306. fi
  17307. cd ..
  17308. rm -f -r conftest.dir
  17309. fi
  17310. # Standard set of common directories for X headers.
  17311. # Check X11 before X11Rn because it is often a symlink to the current release.
  17312. ac_x_header_dirs='
  17313. /usr/X11/include
  17314. /usr/X11R7/include
  17315. /usr/X11R6/include
  17316. /usr/X11R5/include
  17317. /usr/X11R4/include
  17318. /usr/include/X11
  17319. /usr/include/X11R7
  17320. /usr/include/X11R6
  17321. /usr/include/X11R5
  17322. /usr/include/X11R4
  17323. /usr/local/X11/include
  17324. /usr/local/X11R7/include
  17325. /usr/local/X11R6/include
  17326. /usr/local/X11R5/include
  17327. /usr/local/X11R4/include
  17328. /usr/local/include/X11
  17329. /usr/local/include/X11R7
  17330. /usr/local/include/X11R6
  17331. /usr/local/include/X11R5
  17332. /usr/local/include/X11R4
  17333. /opt/X11/include
  17334. /usr/X386/include
  17335. /usr/x386/include
  17336. /usr/XFree86/include/X11
  17337. /usr/include
  17338. /usr/local/include
  17339. /usr/unsupported/include
  17340. /usr/athena/include
  17341. /usr/local/x11r5/include
  17342. /usr/lpp/Xamples/include
  17343. /usr/openwin/include
  17344. /usr/openwin/share/include'
  17345. if test "$ac_x_includes" = no; then
  17346. # Guess where to find include files, by looking for Xlib.h.
  17347. # First, try using that file with no special directory specified.
  17348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17349. /* end confdefs.h. */
  17350. #include <X11/Xlib.h>
  17351. _ACEOF
  17352. if ac_fn_c_try_cpp "$LINENO"; then :
  17353. # We can compile using X headers with no special include directory.
  17354. ac_x_includes=
  17355. else
  17356. for ac_dir in $ac_x_header_dirs; do
  17357. if test -r "$ac_dir/X11/Xlib.h"; then
  17358. ac_x_includes=$ac_dir
  17359. break
  17360. fi
  17361. done
  17362. fi
  17363. rm -f conftest.err conftest.i conftest.$ac_ext
  17364. fi # $ac_x_includes = no
  17365. if test "$ac_x_libraries" = no; then
  17366. # Check for the libraries.
  17367. # See if we find them without any special options.
  17368. # Don't add to $LIBS permanently.
  17369. ac_save_LIBS=$LIBS
  17370. LIBS="-lX11 $LIBS"
  17371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17372. /* end confdefs.h. */
  17373. #include <X11/Xlib.h>
  17374. int
  17375. main ()
  17376. {
  17377. XrmInitialize ()
  17378. ;
  17379. return 0;
  17380. }
  17381. _ACEOF
  17382. if ac_fn_c_try_link "$LINENO"; then :
  17383. LIBS=$ac_save_LIBS
  17384. # We can link X programs with no special library path.
  17385. ac_x_libraries=
  17386. else
  17387. LIBS=$ac_save_LIBS
  17388. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  17389. do
  17390. # Don't even attempt the hair of trying to link an X program!
  17391. for ac_extension in a so sl dylib la dll; do
  17392. if test -r "$ac_dir/libX11.$ac_extension"; then
  17393. ac_x_libraries=$ac_dir
  17394. break 2
  17395. fi
  17396. done
  17397. done
  17398. fi
  17399. rm -f core conftest.err conftest.$ac_objext \
  17400. conftest$ac_exeext conftest.$ac_ext
  17401. fi # $ac_x_libraries = no
  17402. fi
  17403. # Record the results.
  17404. case $ac_x_includes,$ac_x_libraries in #(
  17405. no,* | *,no | *\'*) :
  17406. # Didn't find X, or a directory has "'" in its name.
  17407. ac_cv_have_x="have_x=no" ;; #(
  17408. *) :
  17409. # Record where we found X for the cache.
  17410. ac_cv_have_x="have_x=yes\
  17411. ac_x_includes='$ac_x_includes'\
  17412. ac_x_libraries='$ac_x_libraries'" ;;
  17413. esac
  17414. fi
  17415. ;; #(
  17416. *) have_x=yes;;
  17417. esac
  17418. eval "$ac_cv_have_x"
  17419. fi # $with_x != no
  17420. if test "$have_x" != yes; then
  17421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  17422. $as_echo "$have_x" >&6; }
  17423. no_x=yes
  17424. else
  17425. # If each of the values was on the command line, it overrides each guess.
  17426. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  17427. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  17428. # Update the cache value to reflect the command line values.
  17429. ac_cv_have_x="have_x=yes\
  17430. ac_x_includes='$x_includes'\
  17431. ac_x_libraries='$x_libraries'"
  17432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  17433. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  17434. fi
  17435. if test "$no_x" = yes; then
  17436. # Not all programs may use this symbol, but it does not hurt to define it.
  17437. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  17438. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  17439. else
  17440. if test -n "$x_includes"; then
  17441. X_CFLAGS="$X_CFLAGS -I$x_includes"
  17442. fi
  17443. # It would also be nice to do this for all -L options, not just this one.
  17444. if test -n "$x_libraries"; then
  17445. X_LIBS="$X_LIBS -L$x_libraries"
  17446. # For Solaris; some versions of Sun CC require a space after -R and
  17447. # others require no space. Words are not sufficient . . . .
  17448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  17449. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  17450. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  17451. ac_xsave_c_werror_flag=$ac_c_werror_flag
  17452. ac_c_werror_flag=yes
  17453. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17454. /* end confdefs.h. */
  17455. int
  17456. main ()
  17457. {
  17458. ;
  17459. return 0;
  17460. }
  17461. _ACEOF
  17462. if ac_fn_c_try_link "$LINENO"; then :
  17463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17464. $as_echo "no" >&6; }
  17465. X_LIBS="$X_LIBS -R$x_libraries"
  17466. else
  17467. LIBS="$ac_xsave_LIBS -R $x_libraries"
  17468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17469. /* end confdefs.h. */
  17470. int
  17471. main ()
  17472. {
  17473. ;
  17474. return 0;
  17475. }
  17476. _ACEOF
  17477. if ac_fn_c_try_link "$LINENO"; then :
  17478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17479. $as_echo "yes" >&6; }
  17480. X_LIBS="$X_LIBS -R $x_libraries"
  17481. else
  17482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  17483. $as_echo "neither works" >&6; }
  17484. fi
  17485. rm -f core conftest.err conftest.$ac_objext \
  17486. conftest$ac_exeext conftest.$ac_ext
  17487. fi
  17488. rm -f core conftest.err conftest.$ac_objext \
  17489. conftest$ac_exeext conftest.$ac_ext
  17490. ac_c_werror_flag=$ac_xsave_c_werror_flag
  17491. LIBS=$ac_xsave_LIBS
  17492. fi
  17493. # Check for system-dependent libraries X programs must link with.
  17494. # Do this before checking for the system-independent R6 libraries
  17495. # (-lICE), since we may need -lsocket or whatever for X linking.
  17496. if test "$ISC" = yes; then
  17497. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  17498. else
  17499. # Martyn Johnson says this is needed for Ultrix, if the X
  17500. # libraries were built with DECnet support. And Karl Berry says
  17501. # the Alpha needs dnet_stub (dnet does not exist).
  17502. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  17503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17504. /* end confdefs.h. */
  17505. /* Override any GCC internal prototype to avoid an error.
  17506. Use char because int might match the return type of a GCC
  17507. builtin and then its argument prototype would still apply. */
  17508. #ifdef __cplusplus
  17509. extern "C"
  17510. #endif
  17511. char XOpenDisplay ();
  17512. int
  17513. main ()
  17514. {
  17515. return XOpenDisplay ();
  17516. ;
  17517. return 0;
  17518. }
  17519. _ACEOF
  17520. if ac_fn_c_try_link "$LINENO"; then :
  17521. else
  17522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  17523. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  17524. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  17525. $as_echo_n "(cached) " >&6
  17526. else
  17527. ac_check_lib_save_LIBS=$LIBS
  17528. LIBS="-ldnet $LIBS"
  17529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17530. /* end confdefs.h. */
  17531. /* Override any GCC internal prototype to avoid an error.
  17532. Use char because int might match the return type of a GCC
  17533. builtin and then its argument prototype would still apply. */
  17534. #ifdef __cplusplus
  17535. extern "C"
  17536. #endif
  17537. char dnet_ntoa ();
  17538. int
  17539. main ()
  17540. {
  17541. return dnet_ntoa ();
  17542. ;
  17543. return 0;
  17544. }
  17545. _ACEOF
  17546. if ac_fn_c_try_link "$LINENO"; then :
  17547. ac_cv_lib_dnet_dnet_ntoa=yes
  17548. else
  17549. ac_cv_lib_dnet_dnet_ntoa=no
  17550. fi
  17551. rm -f core conftest.err conftest.$ac_objext \
  17552. conftest$ac_exeext conftest.$ac_ext
  17553. LIBS=$ac_check_lib_save_LIBS
  17554. fi
  17555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  17556. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  17557. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  17558. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  17559. fi
  17560. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  17561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  17562. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  17563. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  17564. $as_echo_n "(cached) " >&6
  17565. else
  17566. ac_check_lib_save_LIBS=$LIBS
  17567. LIBS="-ldnet_stub $LIBS"
  17568. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17569. /* end confdefs.h. */
  17570. /* Override any GCC internal prototype to avoid an error.
  17571. Use char because int might match the return type of a GCC
  17572. builtin and then its argument prototype would still apply. */
  17573. #ifdef __cplusplus
  17574. extern "C"
  17575. #endif
  17576. char dnet_ntoa ();
  17577. int
  17578. main ()
  17579. {
  17580. return dnet_ntoa ();
  17581. ;
  17582. return 0;
  17583. }
  17584. _ACEOF
  17585. if ac_fn_c_try_link "$LINENO"; then :
  17586. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  17587. else
  17588. ac_cv_lib_dnet_stub_dnet_ntoa=no
  17589. fi
  17590. rm -f core conftest.err conftest.$ac_objext \
  17591. conftest$ac_exeext conftest.$ac_ext
  17592. LIBS=$ac_check_lib_save_LIBS
  17593. fi
  17594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  17595. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  17596. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  17597. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  17598. fi
  17599. fi
  17600. fi
  17601. rm -f core conftest.err conftest.$ac_objext \
  17602. conftest$ac_exeext conftest.$ac_ext
  17603. LIBS="$ac_xsave_LIBS"
  17604. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  17605. # to get the SysV transport functions.
  17606. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  17607. # needs -lnsl.
  17608. # The nsl library prevents programs from opening the X display
  17609. # on Irix 5.2, according to T.E. Dickey.
  17610. # The functions gethostbyname, getservbyname, and inet_addr are
  17611. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  17612. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  17613. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  17614. fi
  17615. if test $ac_cv_func_gethostbyname = no; then
  17616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  17617. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  17618. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  17619. $as_echo_n "(cached) " >&6
  17620. else
  17621. ac_check_lib_save_LIBS=$LIBS
  17622. LIBS="-lnsl $LIBS"
  17623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17624. /* end confdefs.h. */
  17625. /* Override any GCC internal prototype to avoid an error.
  17626. Use char because int might match the return type of a GCC
  17627. builtin and then its argument prototype would still apply. */
  17628. #ifdef __cplusplus
  17629. extern "C"
  17630. #endif
  17631. char gethostbyname ();
  17632. int
  17633. main ()
  17634. {
  17635. return gethostbyname ();
  17636. ;
  17637. return 0;
  17638. }
  17639. _ACEOF
  17640. if ac_fn_c_try_link "$LINENO"; then :
  17641. ac_cv_lib_nsl_gethostbyname=yes
  17642. else
  17643. ac_cv_lib_nsl_gethostbyname=no
  17644. fi
  17645. rm -f core conftest.err conftest.$ac_objext \
  17646. conftest$ac_exeext conftest.$ac_ext
  17647. LIBS=$ac_check_lib_save_LIBS
  17648. fi
  17649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  17650. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  17651. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  17652. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  17653. fi
  17654. if test $ac_cv_lib_nsl_gethostbyname = no; then
  17655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  17656. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  17657. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  17658. $as_echo_n "(cached) " >&6
  17659. else
  17660. ac_check_lib_save_LIBS=$LIBS
  17661. LIBS="-lbsd $LIBS"
  17662. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17663. /* end confdefs.h. */
  17664. /* Override any GCC internal prototype to avoid an error.
  17665. Use char because int might match the return type of a GCC
  17666. builtin and then its argument prototype would still apply. */
  17667. #ifdef __cplusplus
  17668. extern "C"
  17669. #endif
  17670. char gethostbyname ();
  17671. int
  17672. main ()
  17673. {
  17674. return gethostbyname ();
  17675. ;
  17676. return 0;
  17677. }
  17678. _ACEOF
  17679. if ac_fn_c_try_link "$LINENO"; then :
  17680. ac_cv_lib_bsd_gethostbyname=yes
  17681. else
  17682. ac_cv_lib_bsd_gethostbyname=no
  17683. fi
  17684. rm -f core conftest.err conftest.$ac_objext \
  17685. conftest$ac_exeext conftest.$ac_ext
  17686. LIBS=$ac_check_lib_save_LIBS
  17687. fi
  17688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17689. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  17690. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  17691. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  17692. fi
  17693. fi
  17694. fi
  17695. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  17696. # socket/setsockopt and other routines are undefined under SCO ODT
  17697. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  17698. # on later versions), says Simon Leinen: it contains gethostby*
  17699. # variants that don't use the name server (or something). -lsocket
  17700. # must be given before -lnsl if both are needed. We assume that
  17701. # if connect needs -lnsl, so does gethostbyname.
  17702. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  17703. if test "x$ac_cv_func_connect" = xyes; then :
  17704. fi
  17705. if test $ac_cv_func_connect = no; then
  17706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17707. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17708. if ${ac_cv_lib_socket_connect+:} false; then :
  17709. $as_echo_n "(cached) " >&6
  17710. else
  17711. ac_check_lib_save_LIBS=$LIBS
  17712. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17714. /* end confdefs.h. */
  17715. /* Override any GCC internal prototype to avoid an error.
  17716. Use char because int might match the return type of a GCC
  17717. builtin and then its argument prototype would still apply. */
  17718. #ifdef __cplusplus
  17719. extern "C"
  17720. #endif
  17721. char connect ();
  17722. int
  17723. main ()
  17724. {
  17725. return connect ();
  17726. ;
  17727. return 0;
  17728. }
  17729. _ACEOF
  17730. if ac_fn_c_try_link "$LINENO"; then :
  17731. ac_cv_lib_socket_connect=yes
  17732. else
  17733. ac_cv_lib_socket_connect=no
  17734. fi
  17735. rm -f core conftest.err conftest.$ac_objext \
  17736. conftest$ac_exeext conftest.$ac_ext
  17737. LIBS=$ac_check_lib_save_LIBS
  17738. fi
  17739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17740. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17741. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17742. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17743. fi
  17744. fi
  17745. # Guillermo Gomez says -lposix is necessary on A/UX.
  17746. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17747. if test "x$ac_cv_func_remove" = xyes; then :
  17748. fi
  17749. if test $ac_cv_func_remove = no; then
  17750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17751. $as_echo_n "checking for remove in -lposix... " >&6; }
  17752. if ${ac_cv_lib_posix_remove+:} false; then :
  17753. $as_echo_n "(cached) " >&6
  17754. else
  17755. ac_check_lib_save_LIBS=$LIBS
  17756. LIBS="-lposix $LIBS"
  17757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17758. /* end confdefs.h. */
  17759. /* Override any GCC internal prototype to avoid an error.
  17760. Use char because int might match the return type of a GCC
  17761. builtin and then its argument prototype would still apply. */
  17762. #ifdef __cplusplus
  17763. extern "C"
  17764. #endif
  17765. char remove ();
  17766. int
  17767. main ()
  17768. {
  17769. return remove ();
  17770. ;
  17771. return 0;
  17772. }
  17773. _ACEOF
  17774. if ac_fn_c_try_link "$LINENO"; then :
  17775. ac_cv_lib_posix_remove=yes
  17776. else
  17777. ac_cv_lib_posix_remove=no
  17778. fi
  17779. rm -f core conftest.err conftest.$ac_objext \
  17780. conftest$ac_exeext conftest.$ac_ext
  17781. LIBS=$ac_check_lib_save_LIBS
  17782. fi
  17783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17784. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17785. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  17786. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17787. fi
  17788. fi
  17789. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17790. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  17791. if test "x$ac_cv_func_shmat" = xyes; then :
  17792. fi
  17793. if test $ac_cv_func_shmat = no; then
  17794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  17795. $as_echo_n "checking for shmat in -lipc... " >&6; }
  17796. if ${ac_cv_lib_ipc_shmat+:} false; then :
  17797. $as_echo_n "(cached) " >&6
  17798. else
  17799. ac_check_lib_save_LIBS=$LIBS
  17800. LIBS="-lipc $LIBS"
  17801. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17802. /* end confdefs.h. */
  17803. /* Override any GCC internal prototype to avoid an error.
  17804. Use char because int might match the return type of a GCC
  17805. builtin and then its argument prototype would still apply. */
  17806. #ifdef __cplusplus
  17807. extern "C"
  17808. #endif
  17809. char shmat ();
  17810. int
  17811. main ()
  17812. {
  17813. return shmat ();
  17814. ;
  17815. return 0;
  17816. }
  17817. _ACEOF
  17818. if ac_fn_c_try_link "$LINENO"; then :
  17819. ac_cv_lib_ipc_shmat=yes
  17820. else
  17821. ac_cv_lib_ipc_shmat=no
  17822. fi
  17823. rm -f core conftest.err conftest.$ac_objext \
  17824. conftest$ac_exeext conftest.$ac_ext
  17825. LIBS=$ac_check_lib_save_LIBS
  17826. fi
  17827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  17828. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  17829. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  17830. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  17831. fi
  17832. fi
  17833. fi
  17834. # Check for libraries that X11R6 Xt/Xaw programs need.
  17835. ac_save_LDFLAGS=$LDFLAGS
  17836. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  17837. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  17838. # check for ICE first), but we must link in the order -lSM -lICE or
  17839. # we get undefined symbols. So assume we have SM if we have ICE.
  17840. # These have to be linked with before -lX11, unlike the other
  17841. # libraries we check for below, so use a different variable.
  17842. # John Interrante, Karl Berry
  17843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  17844. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  17845. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  17846. $as_echo_n "(cached) " >&6
  17847. else
  17848. ac_check_lib_save_LIBS=$LIBS
  17849. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  17850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17851. /* end confdefs.h. */
  17852. /* Override any GCC internal prototype to avoid an error.
  17853. Use char because int might match the return type of a GCC
  17854. builtin and then its argument prototype would still apply. */
  17855. #ifdef __cplusplus
  17856. extern "C"
  17857. #endif
  17858. char IceConnectionNumber ();
  17859. int
  17860. main ()
  17861. {
  17862. return IceConnectionNumber ();
  17863. ;
  17864. return 0;
  17865. }
  17866. _ACEOF
  17867. if ac_fn_c_try_link "$LINENO"; then :
  17868. ac_cv_lib_ICE_IceConnectionNumber=yes
  17869. else
  17870. ac_cv_lib_ICE_IceConnectionNumber=no
  17871. fi
  17872. rm -f core conftest.err conftest.$ac_objext \
  17873. conftest$ac_exeext conftest.$ac_ext
  17874. LIBS=$ac_check_lib_save_LIBS
  17875. fi
  17876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17877. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17878. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  17879. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17880. fi
  17881. LDFLAGS=$ac_save_LDFLAGS
  17882. fi
  17883. if test x$have_x = xyes; then
  17884. # Check whether --enable-x11-shared was given.
  17885. if test "${enable_x11_shared+set}" = set; then :
  17886. enableval=$enable_x11_shared;
  17887. else
  17888. enable_x11_shared=maybe
  17889. fi
  17890. case "$host" in
  17891. *-*-darwin*)
  17892. # Apple now puts this in /opt/X11
  17893. x11_lib='/opt/X11/lib/libX11.6.dylib'
  17894. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  17895. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  17896. xinerama_lib='/opt/X11/lib/libXinerama.1.dylib'
  17897. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  17898. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  17899. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  17900. xss_lib='/opt/X11/lib/libXss.1.dylib'
  17901. xvidmode_lib='/opt/X11/lib/libXxf86vm.1.dylib'
  17902. ;;
  17903. *-*-openbsd*)
  17904. x11_lib='libX11.so'
  17905. x11ext_lib='libXext.so'
  17906. xcursor_lib='libXcursor.so'
  17907. xinerama_lib='libXinerama.so'
  17908. xinput_lib='libXi.so'
  17909. xrandr_lib='libXrandr.so'
  17910. xrender_lib='libXrender.so'
  17911. xss_lib='libXss.so'
  17912. xvidmode_lib='libXxf86vm.so'
  17913. ;;
  17914. *)
  17915. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17916. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17917. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17918. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17919. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17920. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17921. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17922. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17923. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17924. ;;
  17925. esac
  17926. if test x$ac_cv_func_shmat != xyes; then
  17927. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  17928. fi
  17929. CFLAGS="$CFLAGS $X_CFLAGS"
  17930. LDFLAGS="$LDFLAGS $X_LIBS"
  17931. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  17932. #include <X11/Xproto.h>
  17933. "
  17934. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  17935. have_xext_h_hdr=yes
  17936. else
  17937. have_xext_h_hdr=no
  17938. fi
  17939. if test x$have_xext_h_hdr != xyes; then
  17940. as_fn_error $? "
  17941. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  17942. " "$LINENO" 5
  17943. fi
  17944. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  17945. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  17946. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  17947. # Needed so SDL applications can include SDL_syswm.h
  17948. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  17949. if test x$enable_x11_shared = xmaybe; then
  17950. enable_x11_shared=yes
  17951. fi
  17952. if test x$have_loadso != xyes && \
  17953. test x$enable_x11_shared = xyes; then
  17954. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  17955. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  17956. enable_x11_shared=no
  17957. fi
  17958. if test x$have_loadso = xyes && \
  17959. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  17960. echo "-- dynamic libX11 -> $x11_lib"
  17961. echo "-- dynamic libX11ext -> $x11ext_lib"
  17962. cat >>confdefs.h <<_ACEOF
  17963. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  17964. _ACEOF
  17965. cat >>confdefs.h <<_ACEOF
  17966. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  17967. _ACEOF
  17968. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  17969. else
  17970. enable_x11_shared=no
  17971. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  17972. SUMMARY_video="${SUMMARY_video} x11"
  17973. fi
  17974. have_video=yes
  17975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  17976. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  17977. have_const_param_XextAddDisplay=no
  17978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17979. /* end confdefs.h. */
  17980. #include <X11/Xlib.h>
  17981. #include <X11/Xproto.h>
  17982. #include <X11/extensions/Xext.h>
  17983. #include <X11/extensions/extutil.h>
  17984. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  17985. int
  17986. main ()
  17987. {
  17988. ;
  17989. return 0;
  17990. }
  17991. _ACEOF
  17992. if ac_fn_c_try_compile "$LINENO"; then :
  17993. have_const_param_XextAddDisplay=yes
  17994. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  17995. fi
  17996. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  17998. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  17999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  18000. $as_echo_n "checking for XGenericEvent... " >&6; }
  18001. have_XGenericEvent=no
  18002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18003. /* end confdefs.h. */
  18004. #include <X11/Xlib.h>
  18005. int
  18006. main ()
  18007. {
  18008. Display *display;
  18009. XEvent event;
  18010. XGenericEventCookie *cookie = &event.xcookie;
  18011. XNextEvent(display, &event);
  18012. XGetEventData(display, cookie);
  18013. XFreeEventData(display, cookie);
  18014. ;
  18015. return 0;
  18016. }
  18017. _ACEOF
  18018. if ac_fn_c_try_compile "$LINENO"; then :
  18019. have_XGenericEvent=yes
  18020. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  18021. fi
  18022. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  18024. $as_echo "$have_XGenericEvent" >&6; }
  18025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  18026. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  18027. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  18028. $as_echo_n "(cached) " >&6
  18029. else
  18030. ac_check_lib_save_LIBS=$LIBS
  18031. LIBS="-lX11 $LIBS"
  18032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18033. /* end confdefs.h. */
  18034. /* Override any GCC internal prototype to avoid an error.
  18035. Use char because int might match the return type of a GCC
  18036. builtin and then its argument prototype would still apply. */
  18037. #ifdef __cplusplus
  18038. extern "C"
  18039. #endif
  18040. char XkbKeycodeToKeysym ();
  18041. int
  18042. main ()
  18043. {
  18044. return XkbKeycodeToKeysym ();
  18045. ;
  18046. return 0;
  18047. }
  18048. _ACEOF
  18049. if ac_fn_c_try_link "$LINENO"; then :
  18050. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  18051. else
  18052. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  18053. fi
  18054. rm -f core conftest.err conftest.$ac_objext \
  18055. conftest$ac_exeext conftest.$ac_ext
  18056. LIBS=$ac_check_lib_save_LIBS
  18057. fi
  18058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  18059. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  18060. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  18061. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  18062. fi
  18063. # Check whether --enable-video-x11-xcursor was given.
  18064. if test "${enable_video_x11_xcursor+set}" = set; then :
  18065. enableval=$enable_video_x11_xcursor;
  18066. else
  18067. enable_video_x11_xcursor=yes
  18068. fi
  18069. if test x$enable_video_x11_xcursor = xyes; then
  18070. definitely_enable_video_x11_xcursor=no
  18071. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  18072. "
  18073. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  18074. have_xcursor_h_hdr=yes
  18075. else
  18076. have_xcursor_h_hdr=no
  18077. fi
  18078. if test x$have_xcursor_h_hdr = xyes; then
  18079. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  18080. echo "-- dynamic libXcursor -> $xcursor_lib"
  18081. cat >>confdefs.h <<_ACEOF
  18082. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  18083. _ACEOF
  18084. definitely_enable_video_x11_xcursor=yes
  18085. else
  18086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  18087. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  18088. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  18089. $as_echo_n "(cached) " >&6
  18090. else
  18091. ac_check_lib_save_LIBS=$LIBS
  18092. LIBS="-lXcursor $LIBS"
  18093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18094. /* end confdefs.h. */
  18095. /* Override any GCC internal prototype to avoid an error.
  18096. Use char because int might match the return type of a GCC
  18097. builtin and then its argument prototype would still apply. */
  18098. #ifdef __cplusplus
  18099. extern "C"
  18100. #endif
  18101. char XcursorImageCreate ();
  18102. int
  18103. main ()
  18104. {
  18105. return XcursorImageCreate ();
  18106. ;
  18107. return 0;
  18108. }
  18109. _ACEOF
  18110. if ac_fn_c_try_link "$LINENO"; then :
  18111. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  18112. else
  18113. ac_cv_lib_Xcursor_XcursorImageCreate=no
  18114. fi
  18115. rm -f core conftest.err conftest.$ac_objext \
  18116. conftest$ac_exeext conftest.$ac_ext
  18117. LIBS=$ac_check_lib_save_LIBS
  18118. fi
  18119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  18120. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  18121. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  18122. have_xcursor_lib=yes
  18123. fi
  18124. if test x$have_xcursor_lib = xyes ; then
  18125. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  18126. definitely_enable_video_x11_xcursor=yes
  18127. fi
  18128. fi
  18129. fi
  18130. fi
  18131. if test x$definitely_enable_video_x11_xcursor = xyes; then
  18132. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  18133. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  18134. fi
  18135. # Check whether --enable-video-x11-xdbe was given.
  18136. if test "${enable_video_x11_xdbe+set}" = set; then :
  18137. enableval=$enable_video_x11_xdbe;
  18138. else
  18139. enable_video_x11_xdbe=yes
  18140. fi
  18141. if test x$enable_video_x11_xdbe = xyes; then
  18142. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  18143. "
  18144. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  18145. have_dbe_h_hdr=yes
  18146. else
  18147. have_dbe_h_hdr=no
  18148. fi
  18149. if test x$have_dbe_h_hdr = xyes; then
  18150. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  18151. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  18152. fi
  18153. fi
  18154. # Check whether --enable-video-x11-xinerama was given.
  18155. if test "${enable_video_x11_xinerama+set}" = set; then :
  18156. enableval=$enable_video_x11_xinerama;
  18157. else
  18158. enable_video_x11_xinerama=yes
  18159. fi
  18160. if test x$enable_video_x11_xinerama = xyes; then
  18161. definitely_enable_video_x11_xinerama=no
  18162. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  18163. "
  18164. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  18165. have_xinerama_h_hdr=yes
  18166. else
  18167. have_xinerama_h_hdr=no
  18168. fi
  18169. if test x$have_xinerama_h_hdr = xyes; then
  18170. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  18171. echo "-- dynamic libXinerama -> $xinerama_lib"
  18172. cat >>confdefs.h <<_ACEOF
  18173. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  18174. _ACEOF
  18175. definitely_enable_video_x11_xinerama=yes
  18176. else
  18177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  18178. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  18179. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  18180. $as_echo_n "(cached) " >&6
  18181. else
  18182. ac_check_lib_save_LIBS=$LIBS
  18183. LIBS="-lXinerama $LIBS"
  18184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18185. /* end confdefs.h. */
  18186. /* Override any GCC internal prototype to avoid an error.
  18187. Use char because int might match the return type of a GCC
  18188. builtin and then its argument prototype would still apply. */
  18189. #ifdef __cplusplus
  18190. extern "C"
  18191. #endif
  18192. char XineramaQueryExtension ();
  18193. int
  18194. main ()
  18195. {
  18196. return XineramaQueryExtension ();
  18197. ;
  18198. return 0;
  18199. }
  18200. _ACEOF
  18201. if ac_fn_c_try_link "$LINENO"; then :
  18202. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  18203. else
  18204. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  18205. fi
  18206. rm -f core conftest.err conftest.$ac_objext \
  18207. conftest$ac_exeext conftest.$ac_ext
  18208. LIBS=$ac_check_lib_save_LIBS
  18209. fi
  18210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  18211. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  18212. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  18213. have_xinerama_lib=yes
  18214. fi
  18215. if test x$have_xinerama_lib = xyes ; then
  18216. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  18217. definitely_enable_video_x11_xinerama=yes
  18218. fi
  18219. fi
  18220. fi
  18221. fi
  18222. if test x$definitely_enable_video_x11_xinerama = xyes; then
  18223. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  18224. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  18225. fi
  18226. # Check whether --enable-video-x11-xinput was given.
  18227. if test "${enable_video_x11_xinput+set}" = set; then :
  18228. enableval=$enable_video_x11_xinput;
  18229. else
  18230. enable_video_x11_xinput=yes
  18231. fi
  18232. if test x$enable_video_x11_xinput = xyes; then
  18233. definitely_enable_video_x11_xinput=no
  18234. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  18235. "
  18236. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  18237. have_xinput_h_hdr=yes
  18238. else
  18239. have_xinput_h_hdr=no
  18240. fi
  18241. if test x$have_xinput_h_hdr = xyes; then
  18242. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  18243. echo "-- dynamic libXi -> $xinput_lib"
  18244. cat >>confdefs.h <<_ACEOF
  18245. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  18246. _ACEOF
  18247. definitely_enable_video_x11_xinput=yes
  18248. else
  18249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  18250. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  18251. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  18252. $as_echo_n "(cached) " >&6
  18253. else
  18254. ac_check_lib_save_LIBS=$LIBS
  18255. LIBS="-lXi $LIBS"
  18256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18257. /* end confdefs.h. */
  18258. /* Override any GCC internal prototype to avoid an error.
  18259. Use char because int might match the return type of a GCC
  18260. builtin and then its argument prototype would still apply. */
  18261. #ifdef __cplusplus
  18262. extern "C"
  18263. #endif
  18264. char XOpenDevice ();
  18265. int
  18266. main ()
  18267. {
  18268. return XOpenDevice ();
  18269. ;
  18270. return 0;
  18271. }
  18272. _ACEOF
  18273. if ac_fn_c_try_link "$LINENO"; then :
  18274. ac_cv_lib_Xi_XOpenDevice=yes
  18275. else
  18276. ac_cv_lib_Xi_XOpenDevice=no
  18277. fi
  18278. rm -f core conftest.err conftest.$ac_objext \
  18279. conftest$ac_exeext conftest.$ac_ext
  18280. LIBS=$ac_check_lib_save_LIBS
  18281. fi
  18282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  18283. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  18284. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  18285. have_xinput_lib=yes
  18286. fi
  18287. if test x$have_xinput_lib = xyes ; then
  18288. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  18289. definitely_enable_video_x11_xinput=yes
  18290. fi
  18291. fi
  18292. fi
  18293. fi
  18294. if test x$definitely_enable_video_x11_xinput = xyes; then
  18295. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  18296. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  18297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  18298. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  18299. have_xinput2_multitouch=no
  18300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18301. /* end confdefs.h. */
  18302. #include <X11/Xlib.h>
  18303. #include <X11/Xproto.h>
  18304. #include <X11/extensions/XInput2.h>
  18305. int
  18306. main ()
  18307. {
  18308. int event_type = XI_TouchBegin;
  18309. XITouchClassInfo *t;
  18310. ;
  18311. return 0;
  18312. }
  18313. _ACEOF
  18314. if ac_fn_c_try_compile "$LINENO"; then :
  18315. have_xinput2_multitouch=yes
  18316. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  18317. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  18318. fi
  18319. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  18321. $as_echo "$have_xinput2_multitouch" >&6; }
  18322. fi
  18323. # Check whether --enable-video-x11-xrandr was given.
  18324. if test "${enable_video_x11_xrandr+set}" = set; then :
  18325. enableval=$enable_video_x11_xrandr;
  18326. else
  18327. enable_video_x11_xrandr=yes
  18328. fi
  18329. if test x$enable_video_x11_xrandr = xyes; then
  18330. definitely_enable_video_x11_xrandr=no
  18331. have_xrandr_h_hdr=no
  18332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18333. /* end confdefs.h. */
  18334. #include <X11/Xlib.h>
  18335. #include <X11/extensions/Xrandr.h>
  18336. int
  18337. main ()
  18338. {
  18339. XRRScreenResources *res = NULL;
  18340. ;
  18341. return 0;
  18342. }
  18343. _ACEOF
  18344. if ac_fn_c_try_compile "$LINENO"; then :
  18345. have_xrandr_h_hdr=yes
  18346. fi
  18347. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18348. if test x$have_xrandr_h_hdr = xyes; then
  18349. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  18350. echo "-- dynamic libXrandr -> $xrandr_lib"
  18351. cat >>confdefs.h <<_ACEOF
  18352. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  18353. _ACEOF
  18354. definitely_enable_video_x11_xrandr=yes
  18355. else
  18356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  18357. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  18358. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  18359. $as_echo_n "(cached) " >&6
  18360. else
  18361. ac_check_lib_save_LIBS=$LIBS
  18362. LIBS="-lXrandr $LIBS"
  18363. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18364. /* end confdefs.h. */
  18365. /* Override any GCC internal prototype to avoid an error.
  18366. Use char because int might match the return type of a GCC
  18367. builtin and then its argument prototype would still apply. */
  18368. #ifdef __cplusplus
  18369. extern "C"
  18370. #endif
  18371. char XRRQueryExtension ();
  18372. int
  18373. main ()
  18374. {
  18375. return XRRQueryExtension ();
  18376. ;
  18377. return 0;
  18378. }
  18379. _ACEOF
  18380. if ac_fn_c_try_link "$LINENO"; then :
  18381. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  18382. else
  18383. ac_cv_lib_Xrandr_XRRQueryExtension=no
  18384. fi
  18385. rm -f core conftest.err conftest.$ac_objext \
  18386. conftest$ac_exeext conftest.$ac_ext
  18387. LIBS=$ac_check_lib_save_LIBS
  18388. fi
  18389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  18390. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  18391. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  18392. have_xrandr_lib=yes
  18393. fi
  18394. if test x$have_xrandr_lib = xyes ; then
  18395. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  18396. definitely_enable_video_x11_xrandr=yes
  18397. fi
  18398. fi
  18399. fi
  18400. fi
  18401. if test x$definitely_enable_video_x11_xrandr = xyes; then
  18402. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  18403. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  18404. fi
  18405. # Check whether --enable-video-x11-scrnsaver was given.
  18406. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  18407. enableval=$enable_video_x11_scrnsaver;
  18408. else
  18409. enable_video_x11_scrnsaver=yes
  18410. fi
  18411. if test x$enable_video_x11_scrnsaver = xyes; then
  18412. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  18413. "
  18414. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  18415. have_scrnsaver_h_hdr=yes
  18416. else
  18417. have_scrnsaver_h_hdr=no
  18418. fi
  18419. if test x$have_scrnsaver_h_hdr = xyes; then
  18420. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  18421. echo "-- dynamic libXss -> $xss_lib"
  18422. cat >>confdefs.h <<_ACEOF
  18423. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  18424. _ACEOF
  18425. definitely_enable_video_x11_scrnsaver=yes
  18426. else
  18427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  18428. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  18429. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  18430. $as_echo_n "(cached) " >&6
  18431. else
  18432. ac_check_lib_save_LIBS=$LIBS
  18433. LIBS="-lXss $LIBS"
  18434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18435. /* end confdefs.h. */
  18436. /* Override any GCC internal prototype to avoid an error.
  18437. Use char because int might match the return type of a GCC
  18438. builtin and then its argument prototype would still apply. */
  18439. #ifdef __cplusplus
  18440. extern "C"
  18441. #endif
  18442. char XScreenSaverSuspend ();
  18443. int
  18444. main ()
  18445. {
  18446. return XScreenSaverSuspend ();
  18447. ;
  18448. return 0;
  18449. }
  18450. _ACEOF
  18451. if ac_fn_c_try_link "$LINENO"; then :
  18452. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  18453. else
  18454. ac_cv_lib_Xss_XScreenSaverSuspend=no
  18455. fi
  18456. rm -f core conftest.err conftest.$ac_objext \
  18457. conftest$ac_exeext conftest.$ac_ext
  18458. LIBS=$ac_check_lib_save_LIBS
  18459. fi
  18460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  18461. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  18462. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  18463. have_xss_lib=yes
  18464. fi
  18465. if test x$have_xss_lib = xyes ; then
  18466. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  18467. definitely_enable_video_x11_scrnsaver=yes
  18468. fi
  18469. fi
  18470. fi
  18471. fi
  18472. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  18473. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  18474. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  18475. fi
  18476. # Check whether --enable-video-x11-xshape was given.
  18477. if test "${enable_video_x11_xshape+set}" = set; then :
  18478. enableval=$enable_video_x11_xshape;
  18479. else
  18480. enable_video_x11_xshape=yes
  18481. fi
  18482. if test x$enable_video_x11_xshape = xyes; then
  18483. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  18484. "
  18485. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  18486. have_shape_h_hdr=yes
  18487. else
  18488. have_shape_h_hdr=no
  18489. fi
  18490. if test x$have_shape_h_hdr = xyes; then
  18491. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  18492. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  18493. fi
  18494. fi
  18495. # Check whether --enable-video-x11-vm was given.
  18496. if test "${enable_video_x11_vm+set}" = set; then :
  18497. enableval=$enable_video_x11_vm;
  18498. else
  18499. enable_video_x11_vm=yes
  18500. fi
  18501. if test x$enable_video_x11_vm = xyes; then
  18502. definitely_enable_video_x11_vm=no
  18503. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  18504. "
  18505. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  18506. have_vm_h_hdr=yes
  18507. else
  18508. have_vm_h_hdr=no
  18509. fi
  18510. if test x$have_vm_h_hdr = xyes; then
  18511. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  18512. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  18513. cat >>confdefs.h <<_ACEOF
  18514. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  18515. _ACEOF
  18516. definitely_enable_video_x11_vm=yes
  18517. else
  18518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  18519. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  18520. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  18521. $as_echo_n "(cached) " >&6
  18522. else
  18523. ac_check_lib_save_LIBS=$LIBS
  18524. LIBS="-lXxf86vm $LIBS"
  18525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18526. /* end confdefs.h. */
  18527. /* Override any GCC internal prototype to avoid an error.
  18528. Use char because int might match the return type of a GCC
  18529. builtin and then its argument prototype would still apply. */
  18530. #ifdef __cplusplus
  18531. extern "C"
  18532. #endif
  18533. char XF86VidModeQueryVersion ();
  18534. int
  18535. main ()
  18536. {
  18537. return XF86VidModeQueryVersion ();
  18538. ;
  18539. return 0;
  18540. }
  18541. _ACEOF
  18542. if ac_fn_c_try_link "$LINENO"; then :
  18543. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  18544. else
  18545. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  18546. fi
  18547. rm -f core conftest.err conftest.$ac_objext \
  18548. conftest$ac_exeext conftest.$ac_ext
  18549. LIBS=$ac_check_lib_save_LIBS
  18550. fi
  18551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  18552. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  18553. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  18554. have_vm_lib=yes
  18555. fi
  18556. if test x$have_vm_lib = xyes ; then
  18557. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  18558. definitely_enable_video_x11_vm=yes
  18559. fi
  18560. fi
  18561. fi
  18562. fi
  18563. if test x$definitely_enable_video_x11_vm = xyes; then
  18564. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  18565. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  18566. fi
  18567. fi
  18568. else
  18569. # Prevent Mesa from including X11 headers
  18570. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  18571. fi
  18572. }
  18573. CheckVivanteVideo()
  18574. {
  18575. # Check whether --enable-video-vivante was given.
  18576. if test "${enable_video_vivante+set}" = set; then :
  18577. enableval=$enable_video_vivante;
  18578. else
  18579. enable_video_vivante=yes
  18580. fi
  18581. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  18582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  18583. $as_echo_n "checking for Vivante VDK API... " >&6; }
  18584. have_vivante_vdk=no
  18585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18586. /* end confdefs.h. */
  18587. #define LINUX
  18588. #define EGL_API_FB
  18589. #include <gc_vdk.h>
  18590. int
  18591. main ()
  18592. {
  18593. ;
  18594. return 0;
  18595. }
  18596. _ACEOF
  18597. if ac_fn_c_try_compile "$LINENO"; then :
  18598. have_vivante_vdk=yes
  18599. fi
  18600. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  18602. $as_echo "$have_vivante_vdk" >&6; }
  18603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  18604. $as_echo_n "checking for Vivante FB API... " >&6; }
  18605. have_vivante_egl=no
  18606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18607. /* end confdefs.h. */
  18608. #define LINUX
  18609. #define EGL_API_FB
  18610. #include <EGL/eglvivante.h>
  18611. int
  18612. main ()
  18613. {
  18614. ;
  18615. return 0;
  18616. }
  18617. _ACEOF
  18618. if ac_fn_c_try_compile "$LINENO"; then :
  18619. have_vivante_egl=yes
  18620. fi
  18621. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  18623. $as_echo "$have_vivante_egl" >&6; }
  18624. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  18625. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  18626. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  18627. if test x$have_vivante_vdk = xyes; then
  18628. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  18629. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  18630. fi
  18631. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  18632. SUMMARY_video="${SUMMARY_video} vivante"
  18633. have_video=yes
  18634. fi
  18635. fi
  18636. }
  18637. CheckHaikuVideo()
  18638. {
  18639. if test x$enable_video = xyes; then
  18640. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  18641. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  18642. have_video=yes
  18643. SUMMARY_video="${SUMMARY_video} haiku"
  18644. fi
  18645. }
  18646. CheckCOCOA()
  18647. {
  18648. # Check whether --enable-video-cocoa was given.
  18649. if test "${enable_video_cocoa+set}" = set; then :
  18650. enableval=$enable_video_cocoa;
  18651. else
  18652. enable_video_cocoa=yes
  18653. fi
  18654. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  18655. save_CFLAGS="$CFLAGS"
  18656. CFLAGS="$CFLAGS -x objective-c"
  18657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  18658. $as_echo_n "checking for Cocoa framework... " >&6; }
  18659. have_cocoa=no
  18660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18661. /* end confdefs.h. */
  18662. #import <Cocoa/Cocoa.h>
  18663. int
  18664. main ()
  18665. {
  18666. ;
  18667. return 0;
  18668. }
  18669. _ACEOF
  18670. if ac_fn_c_try_compile "$LINENO"; then :
  18671. have_cocoa=yes
  18672. fi
  18673. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  18675. $as_echo "$have_cocoa" >&6; }
  18676. CFLAGS="$save_CFLAGS"
  18677. if test x$have_cocoa = xyes; then
  18678. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  18679. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  18680. SUMMARY_video="${SUMMARY_video} cocoa"
  18681. have_video=yes
  18682. fi
  18683. fi
  18684. }
  18685. CheckMETAL()
  18686. {
  18687. # Check whether --enable-video-metal was given.
  18688. if test "${enable_video_metal+set}" = set; then :
  18689. enableval=$enable_video_metal;
  18690. else
  18691. enable_video_metal=yes
  18692. fi
  18693. # Check whether --enable-render-metal was given.
  18694. if test "${enable_render_metal+set}" = set; then :
  18695. enableval=$enable_render_metal;
  18696. else
  18697. enable_render_metal=yes
  18698. fi
  18699. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  18700. save_CFLAGS="$CFLAGS"
  18701. CFLAGS="$CFLAGS -x objective-c"
  18702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  18703. $as_echo_n "checking for Metal framework... " >&6; }
  18704. have_metal=no
  18705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18706. /* end confdefs.h. */
  18707. #import <Cocoa/Cocoa.h>
  18708. #import <Metal/Metal.h>
  18709. #import <QuartzCore/CAMetalLayer.h>
  18710. #if TARGET_CPU_X86
  18711. #error Metal doesn't work on this configuration
  18712. #endif
  18713. int
  18714. main ()
  18715. {
  18716. ;
  18717. return 0;
  18718. }
  18719. _ACEOF
  18720. if ac_fn_c_try_compile "$LINENO"; then :
  18721. have_metal=yes
  18722. fi
  18723. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18724. CFLAGS="$save_CFLAGS"
  18725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  18726. $as_echo "$have_metal" >&6; }
  18727. if test x$have_metal = xyes; then
  18728. $as_echo "#define SDL_VIDEO_METAL 1" >>confdefs.h
  18729. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  18730. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  18731. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  18732. fi
  18733. SUMMARY_video="${SUMMARY_video} metal"
  18734. else
  18735. enable_video_metal=no
  18736. enable_render_metal=no
  18737. fi
  18738. fi
  18739. }
  18740. CheckDirectFB()
  18741. {
  18742. # Check whether --enable-video-directfb was given.
  18743. if test "${enable_video_directfb+set}" = set; then :
  18744. enableval=$enable_video_directfb;
  18745. else
  18746. enable_video_directfb=no
  18747. fi
  18748. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  18749. pkg_failed=no
  18750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  18751. $as_echo_n "checking for directfb >= 1.0.0... " >&6; }
  18752. if test -n "$DIRECTFB_CFLAGS"; then
  18753. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  18754. elif test -n "$PKG_CONFIG"; then
  18755. if test -n "$PKG_CONFIG" && \
  18756. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  18757. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  18758. ac_status=$?
  18759. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18760. test $ac_status = 0; }; then
  18761. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  18762. test "x$?" != "x0" && pkg_failed=yes
  18763. else
  18764. pkg_failed=yes
  18765. fi
  18766. else
  18767. pkg_failed=untried
  18768. fi
  18769. if test -n "$DIRECTFB_LIBS"; then
  18770. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  18771. elif test -n "$PKG_CONFIG"; then
  18772. if test -n "$PKG_CONFIG" && \
  18773. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  18774. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  18775. ac_status=$?
  18776. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18777. test $ac_status = 0; }; then
  18778. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  18779. test "x$?" != "x0" && pkg_failed=yes
  18780. else
  18781. pkg_failed=yes
  18782. fi
  18783. else
  18784. pkg_failed=untried
  18785. fi
  18786. if test $pkg_failed = yes; then
  18787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18788. $as_echo "no" >&6; }
  18789. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18790. _pkg_short_errors_supported=yes
  18791. else
  18792. _pkg_short_errors_supported=no
  18793. fi
  18794. if test $_pkg_short_errors_supported = yes; then
  18795. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  18796. else
  18797. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  18798. fi
  18799. # Put the nasty error message in config.log where it belongs
  18800. echo "$DIRECTFB_PKG_ERRORS" >&5
  18801. video_directfb=no
  18802. elif test $pkg_failed = untried; then
  18803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18804. $as_echo "no" >&6; }
  18805. video_directfb=no
  18806. else
  18807. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  18808. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  18809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18810. $as_echo "yes" >&6; }
  18811. video_directfb=yes
  18812. fi
  18813. if test x$video_directfb = xyes; then
  18814. # SuSE 11.1 installs directfb-config without directfb-devel
  18815. save_CPPFLAGS="$CPPFLAGS"
  18816. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  18817. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  18818. if test "x$ac_cv_header_directfb_h" = xyes; then :
  18819. have_directfb_hdr=yes
  18820. else
  18821. have_directfb_hdr=no
  18822. fi
  18823. CPPFLAGS="$save_CPPFLAGS"
  18824. video_directfb=$have_directfb_hdr
  18825. fi
  18826. if test x$video_directfb = xyes; then
  18827. # Check whether --enable-directfb-shared was given.
  18828. if test "${enable_directfb_shared+set}" = set; then :
  18829. enableval=$enable_directfb_shared;
  18830. else
  18831. enable_directfb_shared=yes
  18832. fi
  18833. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  18834. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  18835. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  18836. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  18837. directfb_shared=no
  18838. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18839. if test x$have_loadso != xyes && \
  18840. test x$enable_directfb_shared = xyes; then
  18841. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  18842. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  18843. fi
  18844. if test x$have_loadso = xyes && \
  18845. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  18846. directfb_shared=yes
  18847. echo "-- dynamic libdirectfb -> $directfb_lib"
  18848. cat >>confdefs.h <<_ACEOF
  18849. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  18850. _ACEOF
  18851. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  18852. else
  18853. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  18854. SUMMARY_video="${SUMMARY_video} directfb"
  18855. fi
  18856. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  18857. have_video=yes
  18858. fi
  18859. fi
  18860. }
  18861. CheckKMSDRM()
  18862. {
  18863. # Check whether --enable-video-kmsdrm was given.
  18864. if test "${enable_video_kmsdrm+set}" = set; then :
  18865. enableval=$enable_video_kmsdrm;
  18866. else
  18867. enable_video_kmsdrm=no
  18868. fi
  18869. if test x$enable_video = xyes && \
  18870. test x$enable_video_kmsdrm = xyes && \
  18871. test x$video_opengl_egl = xyes; then
  18872. video_kmsdrm=no
  18873. pkg_failed=no
  18874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  18875. $as_echo_n "checking for libdrm >= 1.4.82... " >&6; }
  18876. if test -n "$LIBDRM_CFLAGS"; then
  18877. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  18878. elif test -n "$PKG_CONFIG"; then
  18879. if test -n "$PKG_CONFIG" && \
  18880. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  18881. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  18882. ac_status=$?
  18883. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18884. test $ac_status = 0; }; then
  18885. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  18886. test "x$?" != "x0" && pkg_failed=yes
  18887. else
  18888. pkg_failed=yes
  18889. fi
  18890. else
  18891. pkg_failed=untried
  18892. fi
  18893. if test -n "$LIBDRM_LIBS"; then
  18894. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  18895. elif test -n "$PKG_CONFIG"; then
  18896. if test -n "$PKG_CONFIG" && \
  18897. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  18898. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  18899. ac_status=$?
  18900. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18901. test $ac_status = 0; }; then
  18902. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  18903. test "x$?" != "x0" && pkg_failed=yes
  18904. else
  18905. pkg_failed=yes
  18906. fi
  18907. else
  18908. pkg_failed=untried
  18909. fi
  18910. if test $pkg_failed = yes; then
  18911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18912. $as_echo "no" >&6; }
  18913. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18914. _pkg_short_errors_supported=yes
  18915. else
  18916. _pkg_short_errors_supported=no
  18917. fi
  18918. if test $_pkg_short_errors_supported = yes; then
  18919. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  18920. else
  18921. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  18922. fi
  18923. # Put the nasty error message in config.log where it belongs
  18924. echo "$LIBDRM_PKG_ERRORS" >&5
  18925. libdrm_avail=no
  18926. elif test $pkg_failed = untried; then
  18927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18928. $as_echo "no" >&6; }
  18929. libdrm_avail=no
  18930. else
  18931. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  18932. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  18933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18934. $as_echo "yes" >&6; }
  18935. libdrm_avail=yes
  18936. fi
  18937. pkg_failed=no
  18938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  18939. $as_echo_n "checking for gbm >= 11.1.0... " >&6; }
  18940. if test -n "$LIBGBM_CFLAGS"; then
  18941. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  18942. elif test -n "$PKG_CONFIG"; then
  18943. if test -n "$PKG_CONFIG" && \
  18944. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  18945. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  18946. ac_status=$?
  18947. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18948. test $ac_status = 0; }; then
  18949. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  18950. test "x$?" != "x0" && pkg_failed=yes
  18951. else
  18952. pkg_failed=yes
  18953. fi
  18954. else
  18955. pkg_failed=untried
  18956. fi
  18957. if test -n "$LIBGBM_LIBS"; then
  18958. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  18959. elif test -n "$PKG_CONFIG"; then
  18960. if test -n "$PKG_CONFIG" && \
  18961. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  18962. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  18963. ac_status=$?
  18964. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18965. test $ac_status = 0; }; then
  18966. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  18967. test "x$?" != "x0" && pkg_failed=yes
  18968. else
  18969. pkg_failed=yes
  18970. fi
  18971. else
  18972. pkg_failed=untried
  18973. fi
  18974. if test $pkg_failed = yes; then
  18975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18976. $as_echo "no" >&6; }
  18977. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18978. _pkg_short_errors_supported=yes
  18979. else
  18980. _pkg_short_errors_supported=no
  18981. fi
  18982. if test $_pkg_short_errors_supported = yes; then
  18983. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  18984. else
  18985. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  18986. fi
  18987. # Put the nasty error message in config.log where it belongs
  18988. echo "$LIBGBM_PKG_ERRORS" >&5
  18989. libgbm_avail=no
  18990. elif test $pkg_failed = untried; then
  18991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18992. $as_echo "no" >&6; }
  18993. libgbm_avail=no
  18994. else
  18995. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  18996. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  18997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18998. $as_echo "yes" >&6; }
  18999. libgbm_avail=yes
  19000. fi
  19001. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  19002. video_kmsdrm=yes
  19003. fi
  19004. if test x$video_kmsdrm = xyes; then
  19005. # Check whether --enable-kmsdrm-shared was given.
  19006. if test "${enable_kmsdrm_shared+set}" = set; then :
  19007. enableval=$enable_kmsdrm_shared;
  19008. else
  19009. enable_kmsdrm_shared=yes
  19010. fi
  19011. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  19012. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  19013. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  19014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  19015. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  19016. kmsdrm_shared=no
  19017. drm_lib=`find_lib "libdrm.so.*" "$DRM_LIBS"`
  19018. gbm_lib=`find_lib "libgbm.so.*" "$DRM_LIBS"`
  19019. if test x$have_loadso != xyes && \
  19020. test x$enable_kmsdrm_shared = xyes; then
  19021. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  19022. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  19023. fi
  19024. if test x$have_loadso = xyes && \
  19025. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  19026. kmsdrm_shared=yes
  19027. cat >>confdefs.h <<_ACEOF
  19028. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  19029. _ACEOF
  19030. cat >>confdefs.h <<_ACEOF
  19031. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  19032. _ACEOF
  19033. cat >>confdefs.h <<_ACEOF
  19034. #define HAVE_KMSDRM_SHARED "TRUE"
  19035. _ACEOF
  19036. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  19037. else
  19038. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  19039. SUMMARY_video="${SUMMARY_video} kmsdrm"
  19040. fi
  19041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  19042. $as_echo "$kmsdrm_shared" >&6; }
  19043. have_video=yes
  19044. fi
  19045. fi
  19046. }
  19047. CheckDummyVideo()
  19048. {
  19049. # Check whether --enable-video-dummy was given.
  19050. if test "${enable_video_dummy+set}" = set; then :
  19051. enableval=$enable_video_dummy;
  19052. else
  19053. enable_video_dummy=yes
  19054. fi
  19055. if test x$enable_video_dummy = xyes; then
  19056. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  19057. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  19058. have_video=yes
  19059. SUMMARY_video="${SUMMARY_video} dummy"
  19060. fi
  19061. }
  19062. CheckQNXVideo()
  19063. {
  19064. if test x$enable_video = xyes; then
  19065. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  19066. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  19067. have_video=yes
  19068. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  19069. SUMMARY_video="${SUMMARY_video} qnx"
  19070. fi
  19071. }
  19072. CheckQNXAudio()
  19073. {
  19074. if test x$enable_audio = xyes; then
  19075. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  19076. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  19077. have_audio=yes
  19078. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  19079. SUMMARY_audio="${SUMMARY_audio} qsa"
  19080. fi
  19081. }
  19082. # Check whether --enable-video-opengl was given.
  19083. if test "${enable_video_opengl+set}" = set; then :
  19084. enableval=$enable_video_opengl;
  19085. else
  19086. enable_video_opengl=yes
  19087. fi
  19088. CheckOpenGLX11()
  19089. {
  19090. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  19092. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  19093. video_opengl=no
  19094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19095. /* end confdefs.h. */
  19096. #include <GL/gl.h>
  19097. #include <GL/glx.h>
  19098. int
  19099. main ()
  19100. {
  19101. ;
  19102. return 0;
  19103. }
  19104. _ACEOF
  19105. if ac_fn_c_try_compile "$LINENO"; then :
  19106. video_opengl=yes
  19107. fi
  19108. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  19110. $as_echo "$video_opengl" >&6; }
  19111. if test x$video_opengl = xyes; then
  19112. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19113. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  19114. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19115. SUMMARY_video="${SUMMARY_video} opengl"
  19116. fi
  19117. fi
  19118. }
  19119. # Check whether --enable-video-opengles was given.
  19120. if test "${enable_video_opengles+set}" = set; then :
  19121. enableval=$enable_video_opengles;
  19122. else
  19123. enable_video_opengles=yes
  19124. fi
  19125. # Check whether --enable-video-opengles1 was given.
  19126. if test "${enable_video_opengles1+set}" = set; then :
  19127. enableval=$enable_video_opengles1;
  19128. else
  19129. enable_video_opengles1=yes
  19130. fi
  19131. # Check whether --enable-video-opengles2 was given.
  19132. if test "${enable_video_opengles2+set}" = set; then :
  19133. enableval=$enable_video_opengles2;
  19134. else
  19135. enable_video_opengles2=yes
  19136. fi
  19137. CheckOpenGLESX11()
  19138. {
  19139. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19141. $as_echo_n "checking for EGL support... " >&6; }
  19142. video_opengl_egl=no
  19143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19144. /* end confdefs.h. */
  19145. #define LINUX
  19146. #define EGL_API_FB
  19147. #define MESA_EGL_NO_X11_HEADERS
  19148. #define EGL_NO_X11
  19149. #include <EGL/egl.h>
  19150. #include <EGL/eglext.h>
  19151. int
  19152. main ()
  19153. {
  19154. ;
  19155. return 0;
  19156. }
  19157. _ACEOF
  19158. if ac_fn_c_try_compile "$LINENO"; then :
  19159. video_opengl_egl=yes
  19160. fi
  19161. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19163. $as_echo "$video_opengl_egl" >&6; }
  19164. if test x$video_opengl_egl = xyes; then
  19165. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19166. fi
  19167. if test x$enable_video_opengles1 = xyes; then
  19168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  19169. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  19170. video_opengles_v1=no
  19171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19172. /* end confdefs.h. */
  19173. #include <GLES/gl.h>
  19174. #include <GLES/glext.h>
  19175. int
  19176. main ()
  19177. {
  19178. ;
  19179. return 0;
  19180. }
  19181. _ACEOF
  19182. if ac_fn_c_try_compile "$LINENO"; then :
  19183. video_opengles_v1=yes
  19184. fi
  19185. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  19187. $as_echo "$video_opengles_v1" >&6; }
  19188. if test x$video_opengles_v1 = xyes; then
  19189. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  19190. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  19191. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19192. fi
  19193. fi
  19194. if test x$enable_video_opengles2 = xyes; then
  19195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19196. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19197. video_opengles_v2=no
  19198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19199. /* end confdefs.h. */
  19200. #include <GLES2/gl2.h>
  19201. #include <GLES2/gl2ext.h>
  19202. int
  19203. main ()
  19204. {
  19205. ;
  19206. return 0;
  19207. }
  19208. _ACEOF
  19209. if ac_fn_c_try_compile "$LINENO"; then :
  19210. video_opengles_v2=yes
  19211. fi
  19212. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19214. $as_echo "$video_opengles_v2" >&6; }
  19215. if test x$video_opengles_v2 = xyes; then
  19216. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19217. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19218. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19219. fi
  19220. fi
  19221. fi
  19222. }
  19223. CheckEGLKMSDRM()
  19224. {
  19225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19226. $as_echo_n "checking for EGL support... " >&6; }
  19227. video_opengl_egl=no
  19228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19229. /* end confdefs.h. */
  19230. #define LINUX
  19231. #define EGL_API_FB
  19232. #define MESA_EGL_NO_X11_HEADERS
  19233. #define EGL_NO_X11
  19234. #include <EGL/egl.h>
  19235. #include <EGL/eglext.h>
  19236. int
  19237. main ()
  19238. {
  19239. ;
  19240. return 0;
  19241. }
  19242. _ACEOF
  19243. if ac_fn_c_try_compile "$LINENO"; then :
  19244. video_opengl_egl=yes
  19245. fi
  19246. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19248. $as_echo "$video_opengl_egl" >&6; }
  19249. if test x$video_opengl_egl = xyes; then
  19250. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19251. fi
  19252. }
  19253. CheckWINDOWSGL()
  19254. {
  19255. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19256. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19257. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  19258. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19259. SUMMARY_video="${SUMMARY_video} opengl"
  19260. fi
  19261. }
  19262. CheckWINDOWSGLES()
  19263. {
  19264. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19266. $as_echo_n "checking for EGL support... " >&6; }
  19267. video_opengl_egl=no
  19268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19269. /* end confdefs.h. */
  19270. #include <EGL/egl.h>
  19271. int
  19272. main ()
  19273. {
  19274. ;
  19275. return 0;
  19276. }
  19277. _ACEOF
  19278. if ac_fn_c_try_compile "$LINENO"; then :
  19279. video_opengl_egl=yes
  19280. fi
  19281. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19283. $as_echo "$video_opengl_egl" >&6; }
  19284. if test x$video_opengl_egl = xyes; then
  19285. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19286. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19287. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19288. fi
  19289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19290. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19291. video_opengles_v2=no
  19292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19293. /* end confdefs.h. */
  19294. #include <GLES2/gl2.h>
  19295. #include <GLES2/gl2ext.h>
  19296. int
  19297. main ()
  19298. {
  19299. ;
  19300. return 0;
  19301. }
  19302. _ACEOF
  19303. if ac_fn_c_try_compile "$LINENO"; then :
  19304. video_opengles_v2=yes
  19305. fi
  19306. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19308. $as_echo "$video_opengles_v2" >&6; }
  19309. if test x$video_opengles_v2 = xyes; then
  19310. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19311. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19312. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19313. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19314. fi
  19315. fi
  19316. }
  19317. CheckHaikuGL()
  19318. {
  19319. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19320. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19321. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  19322. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19323. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  19324. SUMMARY_video="${SUMMARY_video} opengl"
  19325. fi
  19326. }
  19327. CheckMacGL()
  19328. {
  19329. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19330. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19331. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  19332. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19333. SUMMARY_video="${SUMMARY_video} opengl"
  19334. fi
  19335. }
  19336. CheckMacGLES()
  19337. {
  19338. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19339. video_opengl_egl=yes
  19340. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19341. video_opengles_v2=yes
  19342. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19343. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19344. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19345. fi
  19346. }
  19347. CheckEmscriptenGLES()
  19348. {
  19349. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19351. $as_echo_n "checking for EGL support... " >&6; }
  19352. video_opengl_egl=no
  19353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19354. /* end confdefs.h. */
  19355. #include <EGL/egl.h>
  19356. int
  19357. main ()
  19358. {
  19359. ;
  19360. return 0;
  19361. }
  19362. _ACEOF
  19363. if ac_fn_c_try_compile "$LINENO"; then :
  19364. video_opengl_egl=yes
  19365. fi
  19366. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19368. $as_echo "$video_opengl_egl" >&6; }
  19369. if test x$video_opengl_egl = xyes; then
  19370. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19371. fi
  19372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19373. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19374. video_opengles_v2=no
  19375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19376. /* end confdefs.h. */
  19377. #include <GLES2/gl2.h>
  19378. #include <GLES2/gl2ext.h>
  19379. int
  19380. main ()
  19381. {
  19382. ;
  19383. return 0;
  19384. }
  19385. _ACEOF
  19386. if ac_fn_c_try_compile "$LINENO"; then :
  19387. video_opengles_v2=yes
  19388. fi
  19389. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19391. $as_echo "$video_opengles_v2" >&6; }
  19392. if test x$video_opengles_v2 = xyes; then
  19393. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19394. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19395. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19396. fi
  19397. fi
  19398. }
  19399. # Check whether --enable-video-vulkan was given.
  19400. if test "${enable_video_vulkan+set}" = set; then :
  19401. enableval=$enable_video_vulkan;
  19402. else
  19403. enable_video_vulkan=yes
  19404. fi
  19405. CheckVulkan()
  19406. {
  19407. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  19408. case "$host" in
  19409. *-*-android*)
  19410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19411. /* end confdefs.h. */
  19412. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  19413. #error Vulkan doesn't work on this configuration
  19414. #endif
  19415. int
  19416. main ()
  19417. {
  19418. ;
  19419. return 0;
  19420. }
  19421. _ACEOF
  19422. if ac_fn_c_try_compile "$LINENO"; then :
  19423. else
  19424. enable_video_vulkan=no
  19425. fi
  19426. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19427. ;;
  19428. *-*-darwin*)
  19429. save_CFLAGS="$CFLAGS"
  19430. CFLAGS="$CFLAGS -x objective-c"
  19431. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19432. /* end confdefs.h. */
  19433. #include <Cocoa/Cocoa.h>
  19434. #include <Metal/Metal.h>
  19435. #include <QuartzCore/CAMetalLayer.h>
  19436. #if TARGET_CPU_X86
  19437. #error Vulkan doesn't work on this configuration
  19438. #endif
  19439. int
  19440. main ()
  19441. {
  19442. ;
  19443. return 0;
  19444. }
  19445. _ACEOF
  19446. if ac_fn_c_try_compile "$LINENO"; then :
  19447. else
  19448. enable_video_vulkan=no
  19449. fi
  19450. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19451. CFLAGS="$save_CFLAGS"
  19452. ;;
  19453. *)
  19454. ;;
  19455. esac
  19456. if test x$enable_video_vulkan = xno; then
  19457. # For reasons I am totally unable to see, I get an undefined macro error if
  19458. # I put this in the AC_TRY_COMPILE.
  19459. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  19460. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  19461. fi
  19462. fi
  19463. if test x$enable_video_vulkan = xyes; then
  19464. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  19465. SUMMARY_video="${SUMMARY_video} vulkan"
  19466. fi
  19467. }
  19468. CheckInputEvents()
  19469. {
  19470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  19471. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  19472. use_input_events=no
  19473. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19474. /* end confdefs.h. */
  19475. #include <linux/input.h>
  19476. int
  19477. main ()
  19478. {
  19479. #ifndef EVIOCGNAME
  19480. #error EVIOCGNAME() ioctl not available
  19481. #endif
  19482. ;
  19483. return 0;
  19484. }
  19485. _ACEOF
  19486. if ac_fn_c_try_compile "$LINENO"; then :
  19487. use_input_events=yes
  19488. fi
  19489. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  19491. $as_echo "$use_input_events" >&6; }
  19492. if test x$use_input_events = xyes; then
  19493. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  19494. SUMMARY_input="${SUMMARY_input} linuxev"
  19495. fi
  19496. }
  19497. CheckInputKD()
  19498. {
  19499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  19500. $as_echo_n "checking for Linux kd.h... " >&6; }
  19501. use_input_kd=no
  19502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19503. /* end confdefs.h. */
  19504. #include <linux/kd.h>
  19505. #include <linux/keyboard.h>
  19506. int
  19507. main ()
  19508. {
  19509. struct kbentry kbe;
  19510. kbe.kb_table = KG_CTRL;
  19511. ioctl(0, KDGKBENT, &kbe);
  19512. ;
  19513. return 0;
  19514. }
  19515. _ACEOF
  19516. if ac_fn_c_try_compile "$LINENO"; then :
  19517. use_input_kd=yes
  19518. fi
  19519. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  19521. $as_echo "$use_input_kd" >&6; }
  19522. if test x$use_input_kd = xyes; then
  19523. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  19524. SUMMARY_input="${SUMMARY_input} linuxkd"
  19525. fi
  19526. }
  19527. CheckInputKBIO()
  19528. {
  19529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  19530. $as_echo_n "checking for FreeBSD kbio.h... " >&6; }
  19531. use_input_kbio=no
  19532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19533. /* end confdefs.h. */
  19534. #include <sys/kbio.h>
  19535. #include <sys/ioctl.h>
  19536. int
  19537. main ()
  19538. {
  19539. accentmap_t accTable;
  19540. ioctl(0, KDENABIO, 1);
  19541. ;
  19542. return 0;
  19543. }
  19544. _ACEOF
  19545. if ac_fn_c_try_compile "$LINENO"; then :
  19546. use_input_kbio=yes
  19547. fi
  19548. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  19550. $as_echo "$use_input_kbio" >&6; }
  19551. if test x$use_input_kbio = xyes; then
  19552. $as_echo "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  19553. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  19554. fi
  19555. }
  19556. CheckInputWSCONS()
  19557. {
  19558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  19559. $as_echo_n "checking for OpenBSD wscons... " >&6; }
  19560. use_input_wscons=no
  19561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19562. /* end confdefs.h. */
  19563. #include <sys/time.h>
  19564. #include <dev/wscons/wsconsio.h>
  19565. #include <dev/wscons/wsksymdef.h>
  19566. #include <dev/wscons/wsksymvar.h>
  19567. #include <sys/ioctl.h>
  19568. int
  19569. main ()
  19570. {
  19571. struct wskbd_map_data data;
  19572. ioctl(0, WSKBDIO_GETMAP, &data);
  19573. ;
  19574. return 0;
  19575. }
  19576. _ACEOF
  19577. if ac_fn_c_try_compile "$LINENO"; then :
  19578. use_input_wscons=yes
  19579. fi
  19580. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  19582. $as_echo "$use_input_wscons" >&6; }
  19583. if test x$use_input_wscons = xyes; then
  19584. $as_echo "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  19585. SUMMARY_input="${SUMMARY_input} wscons"
  19586. fi
  19587. }
  19588. CheckLibUDev()
  19589. {
  19590. # Check whether --enable-libudev was given.
  19591. if test "${enable_libudev+set}" = set; then :
  19592. enableval=$enable_libudev;
  19593. else
  19594. enable_libudev=yes
  19595. fi
  19596. if test x$enable_libudev = xyes; then
  19597. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  19598. if test "x$ac_cv_header_libudev_h" = xyes; then :
  19599. have_libudev_h_hdr=yes
  19600. else
  19601. have_libudev_h_hdr=no
  19602. fi
  19603. if test x$have_libudev_h_hdr = xyes; then
  19604. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  19605. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19606. if test x$udev_lib != x; then
  19607. echo "-- dynamic udev -> $udev_lib"
  19608. cat >>confdefs.h <<_ACEOF
  19609. #define SDL_UDEV_DYNAMIC "$udev_lib"
  19610. _ACEOF
  19611. fi
  19612. fi
  19613. fi
  19614. }
  19615. CheckDBus()
  19616. {
  19617. # Check whether --enable-dbus was given.
  19618. if test "${enable_dbus+set}" = set; then :
  19619. enableval=$enable_dbus;
  19620. else
  19621. enable_dbus=yes
  19622. fi
  19623. if test x$enable_dbus = xyes; then
  19624. pkg_failed=no
  19625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  19626. $as_echo_n "checking for dbus-1... " >&6; }
  19627. if test -n "$DBUS_CFLAGS"; then
  19628. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  19629. elif test -n "$PKG_CONFIG"; then
  19630. if test -n "$PKG_CONFIG" && \
  19631. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19632. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19633. ac_status=$?
  19634. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19635. test $ac_status = 0; }; then
  19636. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  19637. test "x$?" != "x0" && pkg_failed=yes
  19638. else
  19639. pkg_failed=yes
  19640. fi
  19641. else
  19642. pkg_failed=untried
  19643. fi
  19644. if test -n "$DBUS_LIBS"; then
  19645. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  19646. elif test -n "$PKG_CONFIG"; then
  19647. if test -n "$PKG_CONFIG" && \
  19648. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19649. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19650. ac_status=$?
  19651. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19652. test $ac_status = 0; }; then
  19653. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  19654. test "x$?" != "x0" && pkg_failed=yes
  19655. else
  19656. pkg_failed=yes
  19657. fi
  19658. else
  19659. pkg_failed=untried
  19660. fi
  19661. if test $pkg_failed = yes; then
  19662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19663. $as_echo "no" >&6; }
  19664. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19665. _pkg_short_errors_supported=yes
  19666. else
  19667. _pkg_short_errors_supported=no
  19668. fi
  19669. if test $_pkg_short_errors_supported = yes; then
  19670. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  19671. else
  19672. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  19673. fi
  19674. # Put the nasty error message in config.log where it belongs
  19675. echo "$DBUS_PKG_ERRORS" >&5
  19676. have_dbus=no
  19677. elif test $pkg_failed = untried; then
  19678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19679. $as_echo "no" >&6; }
  19680. have_dbus=no
  19681. else
  19682. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  19683. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  19684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19685. $as_echo "yes" >&6; }
  19686. have_dbus=yes
  19687. fi
  19688. save_CPPFLAGS="$CPPFLAGS"
  19689. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  19690. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  19691. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  19692. have_dbus_dbus_h_hdr=yes
  19693. else
  19694. have_dbus_dbus_h_hdr=no
  19695. fi
  19696. CPPFLAGS="$save_CPPFLAGS"
  19697. if test x$have_dbus_dbus_h_hdr = xyes; then
  19698. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  19699. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  19700. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  19701. fi
  19702. fi
  19703. }
  19704. CheckIME()
  19705. {
  19706. # Check whether --enable-ime was given.
  19707. if test "${enable_ime+set}" = set; then :
  19708. enableval=$enable_ime;
  19709. else
  19710. enable_ime=yes
  19711. fi
  19712. if test x$enable_ime = xyes; then
  19713. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  19714. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  19715. fi
  19716. }
  19717. CheckInotify()
  19718. {
  19719. save_LIBS="$LIBS"
  19720. case "$host" in
  19721. *-*-freebsd*) LIBS="$LIBS -linotify"
  19722. ;;
  19723. esac
  19724. for ac_header in sys/inotify.h
  19725. do :
  19726. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  19727. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  19728. cat >>confdefs.h <<_ACEOF
  19729. #define HAVE_SYS_INOTIFY_H 1
  19730. _ACEOF
  19731. have_inotify_inotify_h_hdr=yes
  19732. fi
  19733. done
  19734. for ac_func in inotify_init
  19735. do :
  19736. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  19737. if test "x$ac_cv_func_inotify_init" = xyes; then :
  19738. cat >>confdefs.h <<_ACEOF
  19739. #define HAVE_INOTIFY_INIT 1
  19740. _ACEOF
  19741. have_inotify=yes
  19742. fi
  19743. done
  19744. for ac_func in inotify_init1
  19745. do :
  19746. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  19747. if test "x$ac_cv_func_inotify_init1" = xyes; then :
  19748. cat >>confdefs.h <<_ACEOF
  19749. #define HAVE_INOTIFY_INIT1 1
  19750. _ACEOF
  19751. fi
  19752. done
  19753. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  19754. $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
  19755. case "$host" in
  19756. *-*-freebsd*)
  19757. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  19758. ;;
  19759. esac
  19760. fi
  19761. LIBS="$save_LIBS"
  19762. }
  19763. CheckIBus()
  19764. {
  19765. # Check whether --enable-ibus was given.
  19766. if test "${enable_ibus+set}" = set; then :
  19767. enableval=$enable_ibus;
  19768. else
  19769. enable_ibus=yes
  19770. fi
  19771. if test x$enable_ibus = xyes; then
  19772. pkg_failed=no
  19773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  19774. $as_echo_n "checking for ibus-1.0... " >&6; }
  19775. if test -n "$IBUS_CFLAGS"; then
  19776. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  19777. elif test -n "$PKG_CONFIG"; then
  19778. if test -n "$PKG_CONFIG" && \
  19779. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  19780. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  19781. ac_status=$?
  19782. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19783. test $ac_status = 0; }; then
  19784. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  19785. test "x$?" != "x0" && pkg_failed=yes
  19786. else
  19787. pkg_failed=yes
  19788. fi
  19789. else
  19790. pkg_failed=untried
  19791. fi
  19792. if test -n "$IBUS_LIBS"; then
  19793. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  19794. elif test -n "$PKG_CONFIG"; then
  19795. if test -n "$PKG_CONFIG" && \
  19796. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  19797. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  19798. ac_status=$?
  19799. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19800. test $ac_status = 0; }; then
  19801. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  19802. test "x$?" != "x0" && pkg_failed=yes
  19803. else
  19804. pkg_failed=yes
  19805. fi
  19806. else
  19807. pkg_failed=untried
  19808. fi
  19809. if test $pkg_failed = yes; then
  19810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19811. $as_echo "no" >&6; }
  19812. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19813. _pkg_short_errors_supported=yes
  19814. else
  19815. _pkg_short_errors_supported=no
  19816. fi
  19817. if test $_pkg_short_errors_supported = yes; then
  19818. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  19819. else
  19820. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  19821. fi
  19822. # Put the nasty error message in config.log where it belongs
  19823. echo "$IBUS_PKG_ERRORS" >&5
  19824. have_ibus=no
  19825. elif test $pkg_failed = untried; then
  19826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19827. $as_echo "no" >&6; }
  19828. have_ibus=no
  19829. else
  19830. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  19831. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  19832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19833. $as_echo "yes" >&6; }
  19834. have_ibus=yes
  19835. fi
  19836. save_CPPFLAGS="$CPPFLAGS"
  19837. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  19838. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  19839. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  19840. have_ibus_ibus_h_hdr=yes
  19841. else
  19842. have_ibus_ibus_h_hdr=no
  19843. fi
  19844. CPPFLAGS="$save_CPPFLAGS"
  19845. if test x$have_ibus_ibus_h_hdr = xyes; then
  19846. if test x$enable_ime != xyes; then
  19847. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  19848. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  19849. have_ibus_ibus_h_hdr=no
  19850. elif test x$enable_dbus != xyes; then
  19851. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  19852. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  19853. have_ibus_ibus_h_hdr=no
  19854. elif test x$have_inotify_inotify_h_hdr != xyes; then
  19855. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  19856. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  19857. have_ibus_ibus_h_hdr=no
  19858. else
  19859. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  19860. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  19861. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  19862. fi
  19863. fi
  19864. fi
  19865. }
  19866. CheckFcitx()
  19867. {
  19868. # Check whether --enable-fcitx was given.
  19869. if test "${enable_fcitx+set}" = set; then :
  19870. enableval=$enable_fcitx;
  19871. else
  19872. enable_fcitx=yes
  19873. fi
  19874. if test x$enable_fcitx = xyes; then
  19875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  19876. $as_echo_n "checking for fcitx support... " >&6; }
  19877. have_fcitx=no
  19878. if test x$enable_ime != xyes; then
  19879. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  19880. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  19881. elif test x$have_dbus_dbus_h_hdr != xyes; then
  19882. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  19883. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  19884. else
  19885. have_fcitx=yes
  19886. $as_echo "#define HAVE_FCITX 1" >>confdefs.h
  19887. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  19888. fi
  19889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  19890. $as_echo "$have_fcitx" >&6; }
  19891. fi
  19892. }
  19893. CheckJoystickMFI()
  19894. {
  19895. # Check whether --enable-joystick-mfi was given.
  19896. if test "${enable_joystick_mfi+set}" = set; then :
  19897. enableval=$enable_joystick_mfi;
  19898. else
  19899. enable_joystick_mfi=yes
  19900. fi
  19901. if test x$enable_joystick_mfi = xyes; then
  19902. save_CFLAGS="$CFLAGS"
  19903. save_LDFLAGS="$LDFLAGS"
  19904. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  19905. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  19906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  19907. $as_echo_n "checking for GameController framework... " >&6; }
  19908. enable_joystick_mfi=no
  19909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19910. /* end confdefs.h. */
  19911. #include <AvailabilityMacros.h>
  19912. #include <TargetConditionals.h>
  19913. #import <GameController/GameController.h>
  19914. int
  19915. main ()
  19916. {
  19917. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  19918. #error GameController framework doesn't work on this configuration
  19919. #endif
  19920. #if TARGET_CPU_X86
  19921. #error GameController framework doesn't work on this configuration
  19922. #endif
  19923. ;
  19924. return 0;
  19925. }
  19926. _ACEOF
  19927. if ac_fn_c_try_link "$LINENO"; then :
  19928. enable_joystick_mfi=yes
  19929. fi
  19930. rm -f core conftest.err conftest.$ac_objext \
  19931. conftest$ac_exeext conftest.$ac_ext
  19932. CFLAGS="$save_CFLAGS"
  19933. LDFLAGS="$save_LDFLAGS"
  19934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  19935. $as_echo "$enable_joystick_mfi" >&6; }
  19936. if test x$enable_joystick_mfi = xyes; then
  19937. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  19938. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  19939. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  19940. fi
  19941. fi
  19942. }
  19943. CheckPTHREAD()
  19944. {
  19945. # Check whether --enable-pthreads was given.
  19946. if test "${enable_pthreads+set}" = set; then :
  19947. enableval=$enable_pthreads;
  19948. else
  19949. enable_pthreads=yes
  19950. fi
  19951. # Check whether --enable-pthread-sem was given.
  19952. if test "${enable_pthread_sem+set}" = set; then :
  19953. enableval=$enable_pthread_sem;
  19954. else
  19955. enable_pthread_sem=yes
  19956. fi
  19957. case "$host" in
  19958. *-*-android*)
  19959. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19960. pthread_lib=""
  19961. ;;
  19962. *-*-linux*|*-*-uclinux*)
  19963. pthread_cflags="-D_REENTRANT"
  19964. pthread_lib="-lpthread"
  19965. ;;
  19966. *-*-bsdi*)
  19967. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19968. pthread_lib=""
  19969. ;;
  19970. *-*-darwin*)
  19971. pthread_cflags="-D_THREAD_SAFE"
  19972. # causes Carbon.p complaints?
  19973. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19974. ;;
  19975. *-*-freebsd*|*-*-dragonfly*)
  19976. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19977. pthread_lib="-pthread"
  19978. ;;
  19979. *-*-netbsd*)
  19980. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19981. pthread_lib="-lpthread"
  19982. ;;
  19983. *-*-openbsd*)
  19984. pthread_cflags="-D_REENTRANT"
  19985. pthread_lib="-pthread"
  19986. ;;
  19987. *-*-solaris2.9)
  19988. # From Solaris 9+, posix4's preferred name is rt.
  19989. pthread_cflags="-D_REENTRANT"
  19990. pthread_lib="-lpthread -lrt"
  19991. ;;
  19992. *-*-solaris2.10)
  19993. # Solaris 10+ merged pthread into libc.
  19994. pthread_cflags="-D_REENTRANT"
  19995. pthread_lib="-lrt"
  19996. ;;
  19997. *-*-solaris*)
  19998. # Solaris 11+ merged rt into libc.
  19999. pthread_cflags="-D_REENTRANT"
  20000. pthread_lib=""
  20001. ;;
  20002. *-*-sysv5*)
  20003. pthread_cflags="-D_REENTRANT -Kthread"
  20004. pthread_lib=""
  20005. ;;
  20006. *-*-aix*)
  20007. pthread_cflags="-D_REENTRANT -mthreads"
  20008. pthread_lib="-lpthread"
  20009. ;;
  20010. *-*-hpux11*)
  20011. pthread_cflags="-D_REENTRANT"
  20012. pthread_lib="-L/usr/lib -lpthread"
  20013. ;;
  20014. *-*-haiku*)
  20015. pthread_cflags="-D_REENTRANT"
  20016. pthread_lib=""
  20017. ;;
  20018. *-*-nto*)
  20019. pthread_cflags="-D_REENTRANT"
  20020. pthread_lib=""
  20021. ;;
  20022. *)
  20023. pthread_cflags="-D_REENTRANT"
  20024. pthread_lib="-lpthread"
  20025. ;;
  20026. esac
  20027. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  20028. # Save the original compiler flags and libraries
  20029. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20030. # Add the pthread compiler flags and libraries
  20031. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  20032. # Check to see if we have pthread support on this system
  20033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  20034. $as_echo_n "checking for pthreads... " >&6; }
  20035. use_pthreads=no
  20036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20037. /* end confdefs.h. */
  20038. #include <pthread.h>
  20039. int
  20040. main ()
  20041. {
  20042. pthread_attr_t type;
  20043. pthread_attr_init(&type);
  20044. ;
  20045. return 0;
  20046. }
  20047. _ACEOF
  20048. if ac_fn_c_try_link "$LINENO"; then :
  20049. use_pthreads=yes
  20050. fi
  20051. rm -f core conftest.err conftest.$ac_objext \
  20052. conftest$ac_exeext conftest.$ac_ext
  20053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  20054. $as_echo "$use_pthreads" >&6; }
  20055. # Restore the compiler flags and libraries
  20056. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20057. # Do futher testing if we have pthread support...
  20058. if test x$use_pthreads = xyes; then
  20059. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  20060. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  20061. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  20062. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  20063. # Save the original compiler flags and libraries
  20064. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20065. # Add the pthread compiler flags and libraries
  20066. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  20067. # Check to see if recursive mutexes are available
  20068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  20069. $as_echo_n "checking for recursive mutexes... " >&6; }
  20070. has_recursive_mutexes=no
  20071. if test x$has_recursive_mutexes = xno; then
  20072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20073. /* end confdefs.h. */
  20074. #define _GNU_SOURCE 1
  20075. #include <pthread.h>
  20076. int
  20077. main ()
  20078. {
  20079. pthread_mutexattr_t attr;
  20080. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  20081. ;
  20082. return 0;
  20083. }
  20084. _ACEOF
  20085. if ac_fn_c_try_link "$LINENO"; then :
  20086. has_recursive_mutexes=yes
  20087. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  20088. fi
  20089. rm -f core conftest.err conftest.$ac_objext \
  20090. conftest$ac_exeext conftest.$ac_ext
  20091. fi
  20092. if test x$has_recursive_mutexes = xno; then
  20093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20094. /* end confdefs.h. */
  20095. #define _GNU_SOURCE 1
  20096. #include <pthread.h>
  20097. int
  20098. main ()
  20099. {
  20100. pthread_mutexattr_t attr;
  20101. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  20102. ;
  20103. return 0;
  20104. }
  20105. _ACEOF
  20106. if ac_fn_c_try_link "$LINENO"; then :
  20107. has_recursive_mutexes=yes
  20108. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  20109. fi
  20110. rm -f core conftest.err conftest.$ac_objext \
  20111. conftest$ac_exeext conftest.$ac_ext
  20112. fi
  20113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  20114. $as_echo "$has_recursive_mutexes" >&6; }
  20115. # Check to see if pthread semaphore support is missing
  20116. if test x$enable_pthread_sem = xyes; then
  20117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  20118. $as_echo_n "checking for pthread semaphores... " >&6; }
  20119. have_pthread_sem=no
  20120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20121. /* end confdefs.h. */
  20122. #include <pthread.h>
  20123. #include <semaphore.h>
  20124. int
  20125. main ()
  20126. {
  20127. ;
  20128. return 0;
  20129. }
  20130. _ACEOF
  20131. if ac_fn_c_try_compile "$LINENO"; then :
  20132. have_pthread_sem=yes
  20133. fi
  20134. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  20136. $as_echo "$have_pthread_sem" >&6; }
  20137. fi
  20138. if test x$have_pthread_sem = xyes; then
  20139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  20140. $as_echo_n "checking for sem_timedwait... " >&6; }
  20141. have_sem_timedwait=no
  20142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20143. /* end confdefs.h. */
  20144. #include <pthread.h>
  20145. #include <semaphore.h>
  20146. int
  20147. main ()
  20148. {
  20149. sem_timedwait(NULL, NULL);
  20150. ;
  20151. return 0;
  20152. }
  20153. _ACEOF
  20154. if ac_fn_c_try_link "$LINENO"; then :
  20155. have_sem_timedwait=yes
  20156. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  20157. fi
  20158. rm -f core conftest.err conftest.$ac_objext \
  20159. conftest$ac_exeext conftest.$ac_ext
  20160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  20161. $as_echo "$have_sem_timedwait" >&6; }
  20162. fi
  20163. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  20164. "
  20165. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  20166. have_pthread_np_h=yes
  20167. else
  20168. have_pthread_np_h=no
  20169. fi
  20170. if test x$have_pthread_np_h = xyes; then
  20171. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  20172. fi
  20173. # Check to see if pthread naming is available
  20174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  20175. $as_echo_n "checking for pthread_setname_np... " >&6; }
  20176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20177. /* end confdefs.h. */
  20178. /* Override any GCC internal prototype to avoid an error.
  20179. Use char because int might match the return type of a GCC
  20180. builtin and then its argument prototype would still apply. */
  20181. #ifdef __cplusplus
  20182. extern "C"
  20183. #endif
  20184. char pthread_setname_np ();
  20185. int
  20186. main ()
  20187. {
  20188. return pthread_setname_np ();
  20189. ;
  20190. return 0;
  20191. }
  20192. _ACEOF
  20193. if ac_fn_c_try_link "$LINENO"; then :
  20194. has_pthread_setname_np=yes
  20195. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  20196. else
  20197. has_pthread_setname_np=no
  20198. fi
  20199. rm -f core conftest.err conftest.$ac_objext \
  20200. conftest$ac_exeext conftest.$ac_ext
  20201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  20202. $as_echo "$has_pthread_setname_np" >&6; }
  20203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  20204. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  20205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20206. /* end confdefs.h. */
  20207. /* Override any GCC internal prototype to avoid an error.
  20208. Use char because int might match the return type of a GCC
  20209. builtin and then its argument prototype would still apply. */
  20210. #ifdef __cplusplus
  20211. extern "C"
  20212. #endif
  20213. char pthread_set_name_np ();
  20214. int
  20215. main ()
  20216. {
  20217. return pthread_set_name_np ();
  20218. ;
  20219. return 0;
  20220. }
  20221. _ACEOF
  20222. if ac_fn_c_try_link "$LINENO"; then :
  20223. has_pthread_set_name_np=yes
  20224. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  20225. else
  20226. has_pthread_set_name_np=no
  20227. fi
  20228. rm -f core conftest.err conftest.$ac_objext \
  20229. conftest$ac_exeext conftest.$ac_ext
  20230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  20231. $as_echo "$has_pthread_set_name_np" >&6; }
  20232. # Restore the compiler flags and libraries
  20233. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20234. # Basic thread creation functions
  20235. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  20236. # Semaphores
  20237. # We can fake these with mutexes and condition variables if necessary
  20238. if test x$have_pthread_sem = xyes; then
  20239. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  20240. else
  20241. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  20242. fi
  20243. # Mutexes
  20244. # We can fake these with semaphores if necessary
  20245. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  20246. # Condition variables
  20247. # We can fake these with semaphores and mutexes if necessary
  20248. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  20249. # Thread local storage
  20250. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  20251. have_threads=yes
  20252. fi
  20253. fi
  20254. }
  20255. CheckWINDOWS()
  20256. {
  20257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  20258. $as_echo_n "checking Windows compiler... " >&6; }
  20259. have_win32_gcc=no
  20260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20261. /* end confdefs.h. */
  20262. #include <windows.h>
  20263. int
  20264. main ()
  20265. {
  20266. ;
  20267. return 0;
  20268. }
  20269. _ACEOF
  20270. if ac_fn_c_try_compile "$LINENO"; then :
  20271. have_win32_gcc=yes
  20272. fi
  20273. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  20275. $as_echo "$have_win32_gcc" >&6; }
  20276. if test x$have_win32_gcc != xyes; then
  20277. as_fn_error $? "
  20278. *** Your compiler ($CC) does not produce Windows executables!
  20279. " "$LINENO" 5
  20280. fi
  20281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  20282. $as_echo_n "checking Windows CE... " >&6; }
  20283. have_wince=no
  20284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20285. /* end confdefs.h. */
  20286. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  20287. #error This is not Windows CE
  20288. #endif
  20289. int
  20290. main ()
  20291. {
  20292. ;
  20293. return 0;
  20294. }
  20295. _ACEOF
  20296. if ac_fn_c_try_compile "$LINENO"; then :
  20297. have_wince=yes
  20298. as_fn_error $? "
  20299. *** Sorry, Windows CE is no longer supported.
  20300. " "$LINENO" 5
  20301. fi
  20302. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  20304. $as_echo "$have_wince" >&6; }
  20305. # This fixes Windows stack alignment with newer GCC
  20306. CheckStackBoundary
  20307. }
  20308. CheckDIRECTX()
  20309. {
  20310. # Check whether --enable-directx was given.
  20311. if test "${enable_directx+set}" = set; then :
  20312. enableval=$enable_directx;
  20313. else
  20314. enable_directx=yes
  20315. fi
  20316. if test x$enable_directx = xyes; then
  20317. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  20318. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  20319. have_d3d=yes
  20320. fi
  20321. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  20322. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  20323. have_d3d11=yes
  20324. fi
  20325. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  20326. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  20327. have_ddraw=yes
  20328. fi
  20329. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  20330. if test "x$ac_cv_header_dsound_h" = xyes; then :
  20331. have_dsound=yes
  20332. fi
  20333. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  20334. if test "x$ac_cv_header_dinput_h" = xyes; then :
  20335. have_dinput=yes
  20336. fi
  20337. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  20338. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  20339. have_dxgi=yes
  20340. fi
  20341. if test x$have_ddraw = xyes; then
  20342. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  20343. fi
  20344. if test x$have_dinput = xyes; then
  20345. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  20346. fi
  20347. if test x$have_dsound = xyes; then
  20348. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  20349. fi
  20350. if test x$have_dxgi = xyes; then
  20351. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  20352. fi
  20353. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  20354. # FIXME: ...so force it off for now.
  20355. case "$host" in
  20356. *-*-cygwin*)
  20357. have_dinput=false
  20358. ;;
  20359. esac
  20360. fi
  20361. # Check whether --enable-xinput was given.
  20362. if test "${enable_xinput+set}" = set; then :
  20363. enableval=$enable_xinput;
  20364. else
  20365. enable_xinput=yes
  20366. fi
  20367. if test x$enable_xinput = xyes; then
  20368. have_xinput_gamepadex=no
  20369. have_xinput_stateex=no
  20370. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  20371. if test "x$ac_cv_header_xinput_h" = xyes; then :
  20372. have_xinput=yes
  20373. fi
  20374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  20375. $as_echo_n "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  20376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20377. /* end confdefs.h. */
  20378. #include <windows.h>
  20379. #include <xinput.h>
  20380. XINPUT_GAMEPAD_EX x1;
  20381. int
  20382. main ()
  20383. {
  20384. ;
  20385. return 0;
  20386. }
  20387. _ACEOF
  20388. if ac_fn_c_try_compile "$LINENO"; then :
  20389. have_xinput_gamepadex=yes
  20390. fi
  20391. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  20393. $as_echo "$have_xinput_gamepadex" >&6; }
  20394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  20395. $as_echo_n "checking for struct XINPUT_STATE_EX... " >&6; }
  20396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20397. /* end confdefs.h. */
  20398. #include <windows.h>
  20399. #include <xinput.h>
  20400. XINPUT_STATE_EX s1;
  20401. int
  20402. main ()
  20403. {
  20404. ;
  20405. return 0;
  20406. }
  20407. _ACEOF
  20408. if ac_fn_c_try_compile "$LINENO"; then :
  20409. have_xinput_stateex=yes
  20410. fi
  20411. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  20413. $as_echo "$have_xinput_stateex" >&6; }
  20414. if test x$have_xinput = xyes; then
  20415. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  20416. fi
  20417. if test x$have_xinput_gamepadex = xyes; then
  20418. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  20419. fi
  20420. if test x$have_xinput_stateex = xyes; then
  20421. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  20422. fi
  20423. fi
  20424. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  20425. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  20426. have_wasapi=yes
  20427. fi
  20428. if test x$have_wasapi = xyes; then
  20429. $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  20430. fi
  20431. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  20432. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  20433. else
  20434. have_wasapi=no
  20435. fi
  20436. if test x$have_wasapi = xyes; then
  20437. $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  20438. fi
  20439. # Check whether --enable-wasapi was given.
  20440. if test "${enable_wasapi+set}" = set; then :
  20441. enableval=$enable_wasapi;
  20442. else
  20443. enable_wasapi=yes
  20444. fi
  20445. }
  20446. CheckDLOPEN()
  20447. {
  20448. # Check whether --enable-sdl-dlopen was given.
  20449. if test "${enable_sdl_dlopen+set}" = set; then :
  20450. enableval=$enable_sdl_dlopen;
  20451. else
  20452. enable_sdl_dlopen=yes
  20453. fi
  20454. if test x$enable_sdl_dlopen = xyes; then
  20455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  20456. $as_echo_n "checking for dlopen... " >&6; }
  20457. have_dlopen=no
  20458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20459. /* end confdefs.h. */
  20460. #include <dlfcn.h>
  20461. int
  20462. main ()
  20463. {
  20464. void *handle = dlopen("", RTLD_NOW);
  20465. const char *loaderror = (char *) dlerror();
  20466. ;
  20467. return 0;
  20468. }
  20469. _ACEOF
  20470. if ac_fn_c_try_compile "$LINENO"; then :
  20471. have_dlopen=yes
  20472. fi
  20473. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  20475. $as_echo "$have_dlopen" >&6; }
  20476. if test x$have_dlopen = xyes; then
  20477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  20478. $as_echo_n "checking for dlopen in -lc... " >&6; }
  20479. if ${ac_cv_lib_c_dlopen+:} false; then :
  20480. $as_echo_n "(cached) " >&6
  20481. else
  20482. ac_check_lib_save_LIBS=$LIBS
  20483. LIBS="-lc $LIBS"
  20484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20485. /* end confdefs.h. */
  20486. /* Override any GCC internal prototype to avoid an error.
  20487. Use char because int might match the return type of a GCC
  20488. builtin and then its argument prototype would still apply. */
  20489. #ifdef __cplusplus
  20490. extern "C"
  20491. #endif
  20492. char dlopen ();
  20493. int
  20494. main ()
  20495. {
  20496. return dlopen ();
  20497. ;
  20498. return 0;
  20499. }
  20500. _ACEOF
  20501. if ac_fn_c_try_link "$LINENO"; then :
  20502. ac_cv_lib_c_dlopen=yes
  20503. else
  20504. ac_cv_lib_c_dlopen=no
  20505. fi
  20506. rm -f core conftest.err conftest.$ac_objext \
  20507. conftest$ac_exeext conftest.$ac_ext
  20508. LIBS=$ac_check_lib_save_LIBS
  20509. fi
  20510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  20511. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  20512. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  20513. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20514. else
  20515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  20516. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  20517. if ${ac_cv_lib_dl_dlopen+:} false; then :
  20518. $as_echo_n "(cached) " >&6
  20519. else
  20520. ac_check_lib_save_LIBS=$LIBS
  20521. LIBS="-ldl $LIBS"
  20522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20523. /* end confdefs.h. */
  20524. /* Override any GCC internal prototype to avoid an error.
  20525. Use char because int might match the return type of a GCC
  20526. builtin and then its argument prototype would still apply. */
  20527. #ifdef __cplusplus
  20528. extern "C"
  20529. #endif
  20530. char dlopen ();
  20531. int
  20532. main ()
  20533. {
  20534. return dlopen ();
  20535. ;
  20536. return 0;
  20537. }
  20538. _ACEOF
  20539. if ac_fn_c_try_link "$LINENO"; then :
  20540. ac_cv_lib_dl_dlopen=yes
  20541. else
  20542. ac_cv_lib_dl_dlopen=no
  20543. fi
  20544. rm -f core conftest.err conftest.$ac_objext \
  20545. conftest$ac_exeext conftest.$ac_ext
  20546. LIBS=$ac_check_lib_save_LIBS
  20547. fi
  20548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  20549. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  20550. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  20551. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  20552. else
  20553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  20554. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  20555. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  20556. $as_echo_n "(cached) " >&6
  20557. else
  20558. ac_check_lib_save_LIBS=$LIBS
  20559. LIBS="-lltdl $LIBS"
  20560. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20561. /* end confdefs.h. */
  20562. /* Override any GCC internal prototype to avoid an error.
  20563. Use char because int might match the return type of a GCC
  20564. builtin and then its argument prototype would still apply. */
  20565. #ifdef __cplusplus
  20566. extern "C"
  20567. #endif
  20568. char dlopen ();
  20569. int
  20570. main ()
  20571. {
  20572. return dlopen ();
  20573. ;
  20574. return 0;
  20575. }
  20576. _ACEOF
  20577. if ac_fn_c_try_link "$LINENO"; then :
  20578. ac_cv_lib_ltdl_dlopen=yes
  20579. else
  20580. ac_cv_lib_ltdl_dlopen=no
  20581. fi
  20582. rm -f core conftest.err conftest.$ac_objext \
  20583. conftest$ac_exeext conftest.$ac_ext
  20584. LIBS=$ac_check_lib_save_LIBS
  20585. fi
  20586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  20587. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  20588. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  20589. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  20590. fi
  20591. fi
  20592. fi
  20593. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  20594. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  20595. have_loadso=yes
  20596. fi
  20597. fi
  20598. }
  20599. CheckUSBHID()
  20600. {
  20601. case "$host" in
  20602. *-*-*bsd*|*-*-dragonfly*)
  20603. if test x$enable_joystick = xyes; then
  20604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  20605. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  20606. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  20607. $as_echo_n "(cached) " >&6
  20608. else
  20609. ac_check_lib_save_LIBS=$LIBS
  20610. LIBS="-lusbhid $LIBS"
  20611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20612. /* end confdefs.h. */
  20613. /* Override any GCC internal prototype to avoid an error.
  20614. Use char because int might match the return type of a GCC
  20615. builtin and then its argument prototype would still apply. */
  20616. #ifdef __cplusplus
  20617. extern "C"
  20618. #endif
  20619. char hid_init ();
  20620. int
  20621. main ()
  20622. {
  20623. return hid_init ();
  20624. ;
  20625. return 0;
  20626. }
  20627. _ACEOF
  20628. if ac_fn_c_try_link "$LINENO"; then :
  20629. ac_cv_lib_usbhid_hid_init=yes
  20630. else
  20631. ac_cv_lib_usbhid_hid_init=no
  20632. fi
  20633. rm -f core conftest.err conftest.$ac_objext \
  20634. conftest$ac_exeext conftest.$ac_ext
  20635. LIBS=$ac_check_lib_save_LIBS
  20636. fi
  20637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  20638. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  20639. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  20640. have_libusbhid=yes
  20641. fi
  20642. if test x$have_libusbhid = xyes; then
  20643. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  20644. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  20645. USB_CFLAGS="-DHAVE_USBHID_H"
  20646. fi
  20647. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  20648. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  20649. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  20650. fi
  20651. USB_LIBS="$USB_LIBS -lusbhid"
  20652. else
  20653. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  20654. if test "x$ac_cv_header_usb_h" = xyes; then :
  20655. USB_CFLAGS="-DHAVE_USB_H"
  20656. fi
  20657. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20658. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20659. USB_CFLAGS="-DHAVE_LIBUSB_H"
  20660. fi
  20661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  20662. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  20663. if ${ac_cv_lib_usb_hid_init+:} false; then :
  20664. $as_echo_n "(cached) " >&6
  20665. else
  20666. ac_check_lib_save_LIBS=$LIBS
  20667. LIBS="-lusb $LIBS"
  20668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20669. /* end confdefs.h. */
  20670. /* Override any GCC internal prototype to avoid an error.
  20671. Use char because int might match the return type of a GCC
  20672. builtin and then its argument prototype would still apply. */
  20673. #ifdef __cplusplus
  20674. extern "C"
  20675. #endif
  20676. char hid_init ();
  20677. int
  20678. main ()
  20679. {
  20680. return hid_init ();
  20681. ;
  20682. return 0;
  20683. }
  20684. _ACEOF
  20685. if ac_fn_c_try_link "$LINENO"; then :
  20686. ac_cv_lib_usb_hid_init=yes
  20687. else
  20688. ac_cv_lib_usb_hid_init=no
  20689. fi
  20690. rm -f core conftest.err conftest.$ac_objext \
  20691. conftest$ac_exeext conftest.$ac_ext
  20692. LIBS=$ac_check_lib_save_LIBS
  20693. fi
  20694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  20695. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  20696. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  20697. USB_LIBS="$USB_LIBS -lusb"
  20698. fi
  20699. fi
  20700. save_CFLAGS="$CFLAGS"
  20701. CFLAGS="$CFLAGS $USB_CFLAGS"
  20702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  20703. $as_echo_n "checking for usbhid... " >&6; }
  20704. have_usbhid=no
  20705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20706. /* end confdefs.h. */
  20707. #include <sys/types.h>
  20708. #if defined(HAVE_USB_H)
  20709. #include <usb.h>
  20710. #endif
  20711. #ifdef __DragonFly__
  20712. # include <bus/u4b/usb.h>
  20713. # include <bus/u4b/usbhid.h>
  20714. #else
  20715. # include <dev/usb/usb.h>
  20716. # include <dev/usb/usbhid.h>
  20717. #endif
  20718. #if defined(HAVE_USBHID_H)
  20719. #include <usbhid.h>
  20720. #elif defined(HAVE_LIBUSB_H)
  20721. #include <libusb.h>
  20722. #elif defined(HAVE_LIBUSBHID_H)
  20723. #include <libusbhid.h>
  20724. #endif
  20725. int
  20726. main ()
  20727. {
  20728. struct report_desc *repdesc;
  20729. struct usb_ctl_report *repbuf;
  20730. hid_kind_t hidkind;
  20731. ;
  20732. return 0;
  20733. }
  20734. _ACEOF
  20735. if ac_fn_c_try_compile "$LINENO"; then :
  20736. have_usbhid=yes
  20737. fi
  20738. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  20740. $as_echo "$have_usbhid" >&6; }
  20741. if test x$have_usbhid = xyes; then
  20742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  20743. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  20744. have_usbhid_ucr_data=no
  20745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20746. /* end confdefs.h. */
  20747. #include <sys/types.h>
  20748. #if defined(HAVE_USB_H)
  20749. #include <usb.h>
  20750. #endif
  20751. #ifdef __DragonFly__
  20752. # include <bus/u4b/usb.h>
  20753. # include <bus/u4b/usbhid.h>
  20754. #else
  20755. # include <dev/usb/usb.h>
  20756. # include <dev/usb/usbhid.h>
  20757. #endif
  20758. #if defined(HAVE_USBHID_H)
  20759. #include <usbhid.h>
  20760. #elif defined(HAVE_LIBUSB_H)
  20761. #include <libusb.h>
  20762. #elif defined(HAVE_LIBUSBHID_H)
  20763. #include <libusbhid.h>
  20764. #endif
  20765. int
  20766. main ()
  20767. {
  20768. struct usb_ctl_report buf;
  20769. if (buf.ucr_data) { }
  20770. ;
  20771. return 0;
  20772. }
  20773. _ACEOF
  20774. if ac_fn_c_try_compile "$LINENO"; then :
  20775. have_usbhid_ucr_data=yes
  20776. fi
  20777. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20778. if test x$have_usbhid_ucr_data = xyes; then
  20779. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  20780. fi
  20781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  20782. $as_echo "$have_usbhid_ucr_data" >&6; }
  20783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  20784. $as_echo_n "checking for new usbhid API... " >&6; }
  20785. have_usbhid_new=no
  20786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20787. /* end confdefs.h. */
  20788. #include <sys/types.h>
  20789. #if defined(HAVE_USB_H)
  20790. #include <usb.h>
  20791. #endif
  20792. #ifdef __DragonFly__
  20793. #include <bus/u4b/usb.h>
  20794. #include <bus/u4b/usbhid.h>
  20795. #else
  20796. #include <dev/usb/usb.h>
  20797. #include <dev/usb/usbhid.h>
  20798. #endif
  20799. #if defined(HAVE_USBHID_H)
  20800. #include <usbhid.h>
  20801. #elif defined(HAVE_LIBUSB_H)
  20802. #include <libusb.h>
  20803. #elif defined(HAVE_LIBUSBHID_H)
  20804. #include <libusbhid.h>
  20805. #endif
  20806. int
  20807. main ()
  20808. {
  20809. report_desc_t d;
  20810. hid_start_parse(d, 1, 1);
  20811. ;
  20812. return 0;
  20813. }
  20814. _ACEOF
  20815. if ac_fn_c_try_compile "$LINENO"; then :
  20816. have_usbhid_new=yes
  20817. fi
  20818. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20819. if test x$have_usbhid_new = xyes; then
  20820. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  20821. fi
  20822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  20823. $as_echo "$have_usbhid_new" >&6; }
  20824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  20825. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  20826. have_machine_joystick=no
  20827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20828. /* end confdefs.h. */
  20829. #include <machine/joystick.h>
  20830. int
  20831. main ()
  20832. {
  20833. struct joystick t;
  20834. ;
  20835. return 0;
  20836. }
  20837. _ACEOF
  20838. if ac_fn_c_try_compile "$LINENO"; then :
  20839. have_machine_joystick=yes
  20840. fi
  20841. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20842. if test x$have_machine_joystick = xyes; then
  20843. $as_echo "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  20844. fi
  20845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  20846. $as_echo "$have_machine_joystick" >&6; }
  20847. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  20848. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  20849. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  20850. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  20851. have_joystick=yes
  20852. fi
  20853. CFLAGS="$save_CFLAGS"
  20854. fi
  20855. ;;
  20856. esac
  20857. }
  20858. CheckHIDAPI()
  20859. {
  20860. # Check whether --enable-hidapi was given.
  20861. if test "${enable_hidapi+set}" = set; then :
  20862. enableval=$enable_hidapi;
  20863. else
  20864. enable_hidapi=yes
  20865. fi
  20866. # Check whether --enable-hidapi-libusb was given.
  20867. if test "${enable_hidapi_libusb+set}" = set; then :
  20868. enableval=$enable_hidapi_libusb;
  20869. else
  20870. enable_hidapi_libusb=maybe
  20871. fi
  20872. if test x$enable_joystick = xyes -a x$enable_hidapi = xyes; then
  20873. case "$host" in
  20874. # libusb does not support iOS
  20875. *-ios-* )
  20876. enable_hidapi_libusb=no
  20877. ;;
  20878. # On the other hand, *BSD specifically uses libusb only
  20879. *-*-*bsd* )
  20880. enable_hidapi_libusb=yes
  20881. require_hidapi_libusb=yes
  20882. ;;
  20883. # RAWINPUT is only available on Win32, but can be enabled if HIDAPI is
  20884. *-*-cygwin* | *-*-mingw*)
  20885. enable_joystick_rawinput=yes
  20886. ;;
  20887. esac
  20888. hidapi_support=yes
  20889. if test x$enable_hidapi_libusb = xyes; then
  20890. pkg_failed=no
  20891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  20892. $as_echo_n "checking for libusb-1.0... " >&6; }
  20893. if test -n "$LIBUSB_CFLAGS"; then
  20894. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  20895. elif test -n "$PKG_CONFIG"; then
  20896. if test -n "$PKG_CONFIG" && \
  20897. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  20898. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  20899. ac_status=$?
  20900. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20901. test $ac_status = 0; }; then
  20902. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  20903. test "x$?" != "x0" && pkg_failed=yes
  20904. else
  20905. pkg_failed=yes
  20906. fi
  20907. else
  20908. pkg_failed=untried
  20909. fi
  20910. if test -n "$LIBUSB_LIBS"; then
  20911. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  20912. elif test -n "$PKG_CONFIG"; then
  20913. if test -n "$PKG_CONFIG" && \
  20914. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  20915. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  20916. ac_status=$?
  20917. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20918. test $ac_status = 0; }; then
  20919. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  20920. test "x$?" != "x0" && pkg_failed=yes
  20921. else
  20922. pkg_failed=yes
  20923. fi
  20924. else
  20925. pkg_failed=untried
  20926. fi
  20927. if test $pkg_failed = yes; then
  20928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20929. $as_echo "no" >&6; }
  20930. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20931. _pkg_short_errors_supported=yes
  20932. else
  20933. _pkg_short_errors_supported=no
  20934. fi
  20935. if test $_pkg_short_errors_supported = yes; then
  20936. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  20937. else
  20938. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  20939. fi
  20940. # Put the nasty error message in config.log where it belongs
  20941. echo "$LIBUSB_PKG_ERRORS" >&5
  20942. have_libusb=no
  20943. elif test $pkg_failed = untried; then
  20944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20945. $as_echo "no" >&6; }
  20946. have_libusb=no
  20947. else
  20948. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  20949. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  20950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20951. $as_echo "yes" >&6; }
  20952. have_libusb=yes
  20953. fi
  20954. save_CPPFLAGS="$CPPFLAGS"
  20955. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  20956. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20957. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20958. have_libusb_h=yes
  20959. else
  20960. have_libusb_h=no
  20961. fi
  20962. CPPFLAGS="$save_CPPFLAGS"
  20963. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  20964. hidapi_support=no
  20965. fi
  20966. fi
  20967. if test x$hidapi_support = xyes; then
  20968. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  20969. if test x$enable_joystick_rawinput = xyes; then
  20970. $as_echo "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  20971. fi
  20972. EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
  20973. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  20974. SOURCES="$SOURCES $srcdir/src/hidapi/SDL_hidapi.c"
  20975. if test x$have_libusb_h = xyes; then
  20976. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  20977. if test x$require_hidapi_libusb = xyes; then
  20978. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  20979. else
  20980. if test x$have_loadso != xyes; then
  20981. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  20982. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  20983. fi
  20984. # libusb is loaded dynamically, so don't add it to LDFLAGS
  20985. libusb_lib=""
  20986. case "$host" in
  20987. *-*-darwin* )
  20988. libusb_lib="libusb-1.0.0.dylib"
  20989. ;;
  20990. *-*-cygwin* | *-*-mingw* )
  20991. libusb_lib="libusb-1.0.dll"
  20992. ;;
  20993. esac
  20994. if test x$libusb_lib = x; then
  20995. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  20996. fi
  20997. cat >>confdefs.h <<_ACEOF
  20998. #define SDL_LIBUSB_DYNAMIC "$libusb_lib"
  20999. _ACEOF
  21000. fi
  21001. fi
  21002. fi
  21003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi support" >&5
  21004. $as_echo_n "checking for hidapi support... " >&6; }
  21005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  21006. $as_echo "$hidapi_support" >&6; }
  21007. fi
  21008. }
  21009. CheckClockGettime()
  21010. {
  21011. # Check whether --enable-clock_gettime was given.
  21012. if test "${enable_clock_gettime+set}" = set; then :
  21013. enableval=$enable_clock_gettime;
  21014. else
  21015. enable_clock_gettime=yes
  21016. fi
  21017. if test x$enable_clock_gettime = xyes; then
  21018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  21019. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  21020. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  21021. $as_echo_n "(cached) " >&6
  21022. else
  21023. ac_check_lib_save_LIBS=$LIBS
  21024. LIBS="-lrt $LIBS"
  21025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21026. /* end confdefs.h. */
  21027. /* Override any GCC internal prototype to avoid an error.
  21028. Use char because int might match the return type of a GCC
  21029. builtin and then its argument prototype would still apply. */
  21030. #ifdef __cplusplus
  21031. extern "C"
  21032. #endif
  21033. char clock_gettime ();
  21034. int
  21035. main ()
  21036. {
  21037. return clock_gettime ();
  21038. ;
  21039. return 0;
  21040. }
  21041. _ACEOF
  21042. if ac_fn_c_try_link "$LINENO"; then :
  21043. ac_cv_lib_rt_clock_gettime=yes
  21044. else
  21045. ac_cv_lib_rt_clock_gettime=no
  21046. fi
  21047. rm -f core conftest.err conftest.$ac_objext \
  21048. conftest$ac_exeext conftest.$ac_ext
  21049. LIBS=$ac_check_lib_save_LIBS
  21050. fi
  21051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  21052. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  21053. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  21054. have_clock_gettime=yes
  21055. fi
  21056. if test x$have_clock_gettime = xyes; then
  21057. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  21058. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  21059. else
  21060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  21061. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  21062. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  21063. $as_echo_n "(cached) " >&6
  21064. else
  21065. ac_check_lib_save_LIBS=$LIBS
  21066. LIBS="-lc $LIBS"
  21067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21068. /* end confdefs.h. */
  21069. /* Override any GCC internal prototype to avoid an error.
  21070. Use char because int might match the return type of a GCC
  21071. builtin and then its argument prototype would still apply. */
  21072. #ifdef __cplusplus
  21073. extern "C"
  21074. #endif
  21075. char clock_gettime ();
  21076. int
  21077. main ()
  21078. {
  21079. return clock_gettime ();
  21080. ;
  21081. return 0;
  21082. }
  21083. _ACEOF
  21084. if ac_fn_c_try_link "$LINENO"; then :
  21085. ac_cv_lib_c_clock_gettime=yes
  21086. else
  21087. ac_cv_lib_c_clock_gettime=no
  21088. fi
  21089. rm -f core conftest.err conftest.$ac_objext \
  21090. conftest$ac_exeext conftest.$ac_ext
  21091. LIBS=$ac_check_lib_save_LIBS
  21092. fi
  21093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  21094. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  21095. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  21096. have_clock_gettime=yes
  21097. fi
  21098. if test x$have_clock_gettime = xyes; then
  21099. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  21100. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  21101. fi
  21102. fi
  21103. fi
  21104. }
  21105. CheckLinuxVersion()
  21106. {
  21107. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  21108. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  21109. have_linux_version_h=yes
  21110. fi
  21111. if test x$have_linux_version_h = xyes; then
  21112. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  21113. fi
  21114. }
  21115. CheckRPATH()
  21116. {
  21117. # Check whether --enable-rpath was given.
  21118. if test "${enable_rpath+set}" = set; then :
  21119. enableval=$enable_rpath;
  21120. else
  21121. enable_rpath=yes
  21122. fi
  21123. }
  21124. CheckEventSignals()
  21125. {
  21126. # Check whether --enable-backgrounding-signal was given.
  21127. if test "${enable_backgrounding_signal+set}" = set; then :
  21128. enableval=$enable_backgrounding_signal;
  21129. else
  21130. enable_backgrounding_signal=no
  21131. fi
  21132. if test x$enable_backgrounding_signal != xno; then
  21133. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  21134. fi
  21135. # Check whether --enable-foregrounding-signal was given.
  21136. if test "${enable_foregrounding_signal+set}" = set; then :
  21137. enableval=$enable_foregrounding_signal;
  21138. else
  21139. enable_foregrounding_signal=no
  21140. fi
  21141. if test x$enable_foregrounding_signal != xno; then
  21142. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  21143. fi
  21144. }
  21145. CheckVirtualJoystick()
  21146. {
  21147. # Check whether --enable-joystick-virtual was given.
  21148. if test "${enable_joystick_virtual+set}" = set; then :
  21149. enableval=$enable_joystick_virtual;
  21150. else
  21151. enable_joystick_virtual=yes
  21152. fi
  21153. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  21154. $as_echo "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  21155. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  21156. have_joystick_virtual=yes
  21157. fi
  21158. }
  21159. CheckWarnAll
  21160. CheckNoStrictAliasing
  21161. CheckEventSignals
  21162. have_locale=no
  21163. case "$host" in
  21164. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  21165. case "$host" in
  21166. *-*-android*)
  21167. # Android
  21168. ARCH=android
  21169. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  21170. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  21171. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  21172. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  21173. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  21174. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  21175. if test x$enable_video = xyes; then
  21176. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  21177. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  21178. SUMMARY_video="${SUMMARY_video} android"
  21179. fi
  21180. ;;
  21181. *-*-linux*) ARCH=linux ;;
  21182. *-*-uclinux*) ARCH=linux ;;
  21183. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  21184. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  21185. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  21186. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  21187. *-*-bsdi*) ARCH=bsdi ;;
  21188. *-*-freebsd*) ARCH=freebsd ;;
  21189. *-*-dragonfly*) ARCH=freebsd ;;
  21190. *-*-netbsd*) ARCH=netbsd ;;
  21191. *-*-openbsd*) ARCH=openbsd ;;
  21192. *-*-sysv5*) ARCH=sysv5 ;;
  21193. *-*-solaris*) ARCH=solaris ;;
  21194. *-*-hpux*) ARCH=hpux ;;
  21195. *-*-aix*) ARCH=aix ;;
  21196. *-*-minix*) ARCH=minix ;;
  21197. *-*-nto*) ARCH=nto
  21198. CheckQNXVideo
  21199. ;;
  21200. esac
  21201. CheckVisibilityHidden
  21202. CheckDeclarationAfterStatement
  21203. CheckDummyVideo
  21204. CheckDiskAudio
  21205. CheckDummyAudio
  21206. CheckDLOPEN
  21207. CheckARM
  21208. CheckNEON
  21209. CheckOSS
  21210. CheckALSA
  21211. CheckPulseAudio
  21212. CheckJACK
  21213. CheckARTSC
  21214. CheckESD
  21215. CheckNAS
  21216. CheckSNDIO
  21217. CheckFusionSound
  21218. CheckLibSampleRate
  21219. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  21220. CheckRPI
  21221. CheckX11
  21222. CheckDirectFB
  21223. # Need to check for EGL first because KMSDRM depends on it.
  21224. CheckEGLKMSDRM
  21225. CheckKMSDRM
  21226. CheckOpenGLX11
  21227. CheckOpenGLESX11
  21228. CheckVulkan
  21229. CheckWayland
  21230. CheckInputEvents
  21231. CheckLibUDev
  21232. CheckDBus
  21233. CheckIME
  21234. CheckInotify
  21235. CheckIBus
  21236. CheckFcitx
  21237. case $ARCH in
  21238. linux)
  21239. CheckInputKD
  21240. ;;
  21241. freebsd)
  21242. CheckInputKBIO
  21243. ;;
  21244. openbsd|netbsd)
  21245. CheckInputWSCONS
  21246. ;;
  21247. esac
  21248. CheckUSBHID
  21249. CheckHIDAPI
  21250. CheckPTHREAD
  21251. CheckClockGettime
  21252. CheckLinuxVersion
  21253. CheckRPATH
  21254. CheckVivanteVideo
  21255. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  21256. have_misc=yes
  21257. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  21258. have_locale=yes
  21259. # Set up files for the audio library
  21260. if test x$enable_audio = xyes; then
  21261. case $ARCH in
  21262. sysv5|solaris|hpux)
  21263. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  21264. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  21265. SUMMARY_audio="${SUMMARY_audio} sun"
  21266. have_audio=yes
  21267. ;;
  21268. netbsd) # Don't use this on OpenBSD, it's busted.
  21269. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  21270. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  21271. SUMMARY_audio="${SUMMARY_audio} netbsd"
  21272. have_audio=yes
  21273. ;;
  21274. aix)
  21275. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  21276. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  21277. SUMMARY_audio="${SUMMARY_audio} paudio"
  21278. have_audio=yes
  21279. ;;
  21280. android)
  21281. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  21282. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  21283. SUMMARY_audio="${SUMMARY_audio} android"
  21284. have_audio=yes
  21285. ;;
  21286. nto)
  21287. CheckQNXAudio
  21288. ;;
  21289. esac
  21290. fi
  21291. # Set up files for the joystick library
  21292. if test x$enable_joystick = xyes; then
  21293. case $ARCH in
  21294. linux)
  21295. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  21296. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  21297. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21298. have_joystick=yes
  21299. ;;
  21300. freebsd)
  21301. if test x$use_input_events = xyes; then
  21302. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  21303. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  21304. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21305. have_joystick=yes
  21306. fi
  21307. ;;
  21308. android)
  21309. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  21310. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  21311. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21312. have_joystick=yes
  21313. ;;
  21314. esac
  21315. fi
  21316. # Set up files for the haptic library
  21317. if test x$enable_haptic = xyes; then
  21318. case $ARCH in
  21319. linux|freebsd)
  21320. if test x$use_input_events = xyes; then
  21321. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  21322. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  21323. have_haptic=yes
  21324. fi
  21325. ;;
  21326. android)
  21327. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  21328. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  21329. have_haptic=yes
  21330. ;;
  21331. esac
  21332. fi
  21333. # Set up files for the sensor library
  21334. if test x$enable_sensor = xyes; then
  21335. case $ARCH in
  21336. android)
  21337. $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  21338. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  21339. have_sensor=yes
  21340. ;;
  21341. esac
  21342. fi
  21343. # Set up files for the power library
  21344. if test x$enable_power = xyes; then
  21345. case $ARCH in
  21346. linux)
  21347. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  21348. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  21349. have_power=yes
  21350. ;;
  21351. android)
  21352. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  21353. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  21354. have_power=yes
  21355. ;;
  21356. esac
  21357. fi
  21358. # Set up files for the filesystem library
  21359. if test x$enable_filesystem = xyes; then
  21360. case $ARCH in
  21361. android)
  21362. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  21363. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  21364. have_filesystem=yes
  21365. ;;
  21366. *)
  21367. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  21368. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  21369. have_filesystem=yes
  21370. ;;
  21371. esac
  21372. fi
  21373. # Set up files for the timer library
  21374. if test x$enable_timers = xyes; then
  21375. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21376. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21377. have_timers=yes
  21378. fi
  21379. # Set up files for udev hotplugging support
  21380. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  21381. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  21382. fi
  21383. # Set up files for evdev input
  21384. if test x$use_input_events = xyes; then
  21385. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  21386. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  21387. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  21388. fi
  21389. # Set up files for wscons input
  21390. if test x$use_input_wscons = xyes; then
  21391. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  21392. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  21393. fi
  21394. # Set up other core UNIX files
  21395. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  21396. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  21397. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21398. ;;
  21399. *-*-cygwin* | *-*-mingw*)
  21400. ARCH=win32
  21401. if test "$build" != "$host"; then # cross-compiling
  21402. # Default cross-compile location
  21403. ac_default_prefix=/usr/local/cross-tools/$host
  21404. else
  21405. # Look for the location of the tools and install there
  21406. if test "$BUILD_PREFIX" != ""; then
  21407. ac_default_prefix=$BUILD_PREFIX
  21408. fi
  21409. fi
  21410. CheckDeclarationAfterStatement
  21411. CheckDummyVideo
  21412. CheckDiskAudio
  21413. CheckDummyAudio
  21414. CheckWINDOWS
  21415. CheckWINDOWSGL
  21416. CheckWINDOWSGLES
  21417. CheckVulkan
  21418. CheckDIRECTX
  21419. CheckHIDAPI
  21420. # Set up the core platform files
  21421. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  21422. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  21423. have_misc=yes
  21424. # Use the Windows locale APIs.
  21425. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  21426. have_locale=yes
  21427. # Set up files for the video library
  21428. if test x$enable_video = xyes; then
  21429. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  21430. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  21431. have_video=yes
  21432. # Check whether --enable-render-d3d was given.
  21433. if test "${enable_render_d3d+set}" = set; then :
  21434. enableval=$enable_render_d3d;
  21435. else
  21436. enable_render_d3d=yes
  21437. fi
  21438. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  21439. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  21440. SUMMARY_video="${SUMMARY_video} d3d9"
  21441. fi
  21442. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  21443. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  21444. SUMMARY_video="${SUMMARY_video} d3d11"
  21445. fi
  21446. fi
  21447. # Set up files for the audio library
  21448. if test x$enable_audio = xyes; then
  21449. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  21450. SUMMARY_audio="${SUMMARY_audio} winmm"
  21451. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  21452. if test x$have_dsound = xyes; then
  21453. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  21454. SUMMARY_audio="${SUMMARY_audio} directsound"
  21455. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  21456. fi
  21457. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  21458. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  21459. SUMMARY_audio="${SUMMARY_audio} wasapi"
  21460. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  21461. fi
  21462. have_audio=yes
  21463. fi
  21464. # Set up files for the joystick library
  21465. if test x$enable_joystick = xyes; then
  21466. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21467. if test x$have_xinput = xyes; then
  21468. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  21469. fi
  21470. if test x$have_dinput = xyes; then
  21471. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  21472. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  21473. fi
  21474. else
  21475. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  21476. fi
  21477. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  21478. have_joystick=yes
  21479. fi
  21480. if test x$enable_haptic = xyes; then
  21481. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21482. if test x$have_xinput = xyes; then
  21483. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  21484. fi
  21485. if test x$have_dinput = xyes; then
  21486. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  21487. fi
  21488. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  21489. have_haptic=yes
  21490. fi
  21491. fi
  21492. # Set up files for the sensor library
  21493. ac_fn_c_check_header_mongrel "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  21494. if test "x$ac_cv_header_sensorsapi_h" = xyes; then :
  21495. have_winsensors=yes
  21496. else
  21497. have_winsensors=no
  21498. fi
  21499. if test x$have_winsensors = xyes; then
  21500. $as_echo "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  21501. fi
  21502. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  21503. $as_echo "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  21504. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  21505. have_sensor=yes
  21506. fi
  21507. # Set up files for the power library
  21508. if test x$enable_power = xyes; then
  21509. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  21510. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  21511. have_power=yes
  21512. fi
  21513. # Set up files for the filesystem library
  21514. if test x$enable_filesystem = xyes; then
  21515. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  21516. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  21517. have_filesystem=yes
  21518. fi
  21519. # Set up files for the thread library
  21520. if test x$enable_threads = xyes; then
  21521. $as_echo "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  21522. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  21523. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  21524. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  21525. have_threads=yes
  21526. fi
  21527. # Set up files for the timer library
  21528. if test x$enable_timers = xyes; then
  21529. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  21530. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  21531. have_timers=yes
  21532. fi
  21533. # Set up files for the shared object loading library
  21534. if test x$enable_loadso = xyes; then
  21535. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  21536. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  21537. have_loadso=yes
  21538. fi
  21539. # Set up the system libraries we need
  21540. if test -f /lib/w32api/libuuid.a; then
  21541. LIBUUID=/lib/w32api/libuuid.a
  21542. else
  21543. LIBUUID=-luuid
  21544. fi
  21545. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID -static-libgcc"
  21546. # The Windows platform requires special setup
  21547. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  21548. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  21549. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  21550. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  21551. # Check to see if this is a mingw or cygwin build
  21552. have_mingw32=
  21553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  21554. $as_echo_n "checking for main in -lmingw32... " >&6; }
  21555. if ${ac_cv_lib_mingw32_main+:} false; then :
  21556. $as_echo_n "(cached) " >&6
  21557. else
  21558. ac_check_lib_save_LIBS=$LIBS
  21559. LIBS="-lmingw32 $LIBS"
  21560. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21561. /* end confdefs.h. */
  21562. int
  21563. main ()
  21564. {
  21565. return main ();
  21566. ;
  21567. return 0;
  21568. }
  21569. _ACEOF
  21570. if ac_fn_c_try_link "$LINENO"; then :
  21571. ac_cv_lib_mingw32_main=yes
  21572. else
  21573. ac_cv_lib_mingw32_main=no
  21574. fi
  21575. rm -f core conftest.err conftest.$ac_objext \
  21576. conftest$ac_exeext conftest.$ac_ext
  21577. LIBS=$ac_check_lib_save_LIBS
  21578. fi
  21579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  21580. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  21581. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  21582. have_mingw32=yes
  21583. fi
  21584. if test x$have_mingw32 = xyes; then
  21585. SDL_LIBS="-lmingw32 $SDL_LIBS"
  21586. else
  21587. SDL_LIBS="-lcygwin $SDL_LIBS"
  21588. fi
  21589. ;;
  21590. *-*-beos*)
  21591. as_fn_error $? "
  21592. *** BeOS support has been removed as of SDL 2.0.2.
  21593. " "$LINENO" 5
  21594. ;;
  21595. *-*-haiku*)
  21596. ARCH=haiku
  21597. ac_default_prefix=/boot/system
  21598. CheckDummyVideo
  21599. CheckDiskAudio
  21600. CheckDummyAudio
  21601. CheckDLOPEN
  21602. CheckHaikuVideo
  21603. CheckHaikuGL
  21604. CheckPTHREAD
  21605. # Set up files for the audio library
  21606. if test x$enable_audio = xyes; then
  21607. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  21608. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  21609. SUMMARY_audio="${SUMMARY_audio} haiku"
  21610. have_audio=yes
  21611. fi
  21612. # Set up files for the joystick library
  21613. if test x$enable_joystick = xyes; then
  21614. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  21615. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  21616. have_joystick=yes
  21617. fi
  21618. # Set up files for the timer library
  21619. if test x$enable_timers = xyes; then
  21620. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  21621. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  21622. have_timers=yes
  21623. fi
  21624. # Set up files for the system power library
  21625. if test x$enable_power = xyes; then
  21626. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  21627. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  21628. have_power=yes
  21629. fi
  21630. # Set up files for the system filesystem library
  21631. if test x$enable_filesystem = xyes; then
  21632. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  21633. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  21634. have_filesystem=yes
  21635. fi
  21636. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  21637. have_misc=yes
  21638. # Set up files for the locale library
  21639. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  21640. have_locale=yes
  21641. # The Haiku platform requires special setup.
  21642. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  21643. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  21644. # Haiku's x86 spins use libstdc++.r4.so (for binary compat?), but
  21645. # other spins, like x86-64, use a more standard "libstdc++.so.*"
  21646. as_ac_File=`$as_echo "ac_cv_file_"/boot/system/lib/libstdc++.r4.so"" | $as_tr_sh`
  21647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/boot/system/lib/libstdc++.r4.so\"" >&5
  21648. $as_echo_n "checking for \"/boot/system/lib/libstdc++.r4.so\"... " >&6; }
  21649. if eval \${$as_ac_File+:} false; then :
  21650. $as_echo_n "(cached) " >&6
  21651. else
  21652. test "$cross_compiling" = yes &&
  21653. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  21654. if test -r ""/boot/system/lib/libstdc++.r4.so""; then
  21655. eval "$as_ac_File=yes"
  21656. else
  21657. eval "$as_ac_File=no"
  21658. fi
  21659. fi
  21660. eval ac_res=\$$as_ac_File
  21661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21662. $as_echo "$ac_res" >&6; }
  21663. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  21664. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++.r4"
  21665. else
  21666. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++"
  21667. fi
  21668. ;;
  21669. *-ios-*)
  21670. ARCH=ios
  21671. CheckVisibilityHidden
  21672. CheckDeclarationAfterStatement
  21673. CheckDummyVideo
  21674. CheckDiskAudio
  21675. CheckDummyAudio
  21676. CheckDLOPEN
  21677. CheckMETAL
  21678. CheckVulkan
  21679. CheckPTHREAD
  21680. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  21681. have_misc=yes
  21682. # Set up files for the locale library
  21683. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  21684. have_locale=yes
  21685. # Set up files for the audio library
  21686. if test x$enable_audio = xyes; then
  21687. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21688. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21689. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21690. have_audio=yes
  21691. fi
  21692. # Set up files for the joystick library
  21693. if test x$enable_joystick = xyes; then
  21694. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  21695. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21696. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21697. have_joystick=yes
  21698. else
  21699. # Need this code for accelerometer as joystick support
  21700. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21701. fi
  21702. # Set up files for the haptic library
  21703. #if test x$enable_haptic = xyes; then
  21704. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21705. # have_haptic=yes
  21706. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21707. #fi
  21708. # Set up files for the sensor library
  21709. if test x$enable_sensor = xyes; then
  21710. $as_echo "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  21711. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  21712. have_sensor=yes
  21713. fi
  21714. # Set up files for the power library
  21715. if test x$enable_power = xyes; then
  21716. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  21717. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  21718. have_power=yes
  21719. fi
  21720. # Set up files for the filesystem library
  21721. if test x$enable_filesystem = xyes; then
  21722. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21723. have_filesystem=yes
  21724. fi
  21725. # Set up additional files for the file library
  21726. if test x$enable_file = xyes; then
  21727. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21728. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21729. fi
  21730. # Set up files for the timer library
  21731. if test x$enable_timers = xyes; then
  21732. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21733. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21734. have_timers=yes
  21735. fi
  21736. # Set up other core UNIX files
  21737. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21738. # The iOS platform requires special setup.
  21739. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  21740. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21741. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  21742. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  21743. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21744. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  21745. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  21746. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  21747. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  21748. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  21749. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  21750. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  21751. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  21752. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  21753. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  21754. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  21755. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  21756. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  21757. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  21758. fi
  21759. ;;
  21760. *-*-darwin* )
  21761. # This could be either full "Mac OS X", or plain "Darwin" which is
  21762. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  21763. # Next line is broken, and a few files below require Mac OS X (full)
  21764. ARCH=macosx
  21765. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  21766. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  21767. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  21768. CheckVisibilityHidden
  21769. CheckDeclarationAfterStatement
  21770. CheckDummyVideo
  21771. CheckDiskAudio
  21772. CheckDummyAudio
  21773. CheckDLOPEN
  21774. CheckCOCOA
  21775. CheckMETAL
  21776. CheckX11
  21777. CheckMacGL
  21778. CheckMacGLES
  21779. CheckOpenGLX11
  21780. CheckVulkan
  21781. CheckPTHREAD
  21782. CheckHIDAPI
  21783. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  21784. have_misc=yes
  21785. # Set up files for the locale library
  21786. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  21787. have_locale=yes
  21788. # Set up files for the audio library
  21789. if test x$enable_audio = xyes; then
  21790. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21791. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21792. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  21793. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21794. have_audio=yes
  21795. fi
  21796. # Set up files for the joystick library
  21797. if test x$enable_joystick = xyes; then
  21798. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  21799. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  21800. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21801. CheckJoystickMFI
  21802. have_joystick=yes
  21803. fi
  21804. # Set up files for the haptic library
  21805. if test x$enable_haptic = xyes; then
  21806. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  21807. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21808. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21809. have_haptic=yes
  21810. fi
  21811. # Set up files for the power library
  21812. if test x$enable_power = xyes; then
  21813. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  21814. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  21815. have_power=yes
  21816. fi
  21817. # Set up files for the filesystem library
  21818. if test x$enable_filesystem = xyes; then
  21819. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21820. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21821. have_filesystem=yes
  21822. fi
  21823. # Set up files for the timer library
  21824. if test x$enable_timers = xyes; then
  21825. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21826. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21827. have_timers=yes
  21828. fi
  21829. # Set up additional files for the file library
  21830. if test x$enable_file = xyes; then
  21831. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21832. fi
  21833. # Set up other core UNIX files
  21834. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21835. # The Mac OS X platform requires special setup.
  21836. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  21837. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  21838. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  21839. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  21840. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  21841. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  21842. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  21843. fi
  21844. ;;
  21845. *-nacl|*-pnacl)
  21846. ARCH=nacl
  21847. CheckNativeClient
  21848. CheckDummyAudio
  21849. CheckDummyVideo
  21850. CheckInputEvents
  21851. CheckPTHREAD
  21852. # Set up files for the timer library
  21853. if test x$enable_timers = xyes; then
  21854. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21855. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21856. have_timers=yes
  21857. fi
  21858. if test x$enable_filesystem = xyes; then
  21859. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  21860. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  21861. have_filesystem=yes
  21862. fi
  21863. ;;
  21864. *-*-emscripten* )
  21865. if test x$enable_video = xyes; then
  21866. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21867. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  21868. have_video=yes
  21869. SUMMARY_video="${SUMMARY_video} emscripten"
  21870. fi
  21871. if test x$enable_audio = xyes; then
  21872. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21873. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  21874. have_audio=yes
  21875. SUMMARY_audio="${SUMMARY_audio} emscripten"
  21876. fi
  21877. CheckVisibilityHidden
  21878. CheckDeclarationAfterStatement
  21879. CheckDummyVideo
  21880. CheckDiskAudio
  21881. CheckDummyAudio
  21882. CheckDLOPEN
  21883. CheckClockGettime
  21884. CheckEmscriptenGLES
  21885. # Set up files for the power library
  21886. if test x$enable_power = xyes; then
  21887. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  21888. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  21889. have_power=yes
  21890. fi
  21891. # Set up files for the power library
  21892. if test x$enable_joystick = xyes; then
  21893. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  21894. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  21895. have_joystick=yes
  21896. fi
  21897. # Set up files for the filesystem library
  21898. if test x$enable_filesystem = xyes; then
  21899. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  21900. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  21901. have_filesystem=yes
  21902. fi
  21903. # Set up files for the timer library
  21904. if test x$enable_timers = xyes; then
  21905. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21906. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21907. have_timers=yes
  21908. fi
  21909. # Set up files for the locale library
  21910. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  21911. have_locale=yes
  21912. ;;
  21913. *-*-riscos*)
  21914. ARCH=riscos
  21915. CheckVisibilityHidden
  21916. CheckDeclarationAfterStatement
  21917. CheckDummyVideo
  21918. CheckDiskAudio
  21919. CheckDummyAudio
  21920. CheckDLOPEN
  21921. CheckOSS
  21922. CheckPTHREAD
  21923. CheckClockGettime
  21924. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  21925. have_misc=yes
  21926. # Set up files for the timer library
  21927. if test x$enable_timers = xyes; then
  21928. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21929. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21930. have_timers=yes
  21931. fi
  21932. ;;
  21933. *)
  21934. as_fn_error $? "
  21935. *** Unsupported host: Please add to configure.ac
  21936. " "$LINENO" 5
  21937. ;;
  21938. esac
  21939. CheckVirtualJoystick
  21940. # Check whether to install sdl2-config
  21941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  21942. $as_echo_n "checking whether to install sdl2-config... " >&6; }
  21943. # Check whether --enable-sdl2-config was given.
  21944. if test "${enable_sdl2_config+set}" = set; then :
  21945. enableval=$enable_sdl2_config; case "${enableval}" in
  21946. yes) enable_sdl2_config="TRUE" ;;
  21947. no) enable_sdl2_config="FALSE" ;;
  21948. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  21949. esac
  21950. else
  21951. enable_sdl2_config="TRUE"
  21952. fi
  21953. if test "$enable_sdl2_config" = "TRUE"; then
  21954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21955. $as_echo "yes" >&6; }
  21956. else
  21957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21958. $as_echo "no" >&6; }
  21959. fi
  21960. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  21961. # Verify that we have all the platform specific files we need
  21962. if test x$have_misc != xyes; then
  21963. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  21964. fi
  21965. if test x$have_locale != xyes; then
  21966. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  21967. fi
  21968. if test x$have_joystick != xyes; then
  21969. if test x$enable_joystick = xyes; then
  21970. $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  21971. fi
  21972. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  21973. fi
  21974. if test x$have_haptic != xyes; then
  21975. if test x$enable_haptic = xyes; then
  21976. $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  21977. fi
  21978. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  21979. fi
  21980. if test x$have_sensor != xyes; then
  21981. if test x$enable_sensor = xyes; then
  21982. $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  21983. fi
  21984. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  21985. fi
  21986. if test x$have_threads != xyes; then
  21987. if test x$enable_threads = xyes; then
  21988. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  21989. fi
  21990. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  21991. fi
  21992. if test x$have_timers != xyes; then
  21993. if test x$enable_timers = xyes; then
  21994. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  21995. fi
  21996. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  21997. fi
  21998. if test x$have_filesystem != xyes; then
  21999. if test x$enable_filesystem = xyes; then
  22000. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  22001. fi
  22002. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  22003. fi
  22004. if test x$have_loadso != xyes; then
  22005. if test x$enable_loadso = xyes; then
  22006. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  22007. fi
  22008. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  22009. fi
  22010. if test x$SDLMAIN_SOURCES = x; then
  22011. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  22012. fi
  22013. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  22014. if test x$video_wayland = xyes; then
  22015. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  22016. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  22017. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  22018. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  22019. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  22020. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  22021. echo ;\
  22022. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  22023. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  22024. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  22025. echo ;\
  22026. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  22027. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  22028. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  22029. echo ;\
  22030. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  22031. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  22032. done ;\
  22033. echo ;\
  22034. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  22035. fi
  22036. OBJECTS=`echo $SOURCES`
  22037. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  22038. for EXT in asm cc m c S; do
  22039. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  22040. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  22041. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  22042. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  22043. done
  22044. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  22045. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  22046. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  22047. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  22048. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  22049. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  22050. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  22051. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  22052. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  22053. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  22054. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  22055. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  22056. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  22057. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  22058. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  22059. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  22060. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  22061. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  22062. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  22063. # Set runtime shared library paths as needed
  22064. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  22065. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  22066. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  22067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  22068. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  22069. have_enable_new_dtags=no
  22070. save_LDFLAGS="$LDFLAGS"
  22071. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  22072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22073. /* end confdefs.h. */
  22074. int
  22075. main ()
  22076. {
  22077. ;
  22078. return 0;
  22079. }
  22080. _ACEOF
  22081. if ac_fn_c_try_link "$LINENO"; then :
  22082. have_enable_new_dtags=yes
  22083. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  22084. fi
  22085. rm -f core conftest.err conftest.$ac_objext \
  22086. conftest$ac_exeext conftest.$ac_ext
  22087. LDFLAGS="$save_LDFLAGS"
  22088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  22089. $as_echo "$have_enable_new_dtags" >&6; }
  22090. fi
  22091. if test $ARCH = solaris; then
  22092. SDL_RLD_FLAGS="-R\${libdir}"
  22093. fi
  22094. else
  22095. SDL_RLD_FLAGS=""
  22096. fi
  22097. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  22098. if test x$enable_shared = xyes; then
  22099. PKG_CONFIG_LIBS_PRIV="
  22100. Libs.private:"
  22101. ENABLE_SHARED_TRUE=
  22102. ENABLE_SHARED_FALSE="#"
  22103. else
  22104. PKG_CONFIG_LIBS_PRIV=
  22105. ENABLE_SHARED_TRUE="#"
  22106. ENABLE_SHARED_FALSE=
  22107. fi
  22108. if test x$enable_static = xyes; then
  22109. ENABLE_STATIC_TRUE=
  22110. ENABLE_STATIC_FALSE="#"
  22111. else
  22112. ENABLE_STATIC_TRUE="#"
  22113. ENABLE_STATIC_FALSE=
  22114. fi
  22115. cat >Makefile.rules <<__EOF__
  22116. # Build rules for objects
  22117. -include \$(OBJECTS:.lo=.d)
  22118. # Special dependency for SDL.c, since it depends on SDL_revision.h
  22119. $srcdir/src/SDL.c: update-revision
  22120. $DEPENDS
  22121. $VERSION_DEPENDS
  22122. $SDLMAIN_DEPENDS
  22123. $SDLTEST_DEPENDS
  22124. $WAYLAND_PROTOCOLS_DEPENDS
  22125. __EOF__
  22126. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  22127. ac_config_commands="$ac_config_commands sdl2_config"
  22128. SUMMARY="SDL2 Configure Summary:\n"
  22129. if test x$enable_shared = xyes; then
  22130. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  22131. fi
  22132. if test x$enable_static = xyes; then
  22133. SUMMARY="${SUMMARY}Building Static Libraries\n"
  22134. fi
  22135. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  22136. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  22137. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  22138. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  22139. if test x$have_x = xyes; then
  22140. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  22141. fi
  22142. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  22143. if test x$have_joystick_virtual = xyes; then
  22144. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  22145. else
  22146. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  22147. fi
  22148. if test x$have_samplerate_h_hdr = xyes; then
  22149. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  22150. else
  22151. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  22152. fi
  22153. if test x$have_libudev_h_hdr = xyes; then
  22154. SUMMARY="${SUMMARY}Using libudev : YES\n"
  22155. else
  22156. SUMMARY="${SUMMARY}Using libudev : NO\n"
  22157. fi
  22158. if test x$have_dbus_dbus_h_hdr = xyes; then
  22159. SUMMARY="${SUMMARY}Using dbus : YES\n"
  22160. else
  22161. SUMMARY="${SUMMARY}Using dbus : NO\n"
  22162. fi
  22163. if test x$enable_ime = xyes; then
  22164. SUMMARY="${SUMMARY}Using ime : YES\n"
  22165. else
  22166. SUMMARY="${SUMMARY}Using ime : NO\n"
  22167. fi
  22168. if test x$have_ibus_ibus_h_hdr = xyes; then
  22169. SUMMARY="${SUMMARY}Using ibus : YES\n"
  22170. else
  22171. SUMMARY="${SUMMARY}Using ibus : NO\n"
  22172. fi
  22173. if test x$have_fcitx = xyes; then
  22174. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  22175. else
  22176. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  22177. fi
  22178. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  22179. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  22180. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  22181. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  22182. SUMMARY="${SUMMARY}configure script with:\n"
  22183. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  22184. fi
  22185. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  22186. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  22187. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  22188. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  22189. SUMMARY="${SUMMARY}configure script with:\n"
  22190. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  22191. fi
  22192. ac_config_commands="$ac_config_commands summary"
  22193. cat >confcache <<\_ACEOF
  22194. # This file is a shell script that caches the results of configure
  22195. # tests run on this system so they can be shared between configure
  22196. # scripts and configure runs, see configure's option --config-cache.
  22197. # It is not useful on other systems. If it contains results you don't
  22198. # want to keep, you may remove or edit it.
  22199. #
  22200. # config.status only pays attention to the cache file if you give it
  22201. # the --recheck option to rerun configure.
  22202. #
  22203. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  22204. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  22205. # following values.
  22206. _ACEOF
  22207. # The following way of writing the cache mishandles newlines in values,
  22208. # but we know of no workaround that is simple, portable, and efficient.
  22209. # So, we kill variables containing newlines.
  22210. # Ultrix sh set writes to stderr and can't be redirected directly,
  22211. # and sets the high bit in the cache file unless we assign to the vars.
  22212. (
  22213. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  22214. eval ac_val=\$$ac_var
  22215. case $ac_val in #(
  22216. *${as_nl}*)
  22217. case $ac_var in #(
  22218. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  22219. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  22220. esac
  22221. case $ac_var in #(
  22222. _ | IFS | as_nl) ;; #(
  22223. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  22224. *) { eval $ac_var=; unset $ac_var;} ;;
  22225. esac ;;
  22226. esac
  22227. done
  22228. (set) 2>&1 |
  22229. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  22230. *${as_nl}ac_space=\ *)
  22231. # `set' does not quote correctly, so add quotes: double-quote
  22232. # substitution turns \\\\ into \\, and sed turns \\ into \.
  22233. sed -n \
  22234. "s/'/'\\\\''/g;
  22235. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  22236. ;; #(
  22237. *)
  22238. # `set' quotes correctly as required by POSIX, so do not add quotes.
  22239. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  22240. ;;
  22241. esac |
  22242. sort
  22243. ) |
  22244. sed '
  22245. /^ac_cv_env_/b end
  22246. t clear
  22247. :clear
  22248. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  22249. t end
  22250. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  22251. :end' >>confcache
  22252. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  22253. if test -w "$cache_file"; then
  22254. if test "x$cache_file" != "x/dev/null"; then
  22255. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  22256. $as_echo "$as_me: updating cache $cache_file" >&6;}
  22257. if test ! -f "$cache_file" || test -h "$cache_file"; then
  22258. cat confcache >"$cache_file"
  22259. else
  22260. case $cache_file in #(
  22261. */* | ?:*)
  22262. mv -f confcache "$cache_file"$$ &&
  22263. mv -f "$cache_file"$$ "$cache_file" ;; #(
  22264. *)
  22265. mv -f confcache "$cache_file" ;;
  22266. esac
  22267. fi
  22268. fi
  22269. else
  22270. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  22271. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  22272. fi
  22273. fi
  22274. rm -f confcache
  22275. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  22276. # Let make expand exec_prefix.
  22277. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  22278. DEFS=-DHAVE_CONFIG_H
  22279. ac_libobjs=
  22280. ac_ltlibobjs=
  22281. U=
  22282. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  22283. # 1. Remove the extension, and $U if already installed.
  22284. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  22285. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  22286. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  22287. # will be set to the directory where LIBOBJS objects are built.
  22288. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  22289. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  22290. done
  22291. LIBOBJS=$ac_libobjs
  22292. LTLIBOBJS=$ac_ltlibobjs
  22293. : "${CONFIG_STATUS=./config.status}"
  22294. ac_write_fail=0
  22295. ac_clean_files_save=$ac_clean_files
  22296. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  22297. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  22298. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  22299. as_write_fail=0
  22300. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  22301. #! $SHELL
  22302. # Generated by $as_me.
  22303. # Run this file to recreate the current configuration.
  22304. # Compiler output produced by configure, useful for debugging
  22305. # configure, is in config.log if it exists.
  22306. debug=false
  22307. ac_cs_recheck=false
  22308. ac_cs_silent=false
  22309. SHELL=\${CONFIG_SHELL-$SHELL}
  22310. export SHELL
  22311. _ASEOF
  22312. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  22313. ## -------------------- ##
  22314. ## M4sh Initialization. ##
  22315. ## -------------------- ##
  22316. # Be more Bourne compatible
  22317. DUALCASE=1; export DUALCASE # for MKS sh
  22318. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  22319. emulate sh
  22320. NULLCMD=:
  22321. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22322. # is contrary to our usage. Disable this feature.
  22323. alias -g '${1+"$@"}'='"$@"'
  22324. setopt NO_GLOB_SUBST
  22325. else
  22326. case `(set -o) 2>/dev/null` in #(
  22327. *posix*) :
  22328. set -o posix ;; #(
  22329. *) :
  22330. ;;
  22331. esac
  22332. fi
  22333. as_nl='
  22334. '
  22335. export as_nl
  22336. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  22337. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  22338. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  22339. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  22340. # Prefer a ksh shell builtin over an external printf program on Solaris,
  22341. # but without wasting forks for bash or zsh.
  22342. if test -z "$BASH_VERSION$ZSH_VERSION" \
  22343. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  22344. as_echo='print -r --'
  22345. as_echo_n='print -rn --'
  22346. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  22347. as_echo='printf %s\n'
  22348. as_echo_n='printf %s'
  22349. else
  22350. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  22351. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  22352. as_echo_n='/usr/ucb/echo -n'
  22353. else
  22354. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  22355. as_echo_n_body='eval
  22356. arg=$1;
  22357. case $arg in #(
  22358. *"$as_nl"*)
  22359. expr "X$arg" : "X\\(.*\\)$as_nl";
  22360. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  22361. esac;
  22362. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  22363. '
  22364. export as_echo_n_body
  22365. as_echo_n='sh -c $as_echo_n_body as_echo'
  22366. fi
  22367. export as_echo_body
  22368. as_echo='sh -c $as_echo_body as_echo'
  22369. fi
  22370. # The user is always right.
  22371. if test "${PATH_SEPARATOR+set}" != set; then
  22372. PATH_SEPARATOR=:
  22373. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  22374. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  22375. PATH_SEPARATOR=';'
  22376. }
  22377. fi
  22378. # IFS
  22379. # We need space, tab and new line, in precisely that order. Quoting is
  22380. # there to prevent editors from complaining about space-tab.
  22381. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  22382. # splitting by setting IFS to empty value.)
  22383. IFS=" "" $as_nl"
  22384. # Find who we are. Look in the path if we contain no directory separator.
  22385. as_myself=
  22386. case $0 in #((
  22387. *[\\/]* ) as_myself=$0 ;;
  22388. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22389. for as_dir in $PATH
  22390. do
  22391. IFS=$as_save_IFS
  22392. test -z "$as_dir" && as_dir=.
  22393. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  22394. done
  22395. IFS=$as_save_IFS
  22396. ;;
  22397. esac
  22398. # We did not find ourselves, most probably we were run as `sh COMMAND'
  22399. # in which case we are not to be found in the path.
  22400. if test "x$as_myself" = x; then
  22401. as_myself=$0
  22402. fi
  22403. if test ! -f "$as_myself"; then
  22404. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  22405. exit 1
  22406. fi
  22407. # Unset variables that we do not need and which cause bugs (e.g. in
  22408. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  22409. # suppresses any "Segmentation fault" message there. '((' could
  22410. # trigger a bug in pdksh 5.2.14.
  22411. for as_var in BASH_ENV ENV MAIL MAILPATH
  22412. do eval test x\${$as_var+set} = xset \
  22413. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  22414. done
  22415. PS1='$ '
  22416. PS2='> '
  22417. PS4='+ '
  22418. # NLS nuisances.
  22419. LC_ALL=C
  22420. export LC_ALL
  22421. LANGUAGE=C
  22422. export LANGUAGE
  22423. # CDPATH.
  22424. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22425. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  22426. # ----------------------------------------
  22427. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  22428. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  22429. # script with STATUS, using 1 if that was 0.
  22430. as_fn_error ()
  22431. {
  22432. as_status=$1; test $as_status -eq 0 && as_status=1
  22433. if test "$4"; then
  22434. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  22435. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  22436. fi
  22437. $as_echo "$as_me: error: $2" >&2
  22438. as_fn_exit $as_status
  22439. } # as_fn_error
  22440. # as_fn_set_status STATUS
  22441. # -----------------------
  22442. # Set $? to STATUS, without forking.
  22443. as_fn_set_status ()
  22444. {
  22445. return $1
  22446. } # as_fn_set_status
  22447. # as_fn_exit STATUS
  22448. # -----------------
  22449. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  22450. as_fn_exit ()
  22451. {
  22452. set +e
  22453. as_fn_set_status $1
  22454. exit $1
  22455. } # as_fn_exit
  22456. # as_fn_unset VAR
  22457. # ---------------
  22458. # Portably unset VAR.
  22459. as_fn_unset ()
  22460. {
  22461. { eval $1=; unset $1;}
  22462. }
  22463. as_unset=as_fn_unset
  22464. # as_fn_append VAR VALUE
  22465. # ----------------------
  22466. # Append the text in VALUE to the end of the definition contained in VAR. Take
  22467. # advantage of any shell optimizations that allow amortized linear growth over
  22468. # repeated appends, instead of the typical quadratic growth present in naive
  22469. # implementations.
  22470. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  22471. eval 'as_fn_append ()
  22472. {
  22473. eval $1+=\$2
  22474. }'
  22475. else
  22476. as_fn_append ()
  22477. {
  22478. eval $1=\$$1\$2
  22479. }
  22480. fi # as_fn_append
  22481. # as_fn_arith ARG...
  22482. # ------------------
  22483. # Perform arithmetic evaluation on the ARGs, and store the result in the
  22484. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  22485. # must be portable across $(()) and expr.
  22486. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  22487. eval 'as_fn_arith ()
  22488. {
  22489. as_val=$(( $* ))
  22490. }'
  22491. else
  22492. as_fn_arith ()
  22493. {
  22494. as_val=`expr "$@" || test $? -eq 1`
  22495. }
  22496. fi # as_fn_arith
  22497. if expr a : '\(a\)' >/dev/null 2>&1 &&
  22498. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  22499. as_expr=expr
  22500. else
  22501. as_expr=false
  22502. fi
  22503. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  22504. as_basename=basename
  22505. else
  22506. as_basename=false
  22507. fi
  22508. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  22509. as_dirname=dirname
  22510. else
  22511. as_dirname=false
  22512. fi
  22513. as_me=`$as_basename -- "$0" ||
  22514. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  22515. X"$0" : 'X\(//\)$' \| \
  22516. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  22517. $as_echo X/"$0" |
  22518. sed '/^.*\/\([^/][^/]*\)\/*$/{
  22519. s//\1/
  22520. q
  22521. }
  22522. /^X\/\(\/\/\)$/{
  22523. s//\1/
  22524. q
  22525. }
  22526. /^X\/\(\/\).*/{
  22527. s//\1/
  22528. q
  22529. }
  22530. s/.*/./; q'`
  22531. # Avoid depending upon Character Ranges.
  22532. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  22533. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  22534. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  22535. as_cr_digits='0123456789'
  22536. as_cr_alnum=$as_cr_Letters$as_cr_digits
  22537. ECHO_C= ECHO_N= ECHO_T=
  22538. case `echo -n x` in #(((((
  22539. -n*)
  22540. case `echo 'xy\c'` in
  22541. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  22542. xy) ECHO_C='\c';;
  22543. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  22544. ECHO_T=' ';;
  22545. esac;;
  22546. *)
  22547. ECHO_N='-n';;
  22548. esac
  22549. rm -f conf$$ conf$$.exe conf$$.file
  22550. if test -d conf$$.dir; then
  22551. rm -f conf$$.dir/conf$$.file
  22552. else
  22553. rm -f conf$$.dir
  22554. mkdir conf$$.dir 2>/dev/null
  22555. fi
  22556. if (echo >conf$$.file) 2>/dev/null; then
  22557. if ln -s conf$$.file conf$$ 2>/dev/null; then
  22558. as_ln_s='ln -s'
  22559. # ... but there are two gotchas:
  22560. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  22561. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  22562. # In both cases, we have to default to `cp -pR'.
  22563. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  22564. as_ln_s='cp -pR'
  22565. elif ln conf$$.file conf$$ 2>/dev/null; then
  22566. as_ln_s=ln
  22567. else
  22568. as_ln_s='cp -pR'
  22569. fi
  22570. else
  22571. as_ln_s='cp -pR'
  22572. fi
  22573. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  22574. rmdir conf$$.dir 2>/dev/null
  22575. # as_fn_mkdir_p
  22576. # -------------
  22577. # Create "$as_dir" as a directory, including parents if necessary.
  22578. as_fn_mkdir_p ()
  22579. {
  22580. case $as_dir in #(
  22581. -*) as_dir=./$as_dir;;
  22582. esac
  22583. test -d "$as_dir" || eval $as_mkdir_p || {
  22584. as_dirs=
  22585. while :; do
  22586. case $as_dir in #(
  22587. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  22588. *) as_qdir=$as_dir;;
  22589. esac
  22590. as_dirs="'$as_qdir' $as_dirs"
  22591. as_dir=`$as_dirname -- "$as_dir" ||
  22592. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22593. X"$as_dir" : 'X\(//\)[^/]' \| \
  22594. X"$as_dir" : 'X\(//\)$' \| \
  22595. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22596. $as_echo X"$as_dir" |
  22597. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22598. s//\1/
  22599. q
  22600. }
  22601. /^X\(\/\/\)[^/].*/{
  22602. s//\1/
  22603. q
  22604. }
  22605. /^X\(\/\/\)$/{
  22606. s//\1/
  22607. q
  22608. }
  22609. /^X\(\/\).*/{
  22610. s//\1/
  22611. q
  22612. }
  22613. s/.*/./; q'`
  22614. test -d "$as_dir" && break
  22615. done
  22616. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22617. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  22618. } # as_fn_mkdir_p
  22619. if mkdir -p . 2>/dev/null; then
  22620. as_mkdir_p='mkdir -p "$as_dir"'
  22621. else
  22622. test -d ./-p && rmdir ./-p
  22623. as_mkdir_p=false
  22624. fi
  22625. # as_fn_executable_p FILE
  22626. # -----------------------
  22627. # Test if FILE is an executable regular file.
  22628. as_fn_executable_p ()
  22629. {
  22630. test -f "$1" && test -x "$1"
  22631. } # as_fn_executable_p
  22632. as_test_x='test -x'
  22633. as_executable_p=as_fn_executable_p
  22634. # Sed expression to map a string onto a valid CPP name.
  22635. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  22636. # Sed expression to map a string onto a valid variable name.
  22637. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  22638. exec 6>&1
  22639. ## ----------------------------------- ##
  22640. ## Main body of $CONFIG_STATUS script. ##
  22641. ## ----------------------------------- ##
  22642. _ASEOF
  22643. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  22644. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22645. # Save the log message, to keep $0 and so on meaningful, and to
  22646. # report actual input values of CONFIG_FILES etc. instead of their
  22647. # values after options handling.
  22648. ac_log="
  22649. This file was extended by $as_me, which was
  22650. generated by GNU Autoconf 2.69. Invocation command line was
  22651. CONFIG_FILES = $CONFIG_FILES
  22652. CONFIG_HEADERS = $CONFIG_HEADERS
  22653. CONFIG_LINKS = $CONFIG_LINKS
  22654. CONFIG_COMMANDS = $CONFIG_COMMANDS
  22655. $ $0 $@
  22656. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  22657. "
  22658. _ACEOF
  22659. case $ac_config_files in *"
  22660. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  22661. esac
  22662. case $ac_config_headers in *"
  22663. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  22664. esac
  22665. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22666. # Files that config.status was made for.
  22667. config_files="$ac_config_files"
  22668. config_headers="$ac_config_headers"
  22669. config_commands="$ac_config_commands"
  22670. _ACEOF
  22671. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22672. ac_cs_usage="\
  22673. \`$as_me' instantiates files and other configuration actions
  22674. from templates according to the current configuration. Unless the files
  22675. and actions are specified as TAGs, all are instantiated by default.
  22676. Usage: $0 [OPTION]... [TAG]...
  22677. -h, --help print this help, then exit
  22678. -V, --version print version number and configuration settings, then exit
  22679. --config print configuration, then exit
  22680. -q, --quiet, --silent
  22681. do not print progress messages
  22682. -d, --debug don't remove temporary files
  22683. --recheck update $as_me by reconfiguring in the same conditions
  22684. --file=FILE[:TEMPLATE]
  22685. instantiate the configuration file FILE
  22686. --header=FILE[:TEMPLATE]
  22687. instantiate the configuration header FILE
  22688. Configuration files:
  22689. $config_files
  22690. Configuration headers:
  22691. $config_headers
  22692. Configuration commands:
  22693. $config_commands
  22694. Report bugs to the package provider."
  22695. _ACEOF
  22696. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22697. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  22698. ac_cs_version="\\
  22699. config.status
  22700. configured by $0, generated by GNU Autoconf 2.69,
  22701. with options \\"\$ac_cs_config\\"
  22702. Copyright (C) 2012 Free Software Foundation, Inc.
  22703. This config.status script is free software; the Free Software Foundation
  22704. gives unlimited permission to copy, distribute and modify it."
  22705. ac_pwd='$ac_pwd'
  22706. srcdir='$srcdir'
  22707. INSTALL='$INSTALL'
  22708. AWK='$AWK'
  22709. test -n "\$AWK" || AWK=awk
  22710. _ACEOF
  22711. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22712. # The default lists apply if the user does not specify any file.
  22713. ac_need_defaults=:
  22714. while test $# != 0
  22715. do
  22716. case $1 in
  22717. --*=?*)
  22718. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22719. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  22720. ac_shift=:
  22721. ;;
  22722. --*=)
  22723. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22724. ac_optarg=
  22725. ac_shift=:
  22726. ;;
  22727. *)
  22728. ac_option=$1
  22729. ac_optarg=$2
  22730. ac_shift=shift
  22731. ;;
  22732. esac
  22733. case $ac_option in
  22734. # Handling of the options.
  22735. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22736. ac_cs_recheck=: ;;
  22737. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  22738. $as_echo "$ac_cs_version"; exit ;;
  22739. --config | --confi | --conf | --con | --co | --c )
  22740. $as_echo "$ac_cs_config"; exit ;;
  22741. --debug | --debu | --deb | --de | --d | -d )
  22742. debug=: ;;
  22743. --file | --fil | --fi | --f )
  22744. $ac_shift
  22745. case $ac_optarg in
  22746. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22747. '') as_fn_error $? "missing file argument" ;;
  22748. esac
  22749. as_fn_append CONFIG_FILES " '$ac_optarg'"
  22750. ac_need_defaults=false;;
  22751. --header | --heade | --head | --hea )
  22752. $ac_shift
  22753. case $ac_optarg in
  22754. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22755. esac
  22756. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  22757. ac_need_defaults=false;;
  22758. --he | --h)
  22759. # Conflict between --help and --header
  22760. as_fn_error $? "ambiguous option: \`$1'
  22761. Try \`$0 --help' for more information.";;
  22762. --help | --hel | -h )
  22763. $as_echo "$ac_cs_usage"; exit ;;
  22764. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  22765. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  22766. ac_cs_silent=: ;;
  22767. # This is an error.
  22768. -*) as_fn_error $? "unrecognized option: \`$1'
  22769. Try \`$0 --help' for more information." ;;
  22770. *) as_fn_append ac_config_targets " $1"
  22771. ac_need_defaults=false ;;
  22772. esac
  22773. shift
  22774. done
  22775. ac_configure_extra_args=
  22776. if $ac_cs_silent; then
  22777. exec 6>/dev/null
  22778. ac_configure_extra_args="$ac_configure_extra_args --silent"
  22779. fi
  22780. _ACEOF
  22781. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22782. if \$ac_cs_recheck; then
  22783. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  22784. shift
  22785. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  22786. CONFIG_SHELL='$SHELL'
  22787. export CONFIG_SHELL
  22788. exec "\$@"
  22789. fi
  22790. _ACEOF
  22791. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22792. exec 5>>config.log
  22793. {
  22794. echo
  22795. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22796. ## Running $as_me. ##
  22797. _ASBOX
  22798. $as_echo "$ac_log"
  22799. } >&5
  22800. _ACEOF
  22801. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22802. #
  22803. # INIT-COMMANDS
  22804. #
  22805. # The HP-UX ksh and POSIX shell print the target directory to stdout
  22806. # if CDPATH is set.
  22807. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22808. sed_quote_subst='$sed_quote_subst'
  22809. double_quote_subst='$double_quote_subst'
  22810. delay_variable_subst='$delay_variable_subst'
  22811. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  22812. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  22813. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  22814. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  22815. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  22816. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  22817. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  22818. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  22819. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  22820. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  22821. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  22822. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  22823. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  22824. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  22825. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  22826. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  22827. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  22828. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  22829. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  22830. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  22831. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  22832. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  22833. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  22834. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  22835. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  22836. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  22837. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  22838. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  22839. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  22840. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  22841. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  22842. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  22843. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  22844. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  22845. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  22846. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  22847. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  22848. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  22849. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  22850. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  22851. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  22852. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  22853. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  22854. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  22855. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  22856. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  22857. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22858. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22859. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  22860. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  22861. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  22862. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  22863. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  22864. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  22865. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  22866. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  22867. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  22868. 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"`'
  22869. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  22870. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  22871. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  22872. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  22873. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  22874. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  22875. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  22876. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  22877. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  22878. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  22879. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  22880. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  22881. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  22882. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  22883. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  22884. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  22885. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  22886. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  22887. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22888. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  22889. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  22890. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  22891. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  22892. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  22893. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  22894. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22895. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  22896. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22897. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  22898. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22899. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  22900. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22901. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22902. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  22903. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  22904. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  22905. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  22906. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  22907. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22908. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  22909. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  22910. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  22911. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  22912. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  22913. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  22914. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  22915. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  22916. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  22917. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  22918. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  22919. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  22920. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  22921. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  22922. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  22923. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22924. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  22925. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  22926. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  22927. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  22928. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  22929. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22930. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22931. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  22932. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  22933. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  22934. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  22935. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  22936. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  22937. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  22938. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  22939. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  22940. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  22941. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  22942. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  22943. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  22944. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  22945. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  22946. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  22947. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  22948. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  22949. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  22950. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  22951. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22952. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22953. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22954. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22955. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22956. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  22957. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  22958. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  22959. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  22960. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  22961. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22962. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  22963. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  22964. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  22965. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  22966. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  22967. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  22968. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  22969. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  22970. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  22971. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  22972. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  22973. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  22974. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  22975. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22976. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  22977. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22978. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  22979. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  22980. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22981. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22982. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22983. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22984. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22985. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22986. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22987. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22988. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22989. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22990. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22991. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22992. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  22993. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  22994. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  22995. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22996. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  22997. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22998. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  22999. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23000. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  23001. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  23002. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  23003. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  23004. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  23005. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  23006. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  23007. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  23008. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  23009. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  23010. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  23011. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  23012. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  23013. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  23014. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  23015. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  23016. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  23017. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  23018. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23019. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23020. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  23021. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  23022. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  23023. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  23024. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23025. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23026. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23027. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23028. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  23029. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23030. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  23031. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  23032. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  23033. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  23034. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  23035. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  23036. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  23037. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  23038. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  23039. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  23040. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  23041. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  23042. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  23043. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  23044. LTCC='$LTCC'
  23045. LTCFLAGS='$LTCFLAGS'
  23046. compiler='$compiler_DEFAULT'
  23047. # A function that is used when there is no print builtin or printf.
  23048. func_fallback_echo ()
  23049. {
  23050. eval 'cat <<_LTECHO_EOF
  23051. \$1
  23052. _LTECHO_EOF'
  23053. }
  23054. # Quote evaled strings.
  23055. for var in AS \
  23056. DLLTOOL \
  23057. OBJDUMP \
  23058. SHELL \
  23059. ECHO \
  23060. PATH_SEPARATOR \
  23061. SED \
  23062. GREP \
  23063. EGREP \
  23064. FGREP \
  23065. LD \
  23066. NM \
  23067. LN_S \
  23068. lt_SP2NL \
  23069. lt_NL2SP \
  23070. reload_flag \
  23071. deplibs_check_method \
  23072. file_magic_cmd \
  23073. file_magic_glob \
  23074. want_nocaseglob \
  23075. sharedlib_from_linklib_cmd \
  23076. AR \
  23077. AR_FLAGS \
  23078. archiver_list_spec \
  23079. STRIP \
  23080. RANLIB \
  23081. CC \
  23082. CFLAGS \
  23083. compiler \
  23084. lt_cv_sys_global_symbol_pipe \
  23085. lt_cv_sys_global_symbol_to_cdecl \
  23086. lt_cv_sys_global_symbol_to_c_name_address \
  23087. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  23088. nm_file_list_spec \
  23089. lt_prog_compiler_no_builtin_flag \
  23090. lt_prog_compiler_pic \
  23091. lt_prog_compiler_wl \
  23092. lt_prog_compiler_static \
  23093. lt_cv_prog_compiler_c_o \
  23094. need_locks \
  23095. MANIFEST_TOOL \
  23096. DSYMUTIL \
  23097. NMEDIT \
  23098. LIPO \
  23099. OTOOL \
  23100. OTOOL64 \
  23101. shrext_cmds \
  23102. export_dynamic_flag_spec \
  23103. whole_archive_flag_spec \
  23104. compiler_needs_object \
  23105. with_gnu_ld \
  23106. allow_undefined_flag \
  23107. no_undefined_flag \
  23108. hardcode_libdir_flag_spec \
  23109. hardcode_libdir_separator \
  23110. exclude_expsyms \
  23111. include_expsyms \
  23112. file_list_spec \
  23113. variables_saved_for_relink \
  23114. libname_spec \
  23115. library_names_spec \
  23116. soname_spec \
  23117. install_override_mode \
  23118. finish_eval \
  23119. old_striplib \
  23120. striplib \
  23121. compiler_lib_search_dirs \
  23122. predep_objects \
  23123. postdep_objects \
  23124. predeps \
  23125. postdeps \
  23126. compiler_lib_search_path \
  23127. LD_RC \
  23128. LD_CXX \
  23129. reload_flag_RC \
  23130. reload_flag_CXX \
  23131. compiler_RC \
  23132. compiler_CXX \
  23133. lt_prog_compiler_no_builtin_flag_RC \
  23134. lt_prog_compiler_no_builtin_flag_CXX \
  23135. lt_prog_compiler_pic_RC \
  23136. lt_prog_compiler_pic_CXX \
  23137. lt_prog_compiler_wl_RC \
  23138. lt_prog_compiler_wl_CXX \
  23139. lt_prog_compiler_static_RC \
  23140. lt_prog_compiler_static_CXX \
  23141. lt_cv_prog_compiler_c_o_RC \
  23142. lt_cv_prog_compiler_c_o_CXX \
  23143. export_dynamic_flag_spec_RC \
  23144. export_dynamic_flag_spec_CXX \
  23145. whole_archive_flag_spec_RC \
  23146. whole_archive_flag_spec_CXX \
  23147. compiler_needs_object_RC \
  23148. compiler_needs_object_CXX \
  23149. with_gnu_ld_RC \
  23150. with_gnu_ld_CXX \
  23151. allow_undefined_flag_RC \
  23152. allow_undefined_flag_CXX \
  23153. no_undefined_flag_RC \
  23154. no_undefined_flag_CXX \
  23155. hardcode_libdir_flag_spec_RC \
  23156. hardcode_libdir_flag_spec_CXX \
  23157. hardcode_libdir_separator_RC \
  23158. hardcode_libdir_separator_CXX \
  23159. exclude_expsyms_RC \
  23160. exclude_expsyms_CXX \
  23161. include_expsyms_RC \
  23162. include_expsyms_CXX \
  23163. file_list_spec_RC \
  23164. file_list_spec_CXX \
  23165. compiler_lib_search_dirs_RC \
  23166. compiler_lib_search_dirs_CXX \
  23167. predep_objects_RC \
  23168. predep_objects_CXX \
  23169. postdep_objects_RC \
  23170. postdep_objects_CXX \
  23171. predeps_RC \
  23172. predeps_CXX \
  23173. postdeps_RC \
  23174. postdeps_CXX \
  23175. compiler_lib_search_path_RC \
  23176. compiler_lib_search_path_CXX; do
  23177. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  23178. *[\\\\\\\`\\"\\\$]*)
  23179. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  23180. ;;
  23181. *)
  23182. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  23183. ;;
  23184. esac
  23185. done
  23186. # Double-quote double-evaled strings.
  23187. for var in reload_cmds \
  23188. old_postinstall_cmds \
  23189. old_postuninstall_cmds \
  23190. old_archive_cmds \
  23191. extract_expsyms_cmds \
  23192. old_archive_from_new_cmds \
  23193. old_archive_from_expsyms_cmds \
  23194. archive_cmds \
  23195. archive_expsym_cmds \
  23196. module_cmds \
  23197. module_expsym_cmds \
  23198. export_symbols_cmds \
  23199. prelink_cmds \
  23200. postlink_cmds \
  23201. postinstall_cmds \
  23202. postuninstall_cmds \
  23203. finish_cmds \
  23204. sys_lib_search_path_spec \
  23205. sys_lib_dlsearch_path_spec \
  23206. reload_cmds_RC \
  23207. reload_cmds_CXX \
  23208. old_archive_cmds_RC \
  23209. old_archive_cmds_CXX \
  23210. old_archive_from_new_cmds_RC \
  23211. old_archive_from_new_cmds_CXX \
  23212. old_archive_from_expsyms_cmds_RC \
  23213. old_archive_from_expsyms_cmds_CXX \
  23214. archive_cmds_RC \
  23215. archive_cmds_CXX \
  23216. archive_expsym_cmds_RC \
  23217. archive_expsym_cmds_CXX \
  23218. module_cmds_RC \
  23219. module_cmds_CXX \
  23220. module_expsym_cmds_RC \
  23221. module_expsym_cmds_CXX \
  23222. export_symbols_cmds_RC \
  23223. export_symbols_cmds_CXX \
  23224. prelink_cmds_RC \
  23225. prelink_cmds_CXX \
  23226. postlink_cmds_RC \
  23227. postlink_cmds_CXX; do
  23228. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  23229. *[\\\\\\\`\\"\\\$]*)
  23230. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  23231. ;;
  23232. *)
  23233. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  23234. ;;
  23235. esac
  23236. done
  23237. ac_aux_dir='$ac_aux_dir'
  23238. xsi_shell='$xsi_shell'
  23239. lt_shell_append='$lt_shell_append'
  23240. # See if we are running on zsh, and set the options which allow our
  23241. # commands through without removal of \ escapes INIT.
  23242. if test -n "\${ZSH_VERSION+set}" ; then
  23243. setopt NO_GLOB_SUBST
  23244. fi
  23245. PACKAGE='$PACKAGE'
  23246. VERSION='$VERSION'
  23247. TIMESTAMP='$TIMESTAMP'
  23248. RM='$RM'
  23249. ofile='$ofile'
  23250. SUMMARY="$SUMMARY"
  23251. _ACEOF
  23252. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23253. # Handling of arguments.
  23254. for ac_config_target in $ac_config_targets
  23255. do
  23256. case $ac_config_target in
  23257. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  23258. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  23259. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  23260. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  23261. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  23262. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  23263. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  23264. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  23265. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  23266. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  23267. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  23268. esac
  23269. done
  23270. # If the user did not use the arguments to specify the items to instantiate,
  23271. # then the envvar interface is used. Set only those that are not.
  23272. # We use the long form for the default assignment because of an extremely
  23273. # bizarre bug on SunOS 4.1.3.
  23274. if $ac_need_defaults; then
  23275. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  23276. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  23277. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  23278. fi
  23279. # Have a temporary directory for convenience. Make it in the build tree
  23280. # simply because there is no reason against having it here, and in addition,
  23281. # creating and moving files from /tmp can sometimes cause problems.
  23282. # Hook for its removal unless debugging.
  23283. # Note that there is a small window in which the directory will not be cleaned:
  23284. # after its creation but before its name has been assigned to `$tmp'.
  23285. $debug ||
  23286. {
  23287. tmp= ac_tmp=
  23288. trap 'exit_status=$?
  23289. : "${ac_tmp:=$tmp}"
  23290. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  23291. ' 0
  23292. trap 'as_fn_exit 1' 1 2 13 15
  23293. }
  23294. # Create a (secure) tmp directory for tmp files.
  23295. {
  23296. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  23297. test -d "$tmp"
  23298. } ||
  23299. {
  23300. tmp=./conf$$-$RANDOM
  23301. (umask 077 && mkdir "$tmp")
  23302. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  23303. ac_tmp=$tmp
  23304. # Set up the scripts for CONFIG_FILES section.
  23305. # No need to generate them if there are no CONFIG_FILES.
  23306. # This happens for instance with `./config.status config.h'.
  23307. if test -n "$CONFIG_FILES"; then
  23308. ac_cr=`echo X | tr X '\015'`
  23309. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  23310. # But we know of no other shell where ac_cr would be empty at this
  23311. # point, so we can use a bashism as a fallback.
  23312. if test "x$ac_cr" = x; then
  23313. eval ac_cr=\$\'\\r\'
  23314. fi
  23315. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  23316. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  23317. ac_cs_awk_cr='\\r'
  23318. else
  23319. ac_cs_awk_cr=$ac_cr
  23320. fi
  23321. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  23322. _ACEOF
  23323. {
  23324. echo "cat >conf$$subs.awk <<_ACEOF" &&
  23325. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  23326. echo "_ACEOF"
  23327. } >conf$$subs.sh ||
  23328. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23329. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  23330. ac_delim='%!_!# '
  23331. for ac_last_try in false false false false false :; do
  23332. . ./conf$$subs.sh ||
  23333. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23334. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  23335. if test $ac_delim_n = $ac_delim_num; then
  23336. break
  23337. elif $ac_last_try; then
  23338. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23339. else
  23340. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23341. fi
  23342. done
  23343. rm -f conf$$subs.sh
  23344. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23345. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  23346. _ACEOF
  23347. sed -n '
  23348. h
  23349. s/^/S["/; s/!.*/"]=/
  23350. p
  23351. g
  23352. s/^[^!]*!//
  23353. :repl
  23354. t repl
  23355. s/'"$ac_delim"'$//
  23356. t delim
  23357. :nl
  23358. h
  23359. s/\(.\{148\}\)..*/\1/
  23360. t more1
  23361. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  23362. p
  23363. n
  23364. b repl
  23365. :more1
  23366. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23367. p
  23368. g
  23369. s/.\{148\}//
  23370. t nl
  23371. :delim
  23372. h
  23373. s/\(.\{148\}\)..*/\1/
  23374. t more2
  23375. s/["\\]/\\&/g; s/^/"/; s/$/"/
  23376. p
  23377. b
  23378. :more2
  23379. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23380. p
  23381. g
  23382. s/.\{148\}//
  23383. t delim
  23384. ' <conf$$subs.awk | sed '
  23385. /^[^""]/{
  23386. N
  23387. s/\n//
  23388. }
  23389. ' >>$CONFIG_STATUS || ac_write_fail=1
  23390. rm -f conf$$subs.awk
  23391. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23392. _ACAWK
  23393. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  23394. for (key in S) S_is_set[key] = 1
  23395. FS = ""
  23396. }
  23397. {
  23398. line = $ 0
  23399. nfields = split(line, field, "@")
  23400. substed = 0
  23401. len = length(field[1])
  23402. for (i = 2; i < nfields; i++) {
  23403. key = field[i]
  23404. keylen = length(key)
  23405. if (S_is_set[key]) {
  23406. value = S[key]
  23407. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  23408. len += length(value) + length(field[++i])
  23409. substed = 1
  23410. } else
  23411. len += 1 + keylen
  23412. }
  23413. print line
  23414. }
  23415. _ACAWK
  23416. _ACEOF
  23417. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23418. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  23419. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  23420. else
  23421. cat
  23422. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  23423. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  23424. _ACEOF
  23425. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  23426. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  23427. # trailing colons and then remove the whole line if VPATH becomes empty
  23428. # (actually we leave an empty line to preserve line numbers).
  23429. if test "x$srcdir" = x.; then
  23430. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  23431. h
  23432. s///
  23433. s/^/:/
  23434. s/[ ]*$/:/
  23435. s/:\$(srcdir):/:/g
  23436. s/:\${srcdir}:/:/g
  23437. s/:@srcdir@:/:/g
  23438. s/^:*//
  23439. s/:*$//
  23440. x
  23441. s/\(=[ ]*\).*/\1/
  23442. G
  23443. s/\n//
  23444. s/^[^=]*=[ ]*$//
  23445. }'
  23446. fi
  23447. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23448. fi # test -n "$CONFIG_FILES"
  23449. # Set up the scripts for CONFIG_HEADERS section.
  23450. # No need to generate them if there are no CONFIG_HEADERS.
  23451. # This happens for instance with `./config.status Makefile'.
  23452. if test -n "$CONFIG_HEADERS"; then
  23453. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  23454. BEGIN {
  23455. _ACEOF
  23456. # Transform confdefs.h into an awk script `defines.awk', embedded as
  23457. # here-document in config.status, that substitutes the proper values into
  23458. # config.h.in to produce config.h.
  23459. # Create a delimiter string that does not exist in confdefs.h, to ease
  23460. # handling of long lines.
  23461. ac_delim='%!_!# '
  23462. for ac_last_try in false false :; do
  23463. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  23464. if test -z "$ac_tt"; then
  23465. break
  23466. elif $ac_last_try; then
  23467. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  23468. else
  23469. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23470. fi
  23471. done
  23472. # For the awk script, D is an array of macro values keyed by name,
  23473. # likewise P contains macro parameters if any. Preserve backslash
  23474. # newline sequences.
  23475. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  23476. sed -n '
  23477. s/.\{148\}/&'"$ac_delim"'/g
  23478. t rset
  23479. :rset
  23480. s/^[ ]*#[ ]*define[ ][ ]*/ /
  23481. t def
  23482. d
  23483. :def
  23484. s/\\$//
  23485. t bsnl
  23486. s/["\\]/\\&/g
  23487. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23488. D["\1"]=" \3"/p
  23489. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  23490. d
  23491. :bsnl
  23492. s/["\\]/\\&/g
  23493. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23494. D["\1"]=" \3\\\\\\n"\\/p
  23495. t cont
  23496. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  23497. t cont
  23498. d
  23499. :cont
  23500. n
  23501. s/.\{148\}/&'"$ac_delim"'/g
  23502. t clear
  23503. :clear
  23504. s/\\$//
  23505. t bsnlc
  23506. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  23507. d
  23508. :bsnlc
  23509. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  23510. b cont
  23511. ' <confdefs.h | sed '
  23512. s/'"$ac_delim"'/"\\\
  23513. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  23514. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23515. for (key in D) D_is_set[key] = 1
  23516. FS = ""
  23517. }
  23518. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  23519. line = \$ 0
  23520. split(line, arg, " ")
  23521. if (arg[1] == "#") {
  23522. defundef = arg[2]
  23523. mac1 = arg[3]
  23524. } else {
  23525. defundef = substr(arg[1], 2)
  23526. mac1 = arg[2]
  23527. }
  23528. split(mac1, mac2, "(") #)
  23529. macro = mac2[1]
  23530. prefix = substr(line, 1, index(line, defundef) - 1)
  23531. if (D_is_set[macro]) {
  23532. # Preserve the white space surrounding the "#".
  23533. print prefix "define", macro P[macro] D[macro]
  23534. next
  23535. } else {
  23536. # Replace #undef with comments. This is necessary, for example,
  23537. # in the case of _POSIX_SOURCE, which is predefined and required
  23538. # on some systems where configure will not decide to define it.
  23539. if (defundef == "undef") {
  23540. print "/*", prefix defundef, macro, "*/"
  23541. next
  23542. }
  23543. }
  23544. }
  23545. { print }
  23546. _ACAWK
  23547. _ACEOF
  23548. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23549. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  23550. fi # test -n "$CONFIG_HEADERS"
  23551. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  23552. shift
  23553. for ac_tag
  23554. do
  23555. case $ac_tag in
  23556. :[FHLC]) ac_mode=$ac_tag; continue;;
  23557. esac
  23558. case $ac_mode$ac_tag in
  23559. :[FHL]*:*);;
  23560. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  23561. :[FH]-) ac_tag=-:-;;
  23562. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  23563. esac
  23564. ac_save_IFS=$IFS
  23565. IFS=:
  23566. set x $ac_tag
  23567. IFS=$ac_save_IFS
  23568. shift
  23569. ac_file=$1
  23570. shift
  23571. case $ac_mode in
  23572. :L) ac_source=$1;;
  23573. :[FH])
  23574. ac_file_inputs=
  23575. for ac_f
  23576. do
  23577. case $ac_f in
  23578. -) ac_f="$ac_tmp/stdin";;
  23579. *) # Look for the file first in the build tree, then in the source tree
  23580. # (if the path is not absolute). The absolute path cannot be DOS-style,
  23581. # because $ac_f cannot contain `:'.
  23582. test -f "$ac_f" ||
  23583. case $ac_f in
  23584. [\\/$]*) false;;
  23585. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  23586. esac ||
  23587. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  23588. esac
  23589. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  23590. as_fn_append ac_file_inputs " '$ac_f'"
  23591. done
  23592. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23593. # use $as_me), people would be surprised to read:
  23594. # /* config.h. Generated by config.status. */
  23595. configure_input='Generated from '`
  23596. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  23597. `' by configure.'
  23598. if test x"$ac_file" != x-; then
  23599. configure_input="$ac_file. $configure_input"
  23600. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  23601. $as_echo "$as_me: creating $ac_file" >&6;}
  23602. fi
  23603. # Neutralize special characters interpreted by sed in replacement strings.
  23604. case $configure_input in #(
  23605. *\&* | *\|* | *\\* )
  23606. ac_sed_conf_input=`$as_echo "$configure_input" |
  23607. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  23608. *) ac_sed_conf_input=$configure_input;;
  23609. esac
  23610. case $ac_tag in
  23611. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  23612. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  23613. esac
  23614. ;;
  23615. esac
  23616. ac_dir=`$as_dirname -- "$ac_file" ||
  23617. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23618. X"$ac_file" : 'X\(//\)[^/]' \| \
  23619. X"$ac_file" : 'X\(//\)$' \| \
  23620. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  23621. $as_echo X"$ac_file" |
  23622. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23623. s//\1/
  23624. q
  23625. }
  23626. /^X\(\/\/\)[^/].*/{
  23627. s//\1/
  23628. q
  23629. }
  23630. /^X\(\/\/\)$/{
  23631. s//\1/
  23632. q
  23633. }
  23634. /^X\(\/\).*/{
  23635. s//\1/
  23636. q
  23637. }
  23638. s/.*/./; q'`
  23639. as_dir="$ac_dir"; as_fn_mkdir_p
  23640. ac_builddir=.
  23641. case "$ac_dir" in
  23642. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23643. *)
  23644. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  23645. # A ".." for each directory in $ac_dir_suffix.
  23646. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  23647. case $ac_top_builddir_sub in
  23648. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23649. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  23650. esac ;;
  23651. esac
  23652. ac_abs_top_builddir=$ac_pwd
  23653. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  23654. # for backward compatibility:
  23655. ac_top_builddir=$ac_top_build_prefix
  23656. case $srcdir in
  23657. .) # We are building in place.
  23658. ac_srcdir=.
  23659. ac_top_srcdir=$ac_top_builddir_sub
  23660. ac_abs_top_srcdir=$ac_pwd ;;
  23661. [\\/]* | ?:[\\/]* ) # Absolute name.
  23662. ac_srcdir=$srcdir$ac_dir_suffix;
  23663. ac_top_srcdir=$srcdir
  23664. ac_abs_top_srcdir=$srcdir ;;
  23665. *) # Relative name.
  23666. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  23667. ac_top_srcdir=$ac_top_build_prefix$srcdir
  23668. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  23669. esac
  23670. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  23671. case $ac_mode in
  23672. :F)
  23673. #
  23674. # CONFIG_FILE
  23675. #
  23676. case $INSTALL in
  23677. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  23678. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  23679. esac
  23680. _ACEOF
  23681. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23682. # If the template does not know about datarootdir, expand it.
  23683. # FIXME: This hack should be removed a few years after 2.60.
  23684. ac_datarootdir_hack=; ac_datarootdir_seen=
  23685. ac_sed_dataroot='
  23686. /datarootdir/ {
  23687. p
  23688. q
  23689. }
  23690. /@datadir@/p
  23691. /@docdir@/p
  23692. /@infodir@/p
  23693. /@localedir@/p
  23694. /@mandir@/p'
  23695. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  23696. *datarootdir*) ac_datarootdir_seen=yes;;
  23697. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  23698. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  23699. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  23700. _ACEOF
  23701. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23702. ac_datarootdir_hack='
  23703. s&@datadir@&$datadir&g
  23704. s&@docdir@&$docdir&g
  23705. s&@infodir@&$infodir&g
  23706. s&@localedir@&$localedir&g
  23707. s&@mandir@&$mandir&g
  23708. s&\\\${datarootdir}&$datarootdir&g' ;;
  23709. esac
  23710. _ACEOF
  23711. # Neutralize VPATH when `$srcdir' = `.'.
  23712. # Shell code in configure.ac might set extrasub.
  23713. # FIXME: do we really want to maintain this feature?
  23714. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23715. ac_sed_extra="$ac_vpsub
  23716. $extrasub
  23717. _ACEOF
  23718. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23719. :t
  23720. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  23721. s|@configure_input@|$ac_sed_conf_input|;t t
  23722. s&@top_builddir@&$ac_top_builddir_sub&;t t
  23723. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  23724. s&@srcdir@&$ac_srcdir&;t t
  23725. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  23726. s&@top_srcdir@&$ac_top_srcdir&;t t
  23727. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  23728. s&@builddir@&$ac_builddir&;t t
  23729. s&@abs_builddir@&$ac_abs_builddir&;t t
  23730. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  23731. s&@INSTALL@&$ac_INSTALL&;t t
  23732. $ac_datarootdir_hack
  23733. "
  23734. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  23735. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23736. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  23737. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  23738. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  23739. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  23740. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23741. which seems to be undefined. Please make sure it is defined" >&5
  23742. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23743. which seems to be undefined. Please make sure it is defined" >&2;}
  23744. rm -f "$ac_tmp/stdin"
  23745. case $ac_file in
  23746. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  23747. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  23748. esac \
  23749. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23750. ;;
  23751. :H)
  23752. #
  23753. # CONFIG_HEADER
  23754. #
  23755. if test x"$ac_file" != x-; then
  23756. {
  23757. $as_echo "/* $configure_input */" \
  23758. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  23759. } >"$ac_tmp/config.h" \
  23760. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23761. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  23762. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  23763. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  23764. else
  23765. rm -f "$ac_file"
  23766. mv "$ac_tmp/config.h" "$ac_file" \
  23767. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23768. fi
  23769. else
  23770. $as_echo "/* $configure_input */" \
  23771. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  23772. || as_fn_error $? "could not create -" "$LINENO" 5
  23773. fi
  23774. ;;
  23775. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  23776. $as_echo "$as_me: executing $ac_file commands" >&6;}
  23777. ;;
  23778. esac
  23779. case $ac_file$ac_mode in
  23780. "libtool":C)
  23781. # See if we are running on zsh, and set the options which allow our
  23782. # commands through without removal of \ escapes.
  23783. if test -n "${ZSH_VERSION+set}" ; then
  23784. setopt NO_GLOB_SUBST
  23785. fi
  23786. cfgfile="${ofile}T"
  23787. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  23788. $RM "$cfgfile"
  23789. cat <<_LT_EOF >> "$cfgfile"
  23790. #! $SHELL
  23791. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  23792. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  23793. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  23794. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  23795. #
  23796. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  23797. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  23798. # Foundation, Inc.
  23799. # Written by Gordon Matzigkeit, 1996
  23800. #
  23801. # This file is part of GNU Libtool.
  23802. #
  23803. # GNU Libtool is free software; you can redistribute it and/or
  23804. # modify it under the terms of the GNU General Public License as
  23805. # published by the Free Software Foundation; either version 2 of
  23806. # the License, or (at your option) any later version.
  23807. #
  23808. # As a special exception to the GNU General Public License,
  23809. # if you distribute this file as part of a program or library that
  23810. # is built using GNU Libtool, you may include this file under the
  23811. # same distribution terms that you use for the rest of that program.
  23812. #
  23813. # GNU Libtool is distributed in the hope that it will be useful,
  23814. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23815. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23816. # GNU General Public License for more details.
  23817. #
  23818. # You should have received a copy of the GNU General Public License
  23819. # along with GNU Libtool; see the file COPYING. If not, a copy
  23820. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  23821. # obtained by writing to the Free Software Foundation, Inc.,
  23822. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23823. # The names of the tagged configurations supported by this script.
  23824. available_tags="RC CXX "
  23825. # ### BEGIN LIBTOOL CONFIG
  23826. # Which release of libtool.m4 was used?
  23827. macro_version=$macro_version
  23828. macro_revision=$macro_revision
  23829. # Assembler program.
  23830. AS=$lt_AS
  23831. # DLL creation program.
  23832. DLLTOOL=$lt_DLLTOOL
  23833. # Object dumper program.
  23834. OBJDUMP=$lt_OBJDUMP
  23835. # Whether or not to build shared libraries.
  23836. build_libtool_libs=$enable_shared
  23837. # Whether or not to build static libraries.
  23838. build_old_libs=$enable_static
  23839. # What type of objects to build.
  23840. pic_mode=$pic_mode
  23841. # Whether or not to optimize for fast installation.
  23842. fast_install=$enable_fast_install
  23843. # Shell to use when invoking shell scripts.
  23844. SHELL=$lt_SHELL
  23845. # An echo program that protects backslashes.
  23846. ECHO=$lt_ECHO
  23847. # The PATH separator for the build system.
  23848. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  23849. # The host system.
  23850. host_alias=$host_alias
  23851. host=$host
  23852. host_os=$host_os
  23853. # The build system.
  23854. build_alias=$build_alias
  23855. build=$build
  23856. build_os=$build_os
  23857. # A sed program that does not truncate output.
  23858. SED=$lt_SED
  23859. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  23860. Xsed="\$SED -e 1s/^X//"
  23861. # A grep program that handles long lines.
  23862. GREP=$lt_GREP
  23863. # An ERE matcher.
  23864. EGREP=$lt_EGREP
  23865. # A literal string matcher.
  23866. FGREP=$lt_FGREP
  23867. # A BSD- or MS-compatible name lister.
  23868. NM=$lt_NM
  23869. # Whether we need soft or hard links.
  23870. LN_S=$lt_LN_S
  23871. # What is the maximum length of a command?
  23872. max_cmd_len=$max_cmd_len
  23873. # Object file suffix (normally "o").
  23874. objext=$ac_objext
  23875. # Executable file suffix (normally "").
  23876. exeext=$exeext
  23877. # whether the shell understands "unset".
  23878. lt_unset=$lt_unset
  23879. # turn spaces into newlines.
  23880. SP2NL=$lt_lt_SP2NL
  23881. # turn newlines into spaces.
  23882. NL2SP=$lt_lt_NL2SP
  23883. # convert \$build file names to \$host format.
  23884. to_host_file_cmd=$lt_cv_to_host_file_cmd
  23885. # convert \$build files to toolchain format.
  23886. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  23887. # Method to check whether dependent libraries are shared objects.
  23888. deplibs_check_method=$lt_deplibs_check_method
  23889. # Command to use when deplibs_check_method = "file_magic".
  23890. file_magic_cmd=$lt_file_magic_cmd
  23891. # How to find potential files when deplibs_check_method = "file_magic".
  23892. file_magic_glob=$lt_file_magic_glob
  23893. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  23894. want_nocaseglob=$lt_want_nocaseglob
  23895. # Command to associate shared and link libraries.
  23896. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  23897. # The archiver.
  23898. AR=$lt_AR
  23899. # Flags to create an archive.
  23900. AR_FLAGS=$lt_AR_FLAGS
  23901. # How to feed a file listing to the archiver.
  23902. archiver_list_spec=$lt_archiver_list_spec
  23903. # A symbol stripping program.
  23904. STRIP=$lt_STRIP
  23905. # Commands used to install an old-style archive.
  23906. RANLIB=$lt_RANLIB
  23907. old_postinstall_cmds=$lt_old_postinstall_cmds
  23908. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  23909. # Whether to use a lock for old archive extraction.
  23910. lock_old_archive_extraction=$lock_old_archive_extraction
  23911. # A C compiler.
  23912. LTCC=$lt_CC
  23913. # LTCC compiler flags.
  23914. LTCFLAGS=$lt_CFLAGS
  23915. # Take the output of nm and produce a listing of raw symbols and C names.
  23916. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  23917. # Transform the output of nm in a proper C declaration.
  23918. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  23919. # Transform the output of nm in a C name address pair.
  23920. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  23921. # Transform the output of nm in a C name address pair when lib prefix is needed.
  23922. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  23923. # Specify filename containing input files for \$NM.
  23924. nm_file_list_spec=$lt_nm_file_list_spec
  23925. # The root where to search for dependent libraries,and in which our libraries should be installed.
  23926. lt_sysroot=$lt_sysroot
  23927. # The name of the directory that contains temporary libtool files.
  23928. objdir=$objdir
  23929. # Used to examine libraries when file_magic_cmd begins with "file".
  23930. MAGIC_CMD=$MAGIC_CMD
  23931. # Must we lock files when doing compilation?
  23932. need_locks=$lt_need_locks
  23933. # Manifest tool.
  23934. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  23935. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  23936. DSYMUTIL=$lt_DSYMUTIL
  23937. # Tool to change global to local symbols on Mac OS X.
  23938. NMEDIT=$lt_NMEDIT
  23939. # Tool to manipulate fat objects and archives on Mac OS X.
  23940. LIPO=$lt_LIPO
  23941. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  23942. OTOOL=$lt_OTOOL
  23943. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  23944. OTOOL64=$lt_OTOOL64
  23945. # Old archive suffix (normally "a").
  23946. libext=$libext
  23947. # Shared library suffix (normally ".so").
  23948. shrext_cmds=$lt_shrext_cmds
  23949. # The commands to extract the exported symbol list from a shared archive.
  23950. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  23951. # Variables whose values should be saved in libtool wrapper scripts and
  23952. # restored at link time.
  23953. variables_saved_for_relink=$lt_variables_saved_for_relink
  23954. # Do we need the "lib" prefix for modules?
  23955. need_lib_prefix=$need_lib_prefix
  23956. # Do we need a version for libraries?
  23957. need_version=$need_version
  23958. # Library versioning type.
  23959. version_type=$version_type
  23960. # Shared library runtime path variable.
  23961. runpath_var=$runpath_var
  23962. # Shared library path variable.
  23963. shlibpath_var=$shlibpath_var
  23964. # Is shlibpath searched before the hard-coded library search path?
  23965. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  23966. # Format of library name prefix.
  23967. libname_spec=$lt_libname_spec
  23968. # List of archive names. First name is the real one, the rest are links.
  23969. # The last name is the one that the linker finds with -lNAME
  23970. library_names_spec=$lt_library_names_spec
  23971. # The coded name of the library, if different from the real name.
  23972. soname_spec=$lt_soname_spec
  23973. # Permission mode override for installation of shared libraries.
  23974. install_override_mode=$lt_install_override_mode
  23975. # Command to use after installation of a shared archive.
  23976. postinstall_cmds=$lt_postinstall_cmds
  23977. # Command to use after uninstallation of a shared archive.
  23978. postuninstall_cmds=$lt_postuninstall_cmds
  23979. # Commands used to finish a libtool library installation in a directory.
  23980. finish_cmds=$lt_finish_cmds
  23981. # As "finish_cmds", except a single script fragment to be evaled but
  23982. # not shown.
  23983. finish_eval=$lt_finish_eval
  23984. # Whether we should hardcode library paths into libraries.
  23985. hardcode_into_libs=$hardcode_into_libs
  23986. # Compile-time system search path for libraries.
  23987. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  23988. # Run-time system search path for libraries.
  23989. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  23990. # Whether dlopen is supported.
  23991. dlopen_support=$enable_dlopen
  23992. # Whether dlopen of programs is supported.
  23993. dlopen_self=$enable_dlopen_self
  23994. # Whether dlopen of statically linked programs is supported.
  23995. dlopen_self_static=$enable_dlopen_self_static
  23996. # Commands to strip libraries.
  23997. old_striplib=$lt_old_striplib
  23998. striplib=$lt_striplib
  23999. # The linker used to build libraries.
  24000. LD=$lt_LD
  24001. # How to create reloadable object files.
  24002. reload_flag=$lt_reload_flag
  24003. reload_cmds=$lt_reload_cmds
  24004. # Commands used to build an old-style archive.
  24005. old_archive_cmds=$lt_old_archive_cmds
  24006. # A language specific compiler.
  24007. CC=$lt_compiler
  24008. # Is the compiler the GNU compiler?
  24009. with_gcc=$GCC
  24010. # Compiler flag to turn off builtin functions.
  24011. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  24012. # Additional compiler flags for building library objects.
  24013. pic_flag=$lt_lt_prog_compiler_pic
  24014. # How to pass a linker flag through the compiler.
  24015. wl=$lt_lt_prog_compiler_wl
  24016. # Compiler flag to prevent dynamic linking.
  24017. link_static_flag=$lt_lt_prog_compiler_static
  24018. # Does compiler simultaneously support -c and -o options?
  24019. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  24020. # Whether or not to add -lc for building shared libraries.
  24021. build_libtool_need_lc=$archive_cmds_need_lc
  24022. # Whether or not to disallow shared libs when runtime libs are static.
  24023. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  24024. # Compiler flag to allow reflexive dlopens.
  24025. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  24026. # Compiler flag to generate shared objects directly from archives.
  24027. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  24028. # Whether the compiler copes with passing no objects directly.
  24029. compiler_needs_object=$lt_compiler_needs_object
  24030. # Create an old-style archive from a shared archive.
  24031. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  24032. # Create a temporary old-style archive to link instead of a shared archive.
  24033. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  24034. # Commands used to build a shared archive.
  24035. archive_cmds=$lt_archive_cmds
  24036. archive_expsym_cmds=$lt_archive_expsym_cmds
  24037. # Commands used to build a loadable module if different from building
  24038. # a shared archive.
  24039. module_cmds=$lt_module_cmds
  24040. module_expsym_cmds=$lt_module_expsym_cmds
  24041. # Whether we are building with GNU ld or not.
  24042. with_gnu_ld=$lt_with_gnu_ld
  24043. # Flag that allows shared libraries with undefined symbols to be built.
  24044. allow_undefined_flag=$lt_allow_undefined_flag
  24045. # Flag that enforces no undefined symbols.
  24046. no_undefined_flag=$lt_no_undefined_flag
  24047. # Flag to hardcode \$libdir into a binary during linking.
  24048. # This must work even if \$libdir does not exist
  24049. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  24050. # Whether we need a single "-rpath" flag with a separated argument.
  24051. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  24052. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24053. # DIR into the resulting binary.
  24054. hardcode_direct=$hardcode_direct
  24055. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24056. # DIR into the resulting binary and the resulting library dependency is
  24057. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24058. # library is relocated.
  24059. hardcode_direct_absolute=$hardcode_direct_absolute
  24060. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24061. # into the resulting binary.
  24062. hardcode_minus_L=$hardcode_minus_L
  24063. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24064. # into the resulting binary.
  24065. hardcode_shlibpath_var=$hardcode_shlibpath_var
  24066. # Set to "yes" if building a shared library automatically hardcodes DIR
  24067. # into the library and all subsequent libraries and executables linked
  24068. # against it.
  24069. hardcode_automatic=$hardcode_automatic
  24070. # Set to yes if linker adds runtime paths of dependent libraries
  24071. # to runtime path list.
  24072. inherit_rpath=$inherit_rpath
  24073. # Whether libtool must link a program against all its dependency libraries.
  24074. link_all_deplibs=$link_all_deplibs
  24075. # Set to "yes" if exported symbols are required.
  24076. always_export_symbols=$always_export_symbols
  24077. # The commands to list exported symbols.
  24078. export_symbols_cmds=$lt_export_symbols_cmds
  24079. # Symbols that should not be listed in the preloaded symbols.
  24080. exclude_expsyms=$lt_exclude_expsyms
  24081. # Symbols that must always be exported.
  24082. include_expsyms=$lt_include_expsyms
  24083. # Commands necessary for linking programs (against libraries) with templates.
  24084. prelink_cmds=$lt_prelink_cmds
  24085. # Commands necessary for finishing linking programs.
  24086. postlink_cmds=$lt_postlink_cmds
  24087. # Specify filename containing input files.
  24088. file_list_spec=$lt_file_list_spec
  24089. # How to hardcode a shared library path into an executable.
  24090. hardcode_action=$hardcode_action
  24091. # The directories searched by this compiler when creating a shared library.
  24092. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  24093. # Dependencies to place before and after the objects being linked to
  24094. # create a shared library.
  24095. predep_objects=$lt_predep_objects
  24096. postdep_objects=$lt_postdep_objects
  24097. predeps=$lt_predeps
  24098. postdeps=$lt_postdeps
  24099. # The library search path used internally by the compiler when linking
  24100. # a shared library.
  24101. compiler_lib_search_path=$lt_compiler_lib_search_path
  24102. # ### END LIBTOOL CONFIG
  24103. _LT_EOF
  24104. case $host_os in
  24105. aix3*)
  24106. cat <<\_LT_EOF >> "$cfgfile"
  24107. # AIX sometimes has problems with the GCC collect2 program. For some
  24108. # reason, if we set the COLLECT_NAMES environment variable, the problems
  24109. # vanish in a puff of smoke.
  24110. if test "X${COLLECT_NAMES+set}" != Xset; then
  24111. COLLECT_NAMES=
  24112. export COLLECT_NAMES
  24113. fi
  24114. _LT_EOF
  24115. ;;
  24116. esac
  24117. ltmain="$ac_aux_dir/ltmain.sh"
  24118. # We use sed instead of cat because bash on DJGPP gets confused if
  24119. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  24120. # text mode, it properly converts lines to CR/LF. This bash problem
  24121. # is reportedly fixed, but why not run on old versions too?
  24122. sed '$q' "$ltmain" >> "$cfgfile" \
  24123. || (rm -f "$cfgfile"; exit 1)
  24124. if test x"$xsi_shell" = xyes; then
  24125. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  24126. func_dirname ()\
  24127. {\
  24128. \ case ${1} in\
  24129. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  24130. \ * ) func_dirname_result="${3}" ;;\
  24131. \ esac\
  24132. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  24133. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24134. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24135. test 0 -eq $? || _lt_function_replace_fail=:
  24136. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  24137. func_basename ()\
  24138. {\
  24139. \ func_basename_result="${1##*/}"\
  24140. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  24141. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24142. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24143. test 0 -eq $? || _lt_function_replace_fail=:
  24144. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  24145. func_dirname_and_basename ()\
  24146. {\
  24147. \ case ${1} in\
  24148. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  24149. \ * ) func_dirname_result="${3}" ;;\
  24150. \ esac\
  24151. \ func_basename_result="${1##*/}"\
  24152. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  24153. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24154. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24155. test 0 -eq $? || _lt_function_replace_fail=:
  24156. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  24157. func_stripname ()\
  24158. {\
  24159. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  24160. \ # positional parameters, so assign one to ordinary parameter first.\
  24161. \ func_stripname_result=${3}\
  24162. \ func_stripname_result=${func_stripname_result#"${1}"}\
  24163. \ func_stripname_result=${func_stripname_result%"${2}"}\
  24164. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  24165. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24166. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24167. test 0 -eq $? || _lt_function_replace_fail=:
  24168. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  24169. func_split_long_opt ()\
  24170. {\
  24171. \ func_split_long_opt_name=${1%%=*}\
  24172. \ func_split_long_opt_arg=${1#*=}\
  24173. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  24174. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24175. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24176. test 0 -eq $? || _lt_function_replace_fail=:
  24177. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  24178. func_split_short_opt ()\
  24179. {\
  24180. \ func_split_short_opt_arg=${1#??}\
  24181. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  24182. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  24183. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24184. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24185. test 0 -eq $? || _lt_function_replace_fail=:
  24186. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  24187. func_lo2o ()\
  24188. {\
  24189. \ case ${1} in\
  24190. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  24191. \ *) func_lo2o_result=${1} ;;\
  24192. \ esac\
  24193. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  24194. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24195. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24196. test 0 -eq $? || _lt_function_replace_fail=:
  24197. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  24198. func_xform ()\
  24199. {\
  24200. func_xform_result=${1%.*}.lo\
  24201. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  24202. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24203. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24204. test 0 -eq $? || _lt_function_replace_fail=:
  24205. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  24206. func_arith ()\
  24207. {\
  24208. func_arith_result=$(( $* ))\
  24209. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  24210. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24211. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24212. test 0 -eq $? || _lt_function_replace_fail=:
  24213. sed -e '/^func_len ()$/,/^} # func_len /c\
  24214. func_len ()\
  24215. {\
  24216. func_len_result=${#1}\
  24217. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  24218. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24219. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24220. test 0 -eq $? || _lt_function_replace_fail=:
  24221. fi
  24222. if test x"$lt_shell_append" = xyes; then
  24223. sed -e '/^func_append ()$/,/^} # func_append /c\
  24224. func_append ()\
  24225. {\
  24226. eval "${1}+=\\${2}"\
  24227. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  24228. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24229. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24230. test 0 -eq $? || _lt_function_replace_fail=:
  24231. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  24232. func_append_quoted ()\
  24233. {\
  24234. \ func_quote_for_eval "${2}"\
  24235. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  24236. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  24237. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24238. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24239. test 0 -eq $? || _lt_function_replace_fail=:
  24240. # Save a `func_append' function call where possible by direct use of '+='
  24241. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  24242. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24243. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24244. test 0 -eq $? || _lt_function_replace_fail=:
  24245. else
  24246. # Save a `func_append' function call even when '+=' is not available
  24247. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  24248. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24249. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24250. test 0 -eq $? || _lt_function_replace_fail=:
  24251. fi
  24252. if test x"$_lt_function_replace_fail" = x":"; then
  24253. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  24254. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  24255. fi
  24256. mv -f "$cfgfile" "$ofile" ||
  24257. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  24258. chmod +x "$ofile"
  24259. cat <<_LT_EOF >> "$ofile"
  24260. # ### BEGIN LIBTOOL TAG CONFIG: RC
  24261. # The linker used to build libraries.
  24262. LD=$lt_LD_RC
  24263. # How to create reloadable object files.
  24264. reload_flag=$lt_reload_flag_RC
  24265. reload_cmds=$lt_reload_cmds_RC
  24266. # Commands used to build an old-style archive.
  24267. old_archive_cmds=$lt_old_archive_cmds_RC
  24268. # A language specific compiler.
  24269. CC=$lt_compiler_RC
  24270. # Is the compiler the GNU compiler?
  24271. with_gcc=$GCC_RC
  24272. # Compiler flag to turn off builtin functions.
  24273. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  24274. # Additional compiler flags for building library objects.
  24275. pic_flag=$lt_lt_prog_compiler_pic_RC
  24276. # How to pass a linker flag through the compiler.
  24277. wl=$lt_lt_prog_compiler_wl_RC
  24278. # Compiler flag to prevent dynamic linking.
  24279. link_static_flag=$lt_lt_prog_compiler_static_RC
  24280. # Does compiler simultaneously support -c and -o options?
  24281. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  24282. # Whether or not to add -lc for building shared libraries.
  24283. build_libtool_need_lc=$archive_cmds_need_lc_RC
  24284. # Whether or not to disallow shared libs when runtime libs are static.
  24285. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  24286. # Compiler flag to allow reflexive dlopens.
  24287. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  24288. # Compiler flag to generate shared objects directly from archives.
  24289. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  24290. # Whether the compiler copes with passing no objects directly.
  24291. compiler_needs_object=$lt_compiler_needs_object_RC
  24292. # Create an old-style archive from a shared archive.
  24293. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  24294. # Create a temporary old-style archive to link instead of a shared archive.
  24295. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  24296. # Commands used to build a shared archive.
  24297. archive_cmds=$lt_archive_cmds_RC
  24298. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  24299. # Commands used to build a loadable module if different from building
  24300. # a shared archive.
  24301. module_cmds=$lt_module_cmds_RC
  24302. module_expsym_cmds=$lt_module_expsym_cmds_RC
  24303. # Whether we are building with GNU ld or not.
  24304. with_gnu_ld=$lt_with_gnu_ld_RC
  24305. # Flag that allows shared libraries with undefined symbols to be built.
  24306. allow_undefined_flag=$lt_allow_undefined_flag_RC
  24307. # Flag that enforces no undefined symbols.
  24308. no_undefined_flag=$lt_no_undefined_flag_RC
  24309. # Flag to hardcode \$libdir into a binary during linking.
  24310. # This must work even if \$libdir does not exist
  24311. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  24312. # Whether we need a single "-rpath" flag with a separated argument.
  24313. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  24314. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24315. # DIR into the resulting binary.
  24316. hardcode_direct=$hardcode_direct_RC
  24317. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24318. # DIR into the resulting binary and the resulting library dependency is
  24319. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24320. # library is relocated.
  24321. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  24322. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24323. # into the resulting binary.
  24324. hardcode_minus_L=$hardcode_minus_L_RC
  24325. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24326. # into the resulting binary.
  24327. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  24328. # Set to "yes" if building a shared library automatically hardcodes DIR
  24329. # into the library and all subsequent libraries and executables linked
  24330. # against it.
  24331. hardcode_automatic=$hardcode_automatic_RC
  24332. # Set to yes if linker adds runtime paths of dependent libraries
  24333. # to runtime path list.
  24334. inherit_rpath=$inherit_rpath_RC
  24335. # Whether libtool must link a program against all its dependency libraries.
  24336. link_all_deplibs=$link_all_deplibs_RC
  24337. # Set to "yes" if exported symbols are required.
  24338. always_export_symbols=$always_export_symbols_RC
  24339. # The commands to list exported symbols.
  24340. export_symbols_cmds=$lt_export_symbols_cmds_RC
  24341. # Symbols that should not be listed in the preloaded symbols.
  24342. exclude_expsyms=$lt_exclude_expsyms_RC
  24343. # Symbols that must always be exported.
  24344. include_expsyms=$lt_include_expsyms_RC
  24345. # Commands necessary for linking programs (against libraries) with templates.
  24346. prelink_cmds=$lt_prelink_cmds_RC
  24347. # Commands necessary for finishing linking programs.
  24348. postlink_cmds=$lt_postlink_cmds_RC
  24349. # Specify filename containing input files.
  24350. file_list_spec=$lt_file_list_spec_RC
  24351. # How to hardcode a shared library path into an executable.
  24352. hardcode_action=$hardcode_action_RC
  24353. # The directories searched by this compiler when creating a shared library.
  24354. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  24355. # Dependencies to place before and after the objects being linked to
  24356. # create a shared library.
  24357. predep_objects=$lt_predep_objects_RC
  24358. postdep_objects=$lt_postdep_objects_RC
  24359. predeps=$lt_predeps_RC
  24360. postdeps=$lt_postdeps_RC
  24361. # The library search path used internally by the compiler when linking
  24362. # a shared library.
  24363. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  24364. # ### END LIBTOOL TAG CONFIG: RC
  24365. _LT_EOF
  24366. cat <<_LT_EOF >> "$ofile"
  24367. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  24368. # The linker used to build libraries.
  24369. LD=$lt_LD_CXX
  24370. # How to create reloadable object files.
  24371. reload_flag=$lt_reload_flag_CXX
  24372. reload_cmds=$lt_reload_cmds_CXX
  24373. # Commands used to build an old-style archive.
  24374. old_archive_cmds=$lt_old_archive_cmds_CXX
  24375. # A language specific compiler.
  24376. CC=$lt_compiler_CXX
  24377. # Is the compiler the GNU compiler?
  24378. with_gcc=$GCC_CXX
  24379. # Compiler flag to turn off builtin functions.
  24380. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  24381. # Additional compiler flags for building library objects.
  24382. pic_flag=$lt_lt_prog_compiler_pic_CXX
  24383. # How to pass a linker flag through the compiler.
  24384. wl=$lt_lt_prog_compiler_wl_CXX
  24385. # Compiler flag to prevent dynamic linking.
  24386. link_static_flag=$lt_lt_prog_compiler_static_CXX
  24387. # Does compiler simultaneously support -c and -o options?
  24388. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  24389. # Whether or not to add -lc for building shared libraries.
  24390. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  24391. # Whether or not to disallow shared libs when runtime libs are static.
  24392. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  24393. # Compiler flag to allow reflexive dlopens.
  24394. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  24395. # Compiler flag to generate shared objects directly from archives.
  24396. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  24397. # Whether the compiler copes with passing no objects directly.
  24398. compiler_needs_object=$lt_compiler_needs_object_CXX
  24399. # Create an old-style archive from a shared archive.
  24400. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  24401. # Create a temporary old-style archive to link instead of a shared archive.
  24402. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  24403. # Commands used to build a shared archive.
  24404. archive_cmds=$lt_archive_cmds_CXX
  24405. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  24406. # Commands used to build a loadable module if different from building
  24407. # a shared archive.
  24408. module_cmds=$lt_module_cmds_CXX
  24409. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  24410. # Whether we are building with GNU ld or not.
  24411. with_gnu_ld=$lt_with_gnu_ld_CXX
  24412. # Flag that allows shared libraries with undefined symbols to be built.
  24413. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  24414. # Flag that enforces no undefined symbols.
  24415. no_undefined_flag=$lt_no_undefined_flag_CXX
  24416. # Flag to hardcode \$libdir into a binary during linking.
  24417. # This must work even if \$libdir does not exist
  24418. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  24419. # Whether we need a single "-rpath" flag with a separated argument.
  24420. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  24421. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24422. # DIR into the resulting binary.
  24423. hardcode_direct=$hardcode_direct_CXX
  24424. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24425. # DIR into the resulting binary and the resulting library dependency is
  24426. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24427. # library is relocated.
  24428. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  24429. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24430. # into the resulting binary.
  24431. hardcode_minus_L=$hardcode_minus_L_CXX
  24432. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24433. # into the resulting binary.
  24434. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  24435. # Set to "yes" if building a shared library automatically hardcodes DIR
  24436. # into the library and all subsequent libraries and executables linked
  24437. # against it.
  24438. hardcode_automatic=$hardcode_automatic_CXX
  24439. # Set to yes if linker adds runtime paths of dependent libraries
  24440. # to runtime path list.
  24441. inherit_rpath=$inherit_rpath_CXX
  24442. # Whether libtool must link a program against all its dependency libraries.
  24443. link_all_deplibs=$link_all_deplibs_CXX
  24444. # Set to "yes" if exported symbols are required.
  24445. always_export_symbols=$always_export_symbols_CXX
  24446. # The commands to list exported symbols.
  24447. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  24448. # Symbols that should not be listed in the preloaded symbols.
  24449. exclude_expsyms=$lt_exclude_expsyms_CXX
  24450. # Symbols that must always be exported.
  24451. include_expsyms=$lt_include_expsyms_CXX
  24452. # Commands necessary for linking programs (against libraries) with templates.
  24453. prelink_cmds=$lt_prelink_cmds_CXX
  24454. # Commands necessary for finishing linking programs.
  24455. postlink_cmds=$lt_postlink_cmds_CXX
  24456. # Specify filename containing input files.
  24457. file_list_spec=$lt_file_list_spec_CXX
  24458. # How to hardcode a shared library path into an executable.
  24459. hardcode_action=$hardcode_action_CXX
  24460. # The directories searched by this compiler when creating a shared library.
  24461. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  24462. # Dependencies to place before and after the objects being linked to
  24463. # create a shared library.
  24464. predep_objects=$lt_predep_objects_CXX
  24465. postdep_objects=$lt_postdep_objects_CXX
  24466. predeps=$lt_predeps_CXX
  24467. postdeps=$lt_postdeps_CXX
  24468. # The library search path used internally by the compiler when linking
  24469. # a shared library.
  24470. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  24471. # ### END LIBTOOL TAG CONFIG: CXX
  24472. _LT_EOF
  24473. ;;
  24474. "sdl2_config":C) chmod a+x sdl2-config ;;
  24475. "summary":C) printf "$SUMMARY" ;;
  24476. esac
  24477. done # for ac_tag
  24478. as_fn_exit 0
  24479. _ACEOF
  24480. ac_clean_files=$ac_clean_files_save
  24481. test $ac_write_fail = 0 ||
  24482. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  24483. # configure is writing to config.log, and then calls config.status.
  24484. # config.status does its own redirection, appending to config.log.
  24485. # Unfortunately, on DOS this fails, as config.log is still kept open
  24486. # by configure, so config.status won't be able to write to it; its
  24487. # output is simply discarded. So we exec the FD to /dev/null,
  24488. # effectively closing config.log, so it can be properly (re)opened and
  24489. # appended to by config.status. When coming back to configure, we
  24490. # need to make the FD available again.
  24491. if test "$no_create" != yes; then
  24492. ac_cs_success=:
  24493. ac_config_status_args=
  24494. test "$silent" = yes &&
  24495. ac_config_status_args="$ac_config_status_args --quiet"
  24496. exec 5>/dev/null
  24497. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  24498. exec 5>>config.log
  24499. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  24500. # would make configure fail if this is the last instruction.
  24501. $ac_cs_success || as_fn_exit 1
  24502. fi
  24503. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  24504. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  24505. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  24506. fi