configure 850 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME=
  539. PACKAGE_TARNAME=
  540. PACKAGE_VERSION=
  541. PACKAGE_STRING=
  542. PACKAGE_BUGREPORT=
  543. PACKAGE_URL=
  544. ac_unique_file="src/SDL.c"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='LTLIBOBJS
  581. WAYLAND_SCANNER_CODE_MODE
  582. WAYLAND_SCANNER
  583. EXTRA_LDFLAGS
  584. BUILD_LDFLAGS
  585. EXTRA_CFLAGS
  586. BUILD_CFLAGS
  587. SDLTEST_OBJECTS
  588. SDLMAIN_OBJECTS
  589. VERSION_OBJECTS
  590. GEN_OBJECTS
  591. GEN_HEADERS
  592. OBJECTS
  593. INCLUDE
  594. ac_aux_dir
  595. ENABLE_STATIC_FALSE
  596. ENABLE_STATIC_TRUE
  597. ENABLE_SHARED_FALSE
  598. ENABLE_SHARED_TRUE
  599. PKGCONFIG_LIBS_PRIV
  600. SDL_RLD_FLAGS
  601. SDL_STATIC_LIBS
  602. SDL_LIBS
  603. SDL_CFLAGS
  604. INSTALL_SDL2_CONFIG
  605. LIBUSB_LIBS
  606. LIBUSB_CFLAGS
  607. IBUS_LIBS
  608. IBUS_CFLAGS
  609. DBUS_LIBS
  610. DBUS_CFLAGS
  611. LIBGBM_LIBS
  612. LIBGBM_CFLAGS
  613. LIBDRM_LIBS
  614. LIBDRM_CFLAGS
  615. DIRECTFB_LIBS
  616. DIRECTFB_CFLAGS
  617. X_EXTRA_LIBS
  618. X_LIBS
  619. X_PRE_LIBS
  620. X_CFLAGS
  621. XMKMF
  622. RPI_LIBS
  623. RPI_CFLAGS
  624. FUSIONSOUND_LIBS
  625. FUSIONSOUND_CFLAGS
  626. ARTSCONFIG
  627. PULSEAUDIO_LIBS
  628. PULSEAUDIO_CFLAGS
  629. PIPEWIRE_LIBS
  630. PIPEWIRE_CFLAGS
  631. ESD_LIBS
  632. ESD_CFLAGS
  633. ESD_CONFIG
  634. JACK_LIBS
  635. JACK_CFLAGS
  636. ALSA_LIBS
  637. ALSA_CFLAGS
  638. POW_LIB
  639. LIBOBJS
  640. ALLOCA
  641. LINKER
  642. PKG_CONFIG_LIBDIR
  643. PKG_CONFIG_PATH
  644. PKG_CONFIG
  645. SET_MAKE
  646. INSTALL_DATA
  647. INSTALL_SCRIPT
  648. INSTALL_PROGRAM
  649. CXXCPP
  650. ac_ct_CXX
  651. CXXFLAGS
  652. CXX
  653. LT_AGE
  654. LT_REVISION
  655. LT_CURRENT
  656. LT_RELEASE
  657. RC
  658. CPP
  659. OTOOL64
  660. OTOOL
  661. LIPO
  662. NMEDIT
  663. DSYMUTIL
  664. MANIFEST_TOOL
  665. AWK
  666. RANLIB
  667. STRIP
  668. ac_ct_AR
  669. AR
  670. LN_S
  671. NM
  672. ac_ct_DUMPBIN
  673. DUMPBIN
  674. LD
  675. FGREP
  676. EGREP
  677. GREP
  678. SED
  679. OBJEXT
  680. EXEEXT
  681. ac_ct_CC
  682. CPPFLAGS
  683. LDFLAGS
  684. CFLAGS
  685. CC
  686. host_os
  687. host_vendor
  688. host_cpu
  689. host
  690. build_os
  691. build_vendor
  692. build_cpu
  693. build
  694. LIBTOOL
  695. OBJDUMP
  696. DLLTOOL
  697. AS
  698. SDL_VERSION
  699. SDL_BINARY_AGE
  700. SDL_INTERFACE_AGE
  701. SDL_MICRO_VERSION
  702. SDL_MINOR_VERSION
  703. SDL_MAJOR_VERSION
  704. target_alias
  705. host_alias
  706. build_alias
  707. LIBS
  708. ECHO_T
  709. ECHO_N
  710. ECHO_C
  711. DEFS
  712. mandir
  713. localedir
  714. libdir
  715. psdir
  716. pdfdir
  717. dvidir
  718. htmldir
  719. infodir
  720. docdir
  721. oldincludedir
  722. includedir
  723. localstatedir
  724. sharedstatedir
  725. sysconfdir
  726. datadir
  727. datarootdir
  728. libexecdir
  729. sbindir
  730. bindir
  731. program_transform_name
  732. prefix
  733. exec_prefix
  734. PACKAGE_URL
  735. PACKAGE_BUGREPORT
  736. PACKAGE_STRING
  737. PACKAGE_VERSION
  738. PACKAGE_TARNAME
  739. PACKAGE_NAME
  740. PATH_SEPARATOR
  741. SHELL'
  742. ac_subst_files=''
  743. ac_user_opts='
  744. enable_option_checking
  745. enable_shared
  746. enable_static
  747. with_pic
  748. enable_fast_install
  749. with_gnu_ld
  750. with_sysroot
  751. enable_libtool_lock
  752. enable_assertions
  753. enable_dependency_tracking
  754. enable_libc
  755. enable_gcc_atomics
  756. enable_atomic
  757. enable_audio
  758. enable_video
  759. enable_render
  760. enable_events
  761. enable_joystick
  762. enable_haptic
  763. enable_sensor
  764. enable_power
  765. enable_filesystem
  766. enable_threads
  767. enable_timers
  768. enable_file
  769. enable_loadso
  770. enable_cpuinfo
  771. enable_assembly
  772. enable_ssemath
  773. enable_mmx
  774. enable_3dnow
  775. enable_sse
  776. enable_sse2
  777. enable_sse3
  778. enable_altivec
  779. enable_oss
  780. enable_alsa
  781. with_alsa_prefix
  782. with_alsa_inc_prefix
  783. enable_alsatest
  784. enable_alsa_shared
  785. enable_jack
  786. enable_jack_shared
  787. enable_esd
  788. with_esd_prefix
  789. with_esd_exec_prefix
  790. enable_esdtest
  791. enable_esd_shared
  792. enable_pipewire
  793. enable_pipewire_shared
  794. enable_pulseaudio
  795. enable_pulseaudio_shared
  796. enable_arts
  797. enable_arts_shared
  798. enable_nas
  799. enable_nas_shared
  800. enable_sndio
  801. enable_sndio_shared
  802. enable_fusionsound
  803. enable_fusionsound_shared
  804. enable_diskaudio
  805. enable_dummyaudio
  806. enable_libsamplerate
  807. enable_libsamplerate_shared
  808. enable_arm_simd
  809. enable_arm_neon
  810. enable_libdecor
  811. enable_libdecor_shared
  812. enable_video_wayland
  813. enable_video_wayland_qt_touch
  814. enable_wayland_shared
  815. enable_video_rpi
  816. enable_video_x11
  817. with_x
  818. enable_x11_shared
  819. enable_video_x11_xcursor
  820. enable_video_x11_xdbe
  821. enable_video_x11_xinerama
  822. enable_video_x11_xinput
  823. enable_video_x11_xrandr
  824. enable_video_x11_scrnsaver
  825. enable_video_x11_xshape
  826. enable_video_x11_vm
  827. enable_video_vivante
  828. enable_video_cocoa
  829. enable_video_metal
  830. enable_render_metal
  831. enable_video_directfb
  832. enable_directfb_shared
  833. enable_video_kmsdrm
  834. enable_kmsdrm_shared
  835. enable_video_dummy
  836. enable_video_opengl
  837. enable_video_opengles
  838. enable_video_opengles1
  839. enable_video_opengles2
  840. enable_video_vulkan
  841. enable_libudev
  842. enable_dbus
  843. enable_ime
  844. enable_ibus
  845. enable_fcitx
  846. enable_joystick_mfi
  847. enable_pthreads
  848. enable_pthread_sem
  849. enable_directx
  850. enable_xinput
  851. enable_wasapi
  852. enable_sdl_dlopen
  853. enable_hidapi
  854. enable_hidapi_libusb
  855. enable_clock_gettime
  856. enable_rpath
  857. enable_backgrounding_signal
  858. enable_foregrounding_signal
  859. enable_joystick_virtual
  860. enable_render_d3d
  861. enable_sdl2_config
  862. '
  863. ac_precious_vars='build_alias
  864. host_alias
  865. target_alias
  866. CC
  867. CFLAGS
  868. LDFLAGS
  869. LIBS
  870. CPPFLAGS
  871. CPP
  872. CXX
  873. CXXFLAGS
  874. CCC
  875. CXXCPP
  876. PKG_CONFIG
  877. PKG_CONFIG_PATH
  878. PKG_CONFIG_LIBDIR
  879. JACK_CFLAGS
  880. JACK_LIBS
  881. PIPEWIRE_CFLAGS
  882. PIPEWIRE_LIBS
  883. PULSEAUDIO_CFLAGS
  884. PULSEAUDIO_LIBS
  885. FUSIONSOUND_CFLAGS
  886. FUSIONSOUND_LIBS
  887. RPI_CFLAGS
  888. RPI_LIBS
  889. XMKMF
  890. DIRECTFB_CFLAGS
  891. DIRECTFB_LIBS
  892. LIBDRM_CFLAGS
  893. LIBDRM_LIBS
  894. LIBGBM_CFLAGS
  895. LIBGBM_LIBS
  896. DBUS_CFLAGS
  897. DBUS_LIBS
  898. IBUS_CFLAGS
  899. IBUS_LIBS
  900. LIBUSB_CFLAGS
  901. LIBUSB_LIBS'
  902. # Initialize some variables set by options.
  903. ac_init_help=
  904. ac_init_version=false
  905. ac_unrecognized_opts=
  906. ac_unrecognized_sep=
  907. # The variables have the same names as the options, with
  908. # dashes changed to underlines.
  909. cache_file=/dev/null
  910. exec_prefix=NONE
  911. no_create=
  912. no_recursion=
  913. prefix=NONE
  914. program_prefix=NONE
  915. program_suffix=NONE
  916. program_transform_name=s,x,x,
  917. silent=
  918. site=
  919. srcdir=
  920. verbose=
  921. x_includes=NONE
  922. x_libraries=NONE
  923. # Installation directory options.
  924. # These are left unexpanded so users can "make install exec_prefix=/foo"
  925. # and all the variables that are supposed to be based on exec_prefix
  926. # by default will actually change.
  927. # Use braces instead of parens because sh, perl, etc. also accept them.
  928. # (The list follows the same order as the GNU Coding Standards.)
  929. bindir='${exec_prefix}/bin'
  930. sbindir='${exec_prefix}/sbin'
  931. libexecdir='${exec_prefix}/libexec'
  932. datarootdir='${prefix}/share'
  933. datadir='${datarootdir}'
  934. sysconfdir='${prefix}/etc'
  935. sharedstatedir='${prefix}/com'
  936. localstatedir='${prefix}/var'
  937. includedir='${prefix}/include'
  938. oldincludedir='/usr/include'
  939. docdir='${datarootdir}/doc/${PACKAGE}'
  940. infodir='${datarootdir}/info'
  941. htmldir='${docdir}'
  942. dvidir='${docdir}'
  943. pdfdir='${docdir}'
  944. psdir='${docdir}'
  945. libdir='${exec_prefix}/lib'
  946. localedir='${datarootdir}/locale'
  947. mandir='${datarootdir}/man'
  948. ac_prev=
  949. ac_dashdash=
  950. for ac_option
  951. do
  952. # If the previous option needs an argument, assign it.
  953. if test -n "$ac_prev"; then
  954. eval $ac_prev=\$ac_option
  955. ac_prev=
  956. continue
  957. fi
  958. case $ac_option in
  959. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  960. *=) ac_optarg= ;;
  961. *) ac_optarg=yes ;;
  962. esac
  963. # Accept the important Cygnus configure options, so we can diagnose typos.
  964. case $ac_dashdash$ac_option in
  965. --)
  966. ac_dashdash=yes ;;
  967. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  968. ac_prev=bindir ;;
  969. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  970. bindir=$ac_optarg ;;
  971. -build | --build | --buil | --bui | --bu)
  972. ac_prev=build_alias ;;
  973. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  974. build_alias=$ac_optarg ;;
  975. -cache-file | --cache-file | --cache-fil | --cache-fi \
  976. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  977. ac_prev=cache_file ;;
  978. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  979. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  980. cache_file=$ac_optarg ;;
  981. --config-cache | -C)
  982. cache_file=config.cache ;;
  983. -datadir | --datadir | --datadi | --datad)
  984. ac_prev=datadir ;;
  985. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  986. datadir=$ac_optarg ;;
  987. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  988. | --dataroo | --dataro | --datar)
  989. ac_prev=datarootdir ;;
  990. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  991. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  992. datarootdir=$ac_optarg ;;
  993. -disable-* | --disable-*)
  994. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  995. # Reject names that are not valid shell variable names.
  996. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  997. as_fn_error $? "invalid feature name: $ac_useropt"
  998. ac_useropt_orig=$ac_useropt
  999. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1000. case $ac_user_opts in
  1001. *"
  1002. "enable_$ac_useropt"
  1003. "*) ;;
  1004. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1005. ac_unrecognized_sep=', ';;
  1006. esac
  1007. eval enable_$ac_useropt=no ;;
  1008. -docdir | --docdir | --docdi | --doc | --do)
  1009. ac_prev=docdir ;;
  1010. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1011. docdir=$ac_optarg ;;
  1012. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1013. ac_prev=dvidir ;;
  1014. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1015. dvidir=$ac_optarg ;;
  1016. -enable-* | --enable-*)
  1017. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1018. # Reject names that are not valid shell variable names.
  1019. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1020. as_fn_error $? "invalid feature name: $ac_useropt"
  1021. ac_useropt_orig=$ac_useropt
  1022. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1023. case $ac_user_opts in
  1024. *"
  1025. "enable_$ac_useropt"
  1026. "*) ;;
  1027. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1028. ac_unrecognized_sep=', ';;
  1029. esac
  1030. eval enable_$ac_useropt=\$ac_optarg ;;
  1031. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1032. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1033. | --exec | --exe | --ex)
  1034. ac_prev=exec_prefix ;;
  1035. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1036. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1037. | --exec=* | --exe=* | --ex=*)
  1038. exec_prefix=$ac_optarg ;;
  1039. -gas | --gas | --ga | --g)
  1040. # Obsolete; use --with-gas.
  1041. with_gas=yes ;;
  1042. -help | --help | --hel | --he | -h)
  1043. ac_init_help=long ;;
  1044. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1045. ac_init_help=recursive ;;
  1046. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1047. ac_init_help=short ;;
  1048. -host | --host | --hos | --ho)
  1049. ac_prev=host_alias ;;
  1050. -host=* | --host=* | --hos=* | --ho=*)
  1051. host_alias=$ac_optarg ;;
  1052. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1053. ac_prev=htmldir ;;
  1054. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1055. | --ht=*)
  1056. htmldir=$ac_optarg ;;
  1057. -includedir | --includedir | --includedi | --included | --include \
  1058. | --includ | --inclu | --incl | --inc)
  1059. ac_prev=includedir ;;
  1060. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1061. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1062. includedir=$ac_optarg ;;
  1063. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1064. ac_prev=infodir ;;
  1065. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1066. infodir=$ac_optarg ;;
  1067. -libdir | --libdir | --libdi | --libd)
  1068. ac_prev=libdir ;;
  1069. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1070. libdir=$ac_optarg ;;
  1071. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1072. | --libexe | --libex | --libe)
  1073. ac_prev=libexecdir ;;
  1074. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1075. | --libexe=* | --libex=* | --libe=*)
  1076. libexecdir=$ac_optarg ;;
  1077. -localedir | --localedir | --localedi | --localed | --locale)
  1078. ac_prev=localedir ;;
  1079. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1080. localedir=$ac_optarg ;;
  1081. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1082. | --localstate | --localstat | --localsta | --localst | --locals)
  1083. ac_prev=localstatedir ;;
  1084. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1085. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1086. localstatedir=$ac_optarg ;;
  1087. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1088. ac_prev=mandir ;;
  1089. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1090. mandir=$ac_optarg ;;
  1091. -nfp | --nfp | --nf)
  1092. # Obsolete; use --without-fp.
  1093. with_fp=no ;;
  1094. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1095. | --no-cr | --no-c | -n)
  1096. no_create=yes ;;
  1097. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1098. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1099. no_recursion=yes ;;
  1100. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1101. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1102. | --oldin | --oldi | --old | --ol | --o)
  1103. ac_prev=oldincludedir ;;
  1104. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1105. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1106. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1107. oldincludedir=$ac_optarg ;;
  1108. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1109. ac_prev=prefix ;;
  1110. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1111. prefix=$ac_optarg ;;
  1112. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1113. | --program-pre | --program-pr | --program-p)
  1114. ac_prev=program_prefix ;;
  1115. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1116. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1117. program_prefix=$ac_optarg ;;
  1118. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1119. | --program-suf | --program-su | --program-s)
  1120. ac_prev=program_suffix ;;
  1121. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1122. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1123. program_suffix=$ac_optarg ;;
  1124. -program-transform-name | --program-transform-name \
  1125. | --program-transform-nam | --program-transform-na \
  1126. | --program-transform-n | --program-transform- \
  1127. | --program-transform | --program-transfor \
  1128. | --program-transfo | --program-transf \
  1129. | --program-trans | --program-tran \
  1130. | --progr-tra | --program-tr | --program-t)
  1131. ac_prev=program_transform_name ;;
  1132. -program-transform-name=* | --program-transform-name=* \
  1133. | --program-transform-nam=* | --program-transform-na=* \
  1134. | --program-transform-n=* | --program-transform-=* \
  1135. | --program-transform=* | --program-transfor=* \
  1136. | --program-transfo=* | --program-transf=* \
  1137. | --program-trans=* | --program-tran=* \
  1138. | --progr-tra=* | --program-tr=* | --program-t=*)
  1139. program_transform_name=$ac_optarg ;;
  1140. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1141. ac_prev=pdfdir ;;
  1142. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1143. pdfdir=$ac_optarg ;;
  1144. -psdir | --psdir | --psdi | --psd | --ps)
  1145. ac_prev=psdir ;;
  1146. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1147. psdir=$ac_optarg ;;
  1148. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1149. | -silent | --silent | --silen | --sile | --sil)
  1150. silent=yes ;;
  1151. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1152. ac_prev=sbindir ;;
  1153. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1154. | --sbi=* | --sb=*)
  1155. sbindir=$ac_optarg ;;
  1156. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1157. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1158. | --sharedst | --shareds | --shared | --share | --shar \
  1159. | --sha | --sh)
  1160. ac_prev=sharedstatedir ;;
  1161. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1162. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1163. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1164. | --sha=* | --sh=*)
  1165. sharedstatedir=$ac_optarg ;;
  1166. -site | --site | --sit)
  1167. ac_prev=site ;;
  1168. -site=* | --site=* | --sit=*)
  1169. site=$ac_optarg ;;
  1170. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1171. ac_prev=srcdir ;;
  1172. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1173. srcdir=$ac_optarg ;;
  1174. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1175. | --syscon | --sysco | --sysc | --sys | --sy)
  1176. ac_prev=sysconfdir ;;
  1177. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1178. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1179. sysconfdir=$ac_optarg ;;
  1180. -target | --target | --targe | --targ | --tar | --ta | --t)
  1181. ac_prev=target_alias ;;
  1182. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1183. target_alias=$ac_optarg ;;
  1184. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1185. verbose=yes ;;
  1186. -version | --version | --versio | --versi | --vers | -V)
  1187. ac_init_version=: ;;
  1188. -with-* | --with-*)
  1189. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1190. # Reject names that are not valid shell variable names.
  1191. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1192. as_fn_error $? "invalid package name: $ac_useropt"
  1193. ac_useropt_orig=$ac_useropt
  1194. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1195. case $ac_user_opts in
  1196. *"
  1197. "with_$ac_useropt"
  1198. "*) ;;
  1199. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1200. ac_unrecognized_sep=', ';;
  1201. esac
  1202. eval with_$ac_useropt=\$ac_optarg ;;
  1203. -without-* | --without-*)
  1204. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1205. # Reject names that are not valid shell variable names.
  1206. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1207. as_fn_error $? "invalid package name: $ac_useropt"
  1208. ac_useropt_orig=$ac_useropt
  1209. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1210. case $ac_user_opts in
  1211. *"
  1212. "with_$ac_useropt"
  1213. "*) ;;
  1214. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1215. ac_unrecognized_sep=', ';;
  1216. esac
  1217. eval with_$ac_useropt=no ;;
  1218. --x)
  1219. # Obsolete; use --with-x.
  1220. with_x=yes ;;
  1221. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1222. | --x-incl | --x-inc | --x-in | --x-i)
  1223. ac_prev=x_includes ;;
  1224. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1225. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1226. x_includes=$ac_optarg ;;
  1227. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1228. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1229. ac_prev=x_libraries ;;
  1230. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1231. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1232. x_libraries=$ac_optarg ;;
  1233. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1234. Try \`$0 --help' for more information"
  1235. ;;
  1236. *=*)
  1237. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1238. # Reject names that are not valid shell variable names.
  1239. case $ac_envvar in #(
  1240. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1241. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1242. esac
  1243. eval $ac_envvar=\$ac_optarg
  1244. export $ac_envvar ;;
  1245. *)
  1246. # FIXME: should be removed in autoconf 3.0.
  1247. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1248. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1249. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1250. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1251. ;;
  1252. esac
  1253. done
  1254. if test -n "$ac_prev"; then
  1255. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1256. as_fn_error $? "missing argument to $ac_option"
  1257. fi
  1258. if test -n "$ac_unrecognized_opts"; then
  1259. case $enable_option_checking in
  1260. no) ;;
  1261. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1262. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1263. esac
  1264. fi
  1265. # Check all directory arguments for consistency.
  1266. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1267. datadir sysconfdir sharedstatedir localstatedir includedir \
  1268. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1269. libdir localedir mandir
  1270. do
  1271. eval ac_val=\$$ac_var
  1272. # Remove trailing slashes.
  1273. case $ac_val in
  1274. */ )
  1275. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1276. eval $ac_var=\$ac_val;;
  1277. esac
  1278. # Be sure to have absolute directory names.
  1279. case $ac_val in
  1280. [\\/$]* | ?:[\\/]* ) continue;;
  1281. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1282. esac
  1283. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1284. done
  1285. # There might be people who depend on the old broken behavior: `$host'
  1286. # used to hold the argument of --host etc.
  1287. # FIXME: To remove some day.
  1288. build=$build_alias
  1289. host=$host_alias
  1290. target=$target_alias
  1291. # FIXME: To remove some day.
  1292. if test "x$host_alias" != x; then
  1293. if test "x$build_alias" = x; then
  1294. cross_compiling=maybe
  1295. elif test "x$build_alias" != "x$host_alias"; then
  1296. cross_compiling=yes
  1297. fi
  1298. fi
  1299. ac_tool_prefix=
  1300. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1301. test "$silent" = yes && exec 6>/dev/null
  1302. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1303. ac_ls_di=`ls -di .` &&
  1304. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1305. as_fn_error $? "working directory cannot be determined"
  1306. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1307. as_fn_error $? "pwd does not report name of working directory"
  1308. # Find the source files, if location was not specified.
  1309. if test -z "$srcdir"; then
  1310. ac_srcdir_defaulted=yes
  1311. # Try the directory containing this script, then the parent directory.
  1312. ac_confdir=`$as_dirname -- "$as_myself" ||
  1313. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1314. X"$as_myself" : 'X\(//\)[^/]' \| \
  1315. X"$as_myself" : 'X\(//\)$' \| \
  1316. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1317. $as_echo X"$as_myself" |
  1318. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1319. s//\1/
  1320. q
  1321. }
  1322. /^X\(\/\/\)[^/].*/{
  1323. s//\1/
  1324. q
  1325. }
  1326. /^X\(\/\/\)$/{
  1327. s//\1/
  1328. q
  1329. }
  1330. /^X\(\/\).*/{
  1331. s//\1/
  1332. q
  1333. }
  1334. s/.*/./; q'`
  1335. srcdir=$ac_confdir
  1336. if test ! -r "$srcdir/$ac_unique_file"; then
  1337. srcdir=..
  1338. fi
  1339. else
  1340. ac_srcdir_defaulted=no
  1341. fi
  1342. if test ! -r "$srcdir/$ac_unique_file"; then
  1343. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1344. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1345. fi
  1346. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1347. ac_abs_confdir=`(
  1348. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1349. pwd)`
  1350. # When building in place, set srcdir=.
  1351. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1352. srcdir=.
  1353. fi
  1354. # Remove unnecessary trailing slashes from srcdir.
  1355. # Double slashes in file names in object file debugging info
  1356. # mess up M-x gdb in Emacs.
  1357. case $srcdir in
  1358. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1359. esac
  1360. for ac_var in $ac_precious_vars; do
  1361. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1362. eval ac_env_${ac_var}_value=\$${ac_var}
  1363. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1364. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1365. done
  1366. #
  1367. # Report the --help message.
  1368. #
  1369. if test "$ac_init_help" = "long"; then
  1370. # Omit some internal or obsolete options to make the list less imposing.
  1371. # This message is too long to be a string in the A/UX 3.1 sh.
  1372. cat <<_ACEOF
  1373. \`configure' configures this package to adapt to many kinds of systems.
  1374. Usage: $0 [OPTION]... [VAR=VALUE]...
  1375. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1376. VAR=VALUE. See below for descriptions of some of the useful variables.
  1377. Defaults for the options are specified in brackets.
  1378. Configuration:
  1379. -h, --help display this help and exit
  1380. --help=short display options specific to this package
  1381. --help=recursive display the short help of all the included packages
  1382. -V, --version display version information and exit
  1383. -q, --quiet, --silent do not print \`checking ...' messages
  1384. --cache-file=FILE cache test results in FILE [disabled]
  1385. -C, --config-cache alias for \`--cache-file=config.cache'
  1386. -n, --no-create do not create output files
  1387. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1388. Installation directories:
  1389. --prefix=PREFIX install architecture-independent files in PREFIX
  1390. [$ac_default_prefix]
  1391. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1392. [PREFIX]
  1393. By default, \`make install' will install all the files in
  1394. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1395. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1396. for instance \`--prefix=\$HOME'.
  1397. For better control, use the options below.
  1398. Fine tuning of the installation directories:
  1399. --bindir=DIR user executables [EPREFIX/bin]
  1400. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1401. --libexecdir=DIR program executables [EPREFIX/libexec]
  1402. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1403. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1404. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1405. --libdir=DIR object code libraries [EPREFIX/lib]
  1406. --includedir=DIR C header files [PREFIX/include]
  1407. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1408. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1409. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1410. --infodir=DIR info documentation [DATAROOTDIR/info]
  1411. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1412. --mandir=DIR man documentation [DATAROOTDIR/man]
  1413. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1414. --htmldir=DIR html documentation [DOCDIR]
  1415. --dvidir=DIR dvi documentation [DOCDIR]
  1416. --pdfdir=DIR pdf documentation [DOCDIR]
  1417. --psdir=DIR ps documentation [DOCDIR]
  1418. _ACEOF
  1419. cat <<\_ACEOF
  1420. X features:
  1421. --x-includes=DIR X include files are in DIR
  1422. --x-libraries=DIR X library files are in DIR
  1423. System types:
  1424. --build=BUILD configure for building on BUILD [guessed]
  1425. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1426. _ACEOF
  1427. fi
  1428. if test -n "$ac_init_help"; then
  1429. cat <<\_ACEOF
  1430. Optional Features:
  1431. --disable-option-checking ignore unrecognized --enable/--with options
  1432. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1433. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1434. --enable-shared[=PKGS] build shared libraries [default=yes]
  1435. --enable-static[=PKGS] build static libraries [default=yes]
  1436. --enable-fast-install[=PKGS]
  1437. optimize for fast installation [default=yes]
  1438. --disable-libtool-lock avoid locking (might break parallel builds)
  1439. --enable-assertions Enable internal sanity checks
  1440. (auto/disabled/release/enabled/paranoid)
  1441. [default=auto]
  1442. --enable-dependency-tracking
  1443. Use gcc -MMD -MT dependency tracking [default=yes]
  1444. --enable-libc Use the system C library [default=yes]
  1445. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1446. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1447. --enable-audio Enable the audio subsystem [default=yes]
  1448. --enable-video Enable the video subsystem [default=yes]
  1449. --enable-render Enable the render subsystem [default=yes]
  1450. --enable-events Enable the events subsystem [default=yes]
  1451. --enable-joystick Enable the joystick subsystem [default=yes]
  1452. --enable-haptic Enable the haptic (force feedback) subsystem
  1453. [default=yes]
  1454. --enable-sensor Enable the sensor subsystem [default=yes]
  1455. --enable-power Enable the power subsystem [default=yes]
  1456. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1457. --enable-threads Enable the threading subsystem [default=yes]
  1458. --enable-timers Enable the timer subsystem [default=yes]
  1459. --enable-file Enable the file subsystem [default=yes]
  1460. --enable-loadso Enable the shared object loading subsystem
  1461. [default=yes]
  1462. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1463. --enable-assembly Enable assembly routines [default=yes]
  1464. --enable-ssemath Allow GCC to use SSE floating point math
  1465. [default=maybe]
  1466. --enable-mmx use MMX assembly routines [default=yes]
  1467. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1468. --enable-sse use SSE assembly routines [default=yes]
  1469. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1470. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1471. --enable-altivec use Altivec assembly routines [default=yes]
  1472. --enable-oss support the OSS audio API [default=maybe]
  1473. --enable-alsa support the ALSA audio API [default=yes]
  1474. --disable-alsatest Do not try to compile and run a test Alsa program
  1475. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1476. --enable-jack use JACK audio [default=yes]
  1477. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1478. --enable-esd support the Enlightened Sound Daemon [default=yes]
  1479. --disable-esdtest Do not try to compile and run a test ESD program
  1480. --enable-esd-shared dynamically load ESD audio support [default=yes]
  1481. --enable-pipewire use Pipewire audio [default=yes]
  1482. --enable-pipewire-shared
  1483. dynamically load Pipewire support [default=yes]
  1484. --enable-pulseaudio use PulseAudio [default=yes]
  1485. --enable-pulseaudio-shared
  1486. dynamically load PulseAudio support [default=yes]
  1487. --enable-arts support the Analog Real Time Synthesizer
  1488. [default=yes]
  1489. --enable-arts-shared dynamically load aRts audio support [default=yes]
  1490. --enable-nas support the NAS audio API [default=yes]
  1491. --enable-nas-shared dynamically load NAS audio support [default=yes]
  1492. --enable-sndio support the sndio audio API [default=yes]
  1493. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1494. --enable-fusionsound use FusionSound audio driver [default=no]
  1495. --enable-fusionsound-shared
  1496. dynamically load fusionsound audio support
  1497. [default=yes]
  1498. --enable-diskaudio support the disk writer audio driver [default=yes]
  1499. --enable-dummyaudio support the dummy audio driver [default=yes]
  1500. --enable-libsamplerate use libsamplerate for audio rate conversion
  1501. [default=yes]
  1502. --enable-libsamplerate-shared
  1503. dynamically load libsamplerate [default=yes]
  1504. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1505. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1506. --enable-libdecor use libdecor for Wayland client-side decorations
  1507. [default=yes]
  1508. --enable-libdecor-shared
  1509. dynamically load libdecor [default=yes]
  1510. --enable-video-wayland use Wayland video driver [default=yes]
  1511. --enable-video-wayland-qt-touch
  1512. QtWayland server support for Wayland video driver
  1513. [default=yes]
  1514. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1515. --enable-video-rpi use Raspberry Pi video driver [default=yes]
  1516. --enable-video-x11 use X11 video driver [default=yes]
  1517. --enable-x11-shared dynamically load X11 support [default=maybe]
  1518. --enable-video-x11-xcursor
  1519. enable X11 Xcursor support [default=yes]
  1520. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1521. --enable-video-x11-xinerama
  1522. enable X11 Xinerama support [default=yes]
  1523. --enable-video-x11-xinput
  1524. enable X11 XInput extension for manymouse, tablets,
  1525. etc [default=yes]
  1526. --enable-video-x11-xrandr
  1527. enable X11 Xrandr extension for fullscreen
  1528. [default=yes]
  1529. --enable-video-x11-scrnsaver
  1530. enable X11 screensaver extension [default=yes]
  1531. --enable-video-x11-xshape
  1532. enable X11 XShape support [default=yes]
  1533. --enable-video-x11-vm use X11 VM extension for fullscreen [default=yes]
  1534. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1535. --enable-video-cocoa use Cocoa video driver [default=yes]
  1536. --enable-video-metal include Metal support [default=yes]
  1537. --enable-render-metal enable the Metal render driver [default=yes]
  1538. --enable-video-directfb use DirectFB video driver [default=no]
  1539. --enable-directfb-shared
  1540. dynamically load directfb support [default=yes]
  1541. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1542. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1543. --enable-video-dummy use dummy video driver [default=yes]
  1544. --enable-video-opengl include OpenGL support [default=yes]
  1545. --enable-video-opengles include OpenGL ES support [default=yes]
  1546. --enable-video-opengles1
  1547. include OpenGL ES 1.1 support [default=yes]
  1548. --enable-video-opengles2
  1549. include OpenGL ES 2.0 support [default=yes]
  1550. --enable-video-vulkan include Vulkan support [default=yes]
  1551. --enable-libudev enable libudev support [default=yes]
  1552. --enable-dbus enable D-Bus support [default=yes]
  1553. --enable-ime enable IME support [default=yes]
  1554. --enable-ibus enable IBus support [default=yes]
  1555. --enable-fcitx enable fcitx support [default=yes]
  1556. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1557. --enable-pthreads use POSIX threads for multi-threading
  1558. [default=maybe]
  1559. --enable-pthread-sem use pthread semaphores [default=maybe]
  1560. --enable-directx use DirectX for Windows audio/video [default=yes]
  1561. --enable-xinput use Xinput for Windows [default=yes]
  1562. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1563. --enable-sdl-dlopen use dlopen for shared object loading [default=yes]
  1564. --enable-hidapi use HIDAPI for low level joystick drivers
  1565. [default=yes]
  1566. --enable-hidapi-libusb use libusb for low level joystick drivers
  1567. [default=maybe]
  1568. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1569. UNIX [default=yes]
  1570. --enable-rpath use an rpath when linking SDL [default=yes]
  1571. --enable-backgrounding-signal
  1572. number to use for magic backgrounding signal or 'no'
  1573. [default=no]
  1574. --enable-foregrounding-signal
  1575. number to use for magic foregrounding signal or 'no'
  1576. [default=no]
  1577. --enable-joystick-virtual
  1578. enable virtual joystick APIs [default=yes]
  1579. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1580. --enable-sdl2-config Install sdl2-config [default=yes]
  1581. Optional Packages:
  1582. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1583. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1584. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1585. both]
  1586. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1587. --with-sysroot=DIR Search for dependent libraries within DIR
  1588. (or the compiler's sysroot if not specified).
  1589. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1590. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1591. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1592. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1593. --with-x use the X Window System
  1594. Some influential environment variables:
  1595. CC C compiler command
  1596. CFLAGS C compiler flags
  1597. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1598. nonstandard directory <lib dir>
  1599. LIBS libraries to pass to the linker, e.g. -l<library>
  1600. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1601. you have headers in a nonstandard directory <include dir>
  1602. CPP C preprocessor
  1603. CXX C++ compiler command
  1604. CXXFLAGS C++ compiler flags
  1605. CXXCPP C++ preprocessor
  1606. PKG_CONFIG path to pkg-config utility
  1607. PKG_CONFIG_PATH
  1608. directories to add to pkg-config's search path
  1609. PKG_CONFIG_LIBDIR
  1610. path overriding pkg-config's built-in search path
  1611. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1612. JACK_LIBS linker flags for JACK, overriding pkg-config
  1613. PIPEWIRE_CFLAGS
  1614. C compiler flags for PIPEWIRE, overriding pkg-config
  1615. PIPEWIRE_LIBS
  1616. linker flags for PIPEWIRE, overriding pkg-config
  1617. PULSEAUDIO_CFLAGS
  1618. C compiler flags for PULSEAUDIO, overriding pkg-config
  1619. PULSEAUDIO_LIBS
  1620. linker flags for PULSEAUDIO, overriding pkg-config
  1621. FUSIONSOUND_CFLAGS
  1622. C compiler flags for FUSIONSOUND, overriding pkg-config
  1623. FUSIONSOUND_LIBS
  1624. linker flags for FUSIONSOUND, overriding pkg-config
  1625. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1626. RPI_LIBS linker flags for RPI, overriding pkg-config
  1627. XMKMF Path to xmkmf, Makefile generator for X Window System
  1628. DIRECTFB_CFLAGS
  1629. C compiler flags for DIRECTFB, overriding pkg-config
  1630. DIRECTFB_LIBS
  1631. linker flags for DIRECTFB, overriding pkg-config
  1632. LIBDRM_CFLAGS
  1633. C compiler flags for LIBDRM, overriding pkg-config
  1634. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1635. LIBGBM_CFLAGS
  1636. C compiler flags for LIBGBM, overriding pkg-config
  1637. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1638. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1639. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1640. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1641. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1642. LIBUSB_CFLAGS
  1643. C compiler flags for LIBUSB, overriding pkg-config
  1644. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1645. Use these variables to override the choices made by `configure' or to help
  1646. it to find libraries and programs with nonstandard names/locations.
  1647. Report bugs to the package provider.
  1648. _ACEOF
  1649. ac_status=$?
  1650. fi
  1651. if test "$ac_init_help" = "recursive"; then
  1652. # If there are subdirs, report their specific --help.
  1653. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1654. test -d "$ac_dir" ||
  1655. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1656. continue
  1657. ac_builddir=.
  1658. case "$ac_dir" in
  1659. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1660. *)
  1661. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1662. # A ".." for each directory in $ac_dir_suffix.
  1663. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1664. case $ac_top_builddir_sub in
  1665. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1666. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1667. esac ;;
  1668. esac
  1669. ac_abs_top_builddir=$ac_pwd
  1670. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1671. # for backward compatibility:
  1672. ac_top_builddir=$ac_top_build_prefix
  1673. case $srcdir in
  1674. .) # We are building in place.
  1675. ac_srcdir=.
  1676. ac_top_srcdir=$ac_top_builddir_sub
  1677. ac_abs_top_srcdir=$ac_pwd ;;
  1678. [\\/]* | ?:[\\/]* ) # Absolute name.
  1679. ac_srcdir=$srcdir$ac_dir_suffix;
  1680. ac_top_srcdir=$srcdir
  1681. ac_abs_top_srcdir=$srcdir ;;
  1682. *) # Relative name.
  1683. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1684. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1685. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1686. esac
  1687. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1688. cd "$ac_dir" || { ac_status=$?; continue; }
  1689. # Check for guested configure.
  1690. if test -f "$ac_srcdir/configure.gnu"; then
  1691. echo &&
  1692. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1693. elif test -f "$ac_srcdir/configure"; then
  1694. echo &&
  1695. $SHELL "$ac_srcdir/configure" --help=recursive
  1696. else
  1697. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1698. fi || ac_status=$?
  1699. cd "$ac_pwd" || { ac_status=$?; break; }
  1700. done
  1701. fi
  1702. test -n "$ac_init_help" && exit $ac_status
  1703. if $ac_init_version; then
  1704. cat <<\_ACEOF
  1705. configure
  1706. generated by GNU Autoconf 2.69
  1707. Copyright (C) 2012 Free Software Foundation, Inc.
  1708. This configure script is free software; the Free Software Foundation
  1709. gives unlimited permission to copy, distribute and modify it.
  1710. _ACEOF
  1711. exit
  1712. fi
  1713. ## ------------------------ ##
  1714. ## Autoconf initialization. ##
  1715. ## ------------------------ ##
  1716. # ac_fn_c_try_compile LINENO
  1717. # --------------------------
  1718. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1719. ac_fn_c_try_compile ()
  1720. {
  1721. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1722. rm -f conftest.$ac_objext
  1723. if { { ac_try="$ac_compile"
  1724. case "(($ac_try" in
  1725. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1726. *) ac_try_echo=$ac_try;;
  1727. esac
  1728. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1729. $as_echo "$ac_try_echo"; } >&5
  1730. (eval "$ac_compile") 2>conftest.err
  1731. ac_status=$?
  1732. if test -s conftest.err; then
  1733. grep -v '^ *+' conftest.err >conftest.er1
  1734. cat conftest.er1 >&5
  1735. mv -f conftest.er1 conftest.err
  1736. fi
  1737. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1738. test $ac_status = 0; } && {
  1739. test -z "$ac_c_werror_flag" ||
  1740. test ! -s conftest.err
  1741. } && test -s conftest.$ac_objext; then :
  1742. ac_retval=0
  1743. else
  1744. $as_echo "$as_me: failed program was:" >&5
  1745. sed 's/^/| /' conftest.$ac_ext >&5
  1746. ac_retval=1
  1747. fi
  1748. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1749. as_fn_set_status $ac_retval
  1750. } # ac_fn_c_try_compile
  1751. # ac_fn_c_try_link LINENO
  1752. # -----------------------
  1753. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1754. ac_fn_c_try_link ()
  1755. {
  1756. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1757. rm -f conftest.$ac_objext conftest$ac_exeext
  1758. if { { ac_try="$ac_link"
  1759. case "(($ac_try" in
  1760. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1761. *) ac_try_echo=$ac_try;;
  1762. esac
  1763. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1764. $as_echo "$ac_try_echo"; } >&5
  1765. (eval "$ac_link") 2>conftest.err
  1766. ac_status=$?
  1767. if test -s conftest.err; then
  1768. grep -v '^ *+' conftest.err >conftest.er1
  1769. cat conftest.er1 >&5
  1770. mv -f conftest.er1 conftest.err
  1771. fi
  1772. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1773. test $ac_status = 0; } && {
  1774. test -z "$ac_c_werror_flag" ||
  1775. test ! -s conftest.err
  1776. } && test -s conftest$ac_exeext && {
  1777. test "$cross_compiling" = yes ||
  1778. test -x conftest$ac_exeext
  1779. }; then :
  1780. ac_retval=0
  1781. else
  1782. $as_echo "$as_me: failed program was:" >&5
  1783. sed 's/^/| /' conftest.$ac_ext >&5
  1784. ac_retval=1
  1785. fi
  1786. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1787. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1788. # interfere with the next link command; also delete a directory that is
  1789. # left behind by Apple's compiler. We do this before executing the actions.
  1790. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1791. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1792. as_fn_set_status $ac_retval
  1793. } # ac_fn_c_try_link
  1794. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1795. # -------------------------------------------------------
  1796. # Tests whether HEADER exists and can be compiled using the include files in
  1797. # INCLUDES, setting the cache variable VAR accordingly.
  1798. ac_fn_c_check_header_compile ()
  1799. {
  1800. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1802. $as_echo_n "checking for $2... " >&6; }
  1803. if eval \${$3+:} false; then :
  1804. $as_echo_n "(cached) " >&6
  1805. else
  1806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1807. /* end confdefs.h. */
  1808. $4
  1809. #include <$2>
  1810. _ACEOF
  1811. if ac_fn_c_try_compile "$LINENO"; then :
  1812. eval "$3=yes"
  1813. else
  1814. eval "$3=no"
  1815. fi
  1816. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1817. fi
  1818. eval ac_res=\$$3
  1819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1820. $as_echo "$ac_res" >&6; }
  1821. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1822. } # ac_fn_c_check_header_compile
  1823. # ac_fn_c_try_cpp LINENO
  1824. # ----------------------
  1825. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1826. ac_fn_c_try_cpp ()
  1827. {
  1828. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1829. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1830. case "(($ac_try" in
  1831. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1832. *) ac_try_echo=$ac_try;;
  1833. esac
  1834. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1835. $as_echo "$ac_try_echo"; } >&5
  1836. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1837. ac_status=$?
  1838. if test -s conftest.err; then
  1839. grep -v '^ *+' conftest.err >conftest.er1
  1840. cat conftest.er1 >&5
  1841. mv -f conftest.er1 conftest.err
  1842. fi
  1843. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1844. test $ac_status = 0; } > conftest.i && {
  1845. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1846. test ! -s conftest.err
  1847. }; then :
  1848. ac_retval=0
  1849. else
  1850. $as_echo "$as_me: failed program was:" >&5
  1851. sed 's/^/| /' conftest.$ac_ext >&5
  1852. ac_retval=1
  1853. fi
  1854. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1855. as_fn_set_status $ac_retval
  1856. } # ac_fn_c_try_cpp
  1857. # ac_fn_c_try_run LINENO
  1858. # ----------------------
  1859. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1860. # that executables *can* be run.
  1861. ac_fn_c_try_run ()
  1862. {
  1863. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1864. if { { ac_try="$ac_link"
  1865. case "(($ac_try" in
  1866. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1867. *) ac_try_echo=$ac_try;;
  1868. esac
  1869. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1870. $as_echo "$ac_try_echo"; } >&5
  1871. (eval "$ac_link") 2>&5
  1872. ac_status=$?
  1873. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1874. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1875. { { case "(($ac_try" in
  1876. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1877. *) ac_try_echo=$ac_try;;
  1878. esac
  1879. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1880. $as_echo "$ac_try_echo"; } >&5
  1881. (eval "$ac_try") 2>&5
  1882. ac_status=$?
  1883. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1884. test $ac_status = 0; }; }; then :
  1885. ac_retval=0
  1886. else
  1887. $as_echo "$as_me: program exited with status $ac_status" >&5
  1888. $as_echo "$as_me: failed program was:" >&5
  1889. sed 's/^/| /' conftest.$ac_ext >&5
  1890. ac_retval=$ac_status
  1891. fi
  1892. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1893. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1894. as_fn_set_status $ac_retval
  1895. } # ac_fn_c_try_run
  1896. # ac_fn_c_check_func LINENO FUNC VAR
  1897. # ----------------------------------
  1898. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1899. ac_fn_c_check_func ()
  1900. {
  1901. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1903. $as_echo_n "checking for $2... " >&6; }
  1904. if eval \${$3+:} false; then :
  1905. $as_echo_n "(cached) " >&6
  1906. else
  1907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1908. /* end confdefs.h. */
  1909. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1910. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1911. #define $2 innocuous_$2
  1912. /* System header to define __stub macros and hopefully few prototypes,
  1913. which can conflict with char $2 (); below.
  1914. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1915. <limits.h> exists even on freestanding compilers. */
  1916. #ifdef __STDC__
  1917. # include <limits.h>
  1918. #else
  1919. # include <assert.h>
  1920. #endif
  1921. #undef $2
  1922. /* Override any GCC internal prototype to avoid an error.
  1923. Use char because int might match the return type of a GCC
  1924. builtin and then its argument prototype would still apply. */
  1925. #ifdef __cplusplus
  1926. extern "C"
  1927. #endif
  1928. char $2 ();
  1929. /* The GNU C library defines this for functions which it implements
  1930. to always fail with ENOSYS. Some functions are actually named
  1931. something starting with __ and the normal name is an alias. */
  1932. #if defined __stub_$2 || defined __stub___$2
  1933. choke me
  1934. #endif
  1935. int
  1936. main ()
  1937. {
  1938. return $2 ();
  1939. ;
  1940. return 0;
  1941. }
  1942. _ACEOF
  1943. if ac_fn_c_try_link "$LINENO"; then :
  1944. eval "$3=yes"
  1945. else
  1946. eval "$3=no"
  1947. fi
  1948. rm -f core conftest.err conftest.$ac_objext \
  1949. conftest$ac_exeext conftest.$ac_ext
  1950. fi
  1951. eval ac_res=\$$3
  1952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1953. $as_echo "$ac_res" >&6; }
  1954. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1955. } # ac_fn_c_check_func
  1956. # ac_fn_cxx_try_compile LINENO
  1957. # ----------------------------
  1958. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1959. ac_fn_cxx_try_compile ()
  1960. {
  1961. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1962. rm -f conftest.$ac_objext
  1963. if { { ac_try="$ac_compile"
  1964. case "(($ac_try" in
  1965. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1966. *) ac_try_echo=$ac_try;;
  1967. esac
  1968. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1969. $as_echo "$ac_try_echo"; } >&5
  1970. (eval "$ac_compile") 2>conftest.err
  1971. ac_status=$?
  1972. if test -s conftest.err; then
  1973. grep -v '^ *+' conftest.err >conftest.er1
  1974. cat conftest.er1 >&5
  1975. mv -f conftest.er1 conftest.err
  1976. fi
  1977. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1978. test $ac_status = 0; } && {
  1979. test -z "$ac_cxx_werror_flag" ||
  1980. test ! -s conftest.err
  1981. } && test -s conftest.$ac_objext; then :
  1982. ac_retval=0
  1983. else
  1984. $as_echo "$as_me: failed program was:" >&5
  1985. sed 's/^/| /' conftest.$ac_ext >&5
  1986. ac_retval=1
  1987. fi
  1988. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1989. as_fn_set_status $ac_retval
  1990. } # ac_fn_cxx_try_compile
  1991. # ac_fn_cxx_try_cpp LINENO
  1992. # ------------------------
  1993. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1994. ac_fn_cxx_try_cpp ()
  1995. {
  1996. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1997. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1998. case "(($ac_try" in
  1999. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2000. *) ac_try_echo=$ac_try;;
  2001. esac
  2002. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2003. $as_echo "$ac_try_echo"; } >&5
  2004. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2005. ac_status=$?
  2006. if test -s conftest.err; then
  2007. grep -v '^ *+' conftest.err >conftest.er1
  2008. cat conftest.er1 >&5
  2009. mv -f conftest.er1 conftest.err
  2010. fi
  2011. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2012. test $ac_status = 0; } > conftest.i && {
  2013. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2014. test ! -s conftest.err
  2015. }; then :
  2016. ac_retval=0
  2017. else
  2018. $as_echo "$as_me: failed program was:" >&5
  2019. sed 's/^/| /' conftest.$ac_ext >&5
  2020. ac_retval=1
  2021. fi
  2022. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2023. as_fn_set_status $ac_retval
  2024. } # ac_fn_cxx_try_cpp
  2025. # ac_fn_cxx_try_link LINENO
  2026. # -------------------------
  2027. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2028. ac_fn_cxx_try_link ()
  2029. {
  2030. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2031. rm -f conftest.$ac_objext conftest$ac_exeext
  2032. if { { ac_try="$ac_link"
  2033. case "(($ac_try" in
  2034. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2035. *) ac_try_echo=$ac_try;;
  2036. esac
  2037. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2038. $as_echo "$ac_try_echo"; } >&5
  2039. (eval "$ac_link") 2>conftest.err
  2040. ac_status=$?
  2041. if test -s conftest.err; then
  2042. grep -v '^ *+' conftest.err >conftest.er1
  2043. cat conftest.er1 >&5
  2044. mv -f conftest.er1 conftest.err
  2045. fi
  2046. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2047. test $ac_status = 0; } && {
  2048. test -z "$ac_cxx_werror_flag" ||
  2049. test ! -s conftest.err
  2050. } && test -s conftest$ac_exeext && {
  2051. test "$cross_compiling" = yes ||
  2052. test -x conftest$ac_exeext
  2053. }; then :
  2054. ac_retval=0
  2055. else
  2056. $as_echo "$as_me: failed program was:" >&5
  2057. sed 's/^/| /' conftest.$ac_ext >&5
  2058. ac_retval=1
  2059. fi
  2060. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2061. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2062. # interfere with the next link command; also delete a directory that is
  2063. # left behind by Apple's compiler. We do this before executing the actions.
  2064. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2065. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2066. as_fn_set_status $ac_retval
  2067. } # ac_fn_cxx_try_link
  2068. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2069. # -------------------------------------------------------
  2070. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2071. # the include files in INCLUDES and setting the cache variable VAR
  2072. # accordingly.
  2073. ac_fn_c_check_header_mongrel ()
  2074. {
  2075. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2076. if eval \${$3+:} false; then :
  2077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2078. $as_echo_n "checking for $2... " >&6; }
  2079. if eval \${$3+:} false; then :
  2080. $as_echo_n "(cached) " >&6
  2081. fi
  2082. eval ac_res=\$$3
  2083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2084. $as_echo "$ac_res" >&6; }
  2085. else
  2086. # Is the header compilable?
  2087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2088. $as_echo_n "checking $2 usability... " >&6; }
  2089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2090. /* end confdefs.h. */
  2091. $4
  2092. #include <$2>
  2093. _ACEOF
  2094. if ac_fn_c_try_compile "$LINENO"; then :
  2095. ac_header_compiler=yes
  2096. else
  2097. ac_header_compiler=no
  2098. fi
  2099. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2101. $as_echo "$ac_header_compiler" >&6; }
  2102. # Is the header present?
  2103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2104. $as_echo_n "checking $2 presence... " >&6; }
  2105. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2106. /* end confdefs.h. */
  2107. #include <$2>
  2108. _ACEOF
  2109. if ac_fn_c_try_cpp "$LINENO"; then :
  2110. ac_header_preproc=yes
  2111. else
  2112. ac_header_preproc=no
  2113. fi
  2114. rm -f conftest.err conftest.i conftest.$ac_ext
  2115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2116. $as_echo "$ac_header_preproc" >&6; }
  2117. # So? What about this header?
  2118. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2119. yes:no: )
  2120. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2121. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2122. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2123. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2124. ;;
  2125. no:yes:* )
  2126. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2127. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2128. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2129. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2130. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2131. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2132. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2133. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2134. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2135. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2136. ;;
  2137. esac
  2138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2139. $as_echo_n "checking for $2... " >&6; }
  2140. if eval \${$3+:} false; then :
  2141. $as_echo_n "(cached) " >&6
  2142. else
  2143. eval "$3=\$ac_header_compiler"
  2144. fi
  2145. eval ac_res=\$$3
  2146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2147. $as_echo "$ac_res" >&6; }
  2148. fi
  2149. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2150. } # ac_fn_c_check_header_mongrel
  2151. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2152. # -------------------------------------------
  2153. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2154. # variable VAR accordingly.
  2155. ac_fn_c_check_type ()
  2156. {
  2157. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2159. $as_echo_n "checking for $2... " >&6; }
  2160. if eval \${$3+:} false; then :
  2161. $as_echo_n "(cached) " >&6
  2162. else
  2163. eval "$3=no"
  2164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2165. /* end confdefs.h. */
  2166. $4
  2167. int
  2168. main ()
  2169. {
  2170. if (sizeof ($2))
  2171. return 0;
  2172. ;
  2173. return 0;
  2174. }
  2175. _ACEOF
  2176. if ac_fn_c_try_compile "$LINENO"; then :
  2177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2178. /* end confdefs.h. */
  2179. $4
  2180. int
  2181. main ()
  2182. {
  2183. if (sizeof (($2)))
  2184. return 0;
  2185. ;
  2186. return 0;
  2187. }
  2188. _ACEOF
  2189. if ac_fn_c_try_compile "$LINENO"; then :
  2190. else
  2191. eval "$3=yes"
  2192. fi
  2193. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2194. fi
  2195. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2196. fi
  2197. eval ac_res=\$$3
  2198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2199. $as_echo "$ac_res" >&6; }
  2200. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2201. } # ac_fn_c_check_type
  2202. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2203. # ----------------------------------------------------
  2204. # Tries to find if the field MEMBER exists in type AGGR, after including
  2205. # INCLUDES, setting cache variable VAR accordingly.
  2206. ac_fn_c_check_member ()
  2207. {
  2208. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2210. $as_echo_n "checking for $2.$3... " >&6; }
  2211. if eval \${$4+:} false; then :
  2212. $as_echo_n "(cached) " >&6
  2213. else
  2214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2215. /* end confdefs.h. */
  2216. $5
  2217. int
  2218. main ()
  2219. {
  2220. static $2 ac_aggr;
  2221. if (ac_aggr.$3)
  2222. return 0;
  2223. ;
  2224. return 0;
  2225. }
  2226. _ACEOF
  2227. if ac_fn_c_try_compile "$LINENO"; then :
  2228. eval "$4=yes"
  2229. else
  2230. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2231. /* end confdefs.h. */
  2232. $5
  2233. int
  2234. main ()
  2235. {
  2236. static $2 ac_aggr;
  2237. if (sizeof ac_aggr.$3)
  2238. return 0;
  2239. ;
  2240. return 0;
  2241. }
  2242. _ACEOF
  2243. if ac_fn_c_try_compile "$LINENO"; then :
  2244. eval "$4=yes"
  2245. else
  2246. eval "$4=no"
  2247. fi
  2248. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2249. fi
  2250. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2251. fi
  2252. eval ac_res=\$$4
  2253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2254. $as_echo "$ac_res" >&6; }
  2255. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2256. } # ac_fn_c_check_member
  2257. cat >config.log <<_ACEOF
  2258. This file contains any messages produced by compilers while
  2259. running configure, to aid debugging if configure makes a mistake.
  2260. It was created by $as_me, which was
  2261. generated by GNU Autoconf 2.69. Invocation command line was
  2262. $ $0 $@
  2263. _ACEOF
  2264. exec 5>>config.log
  2265. {
  2266. cat <<_ASUNAME
  2267. ## --------- ##
  2268. ## Platform. ##
  2269. ## --------- ##
  2270. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2271. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2272. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2273. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2274. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2275. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2276. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2277. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2278. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2279. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2280. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2281. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2282. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2283. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2284. _ASUNAME
  2285. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2286. for as_dir in $PATH
  2287. do
  2288. IFS=$as_save_IFS
  2289. test -z "$as_dir" && as_dir=.
  2290. $as_echo "PATH: $as_dir"
  2291. done
  2292. IFS=$as_save_IFS
  2293. } >&5
  2294. cat >&5 <<_ACEOF
  2295. ## ----------- ##
  2296. ## Core tests. ##
  2297. ## ----------- ##
  2298. _ACEOF
  2299. # Keep a trace of the command line.
  2300. # Strip out --no-create and --no-recursion so they do not pile up.
  2301. # Strip out --silent because we don't want to record it for future runs.
  2302. # Also quote any args containing shell meta-characters.
  2303. # Make two passes to allow for proper duplicate-argument suppression.
  2304. ac_configure_args=
  2305. ac_configure_args0=
  2306. ac_configure_args1=
  2307. ac_must_keep_next=false
  2308. for ac_pass in 1 2
  2309. do
  2310. for ac_arg
  2311. do
  2312. case $ac_arg in
  2313. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2314. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2315. | -silent | --silent | --silen | --sile | --sil)
  2316. continue ;;
  2317. *\'*)
  2318. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2319. esac
  2320. case $ac_pass in
  2321. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2322. 2)
  2323. as_fn_append ac_configure_args1 " '$ac_arg'"
  2324. if test $ac_must_keep_next = true; then
  2325. ac_must_keep_next=false # Got value, back to normal.
  2326. else
  2327. case $ac_arg in
  2328. *=* | --config-cache | -C | -disable-* | --disable-* \
  2329. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2330. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2331. | -with-* | --with-* | -without-* | --without-* | --x)
  2332. case "$ac_configure_args0 " in
  2333. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2334. esac
  2335. ;;
  2336. -* ) ac_must_keep_next=true ;;
  2337. esac
  2338. fi
  2339. as_fn_append ac_configure_args " '$ac_arg'"
  2340. ;;
  2341. esac
  2342. done
  2343. done
  2344. { ac_configure_args0=; unset ac_configure_args0;}
  2345. { ac_configure_args1=; unset ac_configure_args1;}
  2346. # When interrupted or exit'd, cleanup temporary files, and complete
  2347. # config.log. We remove comments because anyway the quotes in there
  2348. # would cause problems or look ugly.
  2349. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2350. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2351. trap 'exit_status=$?
  2352. # Save into config.log some information that might help in debugging.
  2353. {
  2354. echo
  2355. $as_echo "## ---------------- ##
  2356. ## Cache variables. ##
  2357. ## ---------------- ##"
  2358. echo
  2359. # The following way of writing the cache mishandles newlines in values,
  2360. (
  2361. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2362. eval ac_val=\$$ac_var
  2363. case $ac_val in #(
  2364. *${as_nl}*)
  2365. case $ac_var in #(
  2366. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2367. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2368. esac
  2369. case $ac_var in #(
  2370. _ | IFS | as_nl) ;; #(
  2371. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2372. *) { eval $ac_var=; unset $ac_var;} ;;
  2373. esac ;;
  2374. esac
  2375. done
  2376. (set) 2>&1 |
  2377. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2378. *${as_nl}ac_space=\ *)
  2379. sed -n \
  2380. "s/'\''/'\''\\\\'\'''\''/g;
  2381. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2382. ;; #(
  2383. *)
  2384. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2385. ;;
  2386. esac |
  2387. sort
  2388. )
  2389. echo
  2390. $as_echo "## ----------------- ##
  2391. ## Output variables. ##
  2392. ## ----------------- ##"
  2393. echo
  2394. for ac_var in $ac_subst_vars
  2395. do
  2396. eval ac_val=\$$ac_var
  2397. case $ac_val in
  2398. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2399. esac
  2400. $as_echo "$ac_var='\''$ac_val'\''"
  2401. done | sort
  2402. echo
  2403. if test -n "$ac_subst_files"; then
  2404. $as_echo "## ------------------- ##
  2405. ## File substitutions. ##
  2406. ## ------------------- ##"
  2407. echo
  2408. for ac_var in $ac_subst_files
  2409. do
  2410. eval ac_val=\$$ac_var
  2411. case $ac_val in
  2412. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2413. esac
  2414. $as_echo "$ac_var='\''$ac_val'\''"
  2415. done | sort
  2416. echo
  2417. fi
  2418. if test -s confdefs.h; then
  2419. $as_echo "## ----------- ##
  2420. ## confdefs.h. ##
  2421. ## ----------- ##"
  2422. echo
  2423. cat confdefs.h
  2424. echo
  2425. fi
  2426. test "$ac_signal" != 0 &&
  2427. $as_echo "$as_me: caught signal $ac_signal"
  2428. $as_echo "$as_me: exit $exit_status"
  2429. } >&5
  2430. rm -f core *.core core.conftest.* &&
  2431. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2432. exit $exit_status
  2433. ' 0
  2434. for ac_signal in 1 2 13 15; do
  2435. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2436. done
  2437. ac_signal=0
  2438. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2439. rm -f -r conftest* confdefs.h
  2440. $as_echo "/* confdefs.h */" > confdefs.h
  2441. # Predefined preprocessor variables.
  2442. cat >>confdefs.h <<_ACEOF
  2443. #define PACKAGE_NAME "$PACKAGE_NAME"
  2444. _ACEOF
  2445. cat >>confdefs.h <<_ACEOF
  2446. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2447. _ACEOF
  2448. cat >>confdefs.h <<_ACEOF
  2449. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2450. _ACEOF
  2451. cat >>confdefs.h <<_ACEOF
  2452. #define PACKAGE_STRING "$PACKAGE_STRING"
  2453. _ACEOF
  2454. cat >>confdefs.h <<_ACEOF
  2455. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2456. _ACEOF
  2457. cat >>confdefs.h <<_ACEOF
  2458. #define PACKAGE_URL "$PACKAGE_URL"
  2459. _ACEOF
  2460. # Let the site file select an alternate cache file if it wants to.
  2461. # Prefer an explicitly selected file to automatically selected ones.
  2462. ac_site_file1=NONE
  2463. ac_site_file2=NONE
  2464. if test -n "$CONFIG_SITE"; then
  2465. # We do not want a PATH search for config.site.
  2466. case $CONFIG_SITE in #((
  2467. -*) ac_site_file1=./$CONFIG_SITE;;
  2468. */*) ac_site_file1=$CONFIG_SITE;;
  2469. *) ac_site_file1=./$CONFIG_SITE;;
  2470. esac
  2471. elif test "x$prefix" != xNONE; then
  2472. ac_site_file1=$prefix/share/config.site
  2473. ac_site_file2=$prefix/etc/config.site
  2474. else
  2475. ac_site_file1=$ac_default_prefix/share/config.site
  2476. ac_site_file2=$ac_default_prefix/etc/config.site
  2477. fi
  2478. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2479. do
  2480. test "x$ac_site_file" = xNONE && continue
  2481. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2482. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2483. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2484. sed 's/^/| /' "$ac_site_file" >&5
  2485. . "$ac_site_file" \
  2486. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2487. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2488. as_fn_error $? "failed to load site script $ac_site_file
  2489. See \`config.log' for more details" "$LINENO" 5; }
  2490. fi
  2491. done
  2492. if test -r "$cache_file"; then
  2493. # Some versions of bash will fail to source /dev/null (special files
  2494. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2495. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2496. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2497. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2498. case $cache_file in
  2499. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2500. *) . "./$cache_file";;
  2501. esac
  2502. fi
  2503. else
  2504. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2505. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2506. >$cache_file
  2507. fi
  2508. # Check that the precious variables saved in the cache have kept the same
  2509. # value.
  2510. ac_cache_corrupted=false
  2511. for ac_var in $ac_precious_vars; do
  2512. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2513. eval ac_new_set=\$ac_env_${ac_var}_set
  2514. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2515. eval ac_new_val=\$ac_env_${ac_var}_value
  2516. case $ac_old_set,$ac_new_set in
  2517. set,)
  2518. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2519. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2520. ac_cache_corrupted=: ;;
  2521. ,set)
  2522. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2523. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2524. ac_cache_corrupted=: ;;
  2525. ,);;
  2526. *)
  2527. if test "x$ac_old_val" != "x$ac_new_val"; then
  2528. # differences in whitespace do not lead to failure.
  2529. ac_old_val_w=`echo x $ac_old_val`
  2530. ac_new_val_w=`echo x $ac_new_val`
  2531. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2532. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2533. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2534. ac_cache_corrupted=:
  2535. else
  2536. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2537. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2538. eval $ac_var=\$ac_old_val
  2539. fi
  2540. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2541. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2542. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2543. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2544. fi;;
  2545. esac
  2546. # Pass precious variables to config.status.
  2547. if test "$ac_new_set" = set; then
  2548. case $ac_new_val in
  2549. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2550. *) ac_arg=$ac_var=$ac_new_val ;;
  2551. esac
  2552. case " $ac_configure_args " in
  2553. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2554. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2555. esac
  2556. fi
  2557. done
  2558. if $ac_cache_corrupted; then
  2559. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2560. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2561. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2562. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2563. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2564. fi
  2565. ## -------------------- ##
  2566. ## Main body of script. ##
  2567. ## -------------------- ##
  2568. ac_ext=c
  2569. ac_cpp='$CPP $CPPFLAGS'
  2570. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2571. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2572. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2573. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2574. ac_aux_dir=
  2575. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2576. if test -f "$ac_dir/install-sh"; then
  2577. ac_aux_dir=$ac_dir
  2578. ac_install_sh="$ac_aux_dir/install-sh -c"
  2579. break
  2580. elif test -f "$ac_dir/install.sh"; then
  2581. ac_aux_dir=$ac_dir
  2582. ac_install_sh="$ac_aux_dir/install.sh -c"
  2583. break
  2584. elif test -f "$ac_dir/shtool"; then
  2585. ac_aux_dir=$ac_dir
  2586. ac_install_sh="$ac_aux_dir/shtool install -c"
  2587. break
  2588. fi
  2589. done
  2590. if test -z "$ac_aux_dir"; then
  2591. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2592. fi
  2593. # These three variables are undocumented and unsupported,
  2594. # and are intended to be withdrawn in a future Autoconf release.
  2595. # They can cause serious problems if a builder's source tree is in a directory
  2596. # whose full name contains unusual characters.
  2597. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2598. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2599. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2600. orig_CFLAGS="$CFLAGS"
  2601. #
  2602. # Making releases:
  2603. # Edit include/SDL_version.h and change the version, then:
  2604. # SDL_MICRO_VERSION += 1;
  2605. # SDL_INTERFACE_AGE += 1;
  2606. # SDL_BINARY_AGE += 1;
  2607. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2608. # if backwards compatibility has been broken,
  2609. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2610. #
  2611. SDL_MAJOR_VERSION=2
  2612. SDL_MINOR_VERSION=0
  2613. SDL_MICRO_VERSION=15
  2614. SDL_INTERFACE_AGE=1
  2615. SDL_BINARY_AGE=15
  2616. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2617. # libtool versioning
  2618. case `pwd` in
  2619. *\ * | *\ *)
  2620. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2621. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2622. esac
  2623. macro_version='2.4.2'
  2624. macro_revision='1.3337'
  2625. ltmain="$ac_aux_dir/ltmain.sh"
  2626. # Make sure we can run config.sub.
  2627. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2628. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2630. $as_echo_n "checking build system type... " >&6; }
  2631. if ${ac_cv_build+:} false; then :
  2632. $as_echo_n "(cached) " >&6
  2633. else
  2634. ac_build_alias=$build_alias
  2635. test "x$ac_build_alias" = x &&
  2636. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2637. test "x$ac_build_alias" = x &&
  2638. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2639. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2640. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2641. fi
  2642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2643. $as_echo "$ac_cv_build" >&6; }
  2644. case $ac_cv_build in
  2645. *-*-*) ;;
  2646. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2647. esac
  2648. build=$ac_cv_build
  2649. ac_save_IFS=$IFS; IFS='-'
  2650. set x $ac_cv_build
  2651. shift
  2652. build_cpu=$1
  2653. build_vendor=$2
  2654. shift; shift
  2655. # Remember, the first character of IFS is used to create $*,
  2656. # except with old shells:
  2657. build_os=$*
  2658. IFS=$ac_save_IFS
  2659. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2661. $as_echo_n "checking host system type... " >&6; }
  2662. if ${ac_cv_host+:} false; then :
  2663. $as_echo_n "(cached) " >&6
  2664. else
  2665. if test "x$host_alias" = x; then
  2666. ac_cv_host=$ac_cv_build
  2667. else
  2668. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2669. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2670. fi
  2671. fi
  2672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2673. $as_echo "$ac_cv_host" >&6; }
  2674. case $ac_cv_host in
  2675. *-*-*) ;;
  2676. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2677. esac
  2678. host=$ac_cv_host
  2679. ac_save_IFS=$IFS; IFS='-'
  2680. set x $ac_cv_host
  2681. shift
  2682. host_cpu=$1
  2683. host_vendor=$2
  2684. shift; shift
  2685. # Remember, the first character of IFS is used to create $*,
  2686. # except with old shells:
  2687. host_os=$*
  2688. IFS=$ac_save_IFS
  2689. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2690. # Backslashify metacharacters that are still active within
  2691. # double-quoted strings.
  2692. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2693. # Same as above, but do not quote variable references.
  2694. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2695. # Sed substitution to delay expansion of an escaped shell variable in a
  2696. # double_quote_subst'ed string.
  2697. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2698. # Sed substitution to delay expansion of an escaped single quote.
  2699. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2700. # Sed substitution to avoid accidental globbing in evaled expressions
  2701. no_glob_subst='s/\*/\\\*/g'
  2702. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2703. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2704. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2706. $as_echo_n "checking how to print strings... " >&6; }
  2707. # Test print first, because it will be a builtin if present.
  2708. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2709. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2710. ECHO='print -r --'
  2711. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2712. ECHO='printf %s\n'
  2713. else
  2714. # Use this function as a fallback that always works.
  2715. func_fallback_echo ()
  2716. {
  2717. eval 'cat <<_LTECHO_EOF
  2718. $1
  2719. _LTECHO_EOF'
  2720. }
  2721. ECHO='func_fallback_echo'
  2722. fi
  2723. # func_echo_all arg...
  2724. # Invoke $ECHO with all args, space-separated.
  2725. func_echo_all ()
  2726. {
  2727. $ECHO ""
  2728. }
  2729. case "$ECHO" in
  2730. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2731. $as_echo "printf" >&6; } ;;
  2732. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2733. $as_echo "print -r" >&6; } ;;
  2734. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2735. $as_echo "cat" >&6; } ;;
  2736. esac
  2737. ac_ext=c
  2738. ac_cpp='$CPP $CPPFLAGS'
  2739. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2740. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2741. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2742. if test -n "$ac_tool_prefix"; then
  2743. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2744. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2746. $as_echo_n "checking for $ac_word... " >&6; }
  2747. if ${ac_cv_prog_CC+:} false; then :
  2748. $as_echo_n "(cached) " >&6
  2749. else
  2750. if test -n "$CC"; then
  2751. ac_cv_prog_CC="$CC" # Let the user override the test.
  2752. else
  2753. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2754. for as_dir in $PATH
  2755. do
  2756. IFS=$as_save_IFS
  2757. test -z "$as_dir" && as_dir=.
  2758. for ac_exec_ext in '' $ac_executable_extensions; do
  2759. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2760. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2761. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2762. break 2
  2763. fi
  2764. done
  2765. done
  2766. IFS=$as_save_IFS
  2767. fi
  2768. fi
  2769. CC=$ac_cv_prog_CC
  2770. if test -n "$CC"; then
  2771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2772. $as_echo "$CC" >&6; }
  2773. else
  2774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2775. $as_echo "no" >&6; }
  2776. fi
  2777. fi
  2778. if test -z "$ac_cv_prog_CC"; then
  2779. ac_ct_CC=$CC
  2780. # Extract the first word of "gcc", so it can be a program name with args.
  2781. set dummy gcc; ac_word=$2
  2782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2783. $as_echo_n "checking for $ac_word... " >&6; }
  2784. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2785. $as_echo_n "(cached) " >&6
  2786. else
  2787. if test -n "$ac_ct_CC"; then
  2788. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2789. else
  2790. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2791. for as_dir in $PATH
  2792. do
  2793. IFS=$as_save_IFS
  2794. test -z "$as_dir" && as_dir=.
  2795. for ac_exec_ext in '' $ac_executable_extensions; do
  2796. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2797. ac_cv_prog_ac_ct_CC="gcc"
  2798. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2799. break 2
  2800. fi
  2801. done
  2802. done
  2803. IFS=$as_save_IFS
  2804. fi
  2805. fi
  2806. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2807. if test -n "$ac_ct_CC"; then
  2808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2809. $as_echo "$ac_ct_CC" >&6; }
  2810. else
  2811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2812. $as_echo "no" >&6; }
  2813. fi
  2814. if test "x$ac_ct_CC" = x; then
  2815. CC=""
  2816. else
  2817. case $cross_compiling:$ac_tool_warned in
  2818. yes:)
  2819. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2820. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2821. ac_tool_warned=yes ;;
  2822. esac
  2823. CC=$ac_ct_CC
  2824. fi
  2825. else
  2826. CC="$ac_cv_prog_CC"
  2827. fi
  2828. if test -z "$CC"; then
  2829. if test -n "$ac_tool_prefix"; then
  2830. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2831. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2833. $as_echo_n "checking for $ac_word... " >&6; }
  2834. if ${ac_cv_prog_CC+:} false; then :
  2835. $as_echo_n "(cached) " >&6
  2836. else
  2837. if test -n "$CC"; then
  2838. ac_cv_prog_CC="$CC" # Let the user override the test.
  2839. else
  2840. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2841. for as_dir in $PATH
  2842. do
  2843. IFS=$as_save_IFS
  2844. test -z "$as_dir" && as_dir=.
  2845. for ac_exec_ext in '' $ac_executable_extensions; do
  2846. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2847. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2848. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2849. break 2
  2850. fi
  2851. done
  2852. done
  2853. IFS=$as_save_IFS
  2854. fi
  2855. fi
  2856. CC=$ac_cv_prog_CC
  2857. if test -n "$CC"; then
  2858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2859. $as_echo "$CC" >&6; }
  2860. else
  2861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2862. $as_echo "no" >&6; }
  2863. fi
  2864. fi
  2865. fi
  2866. if test -z "$CC"; then
  2867. # Extract the first word of "cc", so it can be a program name with args.
  2868. set dummy cc; ac_word=$2
  2869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2870. $as_echo_n "checking for $ac_word... " >&6; }
  2871. if ${ac_cv_prog_CC+:} false; then :
  2872. $as_echo_n "(cached) " >&6
  2873. else
  2874. if test -n "$CC"; then
  2875. ac_cv_prog_CC="$CC" # Let the user override the test.
  2876. else
  2877. ac_prog_rejected=no
  2878. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2879. for as_dir in $PATH
  2880. do
  2881. IFS=$as_save_IFS
  2882. test -z "$as_dir" && as_dir=.
  2883. for ac_exec_ext in '' $ac_executable_extensions; do
  2884. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2885. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2886. ac_prog_rejected=yes
  2887. continue
  2888. fi
  2889. ac_cv_prog_CC="cc"
  2890. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2891. break 2
  2892. fi
  2893. done
  2894. done
  2895. IFS=$as_save_IFS
  2896. if test $ac_prog_rejected = yes; then
  2897. # We found a bogon in the path, so make sure we never use it.
  2898. set dummy $ac_cv_prog_CC
  2899. shift
  2900. if test $# != 0; then
  2901. # We chose a different compiler from the bogus one.
  2902. # However, it has the same basename, so the bogon will be chosen
  2903. # first if we set CC to just the basename; use the full file name.
  2904. shift
  2905. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2906. fi
  2907. fi
  2908. fi
  2909. fi
  2910. CC=$ac_cv_prog_CC
  2911. if test -n "$CC"; then
  2912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2913. $as_echo "$CC" >&6; }
  2914. else
  2915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2916. $as_echo "no" >&6; }
  2917. fi
  2918. fi
  2919. if test -z "$CC"; then
  2920. if test -n "$ac_tool_prefix"; then
  2921. for ac_prog in cl.exe
  2922. do
  2923. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2924. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2926. $as_echo_n "checking for $ac_word... " >&6; }
  2927. if ${ac_cv_prog_CC+:} false; then :
  2928. $as_echo_n "(cached) " >&6
  2929. else
  2930. if test -n "$CC"; then
  2931. ac_cv_prog_CC="$CC" # Let the user override the test.
  2932. else
  2933. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2934. for as_dir in $PATH
  2935. do
  2936. IFS=$as_save_IFS
  2937. test -z "$as_dir" && as_dir=.
  2938. for ac_exec_ext in '' $ac_executable_extensions; do
  2939. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2940. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2941. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2942. break 2
  2943. fi
  2944. done
  2945. done
  2946. IFS=$as_save_IFS
  2947. fi
  2948. fi
  2949. CC=$ac_cv_prog_CC
  2950. if test -n "$CC"; then
  2951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2952. $as_echo "$CC" >&6; }
  2953. else
  2954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2955. $as_echo "no" >&6; }
  2956. fi
  2957. test -n "$CC" && break
  2958. done
  2959. fi
  2960. if test -z "$CC"; then
  2961. ac_ct_CC=$CC
  2962. for ac_prog in cl.exe
  2963. do
  2964. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2965. set dummy $ac_prog; ac_word=$2
  2966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2967. $as_echo_n "checking for $ac_word... " >&6; }
  2968. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2969. $as_echo_n "(cached) " >&6
  2970. else
  2971. if test -n "$ac_ct_CC"; then
  2972. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2973. else
  2974. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2975. for as_dir in $PATH
  2976. do
  2977. IFS=$as_save_IFS
  2978. test -z "$as_dir" && as_dir=.
  2979. for ac_exec_ext in '' $ac_executable_extensions; do
  2980. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2981. ac_cv_prog_ac_ct_CC="$ac_prog"
  2982. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2983. break 2
  2984. fi
  2985. done
  2986. done
  2987. IFS=$as_save_IFS
  2988. fi
  2989. fi
  2990. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2991. if test -n "$ac_ct_CC"; then
  2992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2993. $as_echo "$ac_ct_CC" >&6; }
  2994. else
  2995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2996. $as_echo "no" >&6; }
  2997. fi
  2998. test -n "$ac_ct_CC" && break
  2999. done
  3000. if test "x$ac_ct_CC" = x; then
  3001. CC=""
  3002. else
  3003. case $cross_compiling:$ac_tool_warned in
  3004. yes:)
  3005. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3006. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3007. ac_tool_warned=yes ;;
  3008. esac
  3009. CC=$ac_ct_CC
  3010. fi
  3011. fi
  3012. fi
  3013. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3014. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3015. as_fn_error $? "no acceptable C compiler found in \$PATH
  3016. See \`config.log' for more details" "$LINENO" 5; }
  3017. # Provide some information about the compiler.
  3018. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3019. set X $ac_compile
  3020. ac_compiler=$2
  3021. for ac_option in --version -v -V -qversion; do
  3022. { { ac_try="$ac_compiler $ac_option >&5"
  3023. case "(($ac_try" in
  3024. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3025. *) ac_try_echo=$ac_try;;
  3026. esac
  3027. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3028. $as_echo "$ac_try_echo"; } >&5
  3029. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3030. ac_status=$?
  3031. if test -s conftest.err; then
  3032. sed '10a\
  3033. ... rest of stderr output deleted ...
  3034. 10q' conftest.err >conftest.er1
  3035. cat conftest.er1 >&5
  3036. fi
  3037. rm -f conftest.er1 conftest.err
  3038. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3039. test $ac_status = 0; }
  3040. done
  3041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3042. /* end confdefs.h. */
  3043. int
  3044. main ()
  3045. {
  3046. ;
  3047. return 0;
  3048. }
  3049. _ACEOF
  3050. ac_clean_files_save=$ac_clean_files
  3051. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3052. # Try to create an executable without -o first, disregard a.out.
  3053. # It will help us diagnose broken compilers, and finding out an intuition
  3054. # of exeext.
  3055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3056. $as_echo_n "checking whether the C compiler works... " >&6; }
  3057. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3058. # The possible output files:
  3059. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3060. ac_rmfiles=
  3061. for ac_file in $ac_files
  3062. do
  3063. case $ac_file in
  3064. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3065. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3066. esac
  3067. done
  3068. rm -f $ac_rmfiles
  3069. if { { ac_try="$ac_link_default"
  3070. case "(($ac_try" in
  3071. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3072. *) ac_try_echo=$ac_try;;
  3073. esac
  3074. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3075. $as_echo "$ac_try_echo"; } >&5
  3076. (eval "$ac_link_default") 2>&5
  3077. ac_status=$?
  3078. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3079. test $ac_status = 0; }; then :
  3080. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3081. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3082. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3083. # so that the user can short-circuit this test for compilers unknown to
  3084. # Autoconf.
  3085. for ac_file in $ac_files ''
  3086. do
  3087. test -f "$ac_file" || continue
  3088. case $ac_file in
  3089. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3090. ;;
  3091. [ab].out )
  3092. # We found the default executable, but exeext='' is most
  3093. # certainly right.
  3094. break;;
  3095. *.* )
  3096. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3097. then :; else
  3098. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3099. fi
  3100. # We set ac_cv_exeext here because the later test for it is not
  3101. # safe: cross compilers may not add the suffix if given an `-o'
  3102. # argument, so we may need to know it at that point already.
  3103. # Even if this section looks crufty: it has the advantage of
  3104. # actually working.
  3105. break;;
  3106. * )
  3107. break;;
  3108. esac
  3109. done
  3110. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3111. else
  3112. ac_file=''
  3113. fi
  3114. if test -z "$ac_file"; then :
  3115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3116. $as_echo "no" >&6; }
  3117. $as_echo "$as_me: failed program was:" >&5
  3118. sed 's/^/| /' conftest.$ac_ext >&5
  3119. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3120. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3121. as_fn_error 77 "C compiler cannot create executables
  3122. See \`config.log' for more details" "$LINENO" 5; }
  3123. else
  3124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3125. $as_echo "yes" >&6; }
  3126. fi
  3127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3128. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3130. $as_echo "$ac_file" >&6; }
  3131. ac_exeext=$ac_cv_exeext
  3132. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3133. ac_clean_files=$ac_clean_files_save
  3134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3135. $as_echo_n "checking for suffix of executables... " >&6; }
  3136. if { { ac_try="$ac_link"
  3137. case "(($ac_try" in
  3138. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3139. *) ac_try_echo=$ac_try;;
  3140. esac
  3141. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3142. $as_echo "$ac_try_echo"; } >&5
  3143. (eval "$ac_link") 2>&5
  3144. ac_status=$?
  3145. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3146. test $ac_status = 0; }; then :
  3147. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3148. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3149. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3150. # `rm'.
  3151. for ac_file in conftest.exe conftest conftest.*; do
  3152. test -f "$ac_file" || continue
  3153. case $ac_file in
  3154. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3155. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3156. break;;
  3157. * ) break;;
  3158. esac
  3159. done
  3160. else
  3161. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3162. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3163. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3164. See \`config.log' for more details" "$LINENO" 5; }
  3165. fi
  3166. rm -f conftest conftest$ac_cv_exeext
  3167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3168. $as_echo "$ac_cv_exeext" >&6; }
  3169. rm -f conftest.$ac_ext
  3170. EXEEXT=$ac_cv_exeext
  3171. ac_exeext=$EXEEXT
  3172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3173. /* end confdefs.h. */
  3174. #include <stdio.h>
  3175. int
  3176. main ()
  3177. {
  3178. FILE *f = fopen ("conftest.out", "w");
  3179. return ferror (f) || fclose (f) != 0;
  3180. ;
  3181. return 0;
  3182. }
  3183. _ACEOF
  3184. ac_clean_files="$ac_clean_files conftest.out"
  3185. # Check that the compiler produces executables we can run. If not, either
  3186. # the compiler is broken, or we cross compile.
  3187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3188. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3189. if test "$cross_compiling" != yes; then
  3190. { { ac_try="$ac_link"
  3191. case "(($ac_try" in
  3192. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3193. *) ac_try_echo=$ac_try;;
  3194. esac
  3195. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3196. $as_echo "$ac_try_echo"; } >&5
  3197. (eval "$ac_link") 2>&5
  3198. ac_status=$?
  3199. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3200. test $ac_status = 0; }
  3201. if { ac_try='./conftest$ac_cv_exeext'
  3202. { { case "(($ac_try" in
  3203. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3204. *) ac_try_echo=$ac_try;;
  3205. esac
  3206. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3207. $as_echo "$ac_try_echo"; } >&5
  3208. (eval "$ac_try") 2>&5
  3209. ac_status=$?
  3210. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3211. test $ac_status = 0; }; }; then
  3212. cross_compiling=no
  3213. else
  3214. if test "$cross_compiling" = maybe; then
  3215. cross_compiling=yes
  3216. else
  3217. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3218. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3219. as_fn_error $? "cannot run C compiled programs.
  3220. If you meant to cross compile, use \`--host'.
  3221. See \`config.log' for more details" "$LINENO" 5; }
  3222. fi
  3223. fi
  3224. fi
  3225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3226. $as_echo "$cross_compiling" >&6; }
  3227. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3228. ac_clean_files=$ac_clean_files_save
  3229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3230. $as_echo_n "checking for suffix of object files... " >&6; }
  3231. if ${ac_cv_objext+:} false; then :
  3232. $as_echo_n "(cached) " >&6
  3233. else
  3234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3235. /* end confdefs.h. */
  3236. int
  3237. main ()
  3238. {
  3239. ;
  3240. return 0;
  3241. }
  3242. _ACEOF
  3243. rm -f conftest.o conftest.obj
  3244. if { { ac_try="$ac_compile"
  3245. case "(($ac_try" in
  3246. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3247. *) ac_try_echo=$ac_try;;
  3248. esac
  3249. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3250. $as_echo "$ac_try_echo"; } >&5
  3251. (eval "$ac_compile") 2>&5
  3252. ac_status=$?
  3253. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3254. test $ac_status = 0; }; then :
  3255. for ac_file in conftest.o conftest.obj conftest.*; do
  3256. test -f "$ac_file" || continue;
  3257. case $ac_file in
  3258. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3259. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3260. break;;
  3261. esac
  3262. done
  3263. else
  3264. $as_echo "$as_me: failed program was:" >&5
  3265. sed 's/^/| /' conftest.$ac_ext >&5
  3266. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3267. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3268. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3269. See \`config.log' for more details" "$LINENO" 5; }
  3270. fi
  3271. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3272. fi
  3273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3274. $as_echo "$ac_cv_objext" >&6; }
  3275. OBJEXT=$ac_cv_objext
  3276. ac_objext=$OBJEXT
  3277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3278. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3279. if ${ac_cv_c_compiler_gnu+:} false; then :
  3280. $as_echo_n "(cached) " >&6
  3281. else
  3282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3283. /* end confdefs.h. */
  3284. int
  3285. main ()
  3286. {
  3287. #ifndef __GNUC__
  3288. choke me
  3289. #endif
  3290. ;
  3291. return 0;
  3292. }
  3293. _ACEOF
  3294. if ac_fn_c_try_compile "$LINENO"; then :
  3295. ac_compiler_gnu=yes
  3296. else
  3297. ac_compiler_gnu=no
  3298. fi
  3299. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3300. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3301. fi
  3302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3303. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3304. if test $ac_compiler_gnu = yes; then
  3305. GCC=yes
  3306. else
  3307. GCC=
  3308. fi
  3309. ac_test_CFLAGS=${CFLAGS+set}
  3310. ac_save_CFLAGS=$CFLAGS
  3311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3312. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3313. if ${ac_cv_prog_cc_g+:} false; then :
  3314. $as_echo_n "(cached) " >&6
  3315. else
  3316. ac_save_c_werror_flag=$ac_c_werror_flag
  3317. ac_c_werror_flag=yes
  3318. ac_cv_prog_cc_g=no
  3319. CFLAGS="-g"
  3320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3321. /* end confdefs.h. */
  3322. int
  3323. main ()
  3324. {
  3325. ;
  3326. return 0;
  3327. }
  3328. _ACEOF
  3329. if ac_fn_c_try_compile "$LINENO"; then :
  3330. ac_cv_prog_cc_g=yes
  3331. else
  3332. CFLAGS=""
  3333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3334. /* end confdefs.h. */
  3335. int
  3336. main ()
  3337. {
  3338. ;
  3339. return 0;
  3340. }
  3341. _ACEOF
  3342. if ac_fn_c_try_compile "$LINENO"; then :
  3343. else
  3344. ac_c_werror_flag=$ac_save_c_werror_flag
  3345. CFLAGS="-g"
  3346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3347. /* end confdefs.h. */
  3348. int
  3349. main ()
  3350. {
  3351. ;
  3352. return 0;
  3353. }
  3354. _ACEOF
  3355. if ac_fn_c_try_compile "$LINENO"; then :
  3356. ac_cv_prog_cc_g=yes
  3357. fi
  3358. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3359. fi
  3360. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3361. fi
  3362. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3363. ac_c_werror_flag=$ac_save_c_werror_flag
  3364. fi
  3365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3366. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3367. if test "$ac_test_CFLAGS" = set; then
  3368. CFLAGS=$ac_save_CFLAGS
  3369. elif test $ac_cv_prog_cc_g = yes; then
  3370. if test "$GCC" = yes; then
  3371. CFLAGS="-g -O2"
  3372. else
  3373. CFLAGS="-g"
  3374. fi
  3375. else
  3376. if test "$GCC" = yes; then
  3377. CFLAGS="-O2"
  3378. else
  3379. CFLAGS=
  3380. fi
  3381. fi
  3382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3383. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3384. if ${ac_cv_prog_cc_c89+:} false; then :
  3385. $as_echo_n "(cached) " >&6
  3386. else
  3387. ac_cv_prog_cc_c89=no
  3388. ac_save_CC=$CC
  3389. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3390. /* end confdefs.h. */
  3391. #include <stdarg.h>
  3392. #include <stdio.h>
  3393. struct stat;
  3394. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3395. struct buf { int x; };
  3396. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3397. static char *e (p, i)
  3398. char **p;
  3399. int i;
  3400. {
  3401. return p[i];
  3402. }
  3403. static char *f (char * (*g) (char **, int), char **p, ...)
  3404. {
  3405. char *s;
  3406. va_list v;
  3407. va_start (v,p);
  3408. s = g (p, va_arg (v,int));
  3409. va_end (v);
  3410. return s;
  3411. }
  3412. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3413. function prototypes and stuff, but not '\xHH' hex character constants.
  3414. These don't provoke an error unfortunately, instead are silently treated
  3415. as 'x'. The following induces an error, until -std is added to get
  3416. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3417. array size at least. It's necessary to write '\x00'==0 to get something
  3418. that's true only with -std. */
  3419. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3420. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3421. inside strings and character constants. */
  3422. #define FOO(x) 'x'
  3423. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3424. int test (int i, double x);
  3425. struct s1 {int (*f) (int a);};
  3426. struct s2 {int (*f) (double a);};
  3427. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3428. int argc;
  3429. char **argv;
  3430. int
  3431. main ()
  3432. {
  3433. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3434. ;
  3435. return 0;
  3436. }
  3437. _ACEOF
  3438. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3439. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3440. do
  3441. CC="$ac_save_CC $ac_arg"
  3442. if ac_fn_c_try_compile "$LINENO"; then :
  3443. ac_cv_prog_cc_c89=$ac_arg
  3444. fi
  3445. rm -f core conftest.err conftest.$ac_objext
  3446. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3447. done
  3448. rm -f conftest.$ac_ext
  3449. CC=$ac_save_CC
  3450. fi
  3451. # AC_CACHE_VAL
  3452. case "x$ac_cv_prog_cc_c89" in
  3453. x)
  3454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3455. $as_echo "none needed" >&6; } ;;
  3456. xno)
  3457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3458. $as_echo "unsupported" >&6; } ;;
  3459. *)
  3460. CC="$CC $ac_cv_prog_cc_c89"
  3461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3462. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3463. esac
  3464. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3465. fi
  3466. ac_ext=c
  3467. ac_cpp='$CPP $CPPFLAGS'
  3468. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3469. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3470. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3472. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3473. if ${ac_cv_path_SED+:} false; then :
  3474. $as_echo_n "(cached) " >&6
  3475. else
  3476. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3477. for ac_i in 1 2 3 4 5 6 7; do
  3478. ac_script="$ac_script$as_nl$ac_script"
  3479. done
  3480. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3481. { ac_script=; unset ac_script;}
  3482. if test -z "$SED"; then
  3483. ac_path_SED_found=false
  3484. # Loop through the user's path and test for each of PROGNAME-LIST
  3485. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3486. for as_dir in $PATH
  3487. do
  3488. IFS=$as_save_IFS
  3489. test -z "$as_dir" && as_dir=.
  3490. for ac_prog in sed gsed; do
  3491. for ac_exec_ext in '' $ac_executable_extensions; do
  3492. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3493. as_fn_executable_p "$ac_path_SED" || continue
  3494. # Check for GNU ac_path_SED and select it if it is found.
  3495. # Check for GNU $ac_path_SED
  3496. case `"$ac_path_SED" --version 2>&1` in
  3497. *GNU*)
  3498. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3499. *)
  3500. ac_count=0
  3501. $as_echo_n 0123456789 >"conftest.in"
  3502. while :
  3503. do
  3504. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3505. mv "conftest.tmp" "conftest.in"
  3506. cp "conftest.in" "conftest.nl"
  3507. $as_echo '' >> "conftest.nl"
  3508. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3509. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3510. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3511. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3512. # Best one so far, save it but keep looking for a better one
  3513. ac_cv_path_SED="$ac_path_SED"
  3514. ac_path_SED_max=$ac_count
  3515. fi
  3516. # 10*(2^10) chars as input seems more than enough
  3517. test $ac_count -gt 10 && break
  3518. done
  3519. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3520. esac
  3521. $ac_path_SED_found && break 3
  3522. done
  3523. done
  3524. done
  3525. IFS=$as_save_IFS
  3526. if test -z "$ac_cv_path_SED"; then
  3527. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3528. fi
  3529. else
  3530. ac_cv_path_SED=$SED
  3531. fi
  3532. fi
  3533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3534. $as_echo "$ac_cv_path_SED" >&6; }
  3535. SED="$ac_cv_path_SED"
  3536. rm -f conftest.sed
  3537. test -z "$SED" && SED=sed
  3538. Xsed="$SED -e 1s/^X//"
  3539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3540. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3541. if ${ac_cv_path_GREP+:} false; then :
  3542. $as_echo_n "(cached) " >&6
  3543. else
  3544. if test -z "$GREP"; then
  3545. ac_path_GREP_found=false
  3546. # Loop through the user's path and test for each of PROGNAME-LIST
  3547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3548. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3549. do
  3550. IFS=$as_save_IFS
  3551. test -z "$as_dir" && as_dir=.
  3552. for ac_prog in grep ggrep; do
  3553. for ac_exec_ext in '' $ac_executable_extensions; do
  3554. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3555. as_fn_executable_p "$ac_path_GREP" || continue
  3556. # Check for GNU ac_path_GREP and select it if it is found.
  3557. # Check for GNU $ac_path_GREP
  3558. case `"$ac_path_GREP" --version 2>&1` in
  3559. *GNU*)
  3560. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3561. *)
  3562. ac_count=0
  3563. $as_echo_n 0123456789 >"conftest.in"
  3564. while :
  3565. do
  3566. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3567. mv "conftest.tmp" "conftest.in"
  3568. cp "conftest.in" "conftest.nl"
  3569. $as_echo 'GREP' >> "conftest.nl"
  3570. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3571. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3572. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3573. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3574. # Best one so far, save it but keep looking for a better one
  3575. ac_cv_path_GREP="$ac_path_GREP"
  3576. ac_path_GREP_max=$ac_count
  3577. fi
  3578. # 10*(2^10) chars as input seems more than enough
  3579. test $ac_count -gt 10 && break
  3580. done
  3581. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3582. esac
  3583. $ac_path_GREP_found && break 3
  3584. done
  3585. done
  3586. done
  3587. IFS=$as_save_IFS
  3588. if test -z "$ac_cv_path_GREP"; then
  3589. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3590. fi
  3591. else
  3592. ac_cv_path_GREP=$GREP
  3593. fi
  3594. fi
  3595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3596. $as_echo "$ac_cv_path_GREP" >&6; }
  3597. GREP="$ac_cv_path_GREP"
  3598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3599. $as_echo_n "checking for egrep... " >&6; }
  3600. if ${ac_cv_path_EGREP+:} false; then :
  3601. $as_echo_n "(cached) " >&6
  3602. else
  3603. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3604. then ac_cv_path_EGREP="$GREP -E"
  3605. else
  3606. if test -z "$EGREP"; then
  3607. ac_path_EGREP_found=false
  3608. # Loop through the user's path and test for each of PROGNAME-LIST
  3609. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3610. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3611. do
  3612. IFS=$as_save_IFS
  3613. test -z "$as_dir" && as_dir=.
  3614. for ac_prog in egrep; do
  3615. for ac_exec_ext in '' $ac_executable_extensions; do
  3616. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3617. as_fn_executable_p "$ac_path_EGREP" || continue
  3618. # Check for GNU ac_path_EGREP and select it if it is found.
  3619. # Check for GNU $ac_path_EGREP
  3620. case `"$ac_path_EGREP" --version 2>&1` in
  3621. *GNU*)
  3622. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3623. *)
  3624. ac_count=0
  3625. $as_echo_n 0123456789 >"conftest.in"
  3626. while :
  3627. do
  3628. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3629. mv "conftest.tmp" "conftest.in"
  3630. cp "conftest.in" "conftest.nl"
  3631. $as_echo 'EGREP' >> "conftest.nl"
  3632. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3633. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3634. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3635. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3636. # Best one so far, save it but keep looking for a better one
  3637. ac_cv_path_EGREP="$ac_path_EGREP"
  3638. ac_path_EGREP_max=$ac_count
  3639. fi
  3640. # 10*(2^10) chars as input seems more than enough
  3641. test $ac_count -gt 10 && break
  3642. done
  3643. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3644. esac
  3645. $ac_path_EGREP_found && break 3
  3646. done
  3647. done
  3648. done
  3649. IFS=$as_save_IFS
  3650. if test -z "$ac_cv_path_EGREP"; then
  3651. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3652. fi
  3653. else
  3654. ac_cv_path_EGREP=$EGREP
  3655. fi
  3656. fi
  3657. fi
  3658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3659. $as_echo "$ac_cv_path_EGREP" >&6; }
  3660. EGREP="$ac_cv_path_EGREP"
  3661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3662. $as_echo_n "checking for fgrep... " >&6; }
  3663. if ${ac_cv_path_FGREP+:} false; then :
  3664. $as_echo_n "(cached) " >&6
  3665. else
  3666. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3667. then ac_cv_path_FGREP="$GREP -F"
  3668. else
  3669. if test -z "$FGREP"; then
  3670. ac_path_FGREP_found=false
  3671. # Loop through the user's path and test for each of PROGNAME-LIST
  3672. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3673. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3674. do
  3675. IFS=$as_save_IFS
  3676. test -z "$as_dir" && as_dir=.
  3677. for ac_prog in fgrep; do
  3678. for ac_exec_ext in '' $ac_executable_extensions; do
  3679. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3680. as_fn_executable_p "$ac_path_FGREP" || continue
  3681. # Check for GNU ac_path_FGREP and select it if it is found.
  3682. # Check for GNU $ac_path_FGREP
  3683. case `"$ac_path_FGREP" --version 2>&1` in
  3684. *GNU*)
  3685. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3686. *)
  3687. ac_count=0
  3688. $as_echo_n 0123456789 >"conftest.in"
  3689. while :
  3690. do
  3691. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3692. mv "conftest.tmp" "conftest.in"
  3693. cp "conftest.in" "conftest.nl"
  3694. $as_echo 'FGREP' >> "conftest.nl"
  3695. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3696. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3697. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3698. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3699. # Best one so far, save it but keep looking for a better one
  3700. ac_cv_path_FGREP="$ac_path_FGREP"
  3701. ac_path_FGREP_max=$ac_count
  3702. fi
  3703. # 10*(2^10) chars as input seems more than enough
  3704. test $ac_count -gt 10 && break
  3705. done
  3706. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3707. esac
  3708. $ac_path_FGREP_found && break 3
  3709. done
  3710. done
  3711. done
  3712. IFS=$as_save_IFS
  3713. if test -z "$ac_cv_path_FGREP"; then
  3714. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3715. fi
  3716. else
  3717. ac_cv_path_FGREP=$FGREP
  3718. fi
  3719. fi
  3720. fi
  3721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3722. $as_echo "$ac_cv_path_FGREP" >&6; }
  3723. FGREP="$ac_cv_path_FGREP"
  3724. test -z "$GREP" && GREP=grep
  3725. # Check whether --with-gnu-ld was given.
  3726. if test "${with_gnu_ld+set}" = set; then :
  3727. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3728. else
  3729. with_gnu_ld=no
  3730. fi
  3731. ac_prog=ld
  3732. if test "$GCC" = yes; then
  3733. # Check if gcc -print-prog-name=ld gives a path.
  3734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3735. $as_echo_n "checking for ld used by $CC... " >&6; }
  3736. case $host in
  3737. *-*-mingw*)
  3738. # gcc leaves a trailing carriage return which upsets mingw
  3739. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3740. *)
  3741. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3742. esac
  3743. case $ac_prog in
  3744. # Accept absolute paths.
  3745. [\\/]* | ?:[\\/]*)
  3746. re_direlt='/[^/][^/]*/\.\./'
  3747. # Canonicalize the pathname of ld
  3748. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3749. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3750. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3751. done
  3752. test -z "$LD" && LD="$ac_prog"
  3753. ;;
  3754. "")
  3755. # If it fails, then pretend we aren't using GCC.
  3756. ac_prog=ld
  3757. ;;
  3758. *)
  3759. # If it is relative, then search for the first ld in PATH.
  3760. with_gnu_ld=unknown
  3761. ;;
  3762. esac
  3763. elif test "$with_gnu_ld" = yes; then
  3764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3765. $as_echo_n "checking for GNU ld... " >&6; }
  3766. else
  3767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3768. $as_echo_n "checking for non-GNU ld... " >&6; }
  3769. fi
  3770. if ${lt_cv_path_LD+:} false; then :
  3771. $as_echo_n "(cached) " >&6
  3772. else
  3773. if test -z "$LD"; then
  3774. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3775. for ac_dir in $PATH; do
  3776. IFS="$lt_save_ifs"
  3777. test -z "$ac_dir" && ac_dir=.
  3778. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3779. lt_cv_path_LD="$ac_dir/$ac_prog"
  3780. # Check to see if the program is GNU ld. I'd rather use --version,
  3781. # but apparently some variants of GNU ld only accept -v.
  3782. # Break only if it was the GNU/non-GNU ld that we prefer.
  3783. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3784. *GNU* | *'with BFD'*)
  3785. test "$with_gnu_ld" != no && break
  3786. ;;
  3787. *)
  3788. test "$with_gnu_ld" != yes && break
  3789. ;;
  3790. esac
  3791. fi
  3792. done
  3793. IFS="$lt_save_ifs"
  3794. else
  3795. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3796. fi
  3797. fi
  3798. LD="$lt_cv_path_LD"
  3799. if test -n "$LD"; then
  3800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3801. $as_echo "$LD" >&6; }
  3802. else
  3803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3804. $as_echo "no" >&6; }
  3805. fi
  3806. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3808. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3809. if ${lt_cv_prog_gnu_ld+:} false; then :
  3810. $as_echo_n "(cached) " >&6
  3811. else
  3812. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3813. case `$LD -v 2>&1 </dev/null` in
  3814. *GNU* | *'with BFD'*)
  3815. lt_cv_prog_gnu_ld=yes
  3816. ;;
  3817. *)
  3818. lt_cv_prog_gnu_ld=no
  3819. ;;
  3820. esac
  3821. fi
  3822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3823. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3824. with_gnu_ld=$lt_cv_prog_gnu_ld
  3825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3826. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3827. if ${lt_cv_path_NM+:} false; then :
  3828. $as_echo_n "(cached) " >&6
  3829. else
  3830. if test -n "$NM"; then
  3831. # Let the user override the test.
  3832. lt_cv_path_NM="$NM"
  3833. else
  3834. lt_nm_to_check="${ac_tool_prefix}nm"
  3835. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3836. lt_nm_to_check="$lt_nm_to_check nm"
  3837. fi
  3838. for lt_tmp_nm in $lt_nm_to_check; do
  3839. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3840. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3841. IFS="$lt_save_ifs"
  3842. test -z "$ac_dir" && ac_dir=.
  3843. tmp_nm="$ac_dir/$lt_tmp_nm"
  3844. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3845. # Check to see if the nm accepts a BSD-compat flag.
  3846. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3847. # nm: unknown option "B" ignored
  3848. # Tru64's nm complains that /dev/null is an invalid object file
  3849. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3850. */dev/null* | *'Invalid file or object type'*)
  3851. lt_cv_path_NM="$tmp_nm -B"
  3852. break
  3853. ;;
  3854. *)
  3855. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3856. */dev/null*)
  3857. lt_cv_path_NM="$tmp_nm -p"
  3858. break
  3859. ;;
  3860. *)
  3861. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3862. continue # so that we can try to find one that supports BSD flags
  3863. ;;
  3864. esac
  3865. ;;
  3866. esac
  3867. fi
  3868. done
  3869. IFS="$lt_save_ifs"
  3870. done
  3871. : ${lt_cv_path_NM=no}
  3872. fi
  3873. fi
  3874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3875. $as_echo "$lt_cv_path_NM" >&6; }
  3876. if test "$lt_cv_path_NM" != "no"; then
  3877. NM="$lt_cv_path_NM"
  3878. else
  3879. # Didn't find any BSD compatible name lister, look for dumpbin.
  3880. if test -n "$DUMPBIN"; then :
  3881. # Let the user override the test.
  3882. else
  3883. if test -n "$ac_tool_prefix"; then
  3884. for ac_prog in dumpbin "link -dump"
  3885. do
  3886. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3887. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3889. $as_echo_n "checking for $ac_word... " >&6; }
  3890. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3891. $as_echo_n "(cached) " >&6
  3892. else
  3893. if test -n "$DUMPBIN"; then
  3894. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3895. else
  3896. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3897. for as_dir in $PATH
  3898. do
  3899. IFS=$as_save_IFS
  3900. test -z "$as_dir" && as_dir=.
  3901. for ac_exec_ext in '' $ac_executable_extensions; do
  3902. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3903. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3904. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3905. break 2
  3906. fi
  3907. done
  3908. done
  3909. IFS=$as_save_IFS
  3910. fi
  3911. fi
  3912. DUMPBIN=$ac_cv_prog_DUMPBIN
  3913. if test -n "$DUMPBIN"; then
  3914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3915. $as_echo "$DUMPBIN" >&6; }
  3916. else
  3917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3918. $as_echo "no" >&6; }
  3919. fi
  3920. test -n "$DUMPBIN" && break
  3921. done
  3922. fi
  3923. if test -z "$DUMPBIN"; then
  3924. ac_ct_DUMPBIN=$DUMPBIN
  3925. for ac_prog in dumpbin "link -dump"
  3926. do
  3927. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3928. set dummy $ac_prog; ac_word=$2
  3929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3930. $as_echo_n "checking for $ac_word... " >&6; }
  3931. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3932. $as_echo_n "(cached) " >&6
  3933. else
  3934. if test -n "$ac_ct_DUMPBIN"; then
  3935. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3936. else
  3937. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3938. for as_dir in $PATH
  3939. do
  3940. IFS=$as_save_IFS
  3941. test -z "$as_dir" && as_dir=.
  3942. for ac_exec_ext in '' $ac_executable_extensions; do
  3943. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3944. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3945. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3946. break 2
  3947. fi
  3948. done
  3949. done
  3950. IFS=$as_save_IFS
  3951. fi
  3952. fi
  3953. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3954. if test -n "$ac_ct_DUMPBIN"; then
  3955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3956. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3957. else
  3958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3959. $as_echo "no" >&6; }
  3960. fi
  3961. test -n "$ac_ct_DUMPBIN" && break
  3962. done
  3963. if test "x$ac_ct_DUMPBIN" = x; then
  3964. DUMPBIN=":"
  3965. else
  3966. case $cross_compiling:$ac_tool_warned in
  3967. yes:)
  3968. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3969. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3970. ac_tool_warned=yes ;;
  3971. esac
  3972. DUMPBIN=$ac_ct_DUMPBIN
  3973. fi
  3974. fi
  3975. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3976. *COFF*)
  3977. DUMPBIN="$DUMPBIN -symbols"
  3978. ;;
  3979. *)
  3980. DUMPBIN=:
  3981. ;;
  3982. esac
  3983. fi
  3984. if test "$DUMPBIN" != ":"; then
  3985. NM="$DUMPBIN"
  3986. fi
  3987. fi
  3988. test -z "$NM" && NM=nm
  3989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3990. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3991. if ${lt_cv_nm_interface+:} false; then :
  3992. $as_echo_n "(cached) " >&6
  3993. else
  3994. lt_cv_nm_interface="BSD nm"
  3995. echo "int some_variable = 0;" > conftest.$ac_ext
  3996. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3997. (eval "$ac_compile" 2>conftest.err)
  3998. cat conftest.err >&5
  3999. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4000. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4001. cat conftest.err >&5
  4002. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4003. cat conftest.out >&5
  4004. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4005. lt_cv_nm_interface="MS dumpbin"
  4006. fi
  4007. rm -f conftest*
  4008. fi
  4009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4010. $as_echo "$lt_cv_nm_interface" >&6; }
  4011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4012. $as_echo_n "checking whether ln -s works... " >&6; }
  4013. LN_S=$as_ln_s
  4014. if test "$LN_S" = "ln -s"; then
  4015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4016. $as_echo "yes" >&6; }
  4017. else
  4018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4019. $as_echo "no, using $LN_S" >&6; }
  4020. fi
  4021. # find the maximum length of command line arguments
  4022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4023. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4024. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4025. $as_echo_n "(cached) " >&6
  4026. else
  4027. i=0
  4028. teststring="ABCD"
  4029. case $build_os in
  4030. msdosdjgpp*)
  4031. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4032. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4033. # during glob expansion). Even if it were fixed, the result of this
  4034. # check would be larger than it should be.
  4035. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4036. ;;
  4037. gnu*)
  4038. # Under GNU Hurd, this test is not required because there is
  4039. # no limit to the length of command line arguments.
  4040. # Libtool will interpret -1 as no limit whatsoever
  4041. lt_cv_sys_max_cmd_len=-1;
  4042. ;;
  4043. cygwin* | mingw* | cegcc*)
  4044. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4045. # about 5 minutes as the teststring grows exponentially.
  4046. # Worse, since 9x/ME are not pre-emptively multitasking,
  4047. # you end up with a "frozen" computer, even though with patience
  4048. # the test eventually succeeds (with a max line length of 256k).
  4049. # Instead, let's just punt: use the minimum linelength reported by
  4050. # all of the supported platforms: 8192 (on NT/2K/XP).
  4051. lt_cv_sys_max_cmd_len=8192;
  4052. ;;
  4053. mint*)
  4054. # On MiNT this can take a long time and run out of memory.
  4055. lt_cv_sys_max_cmd_len=8192;
  4056. ;;
  4057. amigaos*)
  4058. # On AmigaOS with pdksh, this test takes hours, literally.
  4059. # So we just punt and use a minimum line length of 8192.
  4060. lt_cv_sys_max_cmd_len=8192;
  4061. ;;
  4062. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4063. # This has been around since 386BSD, at least. Likely further.
  4064. if test -x /sbin/sysctl; then
  4065. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4066. elif test -x /usr/sbin/sysctl; then
  4067. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4068. else
  4069. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4070. fi
  4071. # And add a safety zone
  4072. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4073. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4074. ;;
  4075. interix*)
  4076. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4077. lt_cv_sys_max_cmd_len=196608
  4078. ;;
  4079. os2*)
  4080. # The test takes a long time on OS/2.
  4081. lt_cv_sys_max_cmd_len=8192
  4082. ;;
  4083. osf*)
  4084. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4085. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4086. # nice to cause kernel panics so lets avoid the loop below.
  4087. # First set a reasonable default.
  4088. lt_cv_sys_max_cmd_len=16384
  4089. #
  4090. if test -x /sbin/sysconfig; then
  4091. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4092. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4093. esac
  4094. fi
  4095. ;;
  4096. sco3.2v5*)
  4097. lt_cv_sys_max_cmd_len=102400
  4098. ;;
  4099. sysv5* | sco5v6* | sysv4.2uw2*)
  4100. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4101. if test -n "$kargmax"; then
  4102. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4103. else
  4104. lt_cv_sys_max_cmd_len=32768
  4105. fi
  4106. ;;
  4107. *)
  4108. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4109. if test -n "$lt_cv_sys_max_cmd_len"; then
  4110. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4111. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4112. else
  4113. # Make teststring a little bigger before we do anything with it.
  4114. # a 1K string should be a reasonable start.
  4115. for i in 1 2 3 4 5 6 7 8 ; do
  4116. teststring=$teststring$teststring
  4117. done
  4118. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4119. # If test is not a shell built-in, we'll probably end up computing a
  4120. # maximum length that is only half of the actual maximum length, but
  4121. # we can't tell.
  4122. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4123. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4124. test $i != 17 # 1/2 MB should be enough
  4125. do
  4126. i=`expr $i + 1`
  4127. teststring=$teststring$teststring
  4128. done
  4129. # Only check the string length outside the loop.
  4130. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4131. teststring=
  4132. # Add a significant safety factor because C++ compilers can tack on
  4133. # massive amounts of additional arguments before passing them to the
  4134. # linker. It appears as though 1/2 is a usable value.
  4135. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4136. fi
  4137. ;;
  4138. esac
  4139. fi
  4140. if test -n $lt_cv_sys_max_cmd_len ; then
  4141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4142. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4143. else
  4144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4145. $as_echo "none" >&6; }
  4146. fi
  4147. max_cmd_len=$lt_cv_sys_max_cmd_len
  4148. : ${CP="cp -f"}
  4149. : ${MV="mv -f"}
  4150. : ${RM="rm -f"}
  4151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4152. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4153. # Try some XSI features
  4154. xsi_shell=no
  4155. ( _lt_dummy="a/b/c"
  4156. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4157. = c,a/b,b/c, \
  4158. && eval 'test $(( 1 + 1 )) -eq 2 \
  4159. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4160. && xsi_shell=yes
  4161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4162. $as_echo "$xsi_shell" >&6; }
  4163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4164. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4165. lt_shell_append=no
  4166. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4167. >/dev/null 2>&1 \
  4168. && lt_shell_append=yes
  4169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4170. $as_echo "$lt_shell_append" >&6; }
  4171. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4172. lt_unset=unset
  4173. else
  4174. lt_unset=false
  4175. fi
  4176. # test EBCDIC or ASCII
  4177. case `echo X|tr X '\101'` in
  4178. A) # ASCII based system
  4179. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4180. lt_SP2NL='tr \040 \012'
  4181. lt_NL2SP='tr \015\012 \040\040'
  4182. ;;
  4183. *) # EBCDIC based system
  4184. lt_SP2NL='tr \100 \n'
  4185. lt_NL2SP='tr \r\n \100\100'
  4186. ;;
  4187. esac
  4188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4189. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4190. if ${lt_cv_to_host_file_cmd+:} false; then :
  4191. $as_echo_n "(cached) " >&6
  4192. else
  4193. case $host in
  4194. *-*-mingw* )
  4195. case $build in
  4196. *-*-mingw* ) # actually msys
  4197. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4198. ;;
  4199. *-*-cygwin* )
  4200. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4201. ;;
  4202. * ) # otherwise, assume *nix
  4203. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4204. ;;
  4205. esac
  4206. ;;
  4207. *-*-cygwin* )
  4208. case $build in
  4209. *-*-mingw* ) # actually msys
  4210. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4211. ;;
  4212. *-*-cygwin* )
  4213. lt_cv_to_host_file_cmd=func_convert_file_noop
  4214. ;;
  4215. * ) # otherwise, assume *nix
  4216. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4217. ;;
  4218. esac
  4219. ;;
  4220. * ) # unhandled hosts (and "normal" native builds)
  4221. lt_cv_to_host_file_cmd=func_convert_file_noop
  4222. ;;
  4223. esac
  4224. fi
  4225. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4227. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4229. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4230. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4231. $as_echo_n "(cached) " >&6
  4232. else
  4233. #assume ordinary cross tools, or native build.
  4234. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4235. case $host in
  4236. *-*-mingw* )
  4237. case $build in
  4238. *-*-mingw* ) # actually msys
  4239. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4240. ;;
  4241. esac
  4242. ;;
  4243. esac
  4244. fi
  4245. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4247. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4249. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4250. if ${lt_cv_ld_reload_flag+:} false; then :
  4251. $as_echo_n "(cached) " >&6
  4252. else
  4253. lt_cv_ld_reload_flag='-r'
  4254. fi
  4255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4256. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4257. reload_flag=$lt_cv_ld_reload_flag
  4258. case $reload_flag in
  4259. "" | " "*) ;;
  4260. *) reload_flag=" $reload_flag" ;;
  4261. esac
  4262. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4263. case $host_os in
  4264. cygwin* | mingw* | pw32* | cegcc*)
  4265. if test "$GCC" != yes; then
  4266. reload_cmds=false
  4267. fi
  4268. ;;
  4269. darwin*)
  4270. if test "$GCC" = yes; then
  4271. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4272. else
  4273. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4274. fi
  4275. ;;
  4276. esac
  4277. if test -n "$ac_tool_prefix"; then
  4278. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4279. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4281. $as_echo_n "checking for $ac_word... " >&6; }
  4282. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4283. $as_echo_n "(cached) " >&6
  4284. else
  4285. if test -n "$OBJDUMP"; then
  4286. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4287. else
  4288. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4289. for as_dir in $PATH
  4290. do
  4291. IFS=$as_save_IFS
  4292. test -z "$as_dir" && as_dir=.
  4293. for ac_exec_ext in '' $ac_executable_extensions; do
  4294. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4295. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4296. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4297. break 2
  4298. fi
  4299. done
  4300. done
  4301. IFS=$as_save_IFS
  4302. fi
  4303. fi
  4304. OBJDUMP=$ac_cv_prog_OBJDUMP
  4305. if test -n "$OBJDUMP"; then
  4306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4307. $as_echo "$OBJDUMP" >&6; }
  4308. else
  4309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4310. $as_echo "no" >&6; }
  4311. fi
  4312. fi
  4313. if test -z "$ac_cv_prog_OBJDUMP"; then
  4314. ac_ct_OBJDUMP=$OBJDUMP
  4315. # Extract the first word of "objdump", so it can be a program name with args.
  4316. set dummy objdump; ac_word=$2
  4317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4318. $as_echo_n "checking for $ac_word... " >&6; }
  4319. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4320. $as_echo_n "(cached) " >&6
  4321. else
  4322. if test -n "$ac_ct_OBJDUMP"; then
  4323. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4324. else
  4325. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4326. for as_dir in $PATH
  4327. do
  4328. IFS=$as_save_IFS
  4329. test -z "$as_dir" && as_dir=.
  4330. for ac_exec_ext in '' $ac_executable_extensions; do
  4331. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4332. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4333. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4334. break 2
  4335. fi
  4336. done
  4337. done
  4338. IFS=$as_save_IFS
  4339. fi
  4340. fi
  4341. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4342. if test -n "$ac_ct_OBJDUMP"; then
  4343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4344. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4345. else
  4346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4347. $as_echo "no" >&6; }
  4348. fi
  4349. if test "x$ac_ct_OBJDUMP" = x; then
  4350. OBJDUMP="false"
  4351. else
  4352. case $cross_compiling:$ac_tool_warned in
  4353. yes:)
  4354. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4355. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4356. ac_tool_warned=yes ;;
  4357. esac
  4358. OBJDUMP=$ac_ct_OBJDUMP
  4359. fi
  4360. else
  4361. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4362. fi
  4363. test -z "$OBJDUMP" && OBJDUMP=objdump
  4364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4365. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4366. if ${lt_cv_deplibs_check_method+:} false; then :
  4367. $as_echo_n "(cached) " >&6
  4368. else
  4369. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4370. lt_cv_file_magic_test_file=
  4371. lt_cv_deplibs_check_method='unknown'
  4372. # Need to set the preceding variable on all platforms that support
  4373. # interlibrary dependencies.
  4374. # 'none' -- dependencies not supported.
  4375. # `unknown' -- same as none, but documents that we really don't know.
  4376. # 'pass_all' -- all dependencies passed with no checks.
  4377. # 'test_compile' -- check by making test program.
  4378. # 'file_magic [[regex]]' -- check by looking for files in library path
  4379. # which responds to the $file_magic_cmd with a given extended regex.
  4380. # If you have `file' or equivalent on your system and you're not sure
  4381. # whether `pass_all' will *always* work, you probably want this one.
  4382. case $host_os in
  4383. aix[4-9]*)
  4384. lt_cv_deplibs_check_method=pass_all
  4385. ;;
  4386. beos*)
  4387. lt_cv_deplibs_check_method=pass_all
  4388. ;;
  4389. bsdi[45]*)
  4390. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4391. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4392. lt_cv_file_magic_test_file=/shlib/libc.so
  4393. ;;
  4394. cygwin*)
  4395. # func_win32_libid is a shell function defined in ltmain.sh
  4396. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4397. lt_cv_file_magic_cmd='func_win32_libid'
  4398. lt_cv_deplibs_check_method=pass_all
  4399. ;;
  4400. mingw* | pw32*)
  4401. # Base MSYS/MinGW do not provide the 'file' command needed by
  4402. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4403. # unless we find 'file', for example because we are cross-compiling.
  4404. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4405. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4406. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4407. lt_cv_file_magic_cmd='func_win32_libid'
  4408. else
  4409. # Keep this pattern in sync with the one in func_win32_libid.
  4410. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4411. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4412. fi
  4413. lt_cv_deplibs_check_method=pass_all
  4414. ;;
  4415. cegcc*)
  4416. # use the weaker test based on 'objdump'. See mingw*.
  4417. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4418. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4419. ;;
  4420. darwin* | rhapsody*)
  4421. lt_cv_deplibs_check_method=pass_all
  4422. ;;
  4423. freebsd* | dragonfly*)
  4424. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4425. case $host_cpu in
  4426. i*86 )
  4427. # Not sure whether the presence of OpenBSD here was a mistake.
  4428. # Let's accept both of them until this is cleared up.
  4429. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4430. lt_cv_file_magic_cmd=/usr/bin/file
  4431. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4432. ;;
  4433. esac
  4434. else
  4435. lt_cv_deplibs_check_method=pass_all
  4436. fi
  4437. ;;
  4438. gnu*)
  4439. lt_cv_deplibs_check_method=pass_all
  4440. ;;
  4441. haiku*)
  4442. lt_cv_deplibs_check_method=pass_all
  4443. ;;
  4444. hpux10.20* | hpux11*)
  4445. lt_cv_file_magic_cmd=/usr/bin/file
  4446. case $host_cpu in
  4447. ia64*)
  4448. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4449. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4450. ;;
  4451. hppa*64*)
  4452. 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]'
  4453. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4454. ;;
  4455. *)
  4456. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4457. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4458. ;;
  4459. esac
  4460. ;;
  4461. interix[3-9]*)
  4462. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4463. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4464. ;;
  4465. irix5* | irix6* | nonstopux*)
  4466. case $LD in
  4467. *-32|*"-32 ") libmagic=32-bit;;
  4468. *-n32|*"-n32 ") libmagic=N32;;
  4469. *-64|*"-64 ") libmagic=64-bit;;
  4470. *) libmagic=never-match;;
  4471. esac
  4472. lt_cv_deplibs_check_method=pass_all
  4473. ;;
  4474. # This must be glibc/ELF.
  4475. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4476. lt_cv_deplibs_check_method=pass_all
  4477. ;;
  4478. netbsd*)
  4479. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4480. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4481. else
  4482. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4483. fi
  4484. ;;
  4485. newos6*)
  4486. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4487. lt_cv_file_magic_cmd=/usr/bin/file
  4488. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4489. ;;
  4490. *nto* | *qnx*)
  4491. lt_cv_deplibs_check_method=pass_all
  4492. ;;
  4493. openbsd*)
  4494. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4495. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4496. else
  4497. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4498. fi
  4499. ;;
  4500. osf3* | osf4* | osf5*)
  4501. lt_cv_deplibs_check_method=pass_all
  4502. ;;
  4503. rdos*)
  4504. lt_cv_deplibs_check_method=pass_all
  4505. ;;
  4506. solaris*)
  4507. lt_cv_deplibs_check_method=pass_all
  4508. ;;
  4509. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4510. lt_cv_deplibs_check_method=pass_all
  4511. ;;
  4512. sysv4 | sysv4.3*)
  4513. case $host_vendor in
  4514. motorola)
  4515. 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]'
  4516. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4517. ;;
  4518. ncr)
  4519. lt_cv_deplibs_check_method=pass_all
  4520. ;;
  4521. sequent)
  4522. lt_cv_file_magic_cmd='/bin/file'
  4523. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4524. ;;
  4525. sni)
  4526. lt_cv_file_magic_cmd='/bin/file'
  4527. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4528. lt_cv_file_magic_test_file=/lib/libc.so
  4529. ;;
  4530. siemens)
  4531. lt_cv_deplibs_check_method=pass_all
  4532. ;;
  4533. pc)
  4534. lt_cv_deplibs_check_method=pass_all
  4535. ;;
  4536. esac
  4537. ;;
  4538. tpf*)
  4539. lt_cv_deplibs_check_method=pass_all
  4540. ;;
  4541. esac
  4542. fi
  4543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4544. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4545. file_magic_glob=
  4546. want_nocaseglob=no
  4547. if test "$build" = "$host"; then
  4548. case $host_os in
  4549. mingw* | pw32*)
  4550. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4551. want_nocaseglob=yes
  4552. else
  4553. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4554. fi
  4555. ;;
  4556. esac
  4557. fi
  4558. file_magic_cmd=$lt_cv_file_magic_cmd
  4559. deplibs_check_method=$lt_cv_deplibs_check_method
  4560. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4561. if test -n "$ac_tool_prefix"; then
  4562. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4563. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4565. $as_echo_n "checking for $ac_word... " >&6; }
  4566. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4567. $as_echo_n "(cached) " >&6
  4568. else
  4569. if test -n "$DLLTOOL"; then
  4570. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4571. else
  4572. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4573. for as_dir in $PATH
  4574. do
  4575. IFS=$as_save_IFS
  4576. test -z "$as_dir" && as_dir=.
  4577. for ac_exec_ext in '' $ac_executable_extensions; do
  4578. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4579. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4580. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4581. break 2
  4582. fi
  4583. done
  4584. done
  4585. IFS=$as_save_IFS
  4586. fi
  4587. fi
  4588. DLLTOOL=$ac_cv_prog_DLLTOOL
  4589. if test -n "$DLLTOOL"; then
  4590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4591. $as_echo "$DLLTOOL" >&6; }
  4592. else
  4593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4594. $as_echo "no" >&6; }
  4595. fi
  4596. fi
  4597. if test -z "$ac_cv_prog_DLLTOOL"; then
  4598. ac_ct_DLLTOOL=$DLLTOOL
  4599. # Extract the first word of "dlltool", so it can be a program name with args.
  4600. set dummy dlltool; ac_word=$2
  4601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4602. $as_echo_n "checking for $ac_word... " >&6; }
  4603. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4604. $as_echo_n "(cached) " >&6
  4605. else
  4606. if test -n "$ac_ct_DLLTOOL"; then
  4607. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4608. else
  4609. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4610. for as_dir in $PATH
  4611. do
  4612. IFS=$as_save_IFS
  4613. test -z "$as_dir" && as_dir=.
  4614. for ac_exec_ext in '' $ac_executable_extensions; do
  4615. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4616. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4617. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4618. break 2
  4619. fi
  4620. done
  4621. done
  4622. IFS=$as_save_IFS
  4623. fi
  4624. fi
  4625. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4626. if test -n "$ac_ct_DLLTOOL"; then
  4627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4628. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4629. else
  4630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4631. $as_echo "no" >&6; }
  4632. fi
  4633. if test "x$ac_ct_DLLTOOL" = x; then
  4634. DLLTOOL="false"
  4635. else
  4636. case $cross_compiling:$ac_tool_warned in
  4637. yes:)
  4638. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4639. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4640. ac_tool_warned=yes ;;
  4641. esac
  4642. DLLTOOL=$ac_ct_DLLTOOL
  4643. fi
  4644. else
  4645. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4646. fi
  4647. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4649. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4650. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4651. $as_echo_n "(cached) " >&6
  4652. else
  4653. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4654. case $host_os in
  4655. cygwin* | mingw* | pw32* | cegcc*)
  4656. # two different shell functions defined in ltmain.sh
  4657. # decide which to use based on capabilities of $DLLTOOL
  4658. case `$DLLTOOL --help 2>&1` in
  4659. *--identify-strict*)
  4660. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4661. ;;
  4662. *)
  4663. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4664. ;;
  4665. esac
  4666. ;;
  4667. *)
  4668. # fallback: assume linklib IS sharedlib
  4669. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4670. ;;
  4671. esac
  4672. fi
  4673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4674. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4675. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4676. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4677. if test -n "$ac_tool_prefix"; then
  4678. for ac_prog in ar
  4679. do
  4680. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4681. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4683. $as_echo_n "checking for $ac_word... " >&6; }
  4684. if ${ac_cv_prog_AR+:} false; then :
  4685. $as_echo_n "(cached) " >&6
  4686. else
  4687. if test -n "$AR"; then
  4688. ac_cv_prog_AR="$AR" # Let the user override the test.
  4689. else
  4690. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4691. for as_dir in $PATH
  4692. do
  4693. IFS=$as_save_IFS
  4694. test -z "$as_dir" && as_dir=.
  4695. for ac_exec_ext in '' $ac_executable_extensions; do
  4696. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4697. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4698. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4699. break 2
  4700. fi
  4701. done
  4702. done
  4703. IFS=$as_save_IFS
  4704. fi
  4705. fi
  4706. AR=$ac_cv_prog_AR
  4707. if test -n "$AR"; then
  4708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4709. $as_echo "$AR" >&6; }
  4710. else
  4711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4712. $as_echo "no" >&6; }
  4713. fi
  4714. test -n "$AR" && break
  4715. done
  4716. fi
  4717. if test -z "$AR"; then
  4718. ac_ct_AR=$AR
  4719. for ac_prog in ar
  4720. do
  4721. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4722. set dummy $ac_prog; ac_word=$2
  4723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4724. $as_echo_n "checking for $ac_word... " >&6; }
  4725. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4726. $as_echo_n "(cached) " >&6
  4727. else
  4728. if test -n "$ac_ct_AR"; then
  4729. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4730. else
  4731. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4732. for as_dir in $PATH
  4733. do
  4734. IFS=$as_save_IFS
  4735. test -z "$as_dir" && as_dir=.
  4736. for ac_exec_ext in '' $ac_executable_extensions; do
  4737. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4738. ac_cv_prog_ac_ct_AR="$ac_prog"
  4739. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4740. break 2
  4741. fi
  4742. done
  4743. done
  4744. IFS=$as_save_IFS
  4745. fi
  4746. fi
  4747. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4748. if test -n "$ac_ct_AR"; then
  4749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4750. $as_echo "$ac_ct_AR" >&6; }
  4751. else
  4752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4753. $as_echo "no" >&6; }
  4754. fi
  4755. test -n "$ac_ct_AR" && break
  4756. done
  4757. if test "x$ac_ct_AR" = x; then
  4758. AR="false"
  4759. else
  4760. case $cross_compiling:$ac_tool_warned in
  4761. yes:)
  4762. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4763. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4764. ac_tool_warned=yes ;;
  4765. esac
  4766. AR=$ac_ct_AR
  4767. fi
  4768. fi
  4769. : ${AR=ar}
  4770. : ${AR_FLAGS=cru}
  4771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4772. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4773. if ${lt_cv_ar_at_file+:} false; then :
  4774. $as_echo_n "(cached) " >&6
  4775. else
  4776. lt_cv_ar_at_file=no
  4777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4778. /* end confdefs.h. */
  4779. int
  4780. main ()
  4781. {
  4782. ;
  4783. return 0;
  4784. }
  4785. _ACEOF
  4786. if ac_fn_c_try_compile "$LINENO"; then :
  4787. echo conftest.$ac_objext > conftest.lst
  4788. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4789. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4790. (eval $lt_ar_try) 2>&5
  4791. ac_status=$?
  4792. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4793. test $ac_status = 0; }
  4794. if test "$ac_status" -eq 0; then
  4795. # Ensure the archiver fails upon bogus file names.
  4796. rm -f conftest.$ac_objext libconftest.a
  4797. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4798. (eval $lt_ar_try) 2>&5
  4799. ac_status=$?
  4800. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4801. test $ac_status = 0; }
  4802. if test "$ac_status" -ne 0; then
  4803. lt_cv_ar_at_file=@
  4804. fi
  4805. fi
  4806. rm -f conftest.* libconftest.a
  4807. fi
  4808. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4809. fi
  4810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4811. $as_echo "$lt_cv_ar_at_file" >&6; }
  4812. if test "x$lt_cv_ar_at_file" = xno; then
  4813. archiver_list_spec=
  4814. else
  4815. archiver_list_spec=$lt_cv_ar_at_file
  4816. fi
  4817. if test -n "$ac_tool_prefix"; then
  4818. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4819. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4821. $as_echo_n "checking for $ac_word... " >&6; }
  4822. if ${ac_cv_prog_STRIP+:} false; then :
  4823. $as_echo_n "(cached) " >&6
  4824. else
  4825. if test -n "$STRIP"; then
  4826. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4827. else
  4828. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4829. for as_dir in $PATH
  4830. do
  4831. IFS=$as_save_IFS
  4832. test -z "$as_dir" && as_dir=.
  4833. for ac_exec_ext in '' $ac_executable_extensions; do
  4834. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4835. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4836. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4837. break 2
  4838. fi
  4839. done
  4840. done
  4841. IFS=$as_save_IFS
  4842. fi
  4843. fi
  4844. STRIP=$ac_cv_prog_STRIP
  4845. if test -n "$STRIP"; then
  4846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4847. $as_echo "$STRIP" >&6; }
  4848. else
  4849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4850. $as_echo "no" >&6; }
  4851. fi
  4852. fi
  4853. if test -z "$ac_cv_prog_STRIP"; then
  4854. ac_ct_STRIP=$STRIP
  4855. # Extract the first word of "strip", so it can be a program name with args.
  4856. set dummy strip; ac_word=$2
  4857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4858. $as_echo_n "checking for $ac_word... " >&6; }
  4859. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4860. $as_echo_n "(cached) " >&6
  4861. else
  4862. if test -n "$ac_ct_STRIP"; then
  4863. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4864. else
  4865. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4866. for as_dir in $PATH
  4867. do
  4868. IFS=$as_save_IFS
  4869. test -z "$as_dir" && as_dir=.
  4870. for ac_exec_ext in '' $ac_executable_extensions; do
  4871. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4872. ac_cv_prog_ac_ct_STRIP="strip"
  4873. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4874. break 2
  4875. fi
  4876. done
  4877. done
  4878. IFS=$as_save_IFS
  4879. fi
  4880. fi
  4881. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4882. if test -n "$ac_ct_STRIP"; then
  4883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4884. $as_echo "$ac_ct_STRIP" >&6; }
  4885. else
  4886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4887. $as_echo "no" >&6; }
  4888. fi
  4889. if test "x$ac_ct_STRIP" = x; then
  4890. STRIP=":"
  4891. else
  4892. case $cross_compiling:$ac_tool_warned in
  4893. yes:)
  4894. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4895. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4896. ac_tool_warned=yes ;;
  4897. esac
  4898. STRIP=$ac_ct_STRIP
  4899. fi
  4900. else
  4901. STRIP="$ac_cv_prog_STRIP"
  4902. fi
  4903. test -z "$STRIP" && STRIP=:
  4904. if test -n "$ac_tool_prefix"; then
  4905. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4906. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4908. $as_echo_n "checking for $ac_word... " >&6; }
  4909. if ${ac_cv_prog_RANLIB+:} false; then :
  4910. $as_echo_n "(cached) " >&6
  4911. else
  4912. if test -n "$RANLIB"; then
  4913. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4914. else
  4915. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4916. for as_dir in $PATH
  4917. do
  4918. IFS=$as_save_IFS
  4919. test -z "$as_dir" && as_dir=.
  4920. for ac_exec_ext in '' $ac_executable_extensions; do
  4921. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4922. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4923. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4924. break 2
  4925. fi
  4926. done
  4927. done
  4928. IFS=$as_save_IFS
  4929. fi
  4930. fi
  4931. RANLIB=$ac_cv_prog_RANLIB
  4932. if test -n "$RANLIB"; then
  4933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4934. $as_echo "$RANLIB" >&6; }
  4935. else
  4936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4937. $as_echo "no" >&6; }
  4938. fi
  4939. fi
  4940. if test -z "$ac_cv_prog_RANLIB"; then
  4941. ac_ct_RANLIB=$RANLIB
  4942. # Extract the first word of "ranlib", so it can be a program name with args.
  4943. set dummy ranlib; ac_word=$2
  4944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4945. $as_echo_n "checking for $ac_word... " >&6; }
  4946. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4947. $as_echo_n "(cached) " >&6
  4948. else
  4949. if test -n "$ac_ct_RANLIB"; then
  4950. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4951. else
  4952. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4953. for as_dir in $PATH
  4954. do
  4955. IFS=$as_save_IFS
  4956. test -z "$as_dir" && as_dir=.
  4957. for ac_exec_ext in '' $ac_executable_extensions; do
  4958. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4959. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4960. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4961. break 2
  4962. fi
  4963. done
  4964. done
  4965. IFS=$as_save_IFS
  4966. fi
  4967. fi
  4968. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4969. if test -n "$ac_ct_RANLIB"; then
  4970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4971. $as_echo "$ac_ct_RANLIB" >&6; }
  4972. else
  4973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4974. $as_echo "no" >&6; }
  4975. fi
  4976. if test "x$ac_ct_RANLIB" = x; then
  4977. RANLIB=":"
  4978. else
  4979. case $cross_compiling:$ac_tool_warned in
  4980. yes:)
  4981. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4982. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4983. ac_tool_warned=yes ;;
  4984. esac
  4985. RANLIB=$ac_ct_RANLIB
  4986. fi
  4987. else
  4988. RANLIB="$ac_cv_prog_RANLIB"
  4989. fi
  4990. test -z "$RANLIB" && RANLIB=:
  4991. # Determine commands to create old-style static archives.
  4992. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4993. old_postinstall_cmds='chmod 644 $oldlib'
  4994. old_postuninstall_cmds=
  4995. if test -n "$RANLIB"; then
  4996. case $host_os in
  4997. openbsd*)
  4998. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4999. ;;
  5000. *)
  5001. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5002. ;;
  5003. esac
  5004. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5005. fi
  5006. case $host_os in
  5007. darwin*)
  5008. lock_old_archive_extraction=yes ;;
  5009. *)
  5010. lock_old_archive_extraction=no ;;
  5011. esac
  5012. for ac_prog in gawk mawk nawk awk
  5013. do
  5014. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5015. set dummy $ac_prog; ac_word=$2
  5016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5017. $as_echo_n "checking for $ac_word... " >&6; }
  5018. if ${ac_cv_prog_AWK+:} false; then :
  5019. $as_echo_n "(cached) " >&6
  5020. else
  5021. if test -n "$AWK"; then
  5022. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5023. else
  5024. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5025. for as_dir in $PATH
  5026. do
  5027. IFS=$as_save_IFS
  5028. test -z "$as_dir" && as_dir=.
  5029. for ac_exec_ext in '' $ac_executable_extensions; do
  5030. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5031. ac_cv_prog_AWK="$ac_prog"
  5032. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5033. break 2
  5034. fi
  5035. done
  5036. done
  5037. IFS=$as_save_IFS
  5038. fi
  5039. fi
  5040. AWK=$ac_cv_prog_AWK
  5041. if test -n "$AWK"; then
  5042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5043. $as_echo "$AWK" >&6; }
  5044. else
  5045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5046. $as_echo "no" >&6; }
  5047. fi
  5048. test -n "$AWK" && break
  5049. done
  5050. # If no C compiler was specified, use CC.
  5051. LTCC=${LTCC-"$CC"}
  5052. # If no C compiler flags were specified, use CFLAGS.
  5053. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5054. # Allow CC to be a program name with arguments.
  5055. compiler=$CC
  5056. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5058. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5059. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5060. $as_echo_n "(cached) " >&6
  5061. else
  5062. # These are sane defaults that work on at least a few old systems.
  5063. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5064. # Character class describing NM global symbol codes.
  5065. symcode='[BCDEGRST]'
  5066. # Regexp to match symbols that can be accessed directly from C.
  5067. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5068. # Define system-specific variables.
  5069. case $host_os in
  5070. aix*)
  5071. symcode='[BCDT]'
  5072. ;;
  5073. cygwin* | mingw* | pw32* | cegcc*)
  5074. symcode='[ABCDGISTW]'
  5075. ;;
  5076. hpux*)
  5077. if test "$host_cpu" = ia64; then
  5078. symcode='[ABCDEGRST]'
  5079. fi
  5080. ;;
  5081. irix* | nonstopux*)
  5082. symcode='[BCDEGRST]'
  5083. ;;
  5084. osf*)
  5085. symcode='[BCDEGQRST]'
  5086. ;;
  5087. solaris*)
  5088. symcode='[BDRT]'
  5089. ;;
  5090. sco3.2v5*)
  5091. symcode='[DT]'
  5092. ;;
  5093. sysv4.2uw2*)
  5094. symcode='[DT]'
  5095. ;;
  5096. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5097. symcode='[ABDT]'
  5098. ;;
  5099. sysv4)
  5100. symcode='[DFNSTU]'
  5101. ;;
  5102. esac
  5103. # If we're using GNU nm, then use its standard symbol codes.
  5104. case `$NM -V 2>&1` in
  5105. *GNU* | *'with BFD'*)
  5106. symcode='[ABCDGIRSTW]' ;;
  5107. esac
  5108. # Transform an extracted symbol line into a proper C declaration.
  5109. # Some systems (esp. on ia64) link data and code symbols differently,
  5110. # so use this general approach.
  5111. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5112. # Transform an extracted symbol line into symbol name and symbol address
  5113. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5114. 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'"
  5115. # Handle CRLF in mingw tool chain
  5116. opt_cr=
  5117. case $build_os in
  5118. mingw*)
  5119. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5120. ;;
  5121. esac
  5122. # Try without a prefix underscore, then with it.
  5123. for ac_symprfx in "" "_"; do
  5124. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5125. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5126. # Write the raw and C identifiers.
  5127. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5128. # Fake it for dumpbin and say T for any non-static function
  5129. # and D for any global variable.
  5130. # Also find C++ and __fastcall symbols from MSVC++,
  5131. # which start with @ or ?.
  5132. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5133. " {last_section=section; section=\$ 3};"\
  5134. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5135. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5136. " \$ 0!~/External *\|/{next};"\
  5137. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5138. " {if(hide[section]) next};"\
  5139. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5140. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5141. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5142. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5143. " ' prfx=^$ac_symprfx"
  5144. else
  5145. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5146. fi
  5147. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5148. # Check to see that the pipe works correctly.
  5149. pipe_works=no
  5150. rm -f conftest*
  5151. cat > conftest.$ac_ext <<_LT_EOF
  5152. #ifdef __cplusplus
  5153. extern "C" {
  5154. #endif
  5155. char nm_test_var;
  5156. void nm_test_func(void);
  5157. void nm_test_func(void){}
  5158. #ifdef __cplusplus
  5159. }
  5160. #endif
  5161. int main(){nm_test_var='a';nm_test_func();return(0);}
  5162. _LT_EOF
  5163. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5164. (eval $ac_compile) 2>&5
  5165. ac_status=$?
  5166. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5167. test $ac_status = 0; }; then
  5168. # Now try to grab the symbols.
  5169. nlist=conftest.nm
  5170. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5171. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5172. ac_status=$?
  5173. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5174. test $ac_status = 0; } && test -s "$nlist"; then
  5175. # Try sorting and uniquifying the output.
  5176. if sort "$nlist" | uniq > "$nlist"T; then
  5177. mv -f "$nlist"T "$nlist"
  5178. else
  5179. rm -f "$nlist"T
  5180. fi
  5181. # Make sure that we snagged all the symbols we need.
  5182. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5183. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5184. cat <<_LT_EOF > conftest.$ac_ext
  5185. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5186. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5187. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5188. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5189. # define LT_DLSYM_CONST
  5190. #elif defined(__osf__)
  5191. /* This system does not cope well with relocations in const data. */
  5192. # define LT_DLSYM_CONST
  5193. #else
  5194. # define LT_DLSYM_CONST const
  5195. #endif
  5196. #ifdef __cplusplus
  5197. extern "C" {
  5198. #endif
  5199. _LT_EOF
  5200. # Now generate the symbol file.
  5201. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5202. cat <<_LT_EOF >> conftest.$ac_ext
  5203. /* The mapping between symbol names and symbols. */
  5204. LT_DLSYM_CONST struct {
  5205. const char *name;
  5206. void *address;
  5207. }
  5208. lt__PROGRAM__LTX_preloaded_symbols[] =
  5209. {
  5210. { "@PROGRAM@", (void *) 0 },
  5211. _LT_EOF
  5212. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5213. cat <<\_LT_EOF >> conftest.$ac_ext
  5214. {0, (void *) 0}
  5215. };
  5216. /* This works around a problem in FreeBSD linker */
  5217. #ifdef FREEBSD_WORKAROUND
  5218. static const void *lt_preloaded_setup() {
  5219. return lt__PROGRAM__LTX_preloaded_symbols;
  5220. }
  5221. #endif
  5222. #ifdef __cplusplus
  5223. }
  5224. #endif
  5225. _LT_EOF
  5226. # Now try linking the two files.
  5227. mv conftest.$ac_objext conftstm.$ac_objext
  5228. lt_globsym_save_LIBS=$LIBS
  5229. lt_globsym_save_CFLAGS=$CFLAGS
  5230. LIBS="conftstm.$ac_objext"
  5231. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5232. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5233. (eval $ac_link) 2>&5
  5234. ac_status=$?
  5235. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5236. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5237. pipe_works=yes
  5238. fi
  5239. LIBS=$lt_globsym_save_LIBS
  5240. CFLAGS=$lt_globsym_save_CFLAGS
  5241. else
  5242. echo "cannot find nm_test_func in $nlist" >&5
  5243. fi
  5244. else
  5245. echo "cannot find nm_test_var in $nlist" >&5
  5246. fi
  5247. else
  5248. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5249. fi
  5250. else
  5251. echo "$progname: failed program was:" >&5
  5252. cat conftest.$ac_ext >&5
  5253. fi
  5254. rm -rf conftest* conftst*
  5255. # Do not use the global_symbol_pipe unless it works.
  5256. if test "$pipe_works" = yes; then
  5257. break
  5258. else
  5259. lt_cv_sys_global_symbol_pipe=
  5260. fi
  5261. done
  5262. fi
  5263. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5264. lt_cv_sys_global_symbol_to_cdecl=
  5265. fi
  5266. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5268. $as_echo "failed" >&6; }
  5269. else
  5270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5271. $as_echo "ok" >&6; }
  5272. fi
  5273. # Response file support.
  5274. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5275. nm_file_list_spec='@'
  5276. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5277. nm_file_list_spec='@'
  5278. fi
  5279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5280. $as_echo_n "checking for sysroot... " >&6; }
  5281. # Check whether --with-sysroot was given.
  5282. if test "${with_sysroot+set}" = set; then :
  5283. withval=$with_sysroot;
  5284. else
  5285. with_sysroot=no
  5286. fi
  5287. lt_sysroot=
  5288. case ${with_sysroot} in #(
  5289. yes)
  5290. if test "$GCC" = yes; then
  5291. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5292. fi
  5293. ;; #(
  5294. /*)
  5295. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5296. ;; #(
  5297. no|'')
  5298. ;; #(
  5299. *)
  5300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5301. $as_echo "${with_sysroot}" >&6; }
  5302. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5303. ;;
  5304. esac
  5305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5306. $as_echo "${lt_sysroot:-no}" >&6; }
  5307. # Check whether --enable-libtool-lock was given.
  5308. if test "${enable_libtool_lock+set}" = set; then :
  5309. enableval=$enable_libtool_lock;
  5310. fi
  5311. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5312. # Some flags need to be propagated to the compiler or linker for good
  5313. # libtool support.
  5314. case $host in
  5315. ia64-*-hpux*)
  5316. # Find out which ABI we are using.
  5317. echo 'int i;' > 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. case `/usr/bin/file conftest.$ac_objext` in
  5324. *ELF-32*)
  5325. HPUX_IA64_MODE="32"
  5326. ;;
  5327. *ELF-64*)
  5328. HPUX_IA64_MODE="64"
  5329. ;;
  5330. esac
  5331. fi
  5332. rm -rf conftest*
  5333. ;;
  5334. *-*-irix6*)
  5335. # Find out which ABI we are using.
  5336. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5337. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5338. (eval $ac_compile) 2>&5
  5339. ac_status=$?
  5340. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5341. test $ac_status = 0; }; then
  5342. if test "$lt_cv_prog_gnu_ld" = yes; then
  5343. case `/usr/bin/file conftest.$ac_objext` in
  5344. *32-bit*)
  5345. LD="${LD-ld} -melf32bsmip"
  5346. ;;
  5347. *N32*)
  5348. LD="${LD-ld} -melf32bmipn32"
  5349. ;;
  5350. *64-bit*)
  5351. LD="${LD-ld} -melf64bmip"
  5352. ;;
  5353. esac
  5354. else
  5355. case `/usr/bin/file conftest.$ac_objext` in
  5356. *32-bit*)
  5357. LD="${LD-ld} -32"
  5358. ;;
  5359. *N32*)
  5360. LD="${LD-ld} -n32"
  5361. ;;
  5362. *64-bit*)
  5363. LD="${LD-ld} -64"
  5364. ;;
  5365. esac
  5366. fi
  5367. fi
  5368. rm -rf conftest*
  5369. ;;
  5370. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5371. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5372. # Find out which ABI we are using.
  5373. echo 'int i;' > conftest.$ac_ext
  5374. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5375. (eval $ac_compile) 2>&5
  5376. ac_status=$?
  5377. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5378. test $ac_status = 0; }; then
  5379. case `/usr/bin/file conftest.o` in
  5380. *32-bit*)
  5381. case $host in
  5382. x86_64-*kfreebsd*-gnu)
  5383. LD="${LD-ld} -m elf_i386_fbsd"
  5384. ;;
  5385. x86_64-*linux*)
  5386. LD="${LD-ld} -m elf_i386"
  5387. ;;
  5388. ppc64-*linux*|powerpc64-*linux*)
  5389. LD="${LD-ld} -m elf32ppclinux"
  5390. ;;
  5391. s390x-*linux*)
  5392. LD="${LD-ld} -m elf_s390"
  5393. ;;
  5394. sparc64-*linux*)
  5395. LD="${LD-ld} -m elf32_sparc"
  5396. ;;
  5397. esac
  5398. ;;
  5399. *64-bit*)
  5400. case $host in
  5401. x86_64-*kfreebsd*-gnu)
  5402. LD="${LD-ld} -m elf_x86_64_fbsd"
  5403. ;;
  5404. x86_64-*linux*)
  5405. LD="${LD-ld} -m elf_x86_64"
  5406. ;;
  5407. powerpc64le-*linux*)
  5408. LD="${LD-ld} -m elf64lppc"
  5409. ;;
  5410. powerpc64-*linux*)
  5411. LD="${LD-ld} -m elf64ppc"
  5412. ;;
  5413. s390*-*linux*|s390*-*tpf*)
  5414. LD="${LD-ld} -m elf64_s390"
  5415. ;;
  5416. sparc*-*linux*)
  5417. LD="${LD-ld} -m elf64_sparc"
  5418. ;;
  5419. esac
  5420. ;;
  5421. esac
  5422. fi
  5423. rm -rf conftest*
  5424. ;;
  5425. *-*-sco3.2v5*)
  5426. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5427. SAVE_CFLAGS="$CFLAGS"
  5428. CFLAGS="$CFLAGS -belf"
  5429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5430. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5431. if ${lt_cv_cc_needs_belf+:} false; then :
  5432. $as_echo_n "(cached) " >&6
  5433. else
  5434. ac_ext=c
  5435. ac_cpp='$CPP $CPPFLAGS'
  5436. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5437. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5438. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5440. /* end confdefs.h. */
  5441. int
  5442. main ()
  5443. {
  5444. ;
  5445. return 0;
  5446. }
  5447. _ACEOF
  5448. if ac_fn_c_try_link "$LINENO"; then :
  5449. lt_cv_cc_needs_belf=yes
  5450. else
  5451. lt_cv_cc_needs_belf=no
  5452. fi
  5453. rm -f core conftest.err conftest.$ac_objext \
  5454. conftest$ac_exeext conftest.$ac_ext
  5455. ac_ext=c
  5456. ac_cpp='$CPP $CPPFLAGS'
  5457. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5458. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5459. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5460. fi
  5461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5462. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5463. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5464. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5465. CFLAGS="$SAVE_CFLAGS"
  5466. fi
  5467. ;;
  5468. *-*solaris*)
  5469. # Find out which ABI we are using.
  5470. echo 'int i;' > conftest.$ac_ext
  5471. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5472. (eval $ac_compile) 2>&5
  5473. ac_status=$?
  5474. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5475. test $ac_status = 0; }; then
  5476. case `/usr/bin/file conftest.o` in
  5477. *64-bit*)
  5478. case $lt_cv_prog_gnu_ld in
  5479. yes*)
  5480. case $host in
  5481. i?86-*-solaris*)
  5482. LD="${LD-ld} -m elf_x86_64"
  5483. ;;
  5484. sparc*-*-solaris*)
  5485. LD="${LD-ld} -m elf64_sparc"
  5486. ;;
  5487. esac
  5488. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5489. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5490. LD="${LD-ld}_sol2"
  5491. fi
  5492. ;;
  5493. *)
  5494. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5495. LD="${LD-ld} -64"
  5496. fi
  5497. ;;
  5498. esac
  5499. ;;
  5500. esac
  5501. fi
  5502. rm -rf conftest*
  5503. ;;
  5504. esac
  5505. need_locks="$enable_libtool_lock"
  5506. if test -n "$ac_tool_prefix"; then
  5507. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5508. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5510. $as_echo_n "checking for $ac_word... " >&6; }
  5511. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5512. $as_echo_n "(cached) " >&6
  5513. else
  5514. if test -n "$MANIFEST_TOOL"; then
  5515. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5516. else
  5517. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5518. for as_dir in $PATH
  5519. do
  5520. IFS=$as_save_IFS
  5521. test -z "$as_dir" && as_dir=.
  5522. for ac_exec_ext in '' $ac_executable_extensions; do
  5523. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5524. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5525. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5526. break 2
  5527. fi
  5528. done
  5529. done
  5530. IFS=$as_save_IFS
  5531. fi
  5532. fi
  5533. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5534. if test -n "$MANIFEST_TOOL"; then
  5535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5536. $as_echo "$MANIFEST_TOOL" >&6; }
  5537. else
  5538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5539. $as_echo "no" >&6; }
  5540. fi
  5541. fi
  5542. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5543. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5544. # Extract the first word of "mt", so it can be a program name with args.
  5545. set dummy mt; ac_word=$2
  5546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5547. $as_echo_n "checking for $ac_word... " >&6; }
  5548. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5549. $as_echo_n "(cached) " >&6
  5550. else
  5551. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5552. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5553. else
  5554. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5555. for as_dir in $PATH
  5556. do
  5557. IFS=$as_save_IFS
  5558. test -z "$as_dir" && as_dir=.
  5559. for ac_exec_ext in '' $ac_executable_extensions; do
  5560. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5561. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5562. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5563. break 2
  5564. fi
  5565. done
  5566. done
  5567. IFS=$as_save_IFS
  5568. fi
  5569. fi
  5570. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5571. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5573. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5574. else
  5575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5576. $as_echo "no" >&6; }
  5577. fi
  5578. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5579. MANIFEST_TOOL=":"
  5580. else
  5581. case $cross_compiling:$ac_tool_warned in
  5582. yes:)
  5583. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5584. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5585. ac_tool_warned=yes ;;
  5586. esac
  5587. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5588. fi
  5589. else
  5590. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5591. fi
  5592. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5594. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5595. if ${lt_cv_path_mainfest_tool+:} false; then :
  5596. $as_echo_n "(cached) " >&6
  5597. else
  5598. lt_cv_path_mainfest_tool=no
  5599. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5600. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5601. cat conftest.err >&5
  5602. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5603. lt_cv_path_mainfest_tool=yes
  5604. fi
  5605. rm -f conftest*
  5606. fi
  5607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5608. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5609. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5610. MANIFEST_TOOL=:
  5611. fi
  5612. case $host_os in
  5613. rhapsody* | darwin*)
  5614. if test -n "$ac_tool_prefix"; then
  5615. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5616. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5618. $as_echo_n "checking for $ac_word... " >&6; }
  5619. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5620. $as_echo_n "(cached) " >&6
  5621. else
  5622. if test -n "$DSYMUTIL"; then
  5623. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5624. else
  5625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5626. for as_dir in $PATH
  5627. do
  5628. IFS=$as_save_IFS
  5629. test -z "$as_dir" && as_dir=.
  5630. for ac_exec_ext in '' $ac_executable_extensions; do
  5631. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5632. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5633. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5634. break 2
  5635. fi
  5636. done
  5637. done
  5638. IFS=$as_save_IFS
  5639. fi
  5640. fi
  5641. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5642. if test -n "$DSYMUTIL"; then
  5643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5644. $as_echo "$DSYMUTIL" >&6; }
  5645. else
  5646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5647. $as_echo "no" >&6; }
  5648. fi
  5649. fi
  5650. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5651. ac_ct_DSYMUTIL=$DSYMUTIL
  5652. # Extract the first word of "dsymutil", so it can be a program name with args.
  5653. set dummy dsymutil; ac_word=$2
  5654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5655. $as_echo_n "checking for $ac_word... " >&6; }
  5656. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5657. $as_echo_n "(cached) " >&6
  5658. else
  5659. if test -n "$ac_ct_DSYMUTIL"; then
  5660. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5661. else
  5662. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5663. for as_dir in $PATH
  5664. do
  5665. IFS=$as_save_IFS
  5666. test -z "$as_dir" && as_dir=.
  5667. for ac_exec_ext in '' $ac_executable_extensions; do
  5668. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5669. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5670. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5671. break 2
  5672. fi
  5673. done
  5674. done
  5675. IFS=$as_save_IFS
  5676. fi
  5677. fi
  5678. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5679. if test -n "$ac_ct_DSYMUTIL"; then
  5680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5681. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5682. else
  5683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5684. $as_echo "no" >&6; }
  5685. fi
  5686. if test "x$ac_ct_DSYMUTIL" = x; then
  5687. DSYMUTIL=":"
  5688. else
  5689. case $cross_compiling:$ac_tool_warned in
  5690. yes:)
  5691. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5692. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5693. ac_tool_warned=yes ;;
  5694. esac
  5695. DSYMUTIL=$ac_ct_DSYMUTIL
  5696. fi
  5697. else
  5698. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5699. fi
  5700. if test -n "$ac_tool_prefix"; then
  5701. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5702. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5704. $as_echo_n "checking for $ac_word... " >&6; }
  5705. if ${ac_cv_prog_NMEDIT+:} false; then :
  5706. $as_echo_n "(cached) " >&6
  5707. else
  5708. if test -n "$NMEDIT"; then
  5709. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5710. else
  5711. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5712. for as_dir in $PATH
  5713. do
  5714. IFS=$as_save_IFS
  5715. test -z "$as_dir" && as_dir=.
  5716. for ac_exec_ext in '' $ac_executable_extensions; do
  5717. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5718. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5719. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5720. break 2
  5721. fi
  5722. done
  5723. done
  5724. IFS=$as_save_IFS
  5725. fi
  5726. fi
  5727. NMEDIT=$ac_cv_prog_NMEDIT
  5728. if test -n "$NMEDIT"; then
  5729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5730. $as_echo "$NMEDIT" >&6; }
  5731. else
  5732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5733. $as_echo "no" >&6; }
  5734. fi
  5735. fi
  5736. if test -z "$ac_cv_prog_NMEDIT"; then
  5737. ac_ct_NMEDIT=$NMEDIT
  5738. # Extract the first word of "nmedit", so it can be a program name with args.
  5739. set dummy nmedit; ac_word=$2
  5740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5741. $as_echo_n "checking for $ac_word... " >&6; }
  5742. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5743. $as_echo_n "(cached) " >&6
  5744. else
  5745. if test -n "$ac_ct_NMEDIT"; then
  5746. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5747. else
  5748. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5749. for as_dir in $PATH
  5750. do
  5751. IFS=$as_save_IFS
  5752. test -z "$as_dir" && as_dir=.
  5753. for ac_exec_ext in '' $ac_executable_extensions; do
  5754. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5755. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5756. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5757. break 2
  5758. fi
  5759. done
  5760. done
  5761. IFS=$as_save_IFS
  5762. fi
  5763. fi
  5764. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5765. if test -n "$ac_ct_NMEDIT"; then
  5766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5767. $as_echo "$ac_ct_NMEDIT" >&6; }
  5768. else
  5769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5770. $as_echo "no" >&6; }
  5771. fi
  5772. if test "x$ac_ct_NMEDIT" = x; then
  5773. NMEDIT=":"
  5774. else
  5775. case $cross_compiling:$ac_tool_warned in
  5776. yes:)
  5777. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5778. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5779. ac_tool_warned=yes ;;
  5780. esac
  5781. NMEDIT=$ac_ct_NMEDIT
  5782. fi
  5783. else
  5784. NMEDIT="$ac_cv_prog_NMEDIT"
  5785. fi
  5786. if test -n "$ac_tool_prefix"; then
  5787. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5788. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5790. $as_echo_n "checking for $ac_word... " >&6; }
  5791. if ${ac_cv_prog_LIPO+:} false; then :
  5792. $as_echo_n "(cached) " >&6
  5793. else
  5794. if test -n "$LIPO"; then
  5795. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5796. else
  5797. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5798. for as_dir in $PATH
  5799. do
  5800. IFS=$as_save_IFS
  5801. test -z "$as_dir" && as_dir=.
  5802. for ac_exec_ext in '' $ac_executable_extensions; do
  5803. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5804. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5805. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5806. break 2
  5807. fi
  5808. done
  5809. done
  5810. IFS=$as_save_IFS
  5811. fi
  5812. fi
  5813. LIPO=$ac_cv_prog_LIPO
  5814. if test -n "$LIPO"; then
  5815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5816. $as_echo "$LIPO" >&6; }
  5817. else
  5818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5819. $as_echo "no" >&6; }
  5820. fi
  5821. fi
  5822. if test -z "$ac_cv_prog_LIPO"; then
  5823. ac_ct_LIPO=$LIPO
  5824. # Extract the first word of "lipo", so it can be a program name with args.
  5825. set dummy lipo; ac_word=$2
  5826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5827. $as_echo_n "checking for $ac_word... " >&6; }
  5828. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5829. $as_echo_n "(cached) " >&6
  5830. else
  5831. if test -n "$ac_ct_LIPO"; then
  5832. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5833. else
  5834. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5835. for as_dir in $PATH
  5836. do
  5837. IFS=$as_save_IFS
  5838. test -z "$as_dir" && as_dir=.
  5839. for ac_exec_ext in '' $ac_executable_extensions; do
  5840. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5841. ac_cv_prog_ac_ct_LIPO="lipo"
  5842. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5843. break 2
  5844. fi
  5845. done
  5846. done
  5847. IFS=$as_save_IFS
  5848. fi
  5849. fi
  5850. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5851. if test -n "$ac_ct_LIPO"; then
  5852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5853. $as_echo "$ac_ct_LIPO" >&6; }
  5854. else
  5855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5856. $as_echo "no" >&6; }
  5857. fi
  5858. if test "x$ac_ct_LIPO" = x; then
  5859. LIPO=":"
  5860. else
  5861. case $cross_compiling:$ac_tool_warned in
  5862. yes:)
  5863. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5864. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5865. ac_tool_warned=yes ;;
  5866. esac
  5867. LIPO=$ac_ct_LIPO
  5868. fi
  5869. else
  5870. LIPO="$ac_cv_prog_LIPO"
  5871. fi
  5872. if test -n "$ac_tool_prefix"; then
  5873. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5874. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5876. $as_echo_n "checking for $ac_word... " >&6; }
  5877. if ${ac_cv_prog_OTOOL+:} false; then :
  5878. $as_echo_n "(cached) " >&6
  5879. else
  5880. if test -n "$OTOOL"; then
  5881. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5882. else
  5883. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5884. for as_dir in $PATH
  5885. do
  5886. IFS=$as_save_IFS
  5887. test -z "$as_dir" && as_dir=.
  5888. for ac_exec_ext in '' $ac_executable_extensions; do
  5889. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5890. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5891. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5892. break 2
  5893. fi
  5894. done
  5895. done
  5896. IFS=$as_save_IFS
  5897. fi
  5898. fi
  5899. OTOOL=$ac_cv_prog_OTOOL
  5900. if test -n "$OTOOL"; then
  5901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5902. $as_echo "$OTOOL" >&6; }
  5903. else
  5904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5905. $as_echo "no" >&6; }
  5906. fi
  5907. fi
  5908. if test -z "$ac_cv_prog_OTOOL"; then
  5909. ac_ct_OTOOL=$OTOOL
  5910. # Extract the first word of "otool", so it can be a program name with args.
  5911. set dummy otool; ac_word=$2
  5912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5913. $as_echo_n "checking for $ac_word... " >&6; }
  5914. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5915. $as_echo_n "(cached) " >&6
  5916. else
  5917. if test -n "$ac_ct_OTOOL"; then
  5918. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5919. else
  5920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5921. for as_dir in $PATH
  5922. do
  5923. IFS=$as_save_IFS
  5924. test -z "$as_dir" && as_dir=.
  5925. for ac_exec_ext in '' $ac_executable_extensions; do
  5926. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5927. ac_cv_prog_ac_ct_OTOOL="otool"
  5928. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5929. break 2
  5930. fi
  5931. done
  5932. done
  5933. IFS=$as_save_IFS
  5934. fi
  5935. fi
  5936. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5937. if test -n "$ac_ct_OTOOL"; then
  5938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5939. $as_echo "$ac_ct_OTOOL" >&6; }
  5940. else
  5941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5942. $as_echo "no" >&6; }
  5943. fi
  5944. if test "x$ac_ct_OTOOL" = x; then
  5945. OTOOL=":"
  5946. else
  5947. case $cross_compiling:$ac_tool_warned in
  5948. yes:)
  5949. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5950. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5951. ac_tool_warned=yes ;;
  5952. esac
  5953. OTOOL=$ac_ct_OTOOL
  5954. fi
  5955. else
  5956. OTOOL="$ac_cv_prog_OTOOL"
  5957. fi
  5958. if test -n "$ac_tool_prefix"; then
  5959. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5960. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5962. $as_echo_n "checking for $ac_word... " >&6; }
  5963. if ${ac_cv_prog_OTOOL64+:} false; then :
  5964. $as_echo_n "(cached) " >&6
  5965. else
  5966. if test -n "$OTOOL64"; then
  5967. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5968. else
  5969. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5970. for as_dir in $PATH
  5971. do
  5972. IFS=$as_save_IFS
  5973. test -z "$as_dir" && as_dir=.
  5974. for ac_exec_ext in '' $ac_executable_extensions; do
  5975. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5976. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5977. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5978. break 2
  5979. fi
  5980. done
  5981. done
  5982. IFS=$as_save_IFS
  5983. fi
  5984. fi
  5985. OTOOL64=$ac_cv_prog_OTOOL64
  5986. if test -n "$OTOOL64"; then
  5987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5988. $as_echo "$OTOOL64" >&6; }
  5989. else
  5990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5991. $as_echo "no" >&6; }
  5992. fi
  5993. fi
  5994. if test -z "$ac_cv_prog_OTOOL64"; then
  5995. ac_ct_OTOOL64=$OTOOL64
  5996. # Extract the first word of "otool64", so it can be a program name with args.
  5997. set dummy otool64; ac_word=$2
  5998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5999. $as_echo_n "checking for $ac_word... " >&6; }
  6000. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6001. $as_echo_n "(cached) " >&6
  6002. else
  6003. if test -n "$ac_ct_OTOOL64"; then
  6004. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6005. else
  6006. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6007. for as_dir in $PATH
  6008. do
  6009. IFS=$as_save_IFS
  6010. test -z "$as_dir" && as_dir=.
  6011. for ac_exec_ext in '' $ac_executable_extensions; do
  6012. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6013. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6014. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6015. break 2
  6016. fi
  6017. done
  6018. done
  6019. IFS=$as_save_IFS
  6020. fi
  6021. fi
  6022. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6023. if test -n "$ac_ct_OTOOL64"; then
  6024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6025. $as_echo "$ac_ct_OTOOL64" >&6; }
  6026. else
  6027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6028. $as_echo "no" >&6; }
  6029. fi
  6030. if test "x$ac_ct_OTOOL64" = x; then
  6031. OTOOL64=":"
  6032. else
  6033. case $cross_compiling:$ac_tool_warned in
  6034. yes:)
  6035. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6036. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6037. ac_tool_warned=yes ;;
  6038. esac
  6039. OTOOL64=$ac_ct_OTOOL64
  6040. fi
  6041. else
  6042. OTOOL64="$ac_cv_prog_OTOOL64"
  6043. fi
  6044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6045. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6046. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6047. $as_echo_n "(cached) " >&6
  6048. else
  6049. lt_cv_apple_cc_single_mod=no
  6050. if test -z "${LT_MULTI_MODULE}"; then
  6051. # By default we will add the -single_module flag. You can override
  6052. # by either setting the environment variable LT_MULTI_MODULE
  6053. # non-empty at configure time, or by adding -multi_module to the
  6054. # link flags.
  6055. rm -rf libconftest.dylib*
  6056. echo "int foo(void){return 1;}" > conftest.c
  6057. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6058. -dynamiclib -Wl,-single_module conftest.c" >&5
  6059. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6060. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6061. _lt_result=$?
  6062. # If there is a non-empty error log, and "single_module"
  6063. # appears in it, assume the flag caused a linker warning
  6064. if test -s conftest.err && $GREP single_module conftest.err; then
  6065. cat conftest.err >&5
  6066. # Otherwise, if the output was created with a 0 exit code from
  6067. # the compiler, it worked.
  6068. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6069. lt_cv_apple_cc_single_mod=yes
  6070. else
  6071. cat conftest.err >&5
  6072. fi
  6073. rm -rf libconftest.dylib*
  6074. rm -f conftest.*
  6075. fi
  6076. fi
  6077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6078. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6080. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6081. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6082. $as_echo_n "(cached) " >&6
  6083. else
  6084. lt_cv_ld_exported_symbols_list=no
  6085. save_LDFLAGS=$LDFLAGS
  6086. echo "_main" > conftest.sym
  6087. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6089. /* end confdefs.h. */
  6090. int
  6091. main ()
  6092. {
  6093. ;
  6094. return 0;
  6095. }
  6096. _ACEOF
  6097. if ac_fn_c_try_link "$LINENO"; then :
  6098. lt_cv_ld_exported_symbols_list=yes
  6099. else
  6100. lt_cv_ld_exported_symbols_list=no
  6101. fi
  6102. rm -f core conftest.err conftest.$ac_objext \
  6103. conftest$ac_exeext conftest.$ac_ext
  6104. LDFLAGS="$save_LDFLAGS"
  6105. fi
  6106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6107. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6109. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6110. if ${lt_cv_ld_force_load+:} false; then :
  6111. $as_echo_n "(cached) " >&6
  6112. else
  6113. lt_cv_ld_force_load=no
  6114. cat > conftest.c << _LT_EOF
  6115. int forced_loaded() { return 2;}
  6116. _LT_EOF
  6117. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6118. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6119. echo "$AR cru libconftest.a conftest.o" >&5
  6120. $AR cru libconftest.a conftest.o 2>&5
  6121. echo "$RANLIB libconftest.a" >&5
  6122. $RANLIB libconftest.a 2>&5
  6123. cat > conftest.c << _LT_EOF
  6124. int main() { return 0;}
  6125. _LT_EOF
  6126. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6127. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6128. _lt_result=$?
  6129. if test -s conftest.err && $GREP force_load conftest.err; then
  6130. cat conftest.err >&5
  6131. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6132. lt_cv_ld_force_load=yes
  6133. else
  6134. cat conftest.err >&5
  6135. fi
  6136. rm -f conftest.err libconftest.a conftest conftest.c
  6137. rm -rf conftest.dSYM
  6138. fi
  6139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6140. $as_echo "$lt_cv_ld_force_load" >&6; }
  6141. case $host_os in
  6142. rhapsody* | darwin1.[012])
  6143. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6144. darwin1.*)
  6145. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6146. darwin*)
  6147. case $MACOSX_DEPLOYMENT_TARGET,$host in
  6148. 10.[012],*|,*powerpc*-darwin[5-8]*)
  6149. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6150. *)
  6151. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6152. esac
  6153. ;;
  6154. esac
  6155. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6156. _lt_dar_single_mod='$single_module'
  6157. fi
  6158. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6159. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6160. else
  6161. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6162. fi
  6163. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6164. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6165. else
  6166. _lt_dsymutil=
  6167. fi
  6168. ;;
  6169. esac
  6170. ac_ext=c
  6171. ac_cpp='$CPP $CPPFLAGS'
  6172. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6173. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6174. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6176. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6177. # On Suns, sometimes $CPP names a directory.
  6178. if test -n "$CPP" && test -d "$CPP"; then
  6179. CPP=
  6180. fi
  6181. if test -z "$CPP"; then
  6182. if ${ac_cv_prog_CPP+:} false; then :
  6183. $as_echo_n "(cached) " >&6
  6184. else
  6185. # Double quotes because CPP needs to be expanded
  6186. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6187. do
  6188. ac_preproc_ok=false
  6189. for ac_c_preproc_warn_flag in '' yes
  6190. do
  6191. # Use a header file that comes with gcc, so configuring glibc
  6192. # with a fresh cross-compiler works.
  6193. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6194. # <limits.h> exists even on freestanding compilers.
  6195. # On the NeXT, cc -E runs the code through the compiler's parser,
  6196. # not just through cpp. "Syntax error" is here to catch this case.
  6197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6198. /* end confdefs.h. */
  6199. #ifdef __STDC__
  6200. # include <limits.h>
  6201. #else
  6202. # include <assert.h>
  6203. #endif
  6204. Syntax error
  6205. _ACEOF
  6206. if ac_fn_c_try_cpp "$LINENO"; then :
  6207. else
  6208. # Broken: fails on valid input.
  6209. continue
  6210. fi
  6211. rm -f conftest.err conftest.i conftest.$ac_ext
  6212. # OK, works on sane cases. Now check whether nonexistent headers
  6213. # can be detected and how.
  6214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6215. /* end confdefs.h. */
  6216. #include <ac_nonexistent.h>
  6217. _ACEOF
  6218. if ac_fn_c_try_cpp "$LINENO"; then :
  6219. # Broken: success on invalid input.
  6220. continue
  6221. else
  6222. # Passes both tests.
  6223. ac_preproc_ok=:
  6224. break
  6225. fi
  6226. rm -f conftest.err conftest.i conftest.$ac_ext
  6227. done
  6228. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6229. rm -f conftest.i conftest.err conftest.$ac_ext
  6230. if $ac_preproc_ok; then :
  6231. break
  6232. fi
  6233. done
  6234. ac_cv_prog_CPP=$CPP
  6235. fi
  6236. CPP=$ac_cv_prog_CPP
  6237. else
  6238. ac_cv_prog_CPP=$CPP
  6239. fi
  6240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6241. $as_echo "$CPP" >&6; }
  6242. ac_preproc_ok=false
  6243. for ac_c_preproc_warn_flag in '' yes
  6244. do
  6245. # Use a header file that comes with gcc, so configuring glibc
  6246. # with a fresh cross-compiler works.
  6247. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6248. # <limits.h> exists even on freestanding compilers.
  6249. # On the NeXT, cc -E runs the code through the compiler's parser,
  6250. # not just through cpp. "Syntax error" is here to catch this case.
  6251. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6252. /* end confdefs.h. */
  6253. #ifdef __STDC__
  6254. # include <limits.h>
  6255. #else
  6256. # include <assert.h>
  6257. #endif
  6258. Syntax error
  6259. _ACEOF
  6260. if ac_fn_c_try_cpp "$LINENO"; then :
  6261. else
  6262. # Broken: fails on valid input.
  6263. continue
  6264. fi
  6265. rm -f conftest.err conftest.i conftest.$ac_ext
  6266. # OK, works on sane cases. Now check whether nonexistent headers
  6267. # can be detected and how.
  6268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6269. /* end confdefs.h. */
  6270. #include <ac_nonexistent.h>
  6271. _ACEOF
  6272. if ac_fn_c_try_cpp "$LINENO"; then :
  6273. # Broken: success on invalid input.
  6274. continue
  6275. else
  6276. # Passes both tests.
  6277. ac_preproc_ok=:
  6278. break
  6279. fi
  6280. rm -f conftest.err conftest.i conftest.$ac_ext
  6281. done
  6282. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6283. rm -f conftest.i conftest.err conftest.$ac_ext
  6284. if $ac_preproc_ok; then :
  6285. else
  6286. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6287. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6288. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6289. See \`config.log' for more details" "$LINENO" 5; }
  6290. fi
  6291. ac_ext=c
  6292. ac_cpp='$CPP $CPPFLAGS'
  6293. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6294. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6295. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6297. $as_echo_n "checking for ANSI C header files... " >&6; }
  6298. if ${ac_cv_header_stdc+:} false; then :
  6299. $as_echo_n "(cached) " >&6
  6300. else
  6301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6302. /* end confdefs.h. */
  6303. #include <stdlib.h>
  6304. #include <stdarg.h>
  6305. #include <string.h>
  6306. #include <float.h>
  6307. int
  6308. main ()
  6309. {
  6310. ;
  6311. return 0;
  6312. }
  6313. _ACEOF
  6314. if ac_fn_c_try_compile "$LINENO"; then :
  6315. ac_cv_header_stdc=yes
  6316. else
  6317. ac_cv_header_stdc=no
  6318. fi
  6319. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6320. if test $ac_cv_header_stdc = yes; then
  6321. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6323. /* end confdefs.h. */
  6324. #include <string.h>
  6325. _ACEOF
  6326. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6327. $EGREP "memchr" >/dev/null 2>&1; then :
  6328. else
  6329. ac_cv_header_stdc=no
  6330. fi
  6331. rm -f conftest*
  6332. fi
  6333. if test $ac_cv_header_stdc = yes; then
  6334. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6336. /* end confdefs.h. */
  6337. #include <stdlib.h>
  6338. _ACEOF
  6339. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6340. $EGREP "free" >/dev/null 2>&1; then :
  6341. else
  6342. ac_cv_header_stdc=no
  6343. fi
  6344. rm -f conftest*
  6345. fi
  6346. if test $ac_cv_header_stdc = yes; then
  6347. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6348. if test "$cross_compiling" = yes; then :
  6349. :
  6350. else
  6351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6352. /* end confdefs.h. */
  6353. #include <ctype.h>
  6354. #include <stdlib.h>
  6355. #if ((' ' & 0x0FF) == 0x020)
  6356. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6357. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6358. #else
  6359. # define ISLOWER(c) \
  6360. (('a' <= (c) && (c) <= 'i') \
  6361. || ('j' <= (c) && (c) <= 'r') \
  6362. || ('s' <= (c) && (c) <= 'z'))
  6363. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6364. #endif
  6365. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6366. int
  6367. main ()
  6368. {
  6369. int i;
  6370. for (i = 0; i < 256; i++)
  6371. if (XOR (islower (i), ISLOWER (i))
  6372. || toupper (i) != TOUPPER (i))
  6373. return 2;
  6374. return 0;
  6375. }
  6376. _ACEOF
  6377. if ac_fn_c_try_run "$LINENO"; then :
  6378. else
  6379. ac_cv_header_stdc=no
  6380. fi
  6381. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6382. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6383. fi
  6384. fi
  6385. fi
  6386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6387. $as_echo "$ac_cv_header_stdc" >&6; }
  6388. if test $ac_cv_header_stdc = yes; then
  6389. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6390. fi
  6391. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6392. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6393. inttypes.h stdint.h unistd.h
  6394. do :
  6395. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6396. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6397. "
  6398. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6399. cat >>confdefs.h <<_ACEOF
  6400. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6401. _ACEOF
  6402. fi
  6403. done
  6404. for ac_header in dlfcn.h
  6405. do :
  6406. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6407. "
  6408. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6409. cat >>confdefs.h <<_ACEOF
  6410. #define HAVE_DLFCN_H 1
  6411. _ACEOF
  6412. fi
  6413. done
  6414. # Set options
  6415. enable_win32_dll=yes
  6416. case $host in
  6417. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6418. if test -n "$ac_tool_prefix"; then
  6419. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6420. set dummy ${ac_tool_prefix}as; ac_word=$2
  6421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6422. $as_echo_n "checking for $ac_word... " >&6; }
  6423. if ${ac_cv_prog_AS+:} false; then :
  6424. $as_echo_n "(cached) " >&6
  6425. else
  6426. if test -n "$AS"; then
  6427. ac_cv_prog_AS="$AS" # Let the user override the test.
  6428. else
  6429. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6430. for as_dir in $PATH
  6431. do
  6432. IFS=$as_save_IFS
  6433. test -z "$as_dir" && as_dir=.
  6434. for ac_exec_ext in '' $ac_executable_extensions; do
  6435. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6436. ac_cv_prog_AS="${ac_tool_prefix}as"
  6437. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6438. break 2
  6439. fi
  6440. done
  6441. done
  6442. IFS=$as_save_IFS
  6443. fi
  6444. fi
  6445. AS=$ac_cv_prog_AS
  6446. if test -n "$AS"; then
  6447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6448. $as_echo "$AS" >&6; }
  6449. else
  6450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6451. $as_echo "no" >&6; }
  6452. fi
  6453. fi
  6454. if test -z "$ac_cv_prog_AS"; then
  6455. ac_ct_AS=$AS
  6456. # Extract the first word of "as", so it can be a program name with args.
  6457. set dummy as; ac_word=$2
  6458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6459. $as_echo_n "checking for $ac_word... " >&6; }
  6460. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6461. $as_echo_n "(cached) " >&6
  6462. else
  6463. if test -n "$ac_ct_AS"; then
  6464. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6465. else
  6466. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6467. for as_dir in $PATH
  6468. do
  6469. IFS=$as_save_IFS
  6470. test -z "$as_dir" && as_dir=.
  6471. for ac_exec_ext in '' $ac_executable_extensions; do
  6472. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6473. ac_cv_prog_ac_ct_AS="as"
  6474. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6475. break 2
  6476. fi
  6477. done
  6478. done
  6479. IFS=$as_save_IFS
  6480. fi
  6481. fi
  6482. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6483. if test -n "$ac_ct_AS"; then
  6484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6485. $as_echo "$ac_ct_AS" >&6; }
  6486. else
  6487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6488. $as_echo "no" >&6; }
  6489. fi
  6490. if test "x$ac_ct_AS" = x; then
  6491. AS="false"
  6492. else
  6493. case $cross_compiling:$ac_tool_warned in
  6494. yes:)
  6495. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6496. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6497. ac_tool_warned=yes ;;
  6498. esac
  6499. AS=$ac_ct_AS
  6500. fi
  6501. else
  6502. AS="$ac_cv_prog_AS"
  6503. fi
  6504. if test -n "$ac_tool_prefix"; then
  6505. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6506. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6508. $as_echo_n "checking for $ac_word... " >&6; }
  6509. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6510. $as_echo_n "(cached) " >&6
  6511. else
  6512. if test -n "$DLLTOOL"; then
  6513. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6514. else
  6515. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6516. for as_dir in $PATH
  6517. do
  6518. IFS=$as_save_IFS
  6519. test -z "$as_dir" && as_dir=.
  6520. for ac_exec_ext in '' $ac_executable_extensions; do
  6521. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6522. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6523. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6524. break 2
  6525. fi
  6526. done
  6527. done
  6528. IFS=$as_save_IFS
  6529. fi
  6530. fi
  6531. DLLTOOL=$ac_cv_prog_DLLTOOL
  6532. if test -n "$DLLTOOL"; then
  6533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6534. $as_echo "$DLLTOOL" >&6; }
  6535. else
  6536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6537. $as_echo "no" >&6; }
  6538. fi
  6539. fi
  6540. if test -z "$ac_cv_prog_DLLTOOL"; then
  6541. ac_ct_DLLTOOL=$DLLTOOL
  6542. # Extract the first word of "dlltool", so it can be a program name with args.
  6543. set dummy dlltool; ac_word=$2
  6544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6545. $as_echo_n "checking for $ac_word... " >&6; }
  6546. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6547. $as_echo_n "(cached) " >&6
  6548. else
  6549. if test -n "$ac_ct_DLLTOOL"; then
  6550. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6551. else
  6552. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6553. for as_dir in $PATH
  6554. do
  6555. IFS=$as_save_IFS
  6556. test -z "$as_dir" && as_dir=.
  6557. for ac_exec_ext in '' $ac_executable_extensions; do
  6558. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6559. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6560. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6561. break 2
  6562. fi
  6563. done
  6564. done
  6565. IFS=$as_save_IFS
  6566. fi
  6567. fi
  6568. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6569. if test -n "$ac_ct_DLLTOOL"; then
  6570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6571. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6572. else
  6573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6574. $as_echo "no" >&6; }
  6575. fi
  6576. if test "x$ac_ct_DLLTOOL" = x; then
  6577. DLLTOOL="false"
  6578. else
  6579. case $cross_compiling:$ac_tool_warned in
  6580. yes:)
  6581. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6582. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6583. ac_tool_warned=yes ;;
  6584. esac
  6585. DLLTOOL=$ac_ct_DLLTOOL
  6586. fi
  6587. else
  6588. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6589. fi
  6590. if test -n "$ac_tool_prefix"; then
  6591. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6592. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6594. $as_echo_n "checking for $ac_word... " >&6; }
  6595. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6596. $as_echo_n "(cached) " >&6
  6597. else
  6598. if test -n "$OBJDUMP"; then
  6599. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6600. else
  6601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6602. for as_dir in $PATH
  6603. do
  6604. IFS=$as_save_IFS
  6605. test -z "$as_dir" && as_dir=.
  6606. for ac_exec_ext in '' $ac_executable_extensions; do
  6607. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6608. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6609. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6610. break 2
  6611. fi
  6612. done
  6613. done
  6614. IFS=$as_save_IFS
  6615. fi
  6616. fi
  6617. OBJDUMP=$ac_cv_prog_OBJDUMP
  6618. if test -n "$OBJDUMP"; then
  6619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6620. $as_echo "$OBJDUMP" >&6; }
  6621. else
  6622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6623. $as_echo "no" >&6; }
  6624. fi
  6625. fi
  6626. if test -z "$ac_cv_prog_OBJDUMP"; then
  6627. ac_ct_OBJDUMP=$OBJDUMP
  6628. # Extract the first word of "objdump", so it can be a program name with args.
  6629. set dummy objdump; ac_word=$2
  6630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6631. $as_echo_n "checking for $ac_word... " >&6; }
  6632. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6633. $as_echo_n "(cached) " >&6
  6634. else
  6635. if test -n "$ac_ct_OBJDUMP"; then
  6636. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6637. else
  6638. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6639. for as_dir in $PATH
  6640. do
  6641. IFS=$as_save_IFS
  6642. test -z "$as_dir" && as_dir=.
  6643. for ac_exec_ext in '' $ac_executable_extensions; do
  6644. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6645. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6646. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6647. break 2
  6648. fi
  6649. done
  6650. done
  6651. IFS=$as_save_IFS
  6652. fi
  6653. fi
  6654. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6655. if test -n "$ac_ct_OBJDUMP"; then
  6656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6657. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6658. else
  6659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6660. $as_echo "no" >&6; }
  6661. fi
  6662. if test "x$ac_ct_OBJDUMP" = x; then
  6663. OBJDUMP="false"
  6664. else
  6665. case $cross_compiling:$ac_tool_warned in
  6666. yes:)
  6667. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6668. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6669. ac_tool_warned=yes ;;
  6670. esac
  6671. OBJDUMP=$ac_ct_OBJDUMP
  6672. fi
  6673. else
  6674. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6675. fi
  6676. ;;
  6677. esac
  6678. test -z "$AS" && AS=as
  6679. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6680. test -z "$OBJDUMP" && OBJDUMP=objdump
  6681. enable_dlopen=no
  6682. # Check whether --enable-shared was given.
  6683. if test "${enable_shared+set}" = set; then :
  6684. enableval=$enable_shared; p=${PACKAGE-default}
  6685. case $enableval in
  6686. yes) enable_shared=yes ;;
  6687. no) enable_shared=no ;;
  6688. *)
  6689. enable_shared=no
  6690. # Look at the argument we got. We use all the common list separators.
  6691. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6692. for pkg in $enableval; do
  6693. IFS="$lt_save_ifs"
  6694. if test "X$pkg" = "X$p"; then
  6695. enable_shared=yes
  6696. fi
  6697. done
  6698. IFS="$lt_save_ifs"
  6699. ;;
  6700. esac
  6701. else
  6702. enable_shared=yes
  6703. fi
  6704. # Check whether --enable-static was given.
  6705. if test "${enable_static+set}" = set; then :
  6706. enableval=$enable_static; p=${PACKAGE-default}
  6707. case $enableval in
  6708. yes) enable_static=yes ;;
  6709. no) enable_static=no ;;
  6710. *)
  6711. enable_static=no
  6712. # Look at the argument we got. We use all the common list separators.
  6713. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6714. for pkg in $enableval; do
  6715. IFS="$lt_save_ifs"
  6716. if test "X$pkg" = "X$p"; then
  6717. enable_static=yes
  6718. fi
  6719. done
  6720. IFS="$lt_save_ifs"
  6721. ;;
  6722. esac
  6723. else
  6724. enable_static=yes
  6725. fi
  6726. # Check whether --with-pic was given.
  6727. if test "${with_pic+set}" = set; then :
  6728. withval=$with_pic; lt_p=${PACKAGE-default}
  6729. case $withval in
  6730. yes|no) pic_mode=$withval ;;
  6731. *)
  6732. pic_mode=default
  6733. # Look at the argument we got. We use all the common list separators.
  6734. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6735. for lt_pkg in $withval; do
  6736. IFS="$lt_save_ifs"
  6737. if test "X$lt_pkg" = "X$lt_p"; then
  6738. pic_mode=yes
  6739. fi
  6740. done
  6741. IFS="$lt_save_ifs"
  6742. ;;
  6743. esac
  6744. else
  6745. pic_mode=default
  6746. fi
  6747. test -z "$pic_mode" && pic_mode=default
  6748. # Check whether --enable-fast-install was given.
  6749. if test "${enable_fast_install+set}" = set; then :
  6750. enableval=$enable_fast_install; p=${PACKAGE-default}
  6751. case $enableval in
  6752. yes) enable_fast_install=yes ;;
  6753. no) enable_fast_install=no ;;
  6754. *)
  6755. enable_fast_install=no
  6756. # Look at the argument we got. We use all the common list separators.
  6757. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6758. for pkg in $enableval; do
  6759. IFS="$lt_save_ifs"
  6760. if test "X$pkg" = "X$p"; then
  6761. enable_fast_install=yes
  6762. fi
  6763. done
  6764. IFS="$lt_save_ifs"
  6765. ;;
  6766. esac
  6767. else
  6768. enable_fast_install=yes
  6769. fi
  6770. # This can be used to rebuild libtool when needed
  6771. LIBTOOL_DEPS="$ltmain"
  6772. # Always use our own libtool.
  6773. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6774. test -z "$LN_S" && LN_S="ln -s"
  6775. if test -n "${ZSH_VERSION+set}" ; then
  6776. setopt NO_GLOB_SUBST
  6777. fi
  6778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6779. $as_echo_n "checking for objdir... " >&6; }
  6780. if ${lt_cv_objdir+:} false; then :
  6781. $as_echo_n "(cached) " >&6
  6782. else
  6783. rm -f .libs 2>/dev/null
  6784. mkdir .libs 2>/dev/null
  6785. if test -d .libs; then
  6786. lt_cv_objdir=.libs
  6787. else
  6788. # MS-DOS does not allow filenames that begin with a dot.
  6789. lt_cv_objdir=_libs
  6790. fi
  6791. rmdir .libs 2>/dev/null
  6792. fi
  6793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6794. $as_echo "$lt_cv_objdir" >&6; }
  6795. objdir=$lt_cv_objdir
  6796. cat >>confdefs.h <<_ACEOF
  6797. #define LT_OBJDIR "$lt_cv_objdir/"
  6798. _ACEOF
  6799. case $host_os in
  6800. aix3*)
  6801. # AIX sometimes has problems with the GCC collect2 program. For some
  6802. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6803. # vanish in a puff of smoke.
  6804. if test "X${COLLECT_NAMES+set}" != Xset; then
  6805. COLLECT_NAMES=
  6806. export COLLECT_NAMES
  6807. fi
  6808. ;;
  6809. esac
  6810. # Global variables:
  6811. ofile=libtool
  6812. can_build_shared=yes
  6813. # All known linkers require a `.a' archive for static linking (except MSVC,
  6814. # which needs '.lib').
  6815. libext=a
  6816. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6817. old_CC="$CC"
  6818. old_CFLAGS="$CFLAGS"
  6819. # Set sane defaults for various variables
  6820. test -z "$CC" && CC=cc
  6821. test -z "$LTCC" && LTCC=$CC
  6822. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6823. test -z "$LD" && LD=ld
  6824. test -z "$ac_objext" && ac_objext=o
  6825. for cc_temp in $compiler""; do
  6826. case $cc_temp in
  6827. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6828. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6829. \-*) ;;
  6830. *) break;;
  6831. esac
  6832. done
  6833. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6834. # Only perform the check for file, if the check method requires it
  6835. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6836. case $deplibs_check_method in
  6837. file_magic*)
  6838. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6840. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6841. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6842. $as_echo_n "(cached) " >&6
  6843. else
  6844. case $MAGIC_CMD in
  6845. [\\/*] | ?:[\\/]*)
  6846. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6847. ;;
  6848. *)
  6849. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6850. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6851. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6852. for ac_dir in $ac_dummy; do
  6853. IFS="$lt_save_ifs"
  6854. test -z "$ac_dir" && ac_dir=.
  6855. if test -f $ac_dir/${ac_tool_prefix}file; then
  6856. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6857. if test -n "$file_magic_test_file"; then
  6858. case $deplibs_check_method in
  6859. "file_magic "*)
  6860. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6861. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6862. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6863. $EGREP "$file_magic_regex" > /dev/null; then
  6864. :
  6865. else
  6866. cat <<_LT_EOF 1>&2
  6867. *** Warning: the command libtool uses to detect shared libraries,
  6868. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6869. *** The result is that libtool may fail to recognize shared libraries
  6870. *** as such. This will affect the creation of libtool libraries that
  6871. *** depend on shared libraries, but programs linked with such libtool
  6872. *** libraries will work regardless of this problem. Nevertheless, you
  6873. *** may want to report the problem to your system manager and/or to
  6874. *** bug-libtool@gnu.org
  6875. _LT_EOF
  6876. fi ;;
  6877. esac
  6878. fi
  6879. break
  6880. fi
  6881. done
  6882. IFS="$lt_save_ifs"
  6883. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6884. ;;
  6885. esac
  6886. fi
  6887. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6888. if test -n "$MAGIC_CMD"; then
  6889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6890. $as_echo "$MAGIC_CMD" >&6; }
  6891. else
  6892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6893. $as_echo "no" >&6; }
  6894. fi
  6895. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6896. if test -n "$ac_tool_prefix"; then
  6897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6898. $as_echo_n "checking for file... " >&6; }
  6899. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6900. $as_echo_n "(cached) " >&6
  6901. else
  6902. case $MAGIC_CMD in
  6903. [\\/*] | ?:[\\/]*)
  6904. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6905. ;;
  6906. *)
  6907. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6908. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6909. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6910. for ac_dir in $ac_dummy; do
  6911. IFS="$lt_save_ifs"
  6912. test -z "$ac_dir" && ac_dir=.
  6913. if test -f $ac_dir/file; then
  6914. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6915. if test -n "$file_magic_test_file"; then
  6916. case $deplibs_check_method in
  6917. "file_magic "*)
  6918. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6919. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6920. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6921. $EGREP "$file_magic_regex" > /dev/null; then
  6922. :
  6923. else
  6924. cat <<_LT_EOF 1>&2
  6925. *** Warning: the command libtool uses to detect shared libraries,
  6926. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6927. *** The result is that libtool may fail to recognize shared libraries
  6928. *** as such. This will affect the creation of libtool libraries that
  6929. *** depend on shared libraries, but programs linked with such libtool
  6930. *** libraries will work regardless of this problem. Nevertheless, you
  6931. *** may want to report the problem to your system manager and/or to
  6932. *** bug-libtool@gnu.org
  6933. _LT_EOF
  6934. fi ;;
  6935. esac
  6936. fi
  6937. break
  6938. fi
  6939. done
  6940. IFS="$lt_save_ifs"
  6941. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6942. ;;
  6943. esac
  6944. fi
  6945. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6946. if test -n "$MAGIC_CMD"; then
  6947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6948. $as_echo "$MAGIC_CMD" >&6; }
  6949. else
  6950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6951. $as_echo "no" >&6; }
  6952. fi
  6953. else
  6954. MAGIC_CMD=:
  6955. fi
  6956. fi
  6957. fi
  6958. ;;
  6959. esac
  6960. # Use C for the default configuration in the libtool script
  6961. lt_save_CC="$CC"
  6962. ac_ext=c
  6963. ac_cpp='$CPP $CPPFLAGS'
  6964. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6965. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6966. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6967. # Source file extension for C test sources.
  6968. ac_ext=c
  6969. # Object file extension for compiled C test sources.
  6970. objext=o
  6971. objext=$objext
  6972. # Code to be used in simple compile tests
  6973. lt_simple_compile_test_code="int some_variable = 0;"
  6974. # Code to be used in simple link tests
  6975. lt_simple_link_test_code='int main(){return(0);}'
  6976. # If no C compiler was specified, use CC.
  6977. LTCC=${LTCC-"$CC"}
  6978. # If no C compiler flags were specified, use CFLAGS.
  6979. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6980. # Allow CC to be a program name with arguments.
  6981. compiler=$CC
  6982. # Save the default compiler, since it gets overwritten when the other
  6983. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6984. compiler_DEFAULT=$CC
  6985. # save warnings/boilerplate of simple test code
  6986. ac_outfile=conftest.$ac_objext
  6987. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6988. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6989. _lt_compiler_boilerplate=`cat conftest.err`
  6990. $RM conftest*
  6991. ac_outfile=conftest.$ac_objext
  6992. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6993. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6994. _lt_linker_boilerplate=`cat conftest.err`
  6995. $RM -r conftest*
  6996. ## CAVEAT EMPTOR:
  6997. ## There is no encapsulation within the following macros, do not change
  6998. ## the running order or otherwise move them around unless you know exactly
  6999. ## what you are doing...
  7000. if test -n "$compiler"; then
  7001. lt_prog_compiler_no_builtin_flag=
  7002. if test "$GCC" = yes; then
  7003. case $cc_basename in
  7004. nvcc*)
  7005. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7006. *)
  7007. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7008. esac
  7009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7010. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7011. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7012. $as_echo_n "(cached) " >&6
  7013. else
  7014. lt_cv_prog_compiler_rtti_exceptions=no
  7015. ac_outfile=conftest.$ac_objext
  7016. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7017. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7018. # Insert the option either (1) after the last *FLAGS variable, or
  7019. # (2) before a word containing "conftest.", or (3) at the end.
  7020. # Note that $ac_compile itself does not contain backslashes and begins
  7021. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7022. # The option is referenced via a variable to avoid confusing sed.
  7023. lt_compile=`echo "$ac_compile" | $SED \
  7024. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7025. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7026. -e 's:$: $lt_compiler_flag:'`
  7027. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7028. (eval "$lt_compile" 2>conftest.err)
  7029. ac_status=$?
  7030. cat conftest.err >&5
  7031. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7032. if (exit $ac_status) && test -s "$ac_outfile"; then
  7033. # The compiler can only warn and ignore the option if not recognized
  7034. # So say no if there are warnings other than the usual output.
  7035. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7036. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7037. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7038. lt_cv_prog_compiler_rtti_exceptions=yes
  7039. fi
  7040. fi
  7041. $RM conftest*
  7042. fi
  7043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7044. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7045. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7046. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7047. else
  7048. :
  7049. fi
  7050. fi
  7051. lt_prog_compiler_wl=
  7052. lt_prog_compiler_pic=
  7053. lt_prog_compiler_static=
  7054. if test "$GCC" = yes; then
  7055. lt_prog_compiler_wl='-Wl,'
  7056. lt_prog_compiler_static='-static'
  7057. case $host_os in
  7058. aix*)
  7059. # All AIX code is PIC.
  7060. if test "$host_cpu" = ia64; then
  7061. # AIX 5 now supports IA64 processor
  7062. lt_prog_compiler_static='-Bstatic'
  7063. fi
  7064. ;;
  7065. amigaos*)
  7066. case $host_cpu in
  7067. powerpc)
  7068. # see comment about AmigaOS4 .so support
  7069. lt_prog_compiler_pic='-fPIC'
  7070. ;;
  7071. m68k)
  7072. # FIXME: we need at least 68020 code to build shared libraries, but
  7073. # adding the `-m68020' flag to GCC prevents building anything better,
  7074. # like `-m68040'.
  7075. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7076. ;;
  7077. esac
  7078. ;;
  7079. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7080. # PIC is the default for these OSes.
  7081. ;;
  7082. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7083. # This hack is so that the source file can tell whether it is being
  7084. # built for inclusion in a dll (and should export symbols for example).
  7085. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7086. # (--disable-auto-import) libraries
  7087. lt_prog_compiler_pic='-DDLL_EXPORT'
  7088. ;;
  7089. darwin* | rhapsody*)
  7090. # PIC is the default on this platform
  7091. # Common symbols not allowed in MH_DYLIB files
  7092. lt_prog_compiler_pic='-fno-common'
  7093. ;;
  7094. haiku*)
  7095. # PIC is the default for Haiku.
  7096. # The "-static" flag exists, but is broken.
  7097. lt_prog_compiler_static=
  7098. ;;
  7099. hpux*)
  7100. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7101. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7102. # sets the default TLS model and affects inlining.
  7103. case $host_cpu in
  7104. hppa*64*)
  7105. # +Z the default
  7106. ;;
  7107. *)
  7108. lt_prog_compiler_pic='-fPIC'
  7109. ;;
  7110. esac
  7111. ;;
  7112. interix[3-9]*)
  7113. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7114. # Instead, we relocate shared libraries at runtime.
  7115. ;;
  7116. msdosdjgpp*)
  7117. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7118. # on systems that don't support them.
  7119. lt_prog_compiler_can_build_shared=no
  7120. enable_shared=no
  7121. ;;
  7122. *nto* | *qnx*)
  7123. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7124. # it will coredump.
  7125. lt_prog_compiler_pic='-fPIC -shared'
  7126. ;;
  7127. sysv4*MP*)
  7128. if test -d /usr/nec; then
  7129. lt_prog_compiler_pic=-Kconform_pic
  7130. fi
  7131. ;;
  7132. *)
  7133. lt_prog_compiler_pic='-fPIC'
  7134. ;;
  7135. esac
  7136. case $cc_basename in
  7137. nvcc*) # Cuda Compiler Driver 2.2
  7138. lt_prog_compiler_wl='-Xlinker '
  7139. if test -n "$lt_prog_compiler_pic"; then
  7140. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7141. fi
  7142. ;;
  7143. esac
  7144. else
  7145. # PORTME Check for flag to pass linker flags through the system compiler.
  7146. case $host_os in
  7147. aix*)
  7148. lt_prog_compiler_wl='-Wl,'
  7149. if test "$host_cpu" = ia64; then
  7150. # AIX 5 now supports IA64 processor
  7151. lt_prog_compiler_static='-Bstatic'
  7152. else
  7153. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7154. fi
  7155. ;;
  7156. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7157. # This hack is so that the source file can tell whether it is being
  7158. # built for inclusion in a dll (and should export symbols for example).
  7159. lt_prog_compiler_pic='-DDLL_EXPORT'
  7160. ;;
  7161. hpux9* | hpux10* | hpux11*)
  7162. lt_prog_compiler_wl='-Wl,'
  7163. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7164. # not for PA HP-UX.
  7165. case $host_cpu in
  7166. hppa*64*|ia64*)
  7167. # +Z the default
  7168. ;;
  7169. *)
  7170. lt_prog_compiler_pic='+Z'
  7171. ;;
  7172. esac
  7173. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7174. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7175. ;;
  7176. irix5* | irix6* | nonstopux*)
  7177. lt_prog_compiler_wl='-Wl,'
  7178. # PIC (with -KPIC) is the default.
  7179. lt_prog_compiler_static='-non_shared'
  7180. ;;
  7181. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7182. case $cc_basename in
  7183. # old Intel for x86_64 which still supported -KPIC.
  7184. ecc*)
  7185. lt_prog_compiler_wl='-Wl,'
  7186. lt_prog_compiler_pic='-KPIC'
  7187. lt_prog_compiler_static='-static'
  7188. ;;
  7189. # icc used to be incompatible with GCC.
  7190. # ICC 10 doesn't accept -KPIC any more.
  7191. icc* | ifort*)
  7192. lt_prog_compiler_wl='-Wl,'
  7193. lt_prog_compiler_pic='-fPIC'
  7194. lt_prog_compiler_static='-static'
  7195. ;;
  7196. # Lahey Fortran 8.1.
  7197. lf95*)
  7198. lt_prog_compiler_wl='-Wl,'
  7199. lt_prog_compiler_pic='--shared'
  7200. lt_prog_compiler_static='--static'
  7201. ;;
  7202. nagfor*)
  7203. # NAG Fortran compiler
  7204. lt_prog_compiler_wl='-Wl,-Wl,,'
  7205. lt_prog_compiler_pic='-PIC'
  7206. lt_prog_compiler_static='-Bstatic'
  7207. ;;
  7208. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7209. # Portland Group compilers (*not* the Pentium gcc compiler,
  7210. # which looks to be a dead project)
  7211. lt_prog_compiler_wl='-Wl,'
  7212. lt_prog_compiler_pic='-fpic'
  7213. lt_prog_compiler_static='-Bstatic'
  7214. ;;
  7215. ccc*)
  7216. lt_prog_compiler_wl='-Wl,'
  7217. # All Alpha code is PIC.
  7218. lt_prog_compiler_static='-non_shared'
  7219. ;;
  7220. xl* | bgxl* | bgf* | mpixl*)
  7221. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7222. lt_prog_compiler_wl='-Wl,'
  7223. lt_prog_compiler_pic='-qpic'
  7224. lt_prog_compiler_static='-qstaticlink'
  7225. ;;
  7226. *)
  7227. case `$CC -V 2>&1 | sed 5q` in
  7228. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7229. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7230. lt_prog_compiler_pic='-KPIC'
  7231. lt_prog_compiler_static='-Bstatic'
  7232. lt_prog_compiler_wl=''
  7233. ;;
  7234. *Sun\ F* | *Sun*Fortran*)
  7235. lt_prog_compiler_pic='-KPIC'
  7236. lt_prog_compiler_static='-Bstatic'
  7237. lt_prog_compiler_wl='-Qoption ld '
  7238. ;;
  7239. *Sun\ C*)
  7240. # Sun C 5.9
  7241. lt_prog_compiler_pic='-KPIC'
  7242. lt_prog_compiler_static='-Bstatic'
  7243. lt_prog_compiler_wl='-Wl,'
  7244. ;;
  7245. *Intel*\ [CF]*Compiler*)
  7246. lt_prog_compiler_wl='-Wl,'
  7247. lt_prog_compiler_pic='-fPIC'
  7248. lt_prog_compiler_static='-static'
  7249. ;;
  7250. *Portland\ Group*)
  7251. lt_prog_compiler_wl='-Wl,'
  7252. lt_prog_compiler_pic='-fpic'
  7253. lt_prog_compiler_static='-Bstatic'
  7254. ;;
  7255. esac
  7256. ;;
  7257. esac
  7258. ;;
  7259. newsos6)
  7260. lt_prog_compiler_pic='-KPIC'
  7261. lt_prog_compiler_static='-Bstatic'
  7262. ;;
  7263. *nto* | *qnx*)
  7264. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7265. # it will coredump.
  7266. lt_prog_compiler_pic='-fPIC -shared'
  7267. ;;
  7268. osf3* | osf4* | osf5*)
  7269. lt_prog_compiler_wl='-Wl,'
  7270. # All OSF/1 code is PIC.
  7271. lt_prog_compiler_static='-non_shared'
  7272. ;;
  7273. rdos*)
  7274. lt_prog_compiler_static='-non_shared'
  7275. ;;
  7276. solaris*)
  7277. lt_prog_compiler_pic='-KPIC'
  7278. lt_prog_compiler_static='-Bstatic'
  7279. case $cc_basename in
  7280. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7281. lt_prog_compiler_wl='-Qoption ld ';;
  7282. *)
  7283. lt_prog_compiler_wl='-Wl,';;
  7284. esac
  7285. ;;
  7286. sunos4*)
  7287. lt_prog_compiler_wl='-Qoption ld '
  7288. lt_prog_compiler_pic='-PIC'
  7289. lt_prog_compiler_static='-Bstatic'
  7290. ;;
  7291. sysv4 | sysv4.2uw2* | sysv4.3*)
  7292. lt_prog_compiler_wl='-Wl,'
  7293. lt_prog_compiler_pic='-KPIC'
  7294. lt_prog_compiler_static='-Bstatic'
  7295. ;;
  7296. sysv4*MP*)
  7297. if test -d /usr/nec ;then
  7298. lt_prog_compiler_pic='-Kconform_pic'
  7299. lt_prog_compiler_static='-Bstatic'
  7300. fi
  7301. ;;
  7302. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7303. lt_prog_compiler_wl='-Wl,'
  7304. lt_prog_compiler_pic='-KPIC'
  7305. lt_prog_compiler_static='-Bstatic'
  7306. ;;
  7307. unicos*)
  7308. lt_prog_compiler_wl='-Wl,'
  7309. lt_prog_compiler_can_build_shared=no
  7310. ;;
  7311. uts4*)
  7312. lt_prog_compiler_pic='-pic'
  7313. lt_prog_compiler_static='-Bstatic'
  7314. ;;
  7315. *)
  7316. lt_prog_compiler_can_build_shared=no
  7317. ;;
  7318. esac
  7319. fi
  7320. case $host_os in
  7321. # For platforms which do not support PIC, -DPIC is meaningless:
  7322. *djgpp*)
  7323. lt_prog_compiler_pic=
  7324. ;;
  7325. *)
  7326. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7327. ;;
  7328. esac
  7329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7330. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7331. if ${lt_cv_prog_compiler_pic+:} false; then :
  7332. $as_echo_n "(cached) " >&6
  7333. else
  7334. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7335. fi
  7336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7337. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7338. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7339. #
  7340. # Check to make sure the PIC flag actually works.
  7341. #
  7342. if test -n "$lt_prog_compiler_pic"; then
  7343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7344. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7345. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7346. $as_echo_n "(cached) " >&6
  7347. else
  7348. lt_cv_prog_compiler_pic_works=no
  7349. ac_outfile=conftest.$ac_objext
  7350. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7351. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7352. # Insert the option either (1) after the last *FLAGS variable, or
  7353. # (2) before a word containing "conftest.", or (3) at the end.
  7354. # Note that $ac_compile itself does not contain backslashes and begins
  7355. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7356. # The option is referenced via a variable to avoid confusing sed.
  7357. lt_compile=`echo "$ac_compile" | $SED \
  7358. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7359. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7360. -e 's:$: $lt_compiler_flag:'`
  7361. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7362. (eval "$lt_compile" 2>conftest.err)
  7363. ac_status=$?
  7364. cat conftest.err >&5
  7365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7366. if (exit $ac_status) && test -s "$ac_outfile"; then
  7367. # The compiler can only warn and ignore the option if not recognized
  7368. # So say no if there are warnings other than the usual output.
  7369. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7370. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7371. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7372. lt_cv_prog_compiler_pic_works=yes
  7373. fi
  7374. fi
  7375. $RM conftest*
  7376. fi
  7377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7378. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7379. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7380. case $lt_prog_compiler_pic in
  7381. "" | " "*) ;;
  7382. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7383. esac
  7384. else
  7385. lt_prog_compiler_pic=
  7386. lt_prog_compiler_can_build_shared=no
  7387. fi
  7388. fi
  7389. #
  7390. # Check to make sure the static flag actually works.
  7391. #
  7392. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7394. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7395. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7396. $as_echo_n "(cached) " >&6
  7397. else
  7398. lt_cv_prog_compiler_static_works=no
  7399. save_LDFLAGS="$LDFLAGS"
  7400. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7401. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7402. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7403. # The linker can only warn and ignore the option if not recognized
  7404. # So say no if there are warnings
  7405. if test -s conftest.err; then
  7406. # Append any errors to the config.log.
  7407. cat conftest.err 1>&5
  7408. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7409. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7410. if diff conftest.exp conftest.er2 >/dev/null; then
  7411. lt_cv_prog_compiler_static_works=yes
  7412. fi
  7413. else
  7414. lt_cv_prog_compiler_static_works=yes
  7415. fi
  7416. fi
  7417. $RM -r conftest*
  7418. LDFLAGS="$save_LDFLAGS"
  7419. fi
  7420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7421. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7422. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7423. :
  7424. else
  7425. lt_prog_compiler_static=
  7426. fi
  7427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7428. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7429. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7430. $as_echo_n "(cached) " >&6
  7431. else
  7432. lt_cv_prog_compiler_c_o=no
  7433. $RM -r conftest 2>/dev/null
  7434. mkdir conftest
  7435. cd conftest
  7436. mkdir out
  7437. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7438. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7439. # Insert the option either (1) after the last *FLAGS variable, or
  7440. # (2) before a word containing "conftest.", or (3) at the end.
  7441. # Note that $ac_compile itself does not contain backslashes and begins
  7442. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7443. lt_compile=`echo "$ac_compile" | $SED \
  7444. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7445. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7446. -e 's:$: $lt_compiler_flag:'`
  7447. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7448. (eval "$lt_compile" 2>out/conftest.err)
  7449. ac_status=$?
  7450. cat out/conftest.err >&5
  7451. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7452. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7453. then
  7454. # The compiler can only warn and ignore the option if not recognized
  7455. # So say no if there are warnings
  7456. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7457. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7458. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7459. lt_cv_prog_compiler_c_o=yes
  7460. fi
  7461. fi
  7462. chmod u+w . 2>&5
  7463. $RM conftest*
  7464. # SGI C++ compiler will create directory out/ii_files/ for
  7465. # template instantiation
  7466. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7467. $RM out/* && rmdir out
  7468. cd ..
  7469. $RM -r conftest
  7470. $RM conftest*
  7471. fi
  7472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7473. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7475. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7476. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7477. $as_echo_n "(cached) " >&6
  7478. else
  7479. lt_cv_prog_compiler_c_o=no
  7480. $RM -r conftest 2>/dev/null
  7481. mkdir conftest
  7482. cd conftest
  7483. mkdir out
  7484. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7485. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7486. # Insert the option either (1) after the last *FLAGS variable, or
  7487. # (2) before a word containing "conftest.", or (3) at the end.
  7488. # Note that $ac_compile itself does not contain backslashes and begins
  7489. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7490. lt_compile=`echo "$ac_compile" | $SED \
  7491. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7492. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7493. -e 's:$: $lt_compiler_flag:'`
  7494. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7495. (eval "$lt_compile" 2>out/conftest.err)
  7496. ac_status=$?
  7497. cat out/conftest.err >&5
  7498. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7499. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7500. then
  7501. # The compiler can only warn and ignore the option if not recognized
  7502. # So say no if there are warnings
  7503. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7504. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7505. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7506. lt_cv_prog_compiler_c_o=yes
  7507. fi
  7508. fi
  7509. chmod u+w . 2>&5
  7510. $RM conftest*
  7511. # SGI C++ compiler will create directory out/ii_files/ for
  7512. # template instantiation
  7513. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7514. $RM out/* && rmdir out
  7515. cd ..
  7516. $RM -r conftest
  7517. $RM conftest*
  7518. fi
  7519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7520. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7521. hard_links="nottested"
  7522. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7523. # do not overwrite the value of need_locks provided by the user
  7524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7525. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7526. hard_links=yes
  7527. $RM conftest*
  7528. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7529. touch conftest.a
  7530. ln conftest.a conftest.b 2>&5 || hard_links=no
  7531. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7533. $as_echo "$hard_links" >&6; }
  7534. if test "$hard_links" = no; then
  7535. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7536. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7537. need_locks=warn
  7538. fi
  7539. else
  7540. need_locks=no
  7541. fi
  7542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7543. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7544. runpath_var=
  7545. allow_undefined_flag=
  7546. always_export_symbols=no
  7547. archive_cmds=
  7548. archive_expsym_cmds=
  7549. compiler_needs_object=no
  7550. enable_shared_with_static_runtimes=no
  7551. export_dynamic_flag_spec=
  7552. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7553. hardcode_automatic=no
  7554. hardcode_direct=no
  7555. hardcode_direct_absolute=no
  7556. hardcode_libdir_flag_spec=
  7557. hardcode_libdir_separator=
  7558. hardcode_minus_L=no
  7559. hardcode_shlibpath_var=unsupported
  7560. inherit_rpath=no
  7561. link_all_deplibs=unknown
  7562. module_cmds=
  7563. module_expsym_cmds=
  7564. old_archive_from_new_cmds=
  7565. old_archive_from_expsyms_cmds=
  7566. thread_safe_flag_spec=
  7567. whole_archive_flag_spec=
  7568. # include_expsyms should be a list of space-separated symbols to be *always*
  7569. # included in the symbol list
  7570. include_expsyms=
  7571. # exclude_expsyms can be an extended regexp of symbols to exclude
  7572. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7573. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7574. # as well as any symbol that contains `d'.
  7575. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7576. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7577. # platforms (ab)use it in PIC code, but their linkers get confused if
  7578. # the symbol is explicitly referenced. Since portable code cannot
  7579. # rely on this symbol name, it's probably fine to never include it in
  7580. # preloaded symbol tables.
  7581. # Exclude shared library initialization/finalization symbols.
  7582. extract_expsyms_cmds=
  7583. case $host_os in
  7584. cygwin* | mingw* | pw32* | cegcc*)
  7585. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7586. # When not using gcc, we currently assume that we are using
  7587. # Microsoft Visual C++.
  7588. if test "$GCC" != yes; then
  7589. with_gnu_ld=no
  7590. fi
  7591. ;;
  7592. interix*)
  7593. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7594. with_gnu_ld=yes
  7595. ;;
  7596. openbsd*)
  7597. with_gnu_ld=no
  7598. ;;
  7599. esac
  7600. ld_shlibs=yes
  7601. # On some targets, GNU ld is compatible enough with the native linker
  7602. # that we're better off using the native interface for both.
  7603. lt_use_gnu_ld_interface=no
  7604. if test "$with_gnu_ld" = yes; then
  7605. case $host_os in
  7606. aix*)
  7607. # The AIX port of GNU ld has always aspired to compatibility
  7608. # with the native linker. However, as the warning in the GNU ld
  7609. # block says, versions before 2.19.5* couldn't really create working
  7610. # shared libraries, regardless of the interface used.
  7611. case `$LD -v 2>&1` in
  7612. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7613. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7614. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7615. *)
  7616. lt_use_gnu_ld_interface=yes
  7617. ;;
  7618. esac
  7619. ;;
  7620. *)
  7621. lt_use_gnu_ld_interface=yes
  7622. ;;
  7623. esac
  7624. fi
  7625. if test "$lt_use_gnu_ld_interface" = yes; then
  7626. # If archive_cmds runs LD, not CC, wlarc should be empty
  7627. wlarc='${wl}'
  7628. # Set some defaults for GNU ld with shared library support. These
  7629. # are reset later if shared libraries are not supported. Putting them
  7630. # here allows them to be overridden if necessary.
  7631. runpath_var=LD_RUN_PATH
  7632. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7633. export_dynamic_flag_spec='${wl}--export-dynamic'
  7634. # ancient GNU ld didn't support --whole-archive et. al.
  7635. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7636. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7637. else
  7638. whole_archive_flag_spec=
  7639. fi
  7640. supports_anon_versioning=no
  7641. case `$LD -v 2>&1` in
  7642. *GNU\ gold*) supports_anon_versioning=yes ;;
  7643. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7644. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7645. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7646. *\ 2.11.*) ;; # other 2.11 versions
  7647. *) supports_anon_versioning=yes ;;
  7648. esac
  7649. # See if GNU ld supports shared libraries.
  7650. case $host_os in
  7651. aix[3-9]*)
  7652. # On AIX/PPC, the GNU linker is very broken
  7653. if test "$host_cpu" != ia64; then
  7654. ld_shlibs=no
  7655. cat <<_LT_EOF 1>&2
  7656. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7657. *** to be unable to reliably create shared libraries on AIX.
  7658. *** Therefore, libtool is disabling shared libraries support. If you
  7659. *** really care for shared libraries, you may want to install binutils
  7660. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7661. *** You will then need to restart the configuration process.
  7662. _LT_EOF
  7663. fi
  7664. ;;
  7665. amigaos*)
  7666. case $host_cpu in
  7667. powerpc)
  7668. # see comment about AmigaOS4 .so support
  7669. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7670. archive_expsym_cmds=''
  7671. ;;
  7672. m68k)
  7673. 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)'
  7674. hardcode_libdir_flag_spec='-L$libdir'
  7675. hardcode_minus_L=yes
  7676. ;;
  7677. esac
  7678. ;;
  7679. beos*)
  7680. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7681. allow_undefined_flag=unsupported
  7682. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7683. # support --undefined. This deserves some investigation. FIXME
  7684. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7685. else
  7686. ld_shlibs=no
  7687. fi
  7688. ;;
  7689. cygwin* | mingw* | pw32* | cegcc*)
  7690. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7691. # as there is no search path for DLLs.
  7692. hardcode_libdir_flag_spec='-L$libdir'
  7693. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7694. allow_undefined_flag=unsupported
  7695. always_export_symbols=no
  7696. enable_shared_with_static_runtimes=yes
  7697. 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'
  7698. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7699. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7700. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7701. # If the export-symbols file already is a .def file (1st line
  7702. # is EXPORTS), use it as is; otherwise, prepend...
  7703. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7704. cp $export_symbols $output_objdir/$soname.def;
  7705. else
  7706. echo EXPORTS > $output_objdir/$soname.def;
  7707. cat $export_symbols >> $output_objdir/$soname.def;
  7708. fi~
  7709. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7710. else
  7711. ld_shlibs=no
  7712. fi
  7713. ;;
  7714. haiku*)
  7715. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7716. link_all_deplibs=yes
  7717. ;;
  7718. interix[3-9]*)
  7719. hardcode_direct=no
  7720. hardcode_shlibpath_var=no
  7721. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7722. export_dynamic_flag_spec='${wl}-E'
  7723. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7724. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7725. # default) and relocated if they conflict, which is a slow very memory
  7726. # consuming and fragmenting process. To avoid this, we pick a random,
  7727. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7728. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7729. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7730. 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'
  7731. ;;
  7732. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7733. tmp_diet=no
  7734. if test "$host_os" = linux-dietlibc; then
  7735. case $cc_basename in
  7736. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7737. esac
  7738. fi
  7739. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7740. && test "$tmp_diet" = no
  7741. then
  7742. tmp_addflag=' $pic_flag'
  7743. tmp_sharedflag='-shared'
  7744. case $cc_basename,$host_cpu in
  7745. pgcc*) # Portland Group C compiler
  7746. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7747. tmp_addflag=' $pic_flag'
  7748. ;;
  7749. pgf77* | pgf90* | pgf95* | pgfortran*)
  7750. # Portland Group f77 and f90 compilers
  7751. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7752. tmp_addflag=' $pic_flag -Mnomain' ;;
  7753. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7754. tmp_addflag=' -i_dynamic' ;;
  7755. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7756. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7757. ifc* | ifort*) # Intel Fortran compiler
  7758. tmp_addflag=' -nofor_main' ;;
  7759. lf95*) # Lahey Fortran 8.1
  7760. whole_archive_flag_spec=
  7761. tmp_sharedflag='--shared' ;;
  7762. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7763. tmp_sharedflag='-qmkshrobj'
  7764. tmp_addflag= ;;
  7765. nvcc*) # Cuda Compiler Driver 2.2
  7766. 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'
  7767. compiler_needs_object=yes
  7768. ;;
  7769. esac
  7770. case `$CC -V 2>&1 | sed 5q` in
  7771. *Sun\ C*) # Sun C 5.9
  7772. 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'
  7773. compiler_needs_object=yes
  7774. tmp_sharedflag='-G' ;;
  7775. *Sun\ F*) # Sun Fortran 8.3
  7776. tmp_sharedflag='-G' ;;
  7777. esac
  7778. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7779. if test "x$supports_anon_versioning" = xyes; then
  7780. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7781. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7782. echo "local: *; };" >> $output_objdir/$libname.ver~
  7783. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7784. fi
  7785. case $cc_basename in
  7786. xlf* | bgf* | bgxlf* | mpixlf*)
  7787. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7788. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7789. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7790. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7791. if test "x$supports_anon_versioning" = xyes; then
  7792. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7793. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7794. echo "local: *; };" >> $output_objdir/$libname.ver~
  7795. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7796. fi
  7797. ;;
  7798. esac
  7799. else
  7800. ld_shlibs=no
  7801. fi
  7802. ;;
  7803. netbsd*)
  7804. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7805. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7806. wlarc=
  7807. else
  7808. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7809. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7810. fi
  7811. ;;
  7812. solaris*)
  7813. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7814. ld_shlibs=no
  7815. cat <<_LT_EOF 1>&2
  7816. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7817. *** create shared libraries on Solaris systems. Therefore, libtool
  7818. *** is disabling shared libraries support. We urge you to upgrade GNU
  7819. *** binutils to release 2.9.1 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. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7824. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7825. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7826. else
  7827. ld_shlibs=no
  7828. fi
  7829. ;;
  7830. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7831. case `$LD -v 2>&1` in
  7832. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7833. ld_shlibs=no
  7834. cat <<_LT_EOF 1>&2
  7835. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7836. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7837. *** is disabling shared libraries support. We urge you to upgrade GNU
  7838. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7839. *** your PATH or compiler configuration so that the native linker is
  7840. *** used, and then restart.
  7841. _LT_EOF
  7842. ;;
  7843. *)
  7844. # For security reasons, it is highly recommended that you always
  7845. # use absolute paths for naming shared libraries, and exclude the
  7846. # DT_RUNPATH tag from executables and libraries. But doing so
  7847. # requires that you compile everything twice, which is a pain.
  7848. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7849. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7850. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7851. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7852. else
  7853. ld_shlibs=no
  7854. fi
  7855. ;;
  7856. esac
  7857. ;;
  7858. sunos4*)
  7859. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7860. wlarc=
  7861. hardcode_direct=yes
  7862. hardcode_shlibpath_var=no
  7863. ;;
  7864. *)
  7865. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7866. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7867. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7868. else
  7869. ld_shlibs=no
  7870. fi
  7871. ;;
  7872. esac
  7873. if test "$ld_shlibs" = no; then
  7874. runpath_var=
  7875. hardcode_libdir_flag_spec=
  7876. export_dynamic_flag_spec=
  7877. whole_archive_flag_spec=
  7878. fi
  7879. else
  7880. # PORTME fill in a description of your system's linker (not GNU ld)
  7881. case $host_os in
  7882. aix3*)
  7883. allow_undefined_flag=unsupported
  7884. always_export_symbols=yes
  7885. 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'
  7886. # Note: this linker hardcodes the directories in LIBPATH if there
  7887. # are no directories specified by -L.
  7888. hardcode_minus_L=yes
  7889. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7890. # Neither direct hardcoding nor static linking is supported with a
  7891. # broken collect2.
  7892. hardcode_direct=unsupported
  7893. fi
  7894. ;;
  7895. aix[4-9]*)
  7896. if test "$host_cpu" = ia64; then
  7897. # On IA64, the linker does run time linking by default, so we don't
  7898. # have to do anything special.
  7899. aix_use_runtimelinking=no
  7900. exp_sym_flag='-Bexport'
  7901. no_entry_flag=""
  7902. else
  7903. # If we're using GNU nm, then we don't want the "-C" option.
  7904. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7905. # Also, AIX nm treats weak defined symbols like other global
  7906. # defined symbols, whereas GNU nm marks them as "W".
  7907. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7908. 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'
  7909. else
  7910. 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'
  7911. fi
  7912. aix_use_runtimelinking=no
  7913. # Test if we are trying to use run time linking or normal
  7914. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7915. # need to do runtime linking.
  7916. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7917. for ld_flag in $LDFLAGS; do
  7918. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7919. aix_use_runtimelinking=yes
  7920. break
  7921. fi
  7922. done
  7923. ;;
  7924. esac
  7925. exp_sym_flag='-bexport'
  7926. no_entry_flag='-bnoentry'
  7927. fi
  7928. # When large executables or shared objects are built, AIX ld can
  7929. # have problems creating the table of contents. If linking a library
  7930. # or program results in "error TOC overflow" add -mminimal-toc to
  7931. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7932. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7933. archive_cmds=''
  7934. hardcode_direct=yes
  7935. hardcode_direct_absolute=yes
  7936. hardcode_libdir_separator=':'
  7937. link_all_deplibs=yes
  7938. file_list_spec='${wl}-f,'
  7939. if test "$GCC" = yes; then
  7940. case $host_os in aix4.[012]|aix4.[012].*)
  7941. # We only want to do this on AIX 4.2 and lower, the check
  7942. # below for broken collect2 doesn't work under 4.3+
  7943. collect2name=`${CC} -print-prog-name=collect2`
  7944. if test -f "$collect2name" &&
  7945. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7946. then
  7947. # We have reworked collect2
  7948. :
  7949. else
  7950. # We have old collect2
  7951. hardcode_direct=unsupported
  7952. # It fails to find uninstalled libraries when the uninstalled
  7953. # path is not listed in the libpath. Setting hardcode_minus_L
  7954. # to unsupported forces relinking
  7955. hardcode_minus_L=yes
  7956. hardcode_libdir_flag_spec='-L$libdir'
  7957. hardcode_libdir_separator=
  7958. fi
  7959. ;;
  7960. esac
  7961. shared_flag='-shared'
  7962. if test "$aix_use_runtimelinking" = yes; then
  7963. shared_flag="$shared_flag "'${wl}-G'
  7964. fi
  7965. else
  7966. # not using gcc
  7967. if test "$host_cpu" = ia64; then
  7968. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7969. # chokes on -Wl,-G. The following line is correct:
  7970. shared_flag='-G'
  7971. else
  7972. if test "$aix_use_runtimelinking" = yes; then
  7973. shared_flag='${wl}-G'
  7974. else
  7975. shared_flag='${wl}-bM:SRE'
  7976. fi
  7977. fi
  7978. fi
  7979. export_dynamic_flag_spec='${wl}-bexpall'
  7980. # It seems that -bexpall does not export symbols beginning with
  7981. # underscore (_), so it is better to generate a list of symbols to export.
  7982. always_export_symbols=yes
  7983. if test "$aix_use_runtimelinking" = yes; then
  7984. # Warning - without using the other runtime loading flags (-brtl),
  7985. # -berok will link without error, but may produce a broken library.
  7986. allow_undefined_flag='-berok'
  7987. # Determine the default libpath from the value encoded in an
  7988. # empty executable.
  7989. if test "${lt_cv_aix_libpath+set}" = set; then
  7990. aix_libpath=$lt_cv_aix_libpath
  7991. else
  7992. if ${lt_cv_aix_libpath_+:} false; then :
  7993. $as_echo_n "(cached) " >&6
  7994. else
  7995. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7996. /* end confdefs.h. */
  7997. int
  7998. main ()
  7999. {
  8000. ;
  8001. return 0;
  8002. }
  8003. _ACEOF
  8004. if ac_fn_c_try_link "$LINENO"; then :
  8005. lt_aix_libpath_sed='
  8006. /Import File Strings/,/^$/ {
  8007. /^0/ {
  8008. s/^0 *\([^ ]*\) *$/\1/
  8009. p
  8010. }
  8011. }'
  8012. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8013. # Check for a 64-bit object if we didn't find anything.
  8014. if test -z "$lt_cv_aix_libpath_"; then
  8015. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8016. fi
  8017. fi
  8018. rm -f core conftest.err conftest.$ac_objext \
  8019. conftest$ac_exeext conftest.$ac_ext
  8020. if test -z "$lt_cv_aix_libpath_"; then
  8021. lt_cv_aix_libpath_="/usr/lib:/lib"
  8022. fi
  8023. fi
  8024. aix_libpath=$lt_cv_aix_libpath_
  8025. fi
  8026. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8027. 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"
  8028. else
  8029. if test "$host_cpu" = ia64; then
  8030. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8031. allow_undefined_flag="-z nodefs"
  8032. 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"
  8033. else
  8034. # Determine the default libpath from the value encoded in an
  8035. # empty executable.
  8036. if test "${lt_cv_aix_libpath+set}" = set; then
  8037. aix_libpath=$lt_cv_aix_libpath
  8038. else
  8039. if ${lt_cv_aix_libpath_+:} false; then :
  8040. $as_echo_n "(cached) " >&6
  8041. else
  8042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8043. /* end confdefs.h. */
  8044. int
  8045. main ()
  8046. {
  8047. ;
  8048. return 0;
  8049. }
  8050. _ACEOF
  8051. if ac_fn_c_try_link "$LINENO"; then :
  8052. lt_aix_libpath_sed='
  8053. /Import File Strings/,/^$/ {
  8054. /^0/ {
  8055. s/^0 *\([^ ]*\) *$/\1/
  8056. p
  8057. }
  8058. }'
  8059. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8060. # Check for a 64-bit object if we didn't find anything.
  8061. if test -z "$lt_cv_aix_libpath_"; then
  8062. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8063. fi
  8064. fi
  8065. rm -f core conftest.err conftest.$ac_objext \
  8066. conftest$ac_exeext conftest.$ac_ext
  8067. if test -z "$lt_cv_aix_libpath_"; then
  8068. lt_cv_aix_libpath_="/usr/lib:/lib"
  8069. fi
  8070. fi
  8071. aix_libpath=$lt_cv_aix_libpath_
  8072. fi
  8073. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8074. # Warning - without using the other run time loading flags,
  8075. # -berok will link without error, but may produce a broken library.
  8076. no_undefined_flag=' ${wl}-bernotok'
  8077. allow_undefined_flag=' ${wl}-berok'
  8078. if test "$with_gnu_ld" = yes; then
  8079. # We only use this code for GNU lds that support --whole-archive.
  8080. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8081. else
  8082. # Exported symbols can be pulled into shared objects from archives
  8083. whole_archive_flag_spec='$convenience'
  8084. fi
  8085. archive_cmds_need_lc=yes
  8086. # This is similar to how AIX traditionally builds its shared libraries.
  8087. 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'
  8088. fi
  8089. fi
  8090. ;;
  8091. amigaos*)
  8092. case $host_cpu in
  8093. powerpc)
  8094. # see comment about AmigaOS4 .so support
  8095. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8096. archive_expsym_cmds=''
  8097. ;;
  8098. m68k)
  8099. 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)'
  8100. hardcode_libdir_flag_spec='-L$libdir'
  8101. hardcode_minus_L=yes
  8102. ;;
  8103. esac
  8104. ;;
  8105. bsdi[45]*)
  8106. export_dynamic_flag_spec=-rdynamic
  8107. ;;
  8108. cygwin* | mingw* | pw32* | cegcc*)
  8109. # When not using gcc, we currently assume that we are using
  8110. # Microsoft Visual C++.
  8111. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8112. # no search path for DLLs.
  8113. case $cc_basename in
  8114. cl*)
  8115. # Native MSVC
  8116. hardcode_libdir_flag_spec=' '
  8117. allow_undefined_flag=unsupported
  8118. always_export_symbols=yes
  8119. file_list_spec='@'
  8120. # Tell ltmain to make .lib files, not .a files.
  8121. libext=lib
  8122. # Tell ltmain to make .dll files, not .so files.
  8123. shrext_cmds=".dll"
  8124. # FIXME: Setting linknames here is a bad hack.
  8125. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8126. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8127. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8128. else
  8129. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8130. fi~
  8131. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8132. linknames='
  8133. # The linker will not automatically build a static lib if we build a DLL.
  8134. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8135. enable_shared_with_static_runtimes=yes
  8136. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8137. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8138. # Don't use ranlib
  8139. old_postinstall_cmds='chmod 644 $oldlib'
  8140. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8141. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8142. case $lt_outputfile in
  8143. *.exe|*.EXE) ;;
  8144. *)
  8145. lt_outputfile="$lt_outputfile.exe"
  8146. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8147. ;;
  8148. esac~
  8149. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8150. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8151. $RM "$lt_outputfile.manifest";
  8152. fi'
  8153. ;;
  8154. *)
  8155. # Assume MSVC wrapper
  8156. hardcode_libdir_flag_spec=' '
  8157. allow_undefined_flag=unsupported
  8158. # Tell ltmain to make .lib files, not .a files.
  8159. libext=lib
  8160. # Tell ltmain to make .dll files, not .so files.
  8161. shrext_cmds=".dll"
  8162. # FIXME: Setting linknames here is a bad hack.
  8163. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8164. # The linker will automatically build a .lib file if we build a DLL.
  8165. old_archive_from_new_cmds='true'
  8166. # FIXME: Should let the user specify the lib program.
  8167. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8168. enable_shared_with_static_runtimes=yes
  8169. ;;
  8170. esac
  8171. ;;
  8172. darwin* | rhapsody*)
  8173. archive_cmds_need_lc=no
  8174. hardcode_direct=no
  8175. hardcode_automatic=yes
  8176. hardcode_shlibpath_var=unsupported
  8177. if test "$lt_cv_ld_force_load" = "yes"; then
  8178. 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\"`'
  8179. else
  8180. whole_archive_flag_spec=''
  8181. fi
  8182. link_all_deplibs=yes
  8183. allow_undefined_flag="$_lt_dar_allow_undefined"
  8184. case $cc_basename in
  8185. ifort*) _lt_dar_can_shared=yes ;;
  8186. *) _lt_dar_can_shared=$GCC ;;
  8187. esac
  8188. if test "$_lt_dar_can_shared" = "yes"; then
  8189. output_verbose_link_cmd=func_echo_all
  8190. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8191. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8192. 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}"
  8193. 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}"
  8194. else
  8195. ld_shlibs=no
  8196. fi
  8197. ;;
  8198. dgux*)
  8199. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8200. hardcode_libdir_flag_spec='-L$libdir'
  8201. hardcode_shlibpath_var=no
  8202. ;;
  8203. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8204. # support. Future versions do this automatically, but an explicit c++rt0.o
  8205. # does not break anything, and helps significantly (at the cost of a little
  8206. # extra space).
  8207. freebsd2.2*)
  8208. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8209. hardcode_libdir_flag_spec='-R$libdir'
  8210. hardcode_direct=yes
  8211. hardcode_shlibpath_var=no
  8212. ;;
  8213. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8214. freebsd2.*)
  8215. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8216. hardcode_direct=yes
  8217. hardcode_minus_L=yes
  8218. hardcode_shlibpath_var=no
  8219. ;;
  8220. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8221. freebsd* | dragonfly*)
  8222. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8223. hardcode_libdir_flag_spec='-R$libdir'
  8224. hardcode_direct=yes
  8225. hardcode_shlibpath_var=no
  8226. ;;
  8227. hpux9*)
  8228. if test "$GCC" = yes; then
  8229. 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'
  8230. else
  8231. 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'
  8232. fi
  8233. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8234. hardcode_libdir_separator=:
  8235. hardcode_direct=yes
  8236. # hardcode_minus_L: Not really in the search PATH,
  8237. # but as the default location of the library.
  8238. hardcode_minus_L=yes
  8239. export_dynamic_flag_spec='${wl}-E'
  8240. ;;
  8241. hpux10*)
  8242. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8243. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8244. else
  8245. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8246. fi
  8247. if test "$with_gnu_ld" = no; then
  8248. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8249. hardcode_libdir_separator=:
  8250. hardcode_direct=yes
  8251. hardcode_direct_absolute=yes
  8252. export_dynamic_flag_spec='${wl}-E'
  8253. # hardcode_minus_L: Not really in the search PATH,
  8254. # but as the default location of the library.
  8255. hardcode_minus_L=yes
  8256. fi
  8257. ;;
  8258. hpux11*)
  8259. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8260. case $host_cpu in
  8261. hppa*64*)
  8262. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8263. ;;
  8264. ia64*)
  8265. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8266. ;;
  8267. *)
  8268. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8269. ;;
  8270. esac
  8271. else
  8272. case $host_cpu in
  8273. hppa*64*)
  8274. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8275. ;;
  8276. ia64*)
  8277. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8278. ;;
  8279. *)
  8280. # Older versions of the 11.00 compiler do not understand -b yet
  8281. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8283. $as_echo_n "checking if $CC understands -b... " >&6; }
  8284. if ${lt_cv_prog_compiler__b+:} false; then :
  8285. $as_echo_n "(cached) " >&6
  8286. else
  8287. lt_cv_prog_compiler__b=no
  8288. save_LDFLAGS="$LDFLAGS"
  8289. LDFLAGS="$LDFLAGS -b"
  8290. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8291. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8292. # The linker can only warn and ignore the option if not recognized
  8293. # So say no if there are warnings
  8294. if test -s conftest.err; then
  8295. # Append any errors to the config.log.
  8296. cat conftest.err 1>&5
  8297. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8298. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8299. if diff conftest.exp conftest.er2 >/dev/null; then
  8300. lt_cv_prog_compiler__b=yes
  8301. fi
  8302. else
  8303. lt_cv_prog_compiler__b=yes
  8304. fi
  8305. fi
  8306. $RM -r conftest*
  8307. LDFLAGS="$save_LDFLAGS"
  8308. fi
  8309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8310. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8311. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8312. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8313. else
  8314. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8315. fi
  8316. ;;
  8317. esac
  8318. fi
  8319. if test "$with_gnu_ld" = no; then
  8320. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8321. hardcode_libdir_separator=:
  8322. case $host_cpu in
  8323. hppa*64*|ia64*)
  8324. hardcode_direct=no
  8325. hardcode_shlibpath_var=no
  8326. ;;
  8327. *)
  8328. hardcode_direct=yes
  8329. hardcode_direct_absolute=yes
  8330. export_dynamic_flag_spec='${wl}-E'
  8331. # hardcode_minus_L: Not really in the search PATH,
  8332. # but as the default location of the library.
  8333. hardcode_minus_L=yes
  8334. ;;
  8335. esac
  8336. fi
  8337. ;;
  8338. irix5* | irix6* | nonstopux*)
  8339. if test "$GCC" = yes; then
  8340. 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'
  8341. # Try to use the -exported_symbol ld option, if it does not
  8342. # work, assume that -exports_file does not work either and
  8343. # implicitly export all symbols.
  8344. # This should be the same for all languages, so no per-tag cache variable.
  8345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8346. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8347. if ${lt_cv_irix_exported_symbol+:} false; then :
  8348. $as_echo_n "(cached) " >&6
  8349. else
  8350. save_LDFLAGS="$LDFLAGS"
  8351. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8353. /* end confdefs.h. */
  8354. int foo (void) { return 0; }
  8355. _ACEOF
  8356. if ac_fn_c_try_link "$LINENO"; then :
  8357. lt_cv_irix_exported_symbol=yes
  8358. else
  8359. lt_cv_irix_exported_symbol=no
  8360. fi
  8361. rm -f core conftest.err conftest.$ac_objext \
  8362. conftest$ac_exeext conftest.$ac_ext
  8363. LDFLAGS="$save_LDFLAGS"
  8364. fi
  8365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8366. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8367. if test "$lt_cv_irix_exported_symbol" = yes; then
  8368. 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'
  8369. fi
  8370. else
  8371. 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'
  8372. 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'
  8373. fi
  8374. archive_cmds_need_lc='no'
  8375. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8376. hardcode_libdir_separator=:
  8377. inherit_rpath=yes
  8378. link_all_deplibs=yes
  8379. ;;
  8380. netbsd*)
  8381. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8382. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8383. else
  8384. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8385. fi
  8386. hardcode_libdir_flag_spec='-R$libdir'
  8387. hardcode_direct=yes
  8388. hardcode_shlibpath_var=no
  8389. ;;
  8390. newsos6)
  8391. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8392. hardcode_direct=yes
  8393. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8394. hardcode_libdir_separator=:
  8395. hardcode_shlibpath_var=no
  8396. ;;
  8397. *nto* | *qnx*)
  8398. ;;
  8399. openbsd*)
  8400. if test -f /usr/libexec/ld.so; then
  8401. hardcode_direct=yes
  8402. hardcode_shlibpath_var=no
  8403. hardcode_direct_absolute=yes
  8404. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8405. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8406. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8407. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8408. export_dynamic_flag_spec='${wl}-E'
  8409. else
  8410. case $host_os in
  8411. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8412. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8413. hardcode_libdir_flag_spec='-R$libdir'
  8414. ;;
  8415. *)
  8416. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8417. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8418. ;;
  8419. esac
  8420. fi
  8421. else
  8422. ld_shlibs=no
  8423. fi
  8424. ;;
  8425. os2*)
  8426. hardcode_libdir_flag_spec='-L$libdir'
  8427. hardcode_minus_L=yes
  8428. allow_undefined_flag=unsupported
  8429. 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'
  8430. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8431. ;;
  8432. osf3*)
  8433. if test "$GCC" = yes; then
  8434. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8435. 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'
  8436. else
  8437. allow_undefined_flag=' -expect_unresolved \*'
  8438. 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'
  8439. fi
  8440. archive_cmds_need_lc='no'
  8441. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8442. hardcode_libdir_separator=:
  8443. ;;
  8444. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8445. if test "$GCC" = yes; then
  8446. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8447. 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'
  8448. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8449. else
  8450. allow_undefined_flag=' -expect_unresolved \*'
  8451. 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'
  8452. 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~
  8453. $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'
  8454. # Both c and cxx compiler support -rpath directly
  8455. hardcode_libdir_flag_spec='-rpath $libdir'
  8456. fi
  8457. archive_cmds_need_lc='no'
  8458. hardcode_libdir_separator=:
  8459. ;;
  8460. solaris*)
  8461. no_undefined_flag=' -z defs'
  8462. if test "$GCC" = yes; then
  8463. wlarc='${wl}'
  8464. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8465. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8466. $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'
  8467. else
  8468. case `$CC -V 2>&1` in
  8469. *"Compilers 5.0"*)
  8470. wlarc=''
  8471. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8472. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8473. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8474. ;;
  8475. *)
  8476. wlarc='${wl}'
  8477. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8478. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8479. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8480. ;;
  8481. esac
  8482. fi
  8483. hardcode_libdir_flag_spec='-R$libdir'
  8484. hardcode_shlibpath_var=no
  8485. case $host_os in
  8486. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8487. *)
  8488. # The compiler driver will combine and reorder linker options,
  8489. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8490. # but is careful enough not to reorder.
  8491. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8492. if test "$GCC" = yes; then
  8493. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8494. else
  8495. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8496. fi
  8497. ;;
  8498. esac
  8499. link_all_deplibs=yes
  8500. ;;
  8501. sunos4*)
  8502. if test "x$host_vendor" = xsequent; then
  8503. # Use $CC to link under sequent, because it throws in some extra .o
  8504. # files that make .init and .fini sections work.
  8505. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8506. else
  8507. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8508. fi
  8509. hardcode_libdir_flag_spec='-L$libdir'
  8510. hardcode_direct=yes
  8511. hardcode_minus_L=yes
  8512. hardcode_shlibpath_var=no
  8513. ;;
  8514. sysv4)
  8515. case $host_vendor in
  8516. sni)
  8517. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8518. hardcode_direct=yes # is this really true???
  8519. ;;
  8520. siemens)
  8521. ## LD is ld it makes a PLAMLIB
  8522. ## CC just makes a GrossModule.
  8523. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8524. reload_cmds='$CC -r -o $output$reload_objs'
  8525. hardcode_direct=no
  8526. ;;
  8527. motorola)
  8528. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8529. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8530. ;;
  8531. esac
  8532. runpath_var='LD_RUN_PATH'
  8533. hardcode_shlibpath_var=no
  8534. ;;
  8535. sysv4.3*)
  8536. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8537. hardcode_shlibpath_var=no
  8538. export_dynamic_flag_spec='-Bexport'
  8539. ;;
  8540. sysv4*MP*)
  8541. if test -d /usr/nec; then
  8542. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8543. hardcode_shlibpath_var=no
  8544. runpath_var=LD_RUN_PATH
  8545. hardcode_runpath_var=yes
  8546. ld_shlibs=yes
  8547. fi
  8548. ;;
  8549. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8550. no_undefined_flag='${wl}-z,text'
  8551. archive_cmds_need_lc=no
  8552. hardcode_shlibpath_var=no
  8553. runpath_var='LD_RUN_PATH'
  8554. if test "$GCC" = yes; then
  8555. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8556. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8557. else
  8558. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8559. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8560. fi
  8561. ;;
  8562. sysv5* | sco3.2v5* | sco5v6*)
  8563. # Note: We can NOT use -z defs as we might desire, because we do not
  8564. # link with -lc, and that would cause any symbols used from libc to
  8565. # always be unresolved, which means just about no library would
  8566. # ever link correctly. If we're not using GNU ld we use -z text
  8567. # though, which does catch some bad symbols but isn't as heavy-handed
  8568. # as -z defs.
  8569. no_undefined_flag='${wl}-z,text'
  8570. allow_undefined_flag='${wl}-z,nodefs'
  8571. archive_cmds_need_lc=no
  8572. hardcode_shlibpath_var=no
  8573. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8574. hardcode_libdir_separator=':'
  8575. link_all_deplibs=yes
  8576. export_dynamic_flag_spec='${wl}-Bexport'
  8577. runpath_var='LD_RUN_PATH'
  8578. if test "$GCC" = yes; then
  8579. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8580. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8581. else
  8582. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8583. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8584. fi
  8585. ;;
  8586. uts4*)
  8587. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8588. hardcode_libdir_flag_spec='-L$libdir'
  8589. hardcode_shlibpath_var=no
  8590. ;;
  8591. *)
  8592. ld_shlibs=no
  8593. ;;
  8594. esac
  8595. if test x$host_vendor = xsni; then
  8596. case $host in
  8597. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8598. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8599. ;;
  8600. esac
  8601. fi
  8602. fi
  8603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8604. $as_echo "$ld_shlibs" >&6; }
  8605. test "$ld_shlibs" = no && can_build_shared=no
  8606. with_gnu_ld=$with_gnu_ld
  8607. #
  8608. # Do we need to explicitly link libc?
  8609. #
  8610. case "x$archive_cmds_need_lc" in
  8611. x|xyes)
  8612. # Assume -lc should be added
  8613. archive_cmds_need_lc=yes
  8614. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8615. case $archive_cmds in
  8616. *'~'*)
  8617. # FIXME: we may have to deal with multi-command sequences.
  8618. ;;
  8619. '$CC '*)
  8620. # Test whether the compiler implicitly links with -lc since on some
  8621. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8622. # to ld, don't add -lc before -lgcc.
  8623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8624. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8625. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8626. $as_echo_n "(cached) " >&6
  8627. else
  8628. $RM conftest*
  8629. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8630. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8631. (eval $ac_compile) 2>&5
  8632. ac_status=$?
  8633. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8634. test $ac_status = 0; } 2>conftest.err; then
  8635. soname=conftest
  8636. lib=conftest
  8637. libobjs=conftest.$ac_objext
  8638. deplibs=
  8639. wl=$lt_prog_compiler_wl
  8640. pic_flag=$lt_prog_compiler_pic
  8641. compiler_flags=-v
  8642. linker_flags=-v
  8643. verstring=
  8644. output_objdir=.
  8645. libname=conftest
  8646. lt_save_allow_undefined_flag=$allow_undefined_flag
  8647. allow_undefined_flag=
  8648. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8649. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8650. ac_status=$?
  8651. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8652. test $ac_status = 0; }
  8653. then
  8654. lt_cv_archive_cmds_need_lc=no
  8655. else
  8656. lt_cv_archive_cmds_need_lc=yes
  8657. fi
  8658. allow_undefined_flag=$lt_save_allow_undefined_flag
  8659. else
  8660. cat conftest.err 1>&5
  8661. fi
  8662. $RM conftest*
  8663. fi
  8664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8665. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8666. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8667. ;;
  8668. esac
  8669. fi
  8670. ;;
  8671. esac
  8672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8673. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8674. if test "$GCC" = yes; then
  8675. case $host_os in
  8676. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8677. *) lt_awk_arg="/^libraries:/" ;;
  8678. esac
  8679. case $host_os in
  8680. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8681. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8682. esac
  8683. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8684. case $lt_search_path_spec in
  8685. *\;*)
  8686. # if the path contains ";" then we assume it to be the separator
  8687. # otherwise default to the standard path separator (i.e. ":") - it is
  8688. # assumed that no part of a normal pathname contains ";" but that should
  8689. # okay in the real world where ";" in dirpaths is itself problematic.
  8690. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8691. ;;
  8692. *)
  8693. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8694. ;;
  8695. esac
  8696. # Ok, now we have the path, separated by spaces, we can step through it
  8697. # and add multilib dir if necessary...
  8698. lt_tmp_lt_search_path_spec=
  8699. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8700. # ...but if some path already ends with the multilib dir we assume
  8701. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8702. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8703. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8704. lt_multi_os_dir=
  8705. ;;
  8706. esac
  8707. for lt_sys_path in $lt_search_path_spec; do
  8708. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8709. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8710. elif test -n "$lt_multi_os_dir"; then
  8711. test -d "$lt_sys_path" && \
  8712. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8713. fi
  8714. done
  8715. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8716. BEGIN {RS=" "; FS="/|\n";} {
  8717. lt_foo="";
  8718. lt_count=0;
  8719. for (lt_i = NF; lt_i > 0; lt_i--) {
  8720. if ($lt_i != "" && $lt_i != ".") {
  8721. if ($lt_i == "..") {
  8722. lt_count++;
  8723. } else {
  8724. if (lt_count == 0) {
  8725. lt_foo="/" $lt_i lt_foo;
  8726. } else {
  8727. lt_count--;
  8728. }
  8729. }
  8730. }
  8731. }
  8732. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8733. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8734. }'`
  8735. # AWK program above erroneously prepends '/' to C:/dos/paths
  8736. # for these hosts.
  8737. case $host_os in
  8738. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8739. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8740. esac
  8741. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8742. else
  8743. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8744. fi
  8745. library_names_spec=
  8746. libname_spec='lib$name'
  8747. soname_spec=
  8748. shrext_cmds=".so"
  8749. postinstall_cmds=
  8750. postuninstall_cmds=
  8751. finish_cmds=
  8752. finish_eval=
  8753. shlibpath_var=
  8754. shlibpath_overrides_runpath=unknown
  8755. version_type=none
  8756. dynamic_linker="$host_os ld.so"
  8757. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8758. need_lib_prefix=unknown
  8759. hardcode_into_libs=no
  8760. # when you set need_version to no, make sure it does not cause -set_version
  8761. # flags to be left without arguments
  8762. need_version=unknown
  8763. case $host_os in
  8764. aix3*)
  8765. version_type=linux # correct to gnu/linux during the next big refactor
  8766. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8767. shlibpath_var=LIBPATH
  8768. # AIX 3 has no versioning support, so we append a major version to the name.
  8769. soname_spec='${libname}${release}${shared_ext}$major'
  8770. ;;
  8771. aix[4-9]*)
  8772. version_type=linux # correct to gnu/linux during the next big refactor
  8773. need_lib_prefix=no
  8774. need_version=no
  8775. hardcode_into_libs=yes
  8776. if test "$host_cpu" = ia64; then
  8777. # AIX 5 supports IA64
  8778. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8779. shlibpath_var=LD_LIBRARY_PATH
  8780. else
  8781. # With GCC up to 2.95.x, collect2 would create an import file
  8782. # for dependence libraries. The import file would start with
  8783. # the line `#! .'. This would cause the generated library to
  8784. # depend on `.', always an invalid library. This was fixed in
  8785. # development snapshots of GCC prior to 3.0.
  8786. case $host_os in
  8787. aix4 | aix4.[01] | aix4.[01].*)
  8788. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8789. echo ' yes '
  8790. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8791. :
  8792. else
  8793. can_build_shared=no
  8794. fi
  8795. ;;
  8796. esac
  8797. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8798. # soname into executable. Probably we can add versioning support to
  8799. # collect2, so additional links can be useful in future.
  8800. if test "$aix_use_runtimelinking" = yes; then
  8801. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8802. # instead of lib<name>.a to let people know that these are not
  8803. # typical AIX shared libraries.
  8804. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8805. else
  8806. # We preserve .a as extension for shared libraries through AIX4.2
  8807. # and later when we are not doing run time linking.
  8808. library_names_spec='${libname}${release}.a $libname.a'
  8809. soname_spec='${libname}${release}${shared_ext}$major'
  8810. fi
  8811. shlibpath_var=LIBPATH
  8812. fi
  8813. ;;
  8814. amigaos*)
  8815. case $host_cpu in
  8816. powerpc)
  8817. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8818. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8819. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8820. ;;
  8821. m68k)
  8822. library_names_spec='$libname.ixlibrary $libname.a'
  8823. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8824. 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'
  8825. ;;
  8826. esac
  8827. ;;
  8828. beos*)
  8829. library_names_spec='${libname}${shared_ext}'
  8830. dynamic_linker="$host_os ld.so"
  8831. shlibpath_var=LIBRARY_PATH
  8832. ;;
  8833. bsdi[45]*)
  8834. version_type=linux # correct to gnu/linux during the next big refactor
  8835. need_version=no
  8836. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8837. soname_spec='${libname}${release}${shared_ext}$major'
  8838. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8839. shlibpath_var=LD_LIBRARY_PATH
  8840. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8841. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8842. # the default ld.so.conf also contains /usr/contrib/lib and
  8843. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8844. # libtool to hard-code these into programs
  8845. ;;
  8846. cygwin* | mingw* | pw32* | cegcc*)
  8847. version_type=windows
  8848. shrext_cmds=".dll"
  8849. need_version=no
  8850. need_lib_prefix=no
  8851. case $GCC,$cc_basename in
  8852. yes,*)
  8853. # gcc
  8854. library_names_spec='$libname.dll.a'
  8855. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8856. postinstall_cmds='base_file=`basename \${file}`~
  8857. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8858. dldir=$destdir/`dirname \$dlpath`~
  8859. test -d \$dldir || mkdir -p \$dldir~
  8860. $install_prog $dir/$dlname \$dldir/$dlname~
  8861. chmod a+x \$dldir/$dlname~
  8862. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8863. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8864. fi'
  8865. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8866. dlpath=$dir/\$dldll~
  8867. $RM \$dlpath'
  8868. shlibpath_overrides_runpath=yes
  8869. case $host_os in
  8870. cygwin*)
  8871. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8872. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8873. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8874. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8875. ;;
  8876. mingw* | cegcc*)
  8877. # MinGW DLLs use traditional 'lib' prefix
  8878. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8879. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8880. ;;
  8881. pw32*)
  8882. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8883. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8884. ;;
  8885. esac
  8886. dynamic_linker='Win32 ld.exe'
  8887. ;;
  8888. *,cl*)
  8889. # Native MSVC
  8890. libname_spec='$name'
  8891. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8892. library_names_spec='${libname}.dll.lib'
  8893. case $build_os in
  8894. mingw*)
  8895. sys_lib_search_path_spec=
  8896. lt_save_ifs=$IFS
  8897. IFS=';'
  8898. for lt_path in $LIB
  8899. do
  8900. IFS=$lt_save_ifs
  8901. # Let DOS variable expansion print the short 8.3 style file name.
  8902. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8903. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8904. done
  8905. IFS=$lt_save_ifs
  8906. # Convert to MSYS style.
  8907. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8908. ;;
  8909. cygwin*)
  8910. # Convert to unix form, then to dos form, then back to unix form
  8911. # but this time dos style (no spaces!) so that the unix form looks
  8912. # like /cygdrive/c/PROGRA~1:/cygdr...
  8913. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8914. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8915. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8916. ;;
  8917. *)
  8918. sys_lib_search_path_spec="$LIB"
  8919. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8920. # It is most probably a Windows format PATH.
  8921. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8922. else
  8923. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8924. fi
  8925. # FIXME: find the short name or the path components, as spaces are
  8926. # common. (e.g. "Program Files" -> "PROGRA~1")
  8927. ;;
  8928. esac
  8929. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8930. postinstall_cmds='base_file=`basename \${file}`~
  8931. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8932. dldir=$destdir/`dirname \$dlpath`~
  8933. test -d \$dldir || mkdir -p \$dldir~
  8934. $install_prog $dir/$dlname \$dldir/$dlname'
  8935. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8936. dlpath=$dir/\$dldll~
  8937. $RM \$dlpath'
  8938. shlibpath_overrides_runpath=yes
  8939. dynamic_linker='Win32 link.exe'
  8940. ;;
  8941. *)
  8942. # Assume MSVC wrapper
  8943. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8944. dynamic_linker='Win32 ld.exe'
  8945. ;;
  8946. esac
  8947. # FIXME: first we should search . and the directory the executable is in
  8948. shlibpath_var=PATH
  8949. ;;
  8950. darwin* | rhapsody*)
  8951. dynamic_linker="$host_os dyld"
  8952. version_type=darwin
  8953. need_lib_prefix=no
  8954. need_version=no
  8955. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8956. soname_spec='${libname}${release}${major}$shared_ext'
  8957. shlibpath_overrides_runpath=yes
  8958. shlibpath_var=DYLD_LIBRARY_PATH
  8959. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8960. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8961. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8962. ;;
  8963. dgux*)
  8964. version_type=linux # correct to gnu/linux during the next big refactor
  8965. need_lib_prefix=no
  8966. need_version=no
  8967. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8968. soname_spec='${libname}${release}${shared_ext}$major'
  8969. shlibpath_var=LD_LIBRARY_PATH
  8970. ;;
  8971. freebsd* | dragonfly*)
  8972. # DragonFly does not have aout. When/if they implement a new
  8973. # versioning mechanism, adjust this.
  8974. if test -x /usr/bin/objformat; then
  8975. objformat=`/usr/bin/objformat`
  8976. else
  8977. case $host_os in
  8978. freebsd[23].*) objformat=aout ;;
  8979. *) objformat=elf ;;
  8980. esac
  8981. fi
  8982. version_type=freebsd-$objformat
  8983. case $version_type in
  8984. freebsd-elf*)
  8985. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8986. need_version=no
  8987. need_lib_prefix=no
  8988. ;;
  8989. freebsd-*)
  8990. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8991. need_version=yes
  8992. ;;
  8993. esac
  8994. shlibpath_var=LD_LIBRARY_PATH
  8995. case $host_os in
  8996. freebsd2.*)
  8997. shlibpath_overrides_runpath=yes
  8998. ;;
  8999. freebsd3.[01]* | freebsdelf3.[01]*)
  9000. shlibpath_overrides_runpath=yes
  9001. hardcode_into_libs=yes
  9002. ;;
  9003. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9004. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9005. shlibpath_overrides_runpath=no
  9006. hardcode_into_libs=yes
  9007. ;;
  9008. *) # from 4.6 on, and DragonFly
  9009. shlibpath_overrides_runpath=yes
  9010. hardcode_into_libs=yes
  9011. ;;
  9012. esac
  9013. ;;
  9014. gnu*)
  9015. version_type=linux # correct to gnu/linux during the next big refactor
  9016. need_lib_prefix=no
  9017. need_version=no
  9018. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9019. soname_spec='${libname}${release}${shared_ext}$major'
  9020. shlibpath_var=LD_LIBRARY_PATH
  9021. shlibpath_overrides_runpath=no
  9022. hardcode_into_libs=yes
  9023. ;;
  9024. haiku*)
  9025. version_type=linux # correct to gnu/linux during the next big refactor
  9026. need_lib_prefix=no
  9027. need_version=no
  9028. dynamic_linker="$host_os runtime_loader"
  9029. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9030. soname_spec='${libname}${release}${shared_ext}$major'
  9031. shlibpath_var=LIBRARY_PATH
  9032. shlibpath_overrides_runpath=yes
  9033. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9034. hardcode_into_libs=yes
  9035. ;;
  9036. hpux9* | hpux10* | hpux11*)
  9037. # Give a soname corresponding to the major version so that dld.sl refuses to
  9038. # link against other versions.
  9039. version_type=sunos
  9040. need_lib_prefix=no
  9041. need_version=no
  9042. case $host_cpu in
  9043. ia64*)
  9044. shrext_cmds='.so'
  9045. hardcode_into_libs=yes
  9046. dynamic_linker="$host_os dld.so"
  9047. shlibpath_var=LD_LIBRARY_PATH
  9048. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9049. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9050. soname_spec='${libname}${release}${shared_ext}$major'
  9051. if test "X$HPUX_IA64_MODE" = X32; then
  9052. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9053. else
  9054. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9055. fi
  9056. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9057. ;;
  9058. hppa*64*)
  9059. shrext_cmds='.sl'
  9060. hardcode_into_libs=yes
  9061. dynamic_linker="$host_os dld.sl"
  9062. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9063. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9064. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9065. soname_spec='${libname}${release}${shared_ext}$major'
  9066. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9067. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9068. ;;
  9069. *)
  9070. shrext_cmds='.sl'
  9071. dynamic_linker="$host_os dld.sl"
  9072. shlibpath_var=SHLIB_PATH
  9073. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9074. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9075. soname_spec='${libname}${release}${shared_ext}$major'
  9076. ;;
  9077. esac
  9078. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9079. postinstall_cmds='chmod 555 $lib'
  9080. # or fails outright, so override atomically:
  9081. install_override_mode=555
  9082. ;;
  9083. interix[3-9]*)
  9084. version_type=linux # correct to gnu/linux during the next big refactor
  9085. need_lib_prefix=no
  9086. need_version=no
  9087. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9088. soname_spec='${libname}${release}${shared_ext}$major'
  9089. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9090. shlibpath_var=LD_LIBRARY_PATH
  9091. shlibpath_overrides_runpath=no
  9092. hardcode_into_libs=yes
  9093. ;;
  9094. irix5* | irix6* | nonstopux*)
  9095. case $host_os in
  9096. nonstopux*) version_type=nonstopux ;;
  9097. *)
  9098. if test "$lt_cv_prog_gnu_ld" = yes; then
  9099. version_type=linux # correct to gnu/linux during the next big refactor
  9100. else
  9101. version_type=irix
  9102. fi ;;
  9103. esac
  9104. need_lib_prefix=no
  9105. need_version=no
  9106. soname_spec='${libname}${release}${shared_ext}$major'
  9107. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9108. case $host_os in
  9109. irix5* | nonstopux*)
  9110. libsuff= shlibsuff=
  9111. ;;
  9112. *)
  9113. case $LD in # libtool.m4 will add one of these switches to LD
  9114. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9115. libsuff= shlibsuff= libmagic=32-bit;;
  9116. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9117. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9118. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9119. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9120. *) libsuff= shlibsuff= libmagic=never-match;;
  9121. esac
  9122. ;;
  9123. esac
  9124. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9125. shlibpath_overrides_runpath=no
  9126. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9127. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9128. hardcode_into_libs=yes
  9129. ;;
  9130. # No shared lib support for Linux oldld, aout, or coff.
  9131. linux*oldld* | linux*aout* | linux*coff*)
  9132. dynamic_linker=no
  9133. ;;
  9134. # This must be glibc/ELF.
  9135. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9136. version_type=linux # correct to gnu/linux during the next big refactor
  9137. need_lib_prefix=no
  9138. need_version=no
  9139. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9140. soname_spec='${libname}${release}${shared_ext}$major'
  9141. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9142. shlibpath_var=LD_LIBRARY_PATH
  9143. shlibpath_overrides_runpath=no
  9144. # Some binutils ld are patched to set DT_RUNPATH
  9145. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9146. $as_echo_n "(cached) " >&6
  9147. else
  9148. lt_cv_shlibpath_overrides_runpath=no
  9149. save_LDFLAGS=$LDFLAGS
  9150. save_libdir=$libdir
  9151. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9152. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9154. /* end confdefs.h. */
  9155. int
  9156. main ()
  9157. {
  9158. ;
  9159. return 0;
  9160. }
  9161. _ACEOF
  9162. if ac_fn_c_try_link "$LINENO"; then :
  9163. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9164. lt_cv_shlibpath_overrides_runpath=yes
  9165. fi
  9166. fi
  9167. rm -f core conftest.err conftest.$ac_objext \
  9168. conftest$ac_exeext conftest.$ac_ext
  9169. LDFLAGS=$save_LDFLAGS
  9170. libdir=$save_libdir
  9171. fi
  9172. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9173. # This implies no fast_install, which is unacceptable.
  9174. # Some rework will be needed to allow for fast_install
  9175. # before this can be enabled.
  9176. hardcode_into_libs=yes
  9177. # Append ld.so.conf contents to the search path
  9178. if test -f /etc/ld.so.conf; then
  9179. 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' ' '`
  9180. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9181. fi
  9182. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9183. # powerpc, because MkLinux only supported shared libraries with the
  9184. # GNU dynamic linker. Since this was broken with cross compilers,
  9185. # most powerpc-linux boxes support dynamic linking these days and
  9186. # people can always --disable-shared, the test was removed, and we
  9187. # assume the GNU/Linux dynamic linker is in use.
  9188. dynamic_linker='GNU/Linux ld.so'
  9189. ;;
  9190. netbsd*)
  9191. version_type=sunos
  9192. need_lib_prefix=no
  9193. need_version=no
  9194. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9195. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9196. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9197. dynamic_linker='NetBSD (a.out) ld.so'
  9198. else
  9199. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9200. soname_spec='${libname}${release}${shared_ext}$major'
  9201. dynamic_linker='NetBSD ld.elf_so'
  9202. fi
  9203. shlibpath_var=LD_LIBRARY_PATH
  9204. shlibpath_overrides_runpath=yes
  9205. hardcode_into_libs=yes
  9206. ;;
  9207. newsos6)
  9208. version_type=linux # correct to gnu/linux during the next big refactor
  9209. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9210. shlibpath_var=LD_LIBRARY_PATH
  9211. shlibpath_overrides_runpath=yes
  9212. ;;
  9213. *nto* | *qnx*)
  9214. version_type=qnx
  9215. need_lib_prefix=no
  9216. need_version=no
  9217. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9218. soname_spec='${libname}${release}${shared_ext}$major'
  9219. shlibpath_var=LD_LIBRARY_PATH
  9220. shlibpath_overrides_runpath=no
  9221. hardcode_into_libs=yes
  9222. dynamic_linker='ldqnx.so'
  9223. ;;
  9224. openbsd*)
  9225. version_type=sunos
  9226. sys_lib_dlsearch_path_spec="/usr/lib"
  9227. need_lib_prefix=no
  9228. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9229. case $host_os in
  9230. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9231. *) need_version=no ;;
  9232. esac
  9233. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9234. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9235. shlibpath_var=LD_LIBRARY_PATH
  9236. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9237. case $host_os in
  9238. openbsd2.[89] | openbsd2.[89].*)
  9239. shlibpath_overrides_runpath=no
  9240. ;;
  9241. *)
  9242. shlibpath_overrides_runpath=yes
  9243. ;;
  9244. esac
  9245. else
  9246. shlibpath_overrides_runpath=yes
  9247. fi
  9248. ;;
  9249. os2*)
  9250. libname_spec='$name'
  9251. shrext_cmds=".dll"
  9252. need_lib_prefix=no
  9253. library_names_spec='$libname${shared_ext} $libname.a'
  9254. dynamic_linker='OS/2 ld.exe'
  9255. shlibpath_var=LIBPATH
  9256. ;;
  9257. osf3* | osf4* | osf5*)
  9258. version_type=osf
  9259. need_lib_prefix=no
  9260. need_version=no
  9261. soname_spec='${libname}${release}${shared_ext}$major'
  9262. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9263. shlibpath_var=LD_LIBRARY_PATH
  9264. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9265. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9266. ;;
  9267. rdos*)
  9268. dynamic_linker=no
  9269. ;;
  9270. solaris*)
  9271. version_type=linux # correct to gnu/linux during the next big refactor
  9272. need_lib_prefix=no
  9273. need_version=no
  9274. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9275. soname_spec='${libname}${release}${shared_ext}$major'
  9276. shlibpath_var=LD_LIBRARY_PATH
  9277. shlibpath_overrides_runpath=yes
  9278. hardcode_into_libs=yes
  9279. # ldd complains unless libraries are executable
  9280. postinstall_cmds='chmod +x $lib'
  9281. ;;
  9282. sunos4*)
  9283. version_type=sunos
  9284. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9285. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9286. shlibpath_var=LD_LIBRARY_PATH
  9287. shlibpath_overrides_runpath=yes
  9288. if test "$with_gnu_ld" = yes; then
  9289. need_lib_prefix=no
  9290. fi
  9291. need_version=yes
  9292. ;;
  9293. sysv4 | sysv4.3*)
  9294. version_type=linux # correct to gnu/linux during the next big refactor
  9295. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9296. soname_spec='${libname}${release}${shared_ext}$major'
  9297. shlibpath_var=LD_LIBRARY_PATH
  9298. case $host_vendor in
  9299. sni)
  9300. shlibpath_overrides_runpath=no
  9301. need_lib_prefix=no
  9302. runpath_var=LD_RUN_PATH
  9303. ;;
  9304. siemens)
  9305. need_lib_prefix=no
  9306. ;;
  9307. motorola)
  9308. need_lib_prefix=no
  9309. need_version=no
  9310. shlibpath_overrides_runpath=no
  9311. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9312. ;;
  9313. esac
  9314. ;;
  9315. sysv4*MP*)
  9316. if test -d /usr/nec ;then
  9317. version_type=linux # correct to gnu/linux during the next big refactor
  9318. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9319. soname_spec='$libname${shared_ext}.$major'
  9320. shlibpath_var=LD_LIBRARY_PATH
  9321. fi
  9322. ;;
  9323. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9324. version_type=freebsd-elf
  9325. need_lib_prefix=no
  9326. need_version=no
  9327. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9328. soname_spec='${libname}${release}${shared_ext}$major'
  9329. shlibpath_var=LD_LIBRARY_PATH
  9330. shlibpath_overrides_runpath=yes
  9331. hardcode_into_libs=yes
  9332. if test "$with_gnu_ld" = yes; then
  9333. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9334. else
  9335. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9336. case $host_os in
  9337. sco3.2v5*)
  9338. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9339. ;;
  9340. esac
  9341. fi
  9342. sys_lib_dlsearch_path_spec='/usr/lib'
  9343. ;;
  9344. tpf*)
  9345. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9346. version_type=linux # correct to gnu/linux during the next big refactor
  9347. need_lib_prefix=no
  9348. need_version=no
  9349. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9350. shlibpath_var=LD_LIBRARY_PATH
  9351. shlibpath_overrides_runpath=no
  9352. hardcode_into_libs=yes
  9353. ;;
  9354. uts4*)
  9355. version_type=linux # correct to gnu/linux during the next big refactor
  9356. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9357. soname_spec='${libname}${release}${shared_ext}$major'
  9358. shlibpath_var=LD_LIBRARY_PATH
  9359. ;;
  9360. *)
  9361. dynamic_linker=no
  9362. ;;
  9363. esac
  9364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9365. $as_echo "$dynamic_linker" >&6; }
  9366. test "$dynamic_linker" = no && can_build_shared=no
  9367. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9368. if test "$GCC" = yes; then
  9369. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9370. fi
  9371. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9372. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9373. fi
  9374. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9375. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9376. fi
  9377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9378. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9379. hardcode_action=
  9380. if test -n "$hardcode_libdir_flag_spec" ||
  9381. test -n "$runpath_var" ||
  9382. test "X$hardcode_automatic" = "Xyes" ; then
  9383. # We can hardcode non-existent directories.
  9384. if test "$hardcode_direct" != no &&
  9385. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9386. # have to relink, otherwise we might link with an installed library
  9387. # when we should be linking with a yet-to-be-installed one
  9388. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9389. test "$hardcode_minus_L" != no; then
  9390. # Linking always hardcodes the temporary library directory.
  9391. hardcode_action=relink
  9392. else
  9393. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9394. hardcode_action=immediate
  9395. fi
  9396. else
  9397. # We cannot hardcode anything, or else we can only hardcode existing
  9398. # directories.
  9399. hardcode_action=unsupported
  9400. fi
  9401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9402. $as_echo "$hardcode_action" >&6; }
  9403. if test "$hardcode_action" = relink ||
  9404. test "$inherit_rpath" = yes; then
  9405. # Fast installation is not supported
  9406. enable_fast_install=no
  9407. elif test "$shlibpath_overrides_runpath" = yes ||
  9408. test "$enable_shared" = no; then
  9409. # Fast installation is not necessary
  9410. enable_fast_install=needless
  9411. fi
  9412. if test "x$enable_dlopen" != xyes; then
  9413. enable_dlopen=unknown
  9414. enable_dlopen_self=unknown
  9415. enable_dlopen_self_static=unknown
  9416. else
  9417. lt_cv_dlopen=no
  9418. lt_cv_dlopen_libs=
  9419. case $host_os in
  9420. beos*)
  9421. lt_cv_dlopen="load_add_on"
  9422. lt_cv_dlopen_libs=
  9423. lt_cv_dlopen_self=yes
  9424. ;;
  9425. mingw* | pw32* | cegcc*)
  9426. lt_cv_dlopen="LoadLibrary"
  9427. lt_cv_dlopen_libs=
  9428. ;;
  9429. cygwin*)
  9430. lt_cv_dlopen="dlopen"
  9431. lt_cv_dlopen_libs=
  9432. ;;
  9433. darwin*)
  9434. # if libdl is installed we need to link against it
  9435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9436. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9437. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9438. $as_echo_n "(cached) " >&6
  9439. else
  9440. ac_check_lib_save_LIBS=$LIBS
  9441. LIBS="-ldl $LIBS"
  9442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9443. /* end confdefs.h. */
  9444. /* Override any GCC internal prototype to avoid an error.
  9445. Use char because int might match the return type of a GCC
  9446. builtin and then its argument prototype would still apply. */
  9447. #ifdef __cplusplus
  9448. extern "C"
  9449. #endif
  9450. char dlopen ();
  9451. int
  9452. main ()
  9453. {
  9454. return dlopen ();
  9455. ;
  9456. return 0;
  9457. }
  9458. _ACEOF
  9459. if ac_fn_c_try_link "$LINENO"; then :
  9460. ac_cv_lib_dl_dlopen=yes
  9461. else
  9462. ac_cv_lib_dl_dlopen=no
  9463. fi
  9464. rm -f core conftest.err conftest.$ac_objext \
  9465. conftest$ac_exeext conftest.$ac_ext
  9466. LIBS=$ac_check_lib_save_LIBS
  9467. fi
  9468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9469. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9470. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9471. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9472. else
  9473. lt_cv_dlopen="dyld"
  9474. lt_cv_dlopen_libs=
  9475. lt_cv_dlopen_self=yes
  9476. fi
  9477. ;;
  9478. *)
  9479. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9480. if test "x$ac_cv_func_shl_load" = xyes; then :
  9481. lt_cv_dlopen="shl_load"
  9482. else
  9483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9484. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9485. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9486. $as_echo_n "(cached) " >&6
  9487. else
  9488. ac_check_lib_save_LIBS=$LIBS
  9489. LIBS="-ldld $LIBS"
  9490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9491. /* end confdefs.h. */
  9492. /* Override any GCC internal prototype to avoid an error.
  9493. Use char because int might match the return type of a GCC
  9494. builtin and then its argument prototype would still apply. */
  9495. #ifdef __cplusplus
  9496. extern "C"
  9497. #endif
  9498. char shl_load ();
  9499. int
  9500. main ()
  9501. {
  9502. return shl_load ();
  9503. ;
  9504. return 0;
  9505. }
  9506. _ACEOF
  9507. if ac_fn_c_try_link "$LINENO"; then :
  9508. ac_cv_lib_dld_shl_load=yes
  9509. else
  9510. ac_cv_lib_dld_shl_load=no
  9511. fi
  9512. rm -f core conftest.err conftest.$ac_objext \
  9513. conftest$ac_exeext conftest.$ac_ext
  9514. LIBS=$ac_check_lib_save_LIBS
  9515. fi
  9516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9517. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9518. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9519. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9520. else
  9521. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9522. if test "x$ac_cv_func_dlopen" = xyes; then :
  9523. lt_cv_dlopen="dlopen"
  9524. else
  9525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9526. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9527. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9528. $as_echo_n "(cached) " >&6
  9529. else
  9530. ac_check_lib_save_LIBS=$LIBS
  9531. LIBS="-ldl $LIBS"
  9532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9533. /* end confdefs.h. */
  9534. /* Override any GCC internal prototype to avoid an error.
  9535. Use char because int might match the return type of a GCC
  9536. builtin and then its argument prototype would still apply. */
  9537. #ifdef __cplusplus
  9538. extern "C"
  9539. #endif
  9540. char dlopen ();
  9541. int
  9542. main ()
  9543. {
  9544. return dlopen ();
  9545. ;
  9546. return 0;
  9547. }
  9548. _ACEOF
  9549. if ac_fn_c_try_link "$LINENO"; then :
  9550. ac_cv_lib_dl_dlopen=yes
  9551. else
  9552. ac_cv_lib_dl_dlopen=no
  9553. fi
  9554. rm -f core conftest.err conftest.$ac_objext \
  9555. conftest$ac_exeext conftest.$ac_ext
  9556. LIBS=$ac_check_lib_save_LIBS
  9557. fi
  9558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9559. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9560. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9561. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9562. else
  9563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9564. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9565. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9566. $as_echo_n "(cached) " >&6
  9567. else
  9568. ac_check_lib_save_LIBS=$LIBS
  9569. LIBS="-lsvld $LIBS"
  9570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9571. /* end confdefs.h. */
  9572. /* Override any GCC internal prototype to avoid an error.
  9573. Use char because int might match the return type of a GCC
  9574. builtin and then its argument prototype would still apply. */
  9575. #ifdef __cplusplus
  9576. extern "C"
  9577. #endif
  9578. char dlopen ();
  9579. int
  9580. main ()
  9581. {
  9582. return dlopen ();
  9583. ;
  9584. return 0;
  9585. }
  9586. _ACEOF
  9587. if ac_fn_c_try_link "$LINENO"; then :
  9588. ac_cv_lib_svld_dlopen=yes
  9589. else
  9590. ac_cv_lib_svld_dlopen=no
  9591. fi
  9592. rm -f core conftest.err conftest.$ac_objext \
  9593. conftest$ac_exeext conftest.$ac_ext
  9594. LIBS=$ac_check_lib_save_LIBS
  9595. fi
  9596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9597. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9598. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9599. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9600. else
  9601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9602. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9603. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9604. $as_echo_n "(cached) " >&6
  9605. else
  9606. ac_check_lib_save_LIBS=$LIBS
  9607. LIBS="-ldld $LIBS"
  9608. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9609. /* end confdefs.h. */
  9610. /* Override any GCC internal prototype to avoid an error.
  9611. Use char because int might match the return type of a GCC
  9612. builtin and then its argument prototype would still apply. */
  9613. #ifdef __cplusplus
  9614. extern "C"
  9615. #endif
  9616. char dld_link ();
  9617. int
  9618. main ()
  9619. {
  9620. return dld_link ();
  9621. ;
  9622. return 0;
  9623. }
  9624. _ACEOF
  9625. if ac_fn_c_try_link "$LINENO"; then :
  9626. ac_cv_lib_dld_dld_link=yes
  9627. else
  9628. ac_cv_lib_dld_dld_link=no
  9629. fi
  9630. rm -f core conftest.err conftest.$ac_objext \
  9631. conftest$ac_exeext conftest.$ac_ext
  9632. LIBS=$ac_check_lib_save_LIBS
  9633. fi
  9634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9635. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9636. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9637. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9638. fi
  9639. fi
  9640. fi
  9641. fi
  9642. fi
  9643. fi
  9644. ;;
  9645. esac
  9646. if test "x$lt_cv_dlopen" != xno; then
  9647. enable_dlopen=yes
  9648. else
  9649. enable_dlopen=no
  9650. fi
  9651. case $lt_cv_dlopen in
  9652. dlopen)
  9653. save_CPPFLAGS="$CPPFLAGS"
  9654. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9655. save_LDFLAGS="$LDFLAGS"
  9656. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9657. save_LIBS="$LIBS"
  9658. LIBS="$lt_cv_dlopen_libs $LIBS"
  9659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9660. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9661. if ${lt_cv_dlopen_self+:} false; then :
  9662. $as_echo_n "(cached) " >&6
  9663. else
  9664. if test "$cross_compiling" = yes; then :
  9665. lt_cv_dlopen_self=cross
  9666. else
  9667. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9668. lt_status=$lt_dlunknown
  9669. cat > conftest.$ac_ext <<_LT_EOF
  9670. #line $LINENO "configure"
  9671. #include "confdefs.h"
  9672. #if HAVE_DLFCN_H
  9673. #include <dlfcn.h>
  9674. #endif
  9675. #include <stdio.h>
  9676. #ifdef RTLD_GLOBAL
  9677. # define LT_DLGLOBAL RTLD_GLOBAL
  9678. #else
  9679. # ifdef DL_GLOBAL
  9680. # define LT_DLGLOBAL DL_GLOBAL
  9681. # else
  9682. # define LT_DLGLOBAL 0
  9683. # endif
  9684. #endif
  9685. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9686. find out it does not work in some platform. */
  9687. #ifndef LT_DLLAZY_OR_NOW
  9688. # ifdef RTLD_LAZY
  9689. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9690. # else
  9691. # ifdef DL_LAZY
  9692. # define LT_DLLAZY_OR_NOW DL_LAZY
  9693. # else
  9694. # ifdef RTLD_NOW
  9695. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9696. # else
  9697. # ifdef DL_NOW
  9698. # define LT_DLLAZY_OR_NOW DL_NOW
  9699. # else
  9700. # define LT_DLLAZY_OR_NOW 0
  9701. # endif
  9702. # endif
  9703. # endif
  9704. # endif
  9705. #endif
  9706. /* When -fvisbility=hidden is used, assume the code has been annotated
  9707. correspondingly for the symbols needed. */
  9708. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9709. int fnord () __attribute__((visibility("default")));
  9710. #endif
  9711. int fnord () { return 42; }
  9712. int main ()
  9713. {
  9714. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9715. int status = $lt_dlunknown;
  9716. if (self)
  9717. {
  9718. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9719. else
  9720. {
  9721. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9722. else puts (dlerror ());
  9723. }
  9724. /* dlclose (self); */
  9725. }
  9726. else
  9727. puts (dlerror ());
  9728. return status;
  9729. }
  9730. _LT_EOF
  9731. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9732. (eval $ac_link) 2>&5
  9733. ac_status=$?
  9734. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9735. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9736. (./conftest; exit; ) >&5 2>/dev/null
  9737. lt_status=$?
  9738. case x$lt_status in
  9739. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9740. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9741. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9742. esac
  9743. else :
  9744. # compilation failed
  9745. lt_cv_dlopen_self=no
  9746. fi
  9747. fi
  9748. rm -fr conftest*
  9749. fi
  9750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9751. $as_echo "$lt_cv_dlopen_self" >&6; }
  9752. if test "x$lt_cv_dlopen_self" = xyes; then
  9753. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9755. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9756. if ${lt_cv_dlopen_self_static+:} false; then :
  9757. $as_echo_n "(cached) " >&6
  9758. else
  9759. if test "$cross_compiling" = yes; then :
  9760. lt_cv_dlopen_self_static=cross
  9761. else
  9762. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9763. lt_status=$lt_dlunknown
  9764. cat > conftest.$ac_ext <<_LT_EOF
  9765. #line $LINENO "configure"
  9766. #include "confdefs.h"
  9767. #if HAVE_DLFCN_H
  9768. #include <dlfcn.h>
  9769. #endif
  9770. #include <stdio.h>
  9771. #ifdef RTLD_GLOBAL
  9772. # define LT_DLGLOBAL RTLD_GLOBAL
  9773. #else
  9774. # ifdef DL_GLOBAL
  9775. # define LT_DLGLOBAL DL_GLOBAL
  9776. # else
  9777. # define LT_DLGLOBAL 0
  9778. # endif
  9779. #endif
  9780. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9781. find out it does not work in some platform. */
  9782. #ifndef LT_DLLAZY_OR_NOW
  9783. # ifdef RTLD_LAZY
  9784. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9785. # else
  9786. # ifdef DL_LAZY
  9787. # define LT_DLLAZY_OR_NOW DL_LAZY
  9788. # else
  9789. # ifdef RTLD_NOW
  9790. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9791. # else
  9792. # ifdef DL_NOW
  9793. # define LT_DLLAZY_OR_NOW DL_NOW
  9794. # else
  9795. # define LT_DLLAZY_OR_NOW 0
  9796. # endif
  9797. # endif
  9798. # endif
  9799. # endif
  9800. #endif
  9801. /* When -fvisbility=hidden is used, assume the code has been annotated
  9802. correspondingly for the symbols needed. */
  9803. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9804. int fnord () __attribute__((visibility("default")));
  9805. #endif
  9806. int fnord () { return 42; }
  9807. int main ()
  9808. {
  9809. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9810. int status = $lt_dlunknown;
  9811. if (self)
  9812. {
  9813. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9814. else
  9815. {
  9816. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9817. else puts (dlerror ());
  9818. }
  9819. /* dlclose (self); */
  9820. }
  9821. else
  9822. puts (dlerror ());
  9823. return status;
  9824. }
  9825. _LT_EOF
  9826. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9827. (eval $ac_link) 2>&5
  9828. ac_status=$?
  9829. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9830. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9831. (./conftest; exit; ) >&5 2>/dev/null
  9832. lt_status=$?
  9833. case x$lt_status in
  9834. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9835. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9836. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9837. esac
  9838. else :
  9839. # compilation failed
  9840. lt_cv_dlopen_self_static=no
  9841. fi
  9842. fi
  9843. rm -fr conftest*
  9844. fi
  9845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9846. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9847. fi
  9848. CPPFLAGS="$save_CPPFLAGS"
  9849. LDFLAGS="$save_LDFLAGS"
  9850. LIBS="$save_LIBS"
  9851. ;;
  9852. esac
  9853. case $lt_cv_dlopen_self in
  9854. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9855. *) enable_dlopen_self=unknown ;;
  9856. esac
  9857. case $lt_cv_dlopen_self_static in
  9858. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9859. *) enable_dlopen_self_static=unknown ;;
  9860. esac
  9861. fi
  9862. striplib=
  9863. old_striplib=
  9864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9865. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9866. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9867. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9868. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9870. $as_echo "yes" >&6; }
  9871. else
  9872. # FIXME - insert some real tests, host_os isn't really good enough
  9873. case $host_os in
  9874. darwin*)
  9875. if test -n "$STRIP" ; then
  9876. striplib="$STRIP -x"
  9877. old_striplib="$STRIP -S"
  9878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9879. $as_echo "yes" >&6; }
  9880. else
  9881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9882. $as_echo "no" >&6; }
  9883. fi
  9884. ;;
  9885. *)
  9886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9887. $as_echo "no" >&6; }
  9888. ;;
  9889. esac
  9890. fi
  9891. # Report which library types will actually be built
  9892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9893. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9895. $as_echo "$can_build_shared" >&6; }
  9896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9897. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9898. test "$can_build_shared" = "no" && enable_shared=no
  9899. # On AIX, shared libraries and static libraries use the same namespace, and
  9900. # are all built from PIC.
  9901. case $host_os in
  9902. aix3*)
  9903. test "$enable_shared" = yes && enable_static=no
  9904. if test -n "$RANLIB"; then
  9905. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9906. postinstall_cmds='$RANLIB $lib'
  9907. fi
  9908. ;;
  9909. aix[4-9]*)
  9910. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9911. test "$enable_shared" = yes && enable_static=no
  9912. fi
  9913. ;;
  9914. esac
  9915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9916. $as_echo "$enable_shared" >&6; }
  9917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9918. $as_echo_n "checking whether to build static libraries... " >&6; }
  9919. # Make sure either enable_shared or enable_static is yes.
  9920. test "$enable_shared" = yes || enable_static=yes
  9921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9922. $as_echo "$enable_static" >&6; }
  9923. fi
  9924. ac_ext=c
  9925. ac_cpp='$CPP $CPPFLAGS'
  9926. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9927. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9928. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9929. CC="$lt_save_CC"
  9930. ac_config_commands="$ac_config_commands libtool"
  9931. # Only expand once:
  9932. if test -n "$ac_tool_prefix"; then
  9933. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  9934. set dummy ${ac_tool_prefix}windres; ac_word=$2
  9935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9936. $as_echo_n "checking for $ac_word... " >&6; }
  9937. if ${ac_cv_prog_RC+:} false; then :
  9938. $as_echo_n "(cached) " >&6
  9939. else
  9940. if test -n "$RC"; then
  9941. ac_cv_prog_RC="$RC" # Let the user override the test.
  9942. else
  9943. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9944. for as_dir in $PATH
  9945. do
  9946. IFS=$as_save_IFS
  9947. test -z "$as_dir" && as_dir=.
  9948. for ac_exec_ext in '' $ac_executable_extensions; do
  9949. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9950. ac_cv_prog_RC="${ac_tool_prefix}windres"
  9951. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9952. break 2
  9953. fi
  9954. done
  9955. done
  9956. IFS=$as_save_IFS
  9957. fi
  9958. fi
  9959. RC=$ac_cv_prog_RC
  9960. if test -n "$RC"; then
  9961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  9962. $as_echo "$RC" >&6; }
  9963. else
  9964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9965. $as_echo "no" >&6; }
  9966. fi
  9967. fi
  9968. if test -z "$ac_cv_prog_RC"; then
  9969. ac_ct_RC=$RC
  9970. # Extract the first word of "windres", so it can be a program name with args.
  9971. set dummy windres; ac_word=$2
  9972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9973. $as_echo_n "checking for $ac_word... " >&6; }
  9974. if ${ac_cv_prog_ac_ct_RC+:} false; then :
  9975. $as_echo_n "(cached) " >&6
  9976. else
  9977. if test -n "$ac_ct_RC"; then
  9978. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  9979. else
  9980. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9981. for as_dir in $PATH
  9982. do
  9983. IFS=$as_save_IFS
  9984. test -z "$as_dir" && as_dir=.
  9985. for ac_exec_ext in '' $ac_executable_extensions; do
  9986. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9987. ac_cv_prog_ac_ct_RC="windres"
  9988. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9989. break 2
  9990. fi
  9991. done
  9992. done
  9993. IFS=$as_save_IFS
  9994. fi
  9995. fi
  9996. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  9997. if test -n "$ac_ct_RC"; then
  9998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  9999. $as_echo "$ac_ct_RC" >&6; }
  10000. else
  10001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10002. $as_echo "no" >&6; }
  10003. fi
  10004. if test "x$ac_ct_RC" = x; then
  10005. RC=""
  10006. else
  10007. case $cross_compiling:$ac_tool_warned in
  10008. yes:)
  10009. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10010. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10011. ac_tool_warned=yes ;;
  10012. esac
  10013. RC=$ac_ct_RC
  10014. fi
  10015. else
  10016. RC="$ac_cv_prog_RC"
  10017. fi
  10018. # Source file extension for RC test sources.
  10019. ac_ext=rc
  10020. # Object file extension for compiled RC test sources.
  10021. objext=o
  10022. objext_RC=$objext
  10023. # Code to be used in simple compile tests
  10024. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  10025. # Code to be used in simple link tests
  10026. lt_simple_link_test_code="$lt_simple_compile_test_code"
  10027. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10028. # If no C compiler was specified, use CC.
  10029. LTCC=${LTCC-"$CC"}
  10030. # If no C compiler flags were specified, use CFLAGS.
  10031. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10032. # Allow CC to be a program name with arguments.
  10033. compiler=$CC
  10034. # save warnings/boilerplate of simple test code
  10035. ac_outfile=conftest.$ac_objext
  10036. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10037. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10038. _lt_compiler_boilerplate=`cat conftest.err`
  10039. $RM conftest*
  10040. ac_outfile=conftest.$ac_objext
  10041. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10042. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10043. _lt_linker_boilerplate=`cat conftest.err`
  10044. $RM -r conftest*
  10045. # Allow CC to be a program name with arguments.
  10046. lt_save_CC="$CC"
  10047. lt_save_CFLAGS=$CFLAGS
  10048. lt_save_GCC=$GCC
  10049. GCC=
  10050. CC=${RC-"windres"}
  10051. CFLAGS=
  10052. compiler=$CC
  10053. compiler_RC=$CC
  10054. for cc_temp in $compiler""; do
  10055. case $cc_temp in
  10056. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10057. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10058. \-*) ;;
  10059. *) break;;
  10060. esac
  10061. done
  10062. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10063. lt_cv_prog_compiler_c_o_RC=yes
  10064. if test -n "$compiler"; then
  10065. :
  10066. fi
  10067. GCC=$lt_save_GCC
  10068. ac_ext=c
  10069. ac_cpp='$CPP $CPPFLAGS'
  10070. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10071. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10072. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10073. CC=$lt_save_CC
  10074. CFLAGS=$lt_save_CFLAGS
  10075. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  10076. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  10077. LT_REVISION=$SDL_INTERFACE_AGE
  10078. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  10079. ac_ext=c
  10080. ac_cpp='$CPP $CPPFLAGS'
  10081. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10082. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10083. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10084. if test -n "$ac_tool_prefix"; then
  10085. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  10086. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  10087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10088. $as_echo_n "checking for $ac_word... " >&6; }
  10089. if ${ac_cv_prog_CC+:} false; then :
  10090. $as_echo_n "(cached) " >&6
  10091. else
  10092. if test -n "$CC"; then
  10093. ac_cv_prog_CC="$CC" # Let the user override the test.
  10094. else
  10095. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10096. for as_dir in $PATH
  10097. do
  10098. IFS=$as_save_IFS
  10099. test -z "$as_dir" && as_dir=.
  10100. for ac_exec_ext in '' $ac_executable_extensions; do
  10101. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10102. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  10103. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10104. break 2
  10105. fi
  10106. done
  10107. done
  10108. IFS=$as_save_IFS
  10109. fi
  10110. fi
  10111. CC=$ac_cv_prog_CC
  10112. if test -n "$CC"; then
  10113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10114. $as_echo "$CC" >&6; }
  10115. else
  10116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10117. $as_echo "no" >&6; }
  10118. fi
  10119. fi
  10120. if test -z "$ac_cv_prog_CC"; then
  10121. ac_ct_CC=$CC
  10122. # Extract the first word of "gcc", so it can be a program name with args.
  10123. set dummy gcc; ac_word=$2
  10124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10125. $as_echo_n "checking for $ac_word... " >&6; }
  10126. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10127. $as_echo_n "(cached) " >&6
  10128. else
  10129. if test -n "$ac_ct_CC"; then
  10130. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10131. else
  10132. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10133. for as_dir in $PATH
  10134. do
  10135. IFS=$as_save_IFS
  10136. test -z "$as_dir" && as_dir=.
  10137. for ac_exec_ext in '' $ac_executable_extensions; do
  10138. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10139. ac_cv_prog_ac_ct_CC="gcc"
  10140. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10141. break 2
  10142. fi
  10143. done
  10144. done
  10145. IFS=$as_save_IFS
  10146. fi
  10147. fi
  10148. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10149. if test -n "$ac_ct_CC"; then
  10150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10151. $as_echo "$ac_ct_CC" >&6; }
  10152. else
  10153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10154. $as_echo "no" >&6; }
  10155. fi
  10156. if test "x$ac_ct_CC" = x; then
  10157. CC=""
  10158. else
  10159. case $cross_compiling:$ac_tool_warned in
  10160. yes:)
  10161. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10162. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10163. ac_tool_warned=yes ;;
  10164. esac
  10165. CC=$ac_ct_CC
  10166. fi
  10167. else
  10168. CC="$ac_cv_prog_CC"
  10169. fi
  10170. if test -z "$CC"; then
  10171. if test -n "$ac_tool_prefix"; then
  10172. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  10173. set dummy ${ac_tool_prefix}cc; ac_word=$2
  10174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10175. $as_echo_n "checking for $ac_word... " >&6; }
  10176. if ${ac_cv_prog_CC+:} false; then :
  10177. $as_echo_n "(cached) " >&6
  10178. else
  10179. if test -n "$CC"; then
  10180. ac_cv_prog_CC="$CC" # Let the user override the test.
  10181. else
  10182. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10183. for as_dir in $PATH
  10184. do
  10185. IFS=$as_save_IFS
  10186. test -z "$as_dir" && as_dir=.
  10187. for ac_exec_ext in '' $ac_executable_extensions; do
  10188. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10189. ac_cv_prog_CC="${ac_tool_prefix}cc"
  10190. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10191. break 2
  10192. fi
  10193. done
  10194. done
  10195. IFS=$as_save_IFS
  10196. fi
  10197. fi
  10198. CC=$ac_cv_prog_CC
  10199. if test -n "$CC"; then
  10200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10201. $as_echo "$CC" >&6; }
  10202. else
  10203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10204. $as_echo "no" >&6; }
  10205. fi
  10206. fi
  10207. fi
  10208. if test -z "$CC"; then
  10209. # Extract the first word of "cc", so it can be a program name with args.
  10210. set dummy cc; ac_word=$2
  10211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10212. $as_echo_n "checking for $ac_word... " >&6; }
  10213. if ${ac_cv_prog_CC+:} false; then :
  10214. $as_echo_n "(cached) " >&6
  10215. else
  10216. if test -n "$CC"; then
  10217. ac_cv_prog_CC="$CC" # Let the user override the test.
  10218. else
  10219. ac_prog_rejected=no
  10220. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10221. for as_dir in $PATH
  10222. do
  10223. IFS=$as_save_IFS
  10224. test -z "$as_dir" && as_dir=.
  10225. for ac_exec_ext in '' $ac_executable_extensions; do
  10226. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10227. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  10228. ac_prog_rejected=yes
  10229. continue
  10230. fi
  10231. ac_cv_prog_CC="cc"
  10232. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10233. break 2
  10234. fi
  10235. done
  10236. done
  10237. IFS=$as_save_IFS
  10238. if test $ac_prog_rejected = yes; then
  10239. # We found a bogon in the path, so make sure we never use it.
  10240. set dummy $ac_cv_prog_CC
  10241. shift
  10242. if test $# != 0; then
  10243. # We chose a different compiler from the bogus one.
  10244. # However, it has the same basename, so the bogon will be chosen
  10245. # first if we set CC to just the basename; use the full file name.
  10246. shift
  10247. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  10248. fi
  10249. fi
  10250. fi
  10251. fi
  10252. CC=$ac_cv_prog_CC
  10253. if test -n "$CC"; then
  10254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10255. $as_echo "$CC" >&6; }
  10256. else
  10257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10258. $as_echo "no" >&6; }
  10259. fi
  10260. fi
  10261. if test -z "$CC"; then
  10262. if test -n "$ac_tool_prefix"; then
  10263. for ac_prog in cl.exe
  10264. do
  10265. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10266. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10268. $as_echo_n "checking for $ac_word... " >&6; }
  10269. if ${ac_cv_prog_CC+:} false; then :
  10270. $as_echo_n "(cached) " >&6
  10271. else
  10272. if test -n "$CC"; then
  10273. ac_cv_prog_CC="$CC" # Let the user override the test.
  10274. else
  10275. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10276. for as_dir in $PATH
  10277. do
  10278. IFS=$as_save_IFS
  10279. test -z "$as_dir" && as_dir=.
  10280. for ac_exec_ext in '' $ac_executable_extensions; do
  10281. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10282. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10283. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10284. break 2
  10285. fi
  10286. done
  10287. done
  10288. IFS=$as_save_IFS
  10289. fi
  10290. fi
  10291. CC=$ac_cv_prog_CC
  10292. if test -n "$CC"; then
  10293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10294. $as_echo "$CC" >&6; }
  10295. else
  10296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10297. $as_echo "no" >&6; }
  10298. fi
  10299. test -n "$CC" && break
  10300. done
  10301. fi
  10302. if test -z "$CC"; then
  10303. ac_ct_CC=$CC
  10304. for ac_prog in cl.exe
  10305. do
  10306. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10307. set dummy $ac_prog; ac_word=$2
  10308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10309. $as_echo_n "checking for $ac_word... " >&6; }
  10310. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10311. $as_echo_n "(cached) " >&6
  10312. else
  10313. if test -n "$ac_ct_CC"; then
  10314. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10315. else
  10316. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10317. for as_dir in $PATH
  10318. do
  10319. IFS=$as_save_IFS
  10320. test -z "$as_dir" && as_dir=.
  10321. for ac_exec_ext in '' $ac_executable_extensions; do
  10322. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10323. ac_cv_prog_ac_ct_CC="$ac_prog"
  10324. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10325. break 2
  10326. fi
  10327. done
  10328. done
  10329. IFS=$as_save_IFS
  10330. fi
  10331. fi
  10332. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10333. if test -n "$ac_ct_CC"; then
  10334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10335. $as_echo "$ac_ct_CC" >&6; }
  10336. else
  10337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10338. $as_echo "no" >&6; }
  10339. fi
  10340. test -n "$ac_ct_CC" && break
  10341. done
  10342. if test "x$ac_ct_CC" = x; then
  10343. CC=""
  10344. else
  10345. case $cross_compiling:$ac_tool_warned in
  10346. yes:)
  10347. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10348. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10349. ac_tool_warned=yes ;;
  10350. esac
  10351. CC=$ac_ct_CC
  10352. fi
  10353. fi
  10354. fi
  10355. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10356. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10357. as_fn_error $? "no acceptable C compiler found in \$PATH
  10358. See \`config.log' for more details" "$LINENO" 5; }
  10359. # Provide some information about the compiler.
  10360. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10361. set X $ac_compile
  10362. ac_compiler=$2
  10363. for ac_option in --version -v -V -qversion; do
  10364. { { ac_try="$ac_compiler $ac_option >&5"
  10365. case "(($ac_try" in
  10366. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10367. *) ac_try_echo=$ac_try;;
  10368. esac
  10369. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10370. $as_echo "$ac_try_echo"; } >&5
  10371. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10372. ac_status=$?
  10373. if test -s conftest.err; then
  10374. sed '10a\
  10375. ... rest of stderr output deleted ...
  10376. 10q' conftest.err >conftest.er1
  10377. cat conftest.er1 >&5
  10378. fi
  10379. rm -f conftest.er1 conftest.err
  10380. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10381. test $ac_status = 0; }
  10382. done
  10383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10384. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10385. if ${ac_cv_c_compiler_gnu+:} false; then :
  10386. $as_echo_n "(cached) " >&6
  10387. else
  10388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10389. /* end confdefs.h. */
  10390. int
  10391. main ()
  10392. {
  10393. #ifndef __GNUC__
  10394. choke me
  10395. #endif
  10396. ;
  10397. return 0;
  10398. }
  10399. _ACEOF
  10400. if ac_fn_c_try_compile "$LINENO"; then :
  10401. ac_compiler_gnu=yes
  10402. else
  10403. ac_compiler_gnu=no
  10404. fi
  10405. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10406. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10407. fi
  10408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10409. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10410. if test $ac_compiler_gnu = yes; then
  10411. GCC=yes
  10412. else
  10413. GCC=
  10414. fi
  10415. ac_test_CFLAGS=${CFLAGS+set}
  10416. ac_save_CFLAGS=$CFLAGS
  10417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10418. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10419. if ${ac_cv_prog_cc_g+:} false; then :
  10420. $as_echo_n "(cached) " >&6
  10421. else
  10422. ac_save_c_werror_flag=$ac_c_werror_flag
  10423. ac_c_werror_flag=yes
  10424. ac_cv_prog_cc_g=no
  10425. CFLAGS="-g"
  10426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10427. /* end confdefs.h. */
  10428. int
  10429. main ()
  10430. {
  10431. ;
  10432. return 0;
  10433. }
  10434. _ACEOF
  10435. if ac_fn_c_try_compile "$LINENO"; then :
  10436. ac_cv_prog_cc_g=yes
  10437. else
  10438. CFLAGS=""
  10439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10440. /* end confdefs.h. */
  10441. int
  10442. main ()
  10443. {
  10444. ;
  10445. return 0;
  10446. }
  10447. _ACEOF
  10448. if ac_fn_c_try_compile "$LINENO"; then :
  10449. else
  10450. ac_c_werror_flag=$ac_save_c_werror_flag
  10451. CFLAGS="-g"
  10452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10453. /* end confdefs.h. */
  10454. int
  10455. main ()
  10456. {
  10457. ;
  10458. return 0;
  10459. }
  10460. _ACEOF
  10461. if ac_fn_c_try_compile "$LINENO"; then :
  10462. ac_cv_prog_cc_g=yes
  10463. fi
  10464. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10465. fi
  10466. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10467. fi
  10468. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10469. ac_c_werror_flag=$ac_save_c_werror_flag
  10470. fi
  10471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10472. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10473. if test "$ac_test_CFLAGS" = set; then
  10474. CFLAGS=$ac_save_CFLAGS
  10475. elif test $ac_cv_prog_cc_g = yes; then
  10476. if test "$GCC" = yes; then
  10477. CFLAGS="-g -O2"
  10478. else
  10479. CFLAGS="-g"
  10480. fi
  10481. else
  10482. if test "$GCC" = yes; then
  10483. CFLAGS="-O2"
  10484. else
  10485. CFLAGS=
  10486. fi
  10487. fi
  10488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10489. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10490. if ${ac_cv_prog_cc_c89+:} false; then :
  10491. $as_echo_n "(cached) " >&6
  10492. else
  10493. ac_cv_prog_cc_c89=no
  10494. ac_save_CC=$CC
  10495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10496. /* end confdefs.h. */
  10497. #include <stdarg.h>
  10498. #include <stdio.h>
  10499. struct stat;
  10500. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10501. struct buf { int x; };
  10502. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10503. static char *e (p, i)
  10504. char **p;
  10505. int i;
  10506. {
  10507. return p[i];
  10508. }
  10509. static char *f (char * (*g) (char **, int), char **p, ...)
  10510. {
  10511. char *s;
  10512. va_list v;
  10513. va_start (v,p);
  10514. s = g (p, va_arg (v,int));
  10515. va_end (v);
  10516. return s;
  10517. }
  10518. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10519. function prototypes and stuff, but not '\xHH' hex character constants.
  10520. These don't provoke an error unfortunately, instead are silently treated
  10521. as 'x'. The following induces an error, until -std is added to get
  10522. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10523. array size at least. It's necessary to write '\x00'==0 to get something
  10524. that's true only with -std. */
  10525. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10526. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10527. inside strings and character constants. */
  10528. #define FOO(x) 'x'
  10529. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10530. int test (int i, double x);
  10531. struct s1 {int (*f) (int a);};
  10532. struct s2 {int (*f) (double a);};
  10533. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10534. int argc;
  10535. char **argv;
  10536. int
  10537. main ()
  10538. {
  10539. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10540. ;
  10541. return 0;
  10542. }
  10543. _ACEOF
  10544. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10545. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10546. do
  10547. CC="$ac_save_CC $ac_arg"
  10548. if ac_fn_c_try_compile "$LINENO"; then :
  10549. ac_cv_prog_cc_c89=$ac_arg
  10550. fi
  10551. rm -f core conftest.err conftest.$ac_objext
  10552. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10553. done
  10554. rm -f conftest.$ac_ext
  10555. CC=$ac_save_CC
  10556. fi
  10557. # AC_CACHE_VAL
  10558. case "x$ac_cv_prog_cc_c89" in
  10559. x)
  10560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10561. $as_echo "none needed" >&6; } ;;
  10562. xno)
  10563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10564. $as_echo "unsupported" >&6; } ;;
  10565. *)
  10566. CC="$CC $ac_cv_prog_cc_c89"
  10567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10568. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10569. esac
  10570. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10571. fi
  10572. ac_ext=c
  10573. ac_cpp='$CPP $CPPFLAGS'
  10574. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10575. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10576. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10577. ac_ext=cpp
  10578. ac_cpp='$CXXCPP $CPPFLAGS'
  10579. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10580. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10581. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10582. if test -z "$CXX"; then
  10583. if test -n "$CCC"; then
  10584. CXX=$CCC
  10585. else
  10586. if test -n "$ac_tool_prefix"; then
  10587. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10588. do
  10589. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10590. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10592. $as_echo_n "checking for $ac_word... " >&6; }
  10593. if ${ac_cv_prog_CXX+:} false; then :
  10594. $as_echo_n "(cached) " >&6
  10595. else
  10596. if test -n "$CXX"; then
  10597. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10598. else
  10599. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10600. for as_dir in $PATH
  10601. do
  10602. IFS=$as_save_IFS
  10603. test -z "$as_dir" && as_dir=.
  10604. for ac_exec_ext in '' $ac_executable_extensions; do
  10605. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10606. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10607. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10608. break 2
  10609. fi
  10610. done
  10611. done
  10612. IFS=$as_save_IFS
  10613. fi
  10614. fi
  10615. CXX=$ac_cv_prog_CXX
  10616. if test -n "$CXX"; then
  10617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10618. $as_echo "$CXX" >&6; }
  10619. else
  10620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10621. $as_echo "no" >&6; }
  10622. fi
  10623. test -n "$CXX" && break
  10624. done
  10625. fi
  10626. if test -z "$CXX"; then
  10627. ac_ct_CXX=$CXX
  10628. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10629. do
  10630. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10631. set dummy $ac_prog; ac_word=$2
  10632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10633. $as_echo_n "checking for $ac_word... " >&6; }
  10634. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10635. $as_echo_n "(cached) " >&6
  10636. else
  10637. if test -n "$ac_ct_CXX"; then
  10638. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10639. else
  10640. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10641. for as_dir in $PATH
  10642. do
  10643. IFS=$as_save_IFS
  10644. test -z "$as_dir" && as_dir=.
  10645. for ac_exec_ext in '' $ac_executable_extensions; do
  10646. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10647. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10648. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10649. break 2
  10650. fi
  10651. done
  10652. done
  10653. IFS=$as_save_IFS
  10654. fi
  10655. fi
  10656. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10657. if test -n "$ac_ct_CXX"; then
  10658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10659. $as_echo "$ac_ct_CXX" >&6; }
  10660. else
  10661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10662. $as_echo "no" >&6; }
  10663. fi
  10664. test -n "$ac_ct_CXX" && break
  10665. done
  10666. if test "x$ac_ct_CXX" = x; then
  10667. CXX="g++"
  10668. else
  10669. case $cross_compiling:$ac_tool_warned in
  10670. yes:)
  10671. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10672. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10673. ac_tool_warned=yes ;;
  10674. esac
  10675. CXX=$ac_ct_CXX
  10676. fi
  10677. fi
  10678. fi
  10679. fi
  10680. # Provide some information about the compiler.
  10681. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10682. set X $ac_compile
  10683. ac_compiler=$2
  10684. for ac_option in --version -v -V -qversion; do
  10685. { { ac_try="$ac_compiler $ac_option >&5"
  10686. case "(($ac_try" in
  10687. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10688. *) ac_try_echo=$ac_try;;
  10689. esac
  10690. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10691. $as_echo "$ac_try_echo"; } >&5
  10692. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10693. ac_status=$?
  10694. if test -s conftest.err; then
  10695. sed '10a\
  10696. ... rest of stderr output deleted ...
  10697. 10q' conftest.err >conftest.er1
  10698. cat conftest.er1 >&5
  10699. fi
  10700. rm -f conftest.er1 conftest.err
  10701. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10702. test $ac_status = 0; }
  10703. done
  10704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10705. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10706. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10707. $as_echo_n "(cached) " >&6
  10708. else
  10709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10710. /* end confdefs.h. */
  10711. int
  10712. main ()
  10713. {
  10714. #ifndef __GNUC__
  10715. choke me
  10716. #endif
  10717. ;
  10718. return 0;
  10719. }
  10720. _ACEOF
  10721. if ac_fn_cxx_try_compile "$LINENO"; then :
  10722. ac_compiler_gnu=yes
  10723. else
  10724. ac_compiler_gnu=no
  10725. fi
  10726. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10727. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10728. fi
  10729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10730. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10731. if test $ac_compiler_gnu = yes; then
  10732. GXX=yes
  10733. else
  10734. GXX=
  10735. fi
  10736. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10737. ac_save_CXXFLAGS=$CXXFLAGS
  10738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10739. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10740. if ${ac_cv_prog_cxx_g+:} false; then :
  10741. $as_echo_n "(cached) " >&6
  10742. else
  10743. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10744. ac_cxx_werror_flag=yes
  10745. ac_cv_prog_cxx_g=no
  10746. CXXFLAGS="-g"
  10747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10748. /* end confdefs.h. */
  10749. int
  10750. main ()
  10751. {
  10752. ;
  10753. return 0;
  10754. }
  10755. _ACEOF
  10756. if ac_fn_cxx_try_compile "$LINENO"; then :
  10757. ac_cv_prog_cxx_g=yes
  10758. else
  10759. CXXFLAGS=""
  10760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10761. /* end confdefs.h. */
  10762. int
  10763. main ()
  10764. {
  10765. ;
  10766. return 0;
  10767. }
  10768. _ACEOF
  10769. if ac_fn_cxx_try_compile "$LINENO"; then :
  10770. else
  10771. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10772. CXXFLAGS="-g"
  10773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10774. /* end confdefs.h. */
  10775. int
  10776. main ()
  10777. {
  10778. ;
  10779. return 0;
  10780. }
  10781. _ACEOF
  10782. if ac_fn_cxx_try_compile "$LINENO"; then :
  10783. ac_cv_prog_cxx_g=yes
  10784. fi
  10785. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10786. fi
  10787. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10788. fi
  10789. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10790. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10791. fi
  10792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10793. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10794. if test "$ac_test_CXXFLAGS" = set; then
  10795. CXXFLAGS=$ac_save_CXXFLAGS
  10796. elif test $ac_cv_prog_cxx_g = yes; then
  10797. if test "$GXX" = yes; then
  10798. CXXFLAGS="-g -O2"
  10799. else
  10800. CXXFLAGS="-g"
  10801. fi
  10802. else
  10803. if test "$GXX" = yes; then
  10804. CXXFLAGS="-O2"
  10805. else
  10806. CXXFLAGS=
  10807. fi
  10808. fi
  10809. ac_ext=c
  10810. ac_cpp='$CPP $CPPFLAGS'
  10811. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10812. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10813. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10814. func_stripname_cnf ()
  10815. {
  10816. case ${2} in
  10817. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10818. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10819. esac
  10820. } # func_stripname_cnf
  10821. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10822. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10823. (test "X$CXX" != "Xg++"))) ; then
  10824. ac_ext=cpp
  10825. ac_cpp='$CXXCPP $CPPFLAGS'
  10826. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10827. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10828. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10830. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10831. if test -z "$CXXCPP"; then
  10832. if ${ac_cv_prog_CXXCPP+:} false; then :
  10833. $as_echo_n "(cached) " >&6
  10834. else
  10835. # Double quotes because CXXCPP needs to be expanded
  10836. for CXXCPP in "$CXX -E" "/lib/cpp"
  10837. do
  10838. ac_preproc_ok=false
  10839. for ac_cxx_preproc_warn_flag in '' yes
  10840. do
  10841. # Use a header file that comes with gcc, so configuring glibc
  10842. # with a fresh cross-compiler works.
  10843. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10844. # <limits.h> exists even on freestanding compilers.
  10845. # On the NeXT, cc -E runs the code through the compiler's parser,
  10846. # not just through cpp. "Syntax error" is here to catch this case.
  10847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10848. /* end confdefs.h. */
  10849. #ifdef __STDC__
  10850. # include <limits.h>
  10851. #else
  10852. # include <assert.h>
  10853. #endif
  10854. Syntax error
  10855. _ACEOF
  10856. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10857. else
  10858. # Broken: fails on valid input.
  10859. continue
  10860. fi
  10861. rm -f conftest.err conftest.i conftest.$ac_ext
  10862. # OK, works on sane cases. Now check whether nonexistent headers
  10863. # can be detected and how.
  10864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10865. /* end confdefs.h. */
  10866. #include <ac_nonexistent.h>
  10867. _ACEOF
  10868. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10869. # Broken: success on invalid input.
  10870. continue
  10871. else
  10872. # Passes both tests.
  10873. ac_preproc_ok=:
  10874. break
  10875. fi
  10876. rm -f conftest.err conftest.i conftest.$ac_ext
  10877. done
  10878. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10879. rm -f conftest.i conftest.err conftest.$ac_ext
  10880. if $ac_preproc_ok; then :
  10881. break
  10882. fi
  10883. done
  10884. ac_cv_prog_CXXCPP=$CXXCPP
  10885. fi
  10886. CXXCPP=$ac_cv_prog_CXXCPP
  10887. else
  10888. ac_cv_prog_CXXCPP=$CXXCPP
  10889. fi
  10890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10891. $as_echo "$CXXCPP" >&6; }
  10892. ac_preproc_ok=false
  10893. for ac_cxx_preproc_warn_flag in '' yes
  10894. do
  10895. # Use a header file that comes with gcc, so configuring glibc
  10896. # with a fresh cross-compiler works.
  10897. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10898. # <limits.h> exists even on freestanding compilers.
  10899. # On the NeXT, cc -E runs the code through the compiler's parser,
  10900. # not just through cpp. "Syntax error" is here to catch this case.
  10901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10902. /* end confdefs.h. */
  10903. #ifdef __STDC__
  10904. # include <limits.h>
  10905. #else
  10906. # include <assert.h>
  10907. #endif
  10908. Syntax error
  10909. _ACEOF
  10910. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10911. else
  10912. # Broken: fails on valid input.
  10913. continue
  10914. fi
  10915. rm -f conftest.err conftest.i conftest.$ac_ext
  10916. # OK, works on sane cases. Now check whether nonexistent headers
  10917. # can be detected and how.
  10918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10919. /* end confdefs.h. */
  10920. #include <ac_nonexistent.h>
  10921. _ACEOF
  10922. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10923. # Broken: success on invalid input.
  10924. continue
  10925. else
  10926. # Passes both tests.
  10927. ac_preproc_ok=:
  10928. break
  10929. fi
  10930. rm -f conftest.err conftest.i conftest.$ac_ext
  10931. done
  10932. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10933. rm -f conftest.i conftest.err conftest.$ac_ext
  10934. if $ac_preproc_ok; then :
  10935. else
  10936. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10937. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10938. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10939. See \`config.log' for more details" "$LINENO" 5; }
  10940. fi
  10941. ac_ext=c
  10942. ac_cpp='$CPP $CPPFLAGS'
  10943. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10944. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10945. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10946. else
  10947. _lt_caught_CXX_error=yes
  10948. fi
  10949. ac_ext=cpp
  10950. ac_cpp='$CXXCPP $CPPFLAGS'
  10951. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10952. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10953. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10954. archive_cmds_need_lc_CXX=no
  10955. allow_undefined_flag_CXX=
  10956. always_export_symbols_CXX=no
  10957. archive_expsym_cmds_CXX=
  10958. compiler_needs_object_CXX=no
  10959. export_dynamic_flag_spec_CXX=
  10960. hardcode_direct_CXX=no
  10961. hardcode_direct_absolute_CXX=no
  10962. hardcode_libdir_flag_spec_CXX=
  10963. hardcode_libdir_separator_CXX=
  10964. hardcode_minus_L_CXX=no
  10965. hardcode_shlibpath_var_CXX=unsupported
  10966. hardcode_automatic_CXX=no
  10967. inherit_rpath_CXX=no
  10968. module_cmds_CXX=
  10969. module_expsym_cmds_CXX=
  10970. link_all_deplibs_CXX=unknown
  10971. old_archive_cmds_CXX=$old_archive_cmds
  10972. reload_flag_CXX=$reload_flag
  10973. reload_cmds_CXX=$reload_cmds
  10974. no_undefined_flag_CXX=
  10975. whole_archive_flag_spec_CXX=
  10976. enable_shared_with_static_runtimes_CXX=no
  10977. # Source file extension for C++ test sources.
  10978. ac_ext=cpp
  10979. # Object file extension for compiled C++ test sources.
  10980. objext=o
  10981. objext_CXX=$objext
  10982. # No sense in running all these tests if we already determined that
  10983. # the CXX compiler isn't working. Some variables (like enable_shared)
  10984. # are currently assumed to apply to all compilers on this platform,
  10985. # and will be corrupted by setting them based on a non-working compiler.
  10986. if test "$_lt_caught_CXX_error" != yes; then
  10987. # Code to be used in simple compile tests
  10988. lt_simple_compile_test_code="int some_variable = 0;"
  10989. # Code to be used in simple link tests
  10990. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10991. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10992. # If no C compiler was specified, use CC.
  10993. LTCC=${LTCC-"$CC"}
  10994. # If no C compiler flags were specified, use CFLAGS.
  10995. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10996. # Allow CC to be a program name with arguments.
  10997. compiler=$CC
  10998. # save warnings/boilerplate of simple test code
  10999. ac_outfile=conftest.$ac_objext
  11000. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11001. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11002. _lt_compiler_boilerplate=`cat conftest.err`
  11003. $RM conftest*
  11004. ac_outfile=conftest.$ac_objext
  11005. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11006. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11007. _lt_linker_boilerplate=`cat conftest.err`
  11008. $RM -r conftest*
  11009. # Allow CC to be a program name with arguments.
  11010. lt_save_CC=$CC
  11011. lt_save_CFLAGS=$CFLAGS
  11012. lt_save_LD=$LD
  11013. lt_save_GCC=$GCC
  11014. GCC=$GXX
  11015. lt_save_with_gnu_ld=$with_gnu_ld
  11016. lt_save_path_LD=$lt_cv_path_LD
  11017. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11018. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11019. else
  11020. $as_unset lt_cv_prog_gnu_ld
  11021. fi
  11022. if test -n "${lt_cv_path_LDCXX+set}"; then
  11023. lt_cv_path_LD=$lt_cv_path_LDCXX
  11024. else
  11025. $as_unset lt_cv_path_LD
  11026. fi
  11027. test -z "${LDCXX+set}" || LD=$LDCXX
  11028. CC=${CXX-"c++"}
  11029. CFLAGS=$CXXFLAGS
  11030. compiler=$CC
  11031. compiler_CXX=$CC
  11032. for cc_temp in $compiler""; do
  11033. case $cc_temp in
  11034. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11035. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11036. \-*) ;;
  11037. *) break;;
  11038. esac
  11039. done
  11040. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  11041. if test -n "$compiler"; then
  11042. # We don't want -fno-exception when compiling C++ code, so set the
  11043. # no_builtin_flag separately
  11044. if test "$GXX" = yes; then
  11045. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11046. else
  11047. lt_prog_compiler_no_builtin_flag_CXX=
  11048. fi
  11049. if test "$GXX" = yes; then
  11050. # Set up default GNU C++ configuration
  11051. # Check whether --with-gnu-ld was given.
  11052. if test "${with_gnu_ld+set}" = set; then :
  11053. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11054. else
  11055. with_gnu_ld=no
  11056. fi
  11057. ac_prog=ld
  11058. if test "$GCC" = yes; then
  11059. # Check if gcc -print-prog-name=ld gives a path.
  11060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11061. $as_echo_n "checking for ld used by $CC... " >&6; }
  11062. case $host in
  11063. *-*-mingw*)
  11064. # gcc leaves a trailing carriage return which upsets mingw
  11065. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11066. *)
  11067. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11068. esac
  11069. case $ac_prog in
  11070. # Accept absolute paths.
  11071. [\\/]* | ?:[\\/]*)
  11072. re_direlt='/[^/][^/]*/\.\./'
  11073. # Canonicalize the pathname of ld
  11074. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11075. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11076. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11077. done
  11078. test -z "$LD" && LD="$ac_prog"
  11079. ;;
  11080. "")
  11081. # If it fails, then pretend we aren't using GCC.
  11082. ac_prog=ld
  11083. ;;
  11084. *)
  11085. # If it is relative, then search for the first ld in PATH.
  11086. with_gnu_ld=unknown
  11087. ;;
  11088. esac
  11089. elif test "$with_gnu_ld" = yes; then
  11090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11091. $as_echo_n "checking for GNU ld... " >&6; }
  11092. else
  11093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11094. $as_echo_n "checking for non-GNU ld... " >&6; }
  11095. fi
  11096. if ${lt_cv_path_LD+:} false; then :
  11097. $as_echo_n "(cached) " >&6
  11098. else
  11099. if test -z "$LD"; then
  11100. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11101. for ac_dir in $PATH; do
  11102. IFS="$lt_save_ifs"
  11103. test -z "$ac_dir" && ac_dir=.
  11104. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11105. lt_cv_path_LD="$ac_dir/$ac_prog"
  11106. # Check to see if the program is GNU ld. I'd rather use --version,
  11107. # but apparently some variants of GNU ld only accept -v.
  11108. # Break only if it was the GNU/non-GNU ld that we prefer.
  11109. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11110. *GNU* | *'with BFD'*)
  11111. test "$with_gnu_ld" != no && break
  11112. ;;
  11113. *)
  11114. test "$with_gnu_ld" != yes && break
  11115. ;;
  11116. esac
  11117. fi
  11118. done
  11119. IFS="$lt_save_ifs"
  11120. else
  11121. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11122. fi
  11123. fi
  11124. LD="$lt_cv_path_LD"
  11125. if test -n "$LD"; then
  11126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11127. $as_echo "$LD" >&6; }
  11128. else
  11129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11130. $as_echo "no" >&6; }
  11131. fi
  11132. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11134. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11135. if ${lt_cv_prog_gnu_ld+:} false; then :
  11136. $as_echo_n "(cached) " >&6
  11137. else
  11138. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11139. case `$LD -v 2>&1 </dev/null` in
  11140. *GNU* | *'with BFD'*)
  11141. lt_cv_prog_gnu_ld=yes
  11142. ;;
  11143. *)
  11144. lt_cv_prog_gnu_ld=no
  11145. ;;
  11146. esac
  11147. fi
  11148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11149. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11150. with_gnu_ld=$lt_cv_prog_gnu_ld
  11151. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11152. # archiving commands below assume that GNU ld is being used.
  11153. if test "$with_gnu_ld" = yes; then
  11154. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11155. 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'
  11156. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11157. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11158. # If archive_cmds runs LD, not CC, wlarc should be empty
  11159. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11160. # investigate it a little bit more. (MM)
  11161. wlarc='${wl}'
  11162. # ancient GNU ld didn't support --whole-archive et. al.
  11163. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11164. $GREP 'no-whole-archive' > /dev/null; then
  11165. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11166. else
  11167. whole_archive_flag_spec_CXX=
  11168. fi
  11169. else
  11170. with_gnu_ld=no
  11171. wlarc=
  11172. # A generic and very simple default shared library creation
  11173. # command for GNU C++ for the case where it uses the native
  11174. # linker, instead of GNU ld. If possible, this setting should
  11175. # overridden to take advantage of the native linker features on
  11176. # the platform it is being used on.
  11177. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11178. fi
  11179. # Commands to make compiler produce verbose output that lists
  11180. # what "hidden" libraries, object files and flags are used when
  11181. # linking a shared library.
  11182. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11183. else
  11184. GXX=no
  11185. with_gnu_ld=no
  11186. wlarc=
  11187. fi
  11188. # PORTME: fill in a description of your system's C++ link characteristics
  11189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11190. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11191. ld_shlibs_CXX=yes
  11192. case $host_os in
  11193. aix3*)
  11194. # FIXME: insert proper C++ library support
  11195. ld_shlibs_CXX=no
  11196. ;;
  11197. aix[4-9]*)
  11198. if test "$host_cpu" = ia64; then
  11199. # On IA64, the linker does run time linking by default, so we don't
  11200. # have to do anything special.
  11201. aix_use_runtimelinking=no
  11202. exp_sym_flag='-Bexport'
  11203. no_entry_flag=""
  11204. else
  11205. aix_use_runtimelinking=no
  11206. # Test if we are trying to use run time linking or normal
  11207. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11208. # need to do runtime linking.
  11209. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11210. for ld_flag in $LDFLAGS; do
  11211. case $ld_flag in
  11212. *-brtl*)
  11213. aix_use_runtimelinking=yes
  11214. break
  11215. ;;
  11216. esac
  11217. done
  11218. ;;
  11219. esac
  11220. exp_sym_flag='-bexport'
  11221. no_entry_flag='-bnoentry'
  11222. fi
  11223. # When large executables or shared objects are built, AIX ld can
  11224. # have problems creating the table of contents. If linking a library
  11225. # or program results in "error TOC overflow" add -mminimal-toc to
  11226. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11227. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11228. archive_cmds_CXX=''
  11229. hardcode_direct_CXX=yes
  11230. hardcode_direct_absolute_CXX=yes
  11231. hardcode_libdir_separator_CXX=':'
  11232. link_all_deplibs_CXX=yes
  11233. file_list_spec_CXX='${wl}-f,'
  11234. if test "$GXX" = yes; then
  11235. case $host_os in aix4.[012]|aix4.[012].*)
  11236. # We only want to do this on AIX 4.2 and lower, the check
  11237. # below for broken collect2 doesn't work under 4.3+
  11238. collect2name=`${CC} -print-prog-name=collect2`
  11239. if test -f "$collect2name" &&
  11240. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11241. then
  11242. # We have reworked collect2
  11243. :
  11244. else
  11245. # We have old collect2
  11246. hardcode_direct_CXX=unsupported
  11247. # It fails to find uninstalled libraries when the uninstalled
  11248. # path is not listed in the libpath. Setting hardcode_minus_L
  11249. # to unsupported forces relinking
  11250. hardcode_minus_L_CXX=yes
  11251. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11252. hardcode_libdir_separator_CXX=
  11253. fi
  11254. esac
  11255. shared_flag='-shared'
  11256. if test "$aix_use_runtimelinking" = yes; then
  11257. shared_flag="$shared_flag "'${wl}-G'
  11258. fi
  11259. else
  11260. # not using gcc
  11261. if test "$host_cpu" = ia64; then
  11262. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11263. # chokes on -Wl,-G. The following line is correct:
  11264. shared_flag='-G'
  11265. else
  11266. if test "$aix_use_runtimelinking" = yes; then
  11267. shared_flag='${wl}-G'
  11268. else
  11269. shared_flag='${wl}-bM:SRE'
  11270. fi
  11271. fi
  11272. fi
  11273. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11274. # It seems that -bexpall does not export symbols beginning with
  11275. # underscore (_), so it is better to generate a list of symbols to
  11276. # export.
  11277. always_export_symbols_CXX=yes
  11278. if test "$aix_use_runtimelinking" = yes; then
  11279. # Warning - without using the other runtime loading flags (-brtl),
  11280. # -berok will link without error, but may produce a broken library.
  11281. allow_undefined_flag_CXX='-berok'
  11282. # Determine the default libpath from the value encoded in an empty
  11283. # executable.
  11284. if test "${lt_cv_aix_libpath+set}" = set; then
  11285. aix_libpath=$lt_cv_aix_libpath
  11286. else
  11287. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11288. $as_echo_n "(cached) " >&6
  11289. else
  11290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11291. /* end confdefs.h. */
  11292. int
  11293. main ()
  11294. {
  11295. ;
  11296. return 0;
  11297. }
  11298. _ACEOF
  11299. if ac_fn_cxx_try_link "$LINENO"; then :
  11300. lt_aix_libpath_sed='
  11301. /Import File Strings/,/^$/ {
  11302. /^0/ {
  11303. s/^0 *\([^ ]*\) *$/\1/
  11304. p
  11305. }
  11306. }'
  11307. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11308. # Check for a 64-bit object if we didn't find anything.
  11309. if test -z "$lt_cv_aix_libpath__CXX"; then
  11310. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11311. fi
  11312. fi
  11313. rm -f core conftest.err conftest.$ac_objext \
  11314. conftest$ac_exeext conftest.$ac_ext
  11315. if test -z "$lt_cv_aix_libpath__CXX"; then
  11316. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11317. fi
  11318. fi
  11319. aix_libpath=$lt_cv_aix_libpath__CXX
  11320. fi
  11321. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11322. 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"
  11323. else
  11324. if test "$host_cpu" = ia64; then
  11325. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11326. allow_undefined_flag_CXX="-z nodefs"
  11327. 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"
  11328. else
  11329. # Determine the default libpath from the value encoded in an
  11330. # empty executable.
  11331. if test "${lt_cv_aix_libpath+set}" = set; then
  11332. aix_libpath=$lt_cv_aix_libpath
  11333. else
  11334. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11335. $as_echo_n "(cached) " >&6
  11336. else
  11337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11338. /* end confdefs.h. */
  11339. int
  11340. main ()
  11341. {
  11342. ;
  11343. return 0;
  11344. }
  11345. _ACEOF
  11346. if ac_fn_cxx_try_link "$LINENO"; then :
  11347. lt_aix_libpath_sed='
  11348. /Import File Strings/,/^$/ {
  11349. /^0/ {
  11350. s/^0 *\([^ ]*\) *$/\1/
  11351. p
  11352. }
  11353. }'
  11354. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11355. # Check for a 64-bit object if we didn't find anything.
  11356. if test -z "$lt_cv_aix_libpath__CXX"; then
  11357. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11358. fi
  11359. fi
  11360. rm -f core conftest.err conftest.$ac_objext \
  11361. conftest$ac_exeext conftest.$ac_ext
  11362. if test -z "$lt_cv_aix_libpath__CXX"; then
  11363. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11364. fi
  11365. fi
  11366. aix_libpath=$lt_cv_aix_libpath__CXX
  11367. fi
  11368. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11369. # Warning - without using the other run time loading flags,
  11370. # -berok will link without error, but may produce a broken library.
  11371. no_undefined_flag_CXX=' ${wl}-bernotok'
  11372. allow_undefined_flag_CXX=' ${wl}-berok'
  11373. if test "$with_gnu_ld" = yes; then
  11374. # We only use this code for GNU lds that support --whole-archive.
  11375. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11376. else
  11377. # Exported symbols can be pulled into shared objects from archives
  11378. whole_archive_flag_spec_CXX='$convenience'
  11379. fi
  11380. archive_cmds_need_lc_CXX=yes
  11381. # This is similar to how AIX traditionally builds its shared
  11382. # libraries.
  11383. 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'
  11384. fi
  11385. fi
  11386. ;;
  11387. beos*)
  11388. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11389. allow_undefined_flag_CXX=unsupported
  11390. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11391. # support --undefined. This deserves some investigation. FIXME
  11392. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11393. else
  11394. ld_shlibs_CXX=no
  11395. fi
  11396. ;;
  11397. chorus*)
  11398. case $cc_basename in
  11399. *)
  11400. # FIXME: insert proper C++ library support
  11401. ld_shlibs_CXX=no
  11402. ;;
  11403. esac
  11404. ;;
  11405. cygwin* | mingw* | pw32* | cegcc*)
  11406. case $GXX,$cc_basename in
  11407. ,cl* | no,cl*)
  11408. # Native MSVC
  11409. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11410. # no search path for DLLs.
  11411. hardcode_libdir_flag_spec_CXX=' '
  11412. allow_undefined_flag_CXX=unsupported
  11413. always_export_symbols_CXX=yes
  11414. file_list_spec_CXX='@'
  11415. # Tell ltmain to make .lib files, not .a files.
  11416. libext=lib
  11417. # Tell ltmain to make .dll files, not .so files.
  11418. shrext_cmds=".dll"
  11419. # FIXME: Setting linknames here is a bad hack.
  11420. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11421. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11422. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11423. else
  11424. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11425. fi~
  11426. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11427. linknames='
  11428. # The linker will not automatically build a static lib if we build a DLL.
  11429. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11430. enable_shared_with_static_runtimes_CXX=yes
  11431. # Don't use ranlib
  11432. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11433. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11434. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11435. case $lt_outputfile in
  11436. *.exe|*.EXE) ;;
  11437. *)
  11438. lt_outputfile="$lt_outputfile.exe"
  11439. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11440. ;;
  11441. esac~
  11442. func_to_tool_file "$lt_outputfile"~
  11443. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11444. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11445. $RM "$lt_outputfile.manifest";
  11446. fi'
  11447. ;;
  11448. *)
  11449. # g++
  11450. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11451. # as there is no search path for DLLs.
  11452. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11453. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11454. allow_undefined_flag_CXX=unsupported
  11455. always_export_symbols_CXX=no
  11456. enable_shared_with_static_runtimes_CXX=yes
  11457. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11458. 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'
  11459. # If the export-symbols file already is a .def file (1st line
  11460. # is EXPORTS), use it as is; otherwise, prepend...
  11461. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11462. cp $export_symbols $output_objdir/$soname.def;
  11463. else
  11464. echo EXPORTS > $output_objdir/$soname.def;
  11465. cat $export_symbols >> $output_objdir/$soname.def;
  11466. fi~
  11467. $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'
  11468. else
  11469. ld_shlibs_CXX=no
  11470. fi
  11471. ;;
  11472. esac
  11473. ;;
  11474. darwin* | rhapsody*)
  11475. archive_cmds_need_lc_CXX=no
  11476. hardcode_direct_CXX=no
  11477. hardcode_automatic_CXX=yes
  11478. hardcode_shlibpath_var_CXX=unsupported
  11479. if test "$lt_cv_ld_force_load" = "yes"; then
  11480. 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\"`'
  11481. else
  11482. whole_archive_flag_spec_CXX=''
  11483. fi
  11484. link_all_deplibs_CXX=yes
  11485. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11486. case $cc_basename in
  11487. ifort*) _lt_dar_can_shared=yes ;;
  11488. *) _lt_dar_can_shared=$GCC ;;
  11489. esac
  11490. if test "$_lt_dar_can_shared" = "yes"; then
  11491. output_verbose_link_cmd=func_echo_all
  11492. 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}"
  11493. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11494. 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}"
  11495. 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}"
  11496. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11497. 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}"
  11498. 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}"
  11499. fi
  11500. else
  11501. ld_shlibs_CXX=no
  11502. fi
  11503. ;;
  11504. dgux*)
  11505. case $cc_basename in
  11506. ec++*)
  11507. # FIXME: insert proper C++ library support
  11508. ld_shlibs_CXX=no
  11509. ;;
  11510. ghcx*)
  11511. # Green Hills C++ Compiler
  11512. # FIXME: insert proper C++ library support
  11513. ld_shlibs_CXX=no
  11514. ;;
  11515. *)
  11516. # FIXME: insert proper C++ library support
  11517. ld_shlibs_CXX=no
  11518. ;;
  11519. esac
  11520. ;;
  11521. freebsd2.*)
  11522. # C++ shared libraries reported to be fairly broken before
  11523. # switch to ELF
  11524. ld_shlibs_CXX=no
  11525. ;;
  11526. freebsd-elf*)
  11527. archive_cmds_need_lc_CXX=no
  11528. ;;
  11529. freebsd* | dragonfly*)
  11530. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11531. # conventions
  11532. ld_shlibs_CXX=yes
  11533. ;;
  11534. gnu*)
  11535. ;;
  11536. haiku*)
  11537. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11538. link_all_deplibs_CXX=yes
  11539. ;;
  11540. hpux9*)
  11541. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11542. hardcode_libdir_separator_CXX=:
  11543. export_dynamic_flag_spec_CXX='${wl}-E'
  11544. hardcode_direct_CXX=yes
  11545. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11546. # but as the default
  11547. # location of the library.
  11548. case $cc_basename in
  11549. CC*)
  11550. # FIXME: insert proper C++ library support
  11551. ld_shlibs_CXX=no
  11552. ;;
  11553. aCC*)
  11554. 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'
  11555. # Commands to make compiler produce verbose output that lists
  11556. # what "hidden" libraries, object files and flags are used when
  11557. # linking a shared library.
  11558. #
  11559. # There doesn't appear to be a way to prevent this compiler from
  11560. # explicitly linking system object files so we need to strip them
  11561. # from the output so that they don't get included in the library
  11562. # dependencies.
  11563. 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"'
  11564. ;;
  11565. *)
  11566. if test "$GXX" = yes; then
  11567. 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'
  11568. else
  11569. # FIXME: insert proper C++ library support
  11570. ld_shlibs_CXX=no
  11571. fi
  11572. ;;
  11573. esac
  11574. ;;
  11575. hpux10*|hpux11*)
  11576. if test $with_gnu_ld = no; then
  11577. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11578. hardcode_libdir_separator_CXX=:
  11579. case $host_cpu in
  11580. hppa*64*|ia64*)
  11581. ;;
  11582. *)
  11583. export_dynamic_flag_spec_CXX='${wl}-E'
  11584. ;;
  11585. esac
  11586. fi
  11587. case $host_cpu in
  11588. hppa*64*|ia64*)
  11589. hardcode_direct_CXX=no
  11590. hardcode_shlibpath_var_CXX=no
  11591. ;;
  11592. *)
  11593. hardcode_direct_CXX=yes
  11594. hardcode_direct_absolute_CXX=yes
  11595. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11596. # but as the default
  11597. # location of the library.
  11598. ;;
  11599. esac
  11600. case $cc_basename in
  11601. CC*)
  11602. # FIXME: insert proper C++ library support
  11603. ld_shlibs_CXX=no
  11604. ;;
  11605. aCC*)
  11606. case $host_cpu in
  11607. hppa*64*)
  11608. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11609. ;;
  11610. ia64*)
  11611. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11612. ;;
  11613. *)
  11614. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11615. ;;
  11616. esac
  11617. # Commands to make compiler produce verbose output that lists
  11618. # what "hidden" libraries, object files and flags are used when
  11619. # linking a shared library.
  11620. #
  11621. # There doesn't appear to be a way to prevent this compiler from
  11622. # explicitly linking system object files so we need to strip them
  11623. # from the output so that they don't get included in the library
  11624. # dependencies.
  11625. 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"'
  11626. ;;
  11627. *)
  11628. if test "$GXX" = yes; then
  11629. if test $with_gnu_ld = no; then
  11630. case $host_cpu in
  11631. hppa*64*)
  11632. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11633. ;;
  11634. ia64*)
  11635. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11636. ;;
  11637. *)
  11638. 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'
  11639. ;;
  11640. esac
  11641. fi
  11642. else
  11643. # FIXME: insert proper C++ library support
  11644. ld_shlibs_CXX=no
  11645. fi
  11646. ;;
  11647. esac
  11648. ;;
  11649. interix[3-9]*)
  11650. hardcode_direct_CXX=no
  11651. hardcode_shlibpath_var_CXX=no
  11652. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11653. export_dynamic_flag_spec_CXX='${wl}-E'
  11654. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11655. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11656. # default) and relocated if they conflict, which is a slow very memory
  11657. # consuming and fragmenting process. To avoid this, we pick a random,
  11658. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11659. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11660. 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'
  11661. 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'
  11662. ;;
  11663. irix5* | irix6*)
  11664. case $cc_basename in
  11665. CC*)
  11666. # SGI C++
  11667. 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'
  11668. # Archives containing C++ object files must be created using
  11669. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11670. # necessary to make sure instantiated templates are included
  11671. # in the archive.
  11672. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11673. ;;
  11674. *)
  11675. if test "$GXX" = yes; then
  11676. if test "$with_gnu_ld" = no; then
  11677. 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'
  11678. else
  11679. 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'
  11680. fi
  11681. fi
  11682. link_all_deplibs_CXX=yes
  11683. ;;
  11684. esac
  11685. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11686. hardcode_libdir_separator_CXX=:
  11687. inherit_rpath_CXX=yes
  11688. ;;
  11689. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11690. case $cc_basename in
  11691. KCC*)
  11692. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11693. # KCC will only create a shared library if the output file
  11694. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11695. # to its proper name (with version) after linking.
  11696. 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'
  11697. 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'
  11698. # Commands to make compiler produce verbose output that lists
  11699. # what "hidden" libraries, object files and flags are used when
  11700. # linking a shared library.
  11701. #
  11702. # There doesn't appear to be a way to prevent this compiler from
  11703. # explicitly linking system object files so we need to strip them
  11704. # from the output so that they don't get included in the library
  11705. # dependencies.
  11706. 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"'
  11707. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11708. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11709. # Archives containing C++ object files must be created using
  11710. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11711. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11712. ;;
  11713. icpc* | ecpc* )
  11714. # Intel C++
  11715. with_gnu_ld=yes
  11716. # version 8.0 and above of icpc choke on multiply defined symbols
  11717. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11718. # earlier do not add the objects themselves.
  11719. case `$CC -V 2>&1` in
  11720. *"Version 7."*)
  11721. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11722. 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'
  11723. ;;
  11724. *) # Version 8.0 or newer
  11725. tmp_idyn=
  11726. case $host_cpu in
  11727. ia64*) tmp_idyn=' -i_dynamic';;
  11728. esac
  11729. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11730. 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'
  11731. ;;
  11732. esac
  11733. archive_cmds_need_lc_CXX=no
  11734. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11735. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11736. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11737. ;;
  11738. pgCC* | pgcpp*)
  11739. # Portland Group C++ compiler
  11740. case `$CC -V` in
  11741. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11742. prelink_cmds_CXX='tpldir=Template.dir~
  11743. rm -rf $tpldir~
  11744. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11745. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11746. old_archive_cmds_CXX='tpldir=Template.dir~
  11747. rm -rf $tpldir~
  11748. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11749. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11750. $RANLIB $oldlib'
  11751. archive_cmds_CXX='tpldir=Template.dir~
  11752. rm -rf $tpldir~
  11753. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11754. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11755. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11756. rm -rf $tpldir~
  11757. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11758. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11759. ;;
  11760. *) # Version 6 and above use weak symbols
  11761. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11762. 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'
  11763. ;;
  11764. esac
  11765. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11766. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11767. 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'
  11768. ;;
  11769. cxx*)
  11770. # Compaq C++
  11771. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11772. 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'
  11773. runpath_var=LD_RUN_PATH
  11774. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11775. hardcode_libdir_separator_CXX=:
  11776. # Commands to make compiler produce verbose output that lists
  11777. # what "hidden" libraries, object files and flags are used when
  11778. # linking a shared library.
  11779. #
  11780. # There doesn't appear to be a way to prevent this compiler from
  11781. # explicitly linking system object files so we need to strip them
  11782. # from the output so that they don't get included in the library
  11783. # dependencies.
  11784. 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'
  11785. ;;
  11786. xl* | mpixl* | bgxl*)
  11787. # IBM XL 8.0 on PPC, with GNU ld
  11788. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11789. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11790. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11791. if test "x$supports_anon_versioning" = xyes; then
  11792. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11793. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11794. echo "local: *; };" >> $output_objdir/$libname.ver~
  11795. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11796. fi
  11797. ;;
  11798. *)
  11799. case `$CC -V 2>&1 | sed 5q` in
  11800. *Sun\ C*)
  11801. # Sun C++ 5.9
  11802. no_undefined_flag_CXX=' -zdefs'
  11803. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11804. 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'
  11805. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11806. 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'
  11807. compiler_needs_object_CXX=yes
  11808. # Not sure whether something based on
  11809. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11810. # would be better.
  11811. output_verbose_link_cmd='func_echo_all'
  11812. # Archives containing C++ object files must be created using
  11813. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11814. # necessary to make sure instantiated templates are included
  11815. # in the archive.
  11816. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11817. ;;
  11818. esac
  11819. ;;
  11820. esac
  11821. ;;
  11822. lynxos*)
  11823. # FIXME: insert proper C++ library support
  11824. ld_shlibs_CXX=no
  11825. ;;
  11826. m88k*)
  11827. # FIXME: insert proper C++ library support
  11828. ld_shlibs_CXX=no
  11829. ;;
  11830. mvs*)
  11831. case $cc_basename in
  11832. cxx*)
  11833. # FIXME: insert proper C++ library support
  11834. ld_shlibs_CXX=no
  11835. ;;
  11836. *)
  11837. # FIXME: insert proper C++ library support
  11838. ld_shlibs_CXX=no
  11839. ;;
  11840. esac
  11841. ;;
  11842. netbsd*)
  11843. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11844. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11845. wlarc=
  11846. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11847. hardcode_direct_CXX=yes
  11848. hardcode_shlibpath_var_CXX=no
  11849. fi
  11850. # Workaround some broken pre-1.5 toolchains
  11851. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11852. ;;
  11853. *nto* | *qnx*)
  11854. ld_shlibs_CXX=yes
  11855. ;;
  11856. openbsd2*)
  11857. # C++ shared libraries are fairly broken
  11858. ld_shlibs_CXX=no
  11859. ;;
  11860. openbsd*)
  11861. if test -f /usr/libexec/ld.so; then
  11862. hardcode_direct_CXX=yes
  11863. hardcode_shlibpath_var_CXX=no
  11864. hardcode_direct_absolute_CXX=yes
  11865. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11866. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11867. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11868. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11869. export_dynamic_flag_spec_CXX='${wl}-E'
  11870. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11871. fi
  11872. output_verbose_link_cmd=func_echo_all
  11873. else
  11874. ld_shlibs_CXX=no
  11875. fi
  11876. ;;
  11877. osf3* | osf4* | osf5*)
  11878. case $cc_basename in
  11879. KCC*)
  11880. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11881. # KCC will only create a shared library if the output file
  11882. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11883. # to its proper name (with version) after linking.
  11884. 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'
  11885. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11886. hardcode_libdir_separator_CXX=:
  11887. # Archives containing C++ object files must be created using
  11888. # the KAI C++ compiler.
  11889. case $host in
  11890. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11891. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11892. esac
  11893. ;;
  11894. RCC*)
  11895. # Rational C++ 2.4.1
  11896. # FIXME: insert proper C++ library support
  11897. ld_shlibs_CXX=no
  11898. ;;
  11899. cxx*)
  11900. case $host in
  11901. osf3*)
  11902. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11903. 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'
  11904. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11905. ;;
  11906. *)
  11907. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11908. 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'
  11909. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11910. echo "-hidden">> $lib.exp~
  11911. $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~
  11912. $RM $lib.exp'
  11913. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11914. ;;
  11915. esac
  11916. hardcode_libdir_separator_CXX=:
  11917. # Commands to make compiler produce verbose output that lists
  11918. # what "hidden" libraries, object files and flags are used when
  11919. # linking a shared library.
  11920. #
  11921. # There doesn't appear to be a way to prevent this compiler from
  11922. # explicitly linking system object files so we need to strip them
  11923. # from the output so that they don't get included in the library
  11924. # dependencies.
  11925. 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"'
  11926. ;;
  11927. *)
  11928. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11929. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11930. case $host in
  11931. osf3*)
  11932. 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'
  11933. ;;
  11934. *)
  11935. 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'
  11936. ;;
  11937. esac
  11938. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11939. hardcode_libdir_separator_CXX=:
  11940. # Commands to make compiler produce verbose output that lists
  11941. # what "hidden" libraries, object files and flags are used when
  11942. # linking a shared library.
  11943. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11944. else
  11945. # FIXME: insert proper C++ library support
  11946. ld_shlibs_CXX=no
  11947. fi
  11948. ;;
  11949. esac
  11950. ;;
  11951. psos*)
  11952. # FIXME: insert proper C++ library support
  11953. ld_shlibs_CXX=no
  11954. ;;
  11955. sunos4*)
  11956. case $cc_basename in
  11957. CC*)
  11958. # Sun C++ 4.x
  11959. # FIXME: insert proper C++ library support
  11960. ld_shlibs_CXX=no
  11961. ;;
  11962. lcc*)
  11963. # Lucid
  11964. # FIXME: insert proper C++ library support
  11965. ld_shlibs_CXX=no
  11966. ;;
  11967. *)
  11968. # FIXME: insert proper C++ library support
  11969. ld_shlibs_CXX=no
  11970. ;;
  11971. esac
  11972. ;;
  11973. solaris*)
  11974. case $cc_basename in
  11975. CC* | sunCC*)
  11976. # Sun C++ 4.2, 5.x and Centerline C++
  11977. archive_cmds_need_lc_CXX=yes
  11978. no_undefined_flag_CXX=' -zdefs'
  11979. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11980. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11981. $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'
  11982. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11983. hardcode_shlibpath_var_CXX=no
  11984. case $host_os in
  11985. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11986. *)
  11987. # The compiler driver will combine and reorder linker options,
  11988. # but understands `-z linker_flag'.
  11989. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11990. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11991. ;;
  11992. esac
  11993. link_all_deplibs_CXX=yes
  11994. output_verbose_link_cmd='func_echo_all'
  11995. # Archives containing C++ object files must be created using
  11996. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11997. # necessary to make sure instantiated templates are included
  11998. # in the archive.
  11999. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12000. ;;
  12001. gcx*)
  12002. # Green Hills C++ Compiler
  12003. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12004. # The C++ compiler must be used to create the archive.
  12005. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12006. ;;
  12007. *)
  12008. # GNU C++ compiler with Solaris linker
  12009. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12010. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  12011. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12012. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12013. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12014. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12015. # Commands to make compiler produce verbose output that lists
  12016. # what "hidden" libraries, object files and flags are used when
  12017. # linking a shared library.
  12018. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12019. else
  12020. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  12021. # platform.
  12022. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12023. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12024. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12025. # Commands to make compiler produce verbose output that lists
  12026. # what "hidden" libraries, object files and flags are used when
  12027. # linking a shared library.
  12028. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12029. fi
  12030. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  12031. case $host_os in
  12032. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12033. *)
  12034. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  12035. ;;
  12036. esac
  12037. fi
  12038. ;;
  12039. esac
  12040. ;;
  12041. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12042. no_undefined_flag_CXX='${wl}-z,text'
  12043. archive_cmds_need_lc_CXX=no
  12044. hardcode_shlibpath_var_CXX=no
  12045. runpath_var='LD_RUN_PATH'
  12046. case $cc_basename in
  12047. CC*)
  12048. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12049. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12050. ;;
  12051. *)
  12052. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12053. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12054. ;;
  12055. esac
  12056. ;;
  12057. sysv5* | sco3.2v5* | sco5v6*)
  12058. # Note: We can NOT use -z defs as we might desire, because we do not
  12059. # link with -lc, and that would cause any symbols used from libc to
  12060. # always be unresolved, which means just about no library would
  12061. # ever link correctly. If we're not using GNU ld we use -z text
  12062. # though, which does catch some bad symbols but isn't as heavy-handed
  12063. # as -z defs.
  12064. no_undefined_flag_CXX='${wl}-z,text'
  12065. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12066. archive_cmds_need_lc_CXX=no
  12067. hardcode_shlibpath_var_CXX=no
  12068. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  12069. hardcode_libdir_separator_CXX=':'
  12070. link_all_deplibs_CXX=yes
  12071. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12072. runpath_var='LD_RUN_PATH'
  12073. case $cc_basename in
  12074. CC*)
  12075. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12076. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12077. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12078. '"$old_archive_cmds_CXX"
  12079. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12080. '"$reload_cmds_CXX"
  12081. ;;
  12082. *)
  12083. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12084. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12085. ;;
  12086. esac
  12087. ;;
  12088. tandem*)
  12089. case $cc_basename in
  12090. NCC*)
  12091. # NonStop-UX NCC 3.20
  12092. # FIXME: insert proper C++ library support
  12093. ld_shlibs_CXX=no
  12094. ;;
  12095. *)
  12096. # FIXME: insert proper C++ library support
  12097. ld_shlibs_CXX=no
  12098. ;;
  12099. esac
  12100. ;;
  12101. vxworks*)
  12102. # FIXME: insert proper C++ library support
  12103. ld_shlibs_CXX=no
  12104. ;;
  12105. *)
  12106. # FIXME: insert proper C++ library support
  12107. ld_shlibs_CXX=no
  12108. ;;
  12109. esac
  12110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12111. $as_echo "$ld_shlibs_CXX" >&6; }
  12112. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12113. GCC_CXX="$GXX"
  12114. LD_CXX="$LD"
  12115. ## CAVEAT EMPTOR:
  12116. ## There is no encapsulation within the following macros, do not change
  12117. ## the running order or otherwise move them around unless you know exactly
  12118. ## what you are doing...
  12119. # Dependencies to place before and after the object being linked:
  12120. predep_objects_CXX=
  12121. postdep_objects_CXX=
  12122. predeps_CXX=
  12123. postdeps_CXX=
  12124. compiler_lib_search_path_CXX=
  12125. cat > conftest.$ac_ext <<_LT_EOF
  12126. class Foo
  12127. {
  12128. public:
  12129. Foo (void) { a = 0; }
  12130. private:
  12131. int a;
  12132. };
  12133. _LT_EOF
  12134. _lt_libdeps_save_CFLAGS=$CFLAGS
  12135. case "$CC $CFLAGS " in #(
  12136. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12137. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12138. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12139. esac
  12140. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12141. (eval $ac_compile) 2>&5
  12142. ac_status=$?
  12143. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12144. test $ac_status = 0; }; then
  12145. # Parse the compiler output and extract the necessary
  12146. # objects, libraries and library flags.
  12147. # Sentinel used to keep track of whether or not we are before
  12148. # the conftest object file.
  12149. pre_test_object_deps_done=no
  12150. for p in `eval "$output_verbose_link_cmd"`; do
  12151. case ${prev}${p} in
  12152. -L* | -R* | -l*)
  12153. # Some compilers place space between "-{L,R}" and the path.
  12154. # Remove the space.
  12155. if test $p = "-L" ||
  12156. test $p = "-R"; then
  12157. prev=$p
  12158. continue
  12159. fi
  12160. # Expand the sysroot to ease extracting the directories later.
  12161. if test -z "$prev"; then
  12162. case $p in
  12163. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12164. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12165. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12166. esac
  12167. fi
  12168. case $p in
  12169. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12170. esac
  12171. if test "$pre_test_object_deps_done" = no; then
  12172. case ${prev} in
  12173. -L | -R)
  12174. # Internal compiler library paths should come after those
  12175. # provided the user. The postdeps already come after the
  12176. # user supplied libs so there is no need to process them.
  12177. if test -z "$compiler_lib_search_path_CXX"; then
  12178. compiler_lib_search_path_CXX="${prev}${p}"
  12179. else
  12180. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12181. fi
  12182. ;;
  12183. # The "-l" case would never come before the object being
  12184. # linked, so don't bother handling this case.
  12185. esac
  12186. else
  12187. if test -z "$postdeps_CXX"; then
  12188. postdeps_CXX="${prev}${p}"
  12189. else
  12190. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12191. fi
  12192. fi
  12193. prev=
  12194. ;;
  12195. *.lto.$objext) ;; # Ignore GCC LTO objects
  12196. *.$objext)
  12197. # This assumes that the test object file only shows up
  12198. # once in the compiler output.
  12199. if test "$p" = "conftest.$objext"; then
  12200. pre_test_object_deps_done=yes
  12201. continue
  12202. fi
  12203. if test "$pre_test_object_deps_done" = no; then
  12204. if test -z "$predep_objects_CXX"; then
  12205. predep_objects_CXX="$p"
  12206. else
  12207. predep_objects_CXX="$predep_objects_CXX $p"
  12208. fi
  12209. else
  12210. if test -z "$postdep_objects_CXX"; then
  12211. postdep_objects_CXX="$p"
  12212. else
  12213. postdep_objects_CXX="$postdep_objects_CXX $p"
  12214. fi
  12215. fi
  12216. ;;
  12217. *) ;; # Ignore the rest.
  12218. esac
  12219. done
  12220. # Clean up.
  12221. rm -f a.out a.exe
  12222. else
  12223. echo "libtool.m4: error: problem compiling CXX test program"
  12224. fi
  12225. $RM -f confest.$objext
  12226. CFLAGS=$_lt_libdeps_save_CFLAGS
  12227. # PORTME: override above test on systems where it is broken
  12228. case $host_os in
  12229. interix[3-9]*)
  12230. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12231. # hack all around it, let's just trust "g++" to DTRT.
  12232. predep_objects_CXX=
  12233. postdep_objects_CXX=
  12234. postdeps_CXX=
  12235. ;;
  12236. linux*)
  12237. case `$CC -V 2>&1 | sed 5q` in
  12238. *Sun\ C*)
  12239. # Sun C++ 5.9
  12240. # The more standards-conforming stlport4 library is
  12241. # incompatible with the Cstd library. Avoid specifying
  12242. # it if it's in CXXFLAGS. Ignore libCrun as
  12243. # -library=stlport4 depends on it.
  12244. case " $CXX $CXXFLAGS " in
  12245. *" -library=stlport4 "*)
  12246. solaris_use_stlport4=yes
  12247. ;;
  12248. esac
  12249. if test "$solaris_use_stlport4" != yes; then
  12250. postdeps_CXX='-library=Cstd -library=Crun'
  12251. fi
  12252. ;;
  12253. esac
  12254. ;;
  12255. solaris*)
  12256. case $cc_basename in
  12257. CC* | sunCC*)
  12258. # The more standards-conforming stlport4 library is
  12259. # incompatible with the Cstd library. Avoid specifying
  12260. # it if it's in CXXFLAGS. Ignore libCrun as
  12261. # -library=stlport4 depends on it.
  12262. case " $CXX $CXXFLAGS " in
  12263. *" -library=stlport4 "*)
  12264. solaris_use_stlport4=yes
  12265. ;;
  12266. esac
  12267. # Adding this requires a known-good setup of shared libraries for
  12268. # Sun compiler versions before 5.6, else PIC objects from an old
  12269. # archive will be linked into the output, leading to subtle bugs.
  12270. if test "$solaris_use_stlport4" != yes; then
  12271. postdeps_CXX='-library=Cstd -library=Crun'
  12272. fi
  12273. ;;
  12274. esac
  12275. ;;
  12276. esac
  12277. case " $postdeps_CXX " in
  12278. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12279. esac
  12280. compiler_lib_search_dirs_CXX=
  12281. if test -n "${compiler_lib_search_path_CXX}"; then
  12282. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12283. fi
  12284. lt_prog_compiler_wl_CXX=
  12285. lt_prog_compiler_pic_CXX=
  12286. lt_prog_compiler_static_CXX=
  12287. # C++ specific cases for pic, static, wl, etc.
  12288. if test "$GXX" = yes; then
  12289. lt_prog_compiler_wl_CXX='-Wl,'
  12290. lt_prog_compiler_static_CXX='-static'
  12291. case $host_os in
  12292. aix*)
  12293. # All AIX code is PIC.
  12294. if test "$host_cpu" = ia64; then
  12295. # AIX 5 now supports IA64 processor
  12296. lt_prog_compiler_static_CXX='-Bstatic'
  12297. fi
  12298. ;;
  12299. amigaos*)
  12300. case $host_cpu in
  12301. powerpc)
  12302. # see comment about AmigaOS4 .so support
  12303. lt_prog_compiler_pic_CXX='-fPIC'
  12304. ;;
  12305. m68k)
  12306. # FIXME: we need at least 68020 code to build shared libraries, but
  12307. # adding the `-m68020' flag to GCC prevents building anything better,
  12308. # like `-m68040'.
  12309. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12310. ;;
  12311. esac
  12312. ;;
  12313. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12314. # PIC is the default for these OSes.
  12315. ;;
  12316. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12317. # This hack is so that the source file can tell whether it is being
  12318. # built for inclusion in a dll (and should export symbols for example).
  12319. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12320. # (--disable-auto-import) libraries
  12321. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12322. ;;
  12323. darwin* | rhapsody*)
  12324. # PIC is the default on this platform
  12325. # Common symbols not allowed in MH_DYLIB files
  12326. lt_prog_compiler_pic_CXX='-fno-common'
  12327. ;;
  12328. *djgpp*)
  12329. # DJGPP does not support shared libraries at all
  12330. lt_prog_compiler_pic_CXX=
  12331. ;;
  12332. haiku*)
  12333. # PIC is the default for Haiku.
  12334. # The "-static" flag exists, but is broken.
  12335. lt_prog_compiler_static_CXX=
  12336. ;;
  12337. interix[3-9]*)
  12338. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12339. # Instead, we relocate shared libraries at runtime.
  12340. ;;
  12341. sysv4*MP*)
  12342. if test -d /usr/nec; then
  12343. lt_prog_compiler_pic_CXX=-Kconform_pic
  12344. fi
  12345. ;;
  12346. hpux*)
  12347. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12348. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12349. # sets the default TLS model and affects inlining.
  12350. case $host_cpu in
  12351. hppa*64*)
  12352. ;;
  12353. *)
  12354. lt_prog_compiler_pic_CXX='-fPIC'
  12355. ;;
  12356. esac
  12357. ;;
  12358. *qnx* | *nto*)
  12359. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12360. # it will coredump.
  12361. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12362. ;;
  12363. *)
  12364. lt_prog_compiler_pic_CXX='-fPIC'
  12365. ;;
  12366. esac
  12367. else
  12368. case $host_os in
  12369. aix[4-9]*)
  12370. # All AIX code is PIC.
  12371. if test "$host_cpu" = ia64; then
  12372. # AIX 5 now supports IA64 processor
  12373. lt_prog_compiler_static_CXX='-Bstatic'
  12374. else
  12375. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12376. fi
  12377. ;;
  12378. chorus*)
  12379. case $cc_basename in
  12380. cxch68*)
  12381. # Green Hills C++ Compiler
  12382. # _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"
  12383. ;;
  12384. esac
  12385. ;;
  12386. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12387. # This hack is so that the source file can tell whether it is being
  12388. # built for inclusion in a dll (and should export symbols for example).
  12389. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12390. ;;
  12391. dgux*)
  12392. case $cc_basename in
  12393. ec++*)
  12394. lt_prog_compiler_pic_CXX='-KPIC'
  12395. ;;
  12396. ghcx*)
  12397. # Green Hills C++ Compiler
  12398. lt_prog_compiler_pic_CXX='-pic'
  12399. ;;
  12400. *)
  12401. ;;
  12402. esac
  12403. ;;
  12404. freebsd* | dragonfly*)
  12405. # FreeBSD uses GNU C++
  12406. ;;
  12407. hpux9* | hpux10* | hpux11*)
  12408. case $cc_basename in
  12409. CC*)
  12410. lt_prog_compiler_wl_CXX='-Wl,'
  12411. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12412. if test "$host_cpu" != ia64; then
  12413. lt_prog_compiler_pic_CXX='+Z'
  12414. fi
  12415. ;;
  12416. aCC*)
  12417. lt_prog_compiler_wl_CXX='-Wl,'
  12418. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12419. case $host_cpu in
  12420. hppa*64*|ia64*)
  12421. # +Z the default
  12422. ;;
  12423. *)
  12424. lt_prog_compiler_pic_CXX='+Z'
  12425. ;;
  12426. esac
  12427. ;;
  12428. *)
  12429. ;;
  12430. esac
  12431. ;;
  12432. interix*)
  12433. # This is c89, which is MS Visual C++ (no shared libs)
  12434. # Anyone wants to do a port?
  12435. ;;
  12436. irix5* | irix6* | nonstopux*)
  12437. case $cc_basename in
  12438. CC*)
  12439. lt_prog_compiler_wl_CXX='-Wl,'
  12440. lt_prog_compiler_static_CXX='-non_shared'
  12441. # CC pic flag -KPIC is the default.
  12442. ;;
  12443. *)
  12444. ;;
  12445. esac
  12446. ;;
  12447. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12448. case $cc_basename in
  12449. KCC*)
  12450. # KAI C++ Compiler
  12451. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12452. lt_prog_compiler_pic_CXX='-fPIC'
  12453. ;;
  12454. ecpc* )
  12455. # old Intel C++ for x86_64 which still supported -KPIC.
  12456. lt_prog_compiler_wl_CXX='-Wl,'
  12457. lt_prog_compiler_pic_CXX='-KPIC'
  12458. lt_prog_compiler_static_CXX='-static'
  12459. ;;
  12460. icpc* )
  12461. # Intel C++, used to be incompatible with GCC.
  12462. # ICC 10 doesn't accept -KPIC any more.
  12463. lt_prog_compiler_wl_CXX='-Wl,'
  12464. lt_prog_compiler_pic_CXX='-fPIC'
  12465. lt_prog_compiler_static_CXX='-static'
  12466. ;;
  12467. pgCC* | pgcpp*)
  12468. # Portland Group C++ compiler
  12469. lt_prog_compiler_wl_CXX='-Wl,'
  12470. lt_prog_compiler_pic_CXX='-fpic'
  12471. lt_prog_compiler_static_CXX='-Bstatic'
  12472. ;;
  12473. cxx*)
  12474. # Compaq C++
  12475. # Make sure the PIC flag is empty. It appears that all Alpha
  12476. # Linux and Compaq Tru64 Unix objects are PIC.
  12477. lt_prog_compiler_pic_CXX=
  12478. lt_prog_compiler_static_CXX='-non_shared'
  12479. ;;
  12480. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12481. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12482. lt_prog_compiler_wl_CXX='-Wl,'
  12483. lt_prog_compiler_pic_CXX='-qpic'
  12484. lt_prog_compiler_static_CXX='-qstaticlink'
  12485. ;;
  12486. *)
  12487. case `$CC -V 2>&1 | sed 5q` in
  12488. *Sun\ C*)
  12489. # Sun C++ 5.9
  12490. lt_prog_compiler_pic_CXX='-KPIC'
  12491. lt_prog_compiler_static_CXX='-Bstatic'
  12492. lt_prog_compiler_wl_CXX='-Qoption ld '
  12493. ;;
  12494. esac
  12495. ;;
  12496. esac
  12497. ;;
  12498. lynxos*)
  12499. ;;
  12500. m88k*)
  12501. ;;
  12502. mvs*)
  12503. case $cc_basename in
  12504. cxx*)
  12505. lt_prog_compiler_pic_CXX='-W c,exportall'
  12506. ;;
  12507. *)
  12508. ;;
  12509. esac
  12510. ;;
  12511. netbsd*)
  12512. ;;
  12513. *qnx* | *nto*)
  12514. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12515. # it will coredump.
  12516. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12517. ;;
  12518. osf3* | osf4* | osf5*)
  12519. case $cc_basename in
  12520. KCC*)
  12521. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12522. ;;
  12523. RCC*)
  12524. # Rational C++ 2.4.1
  12525. lt_prog_compiler_pic_CXX='-pic'
  12526. ;;
  12527. cxx*)
  12528. # Digital/Compaq C++
  12529. lt_prog_compiler_wl_CXX='-Wl,'
  12530. # Make sure the PIC flag is empty. It appears that all Alpha
  12531. # Linux and Compaq Tru64 Unix objects are PIC.
  12532. lt_prog_compiler_pic_CXX=
  12533. lt_prog_compiler_static_CXX='-non_shared'
  12534. ;;
  12535. *)
  12536. ;;
  12537. esac
  12538. ;;
  12539. psos*)
  12540. ;;
  12541. solaris*)
  12542. case $cc_basename in
  12543. CC* | sunCC*)
  12544. # Sun C++ 4.2, 5.x and Centerline C++
  12545. lt_prog_compiler_pic_CXX='-KPIC'
  12546. lt_prog_compiler_static_CXX='-Bstatic'
  12547. lt_prog_compiler_wl_CXX='-Qoption ld '
  12548. ;;
  12549. gcx*)
  12550. # Green Hills C++ Compiler
  12551. lt_prog_compiler_pic_CXX='-PIC'
  12552. ;;
  12553. *)
  12554. ;;
  12555. esac
  12556. ;;
  12557. sunos4*)
  12558. case $cc_basename in
  12559. CC*)
  12560. # Sun C++ 4.x
  12561. lt_prog_compiler_pic_CXX='-pic'
  12562. lt_prog_compiler_static_CXX='-Bstatic'
  12563. ;;
  12564. lcc*)
  12565. # Lucid
  12566. lt_prog_compiler_pic_CXX='-pic'
  12567. ;;
  12568. *)
  12569. ;;
  12570. esac
  12571. ;;
  12572. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12573. case $cc_basename in
  12574. CC*)
  12575. lt_prog_compiler_wl_CXX='-Wl,'
  12576. lt_prog_compiler_pic_CXX='-KPIC'
  12577. lt_prog_compiler_static_CXX='-Bstatic'
  12578. ;;
  12579. esac
  12580. ;;
  12581. tandem*)
  12582. case $cc_basename in
  12583. NCC*)
  12584. # NonStop-UX NCC 3.20
  12585. lt_prog_compiler_pic_CXX='-KPIC'
  12586. ;;
  12587. *)
  12588. ;;
  12589. esac
  12590. ;;
  12591. vxworks*)
  12592. ;;
  12593. *)
  12594. lt_prog_compiler_can_build_shared_CXX=no
  12595. ;;
  12596. esac
  12597. fi
  12598. case $host_os in
  12599. # For platforms which do not support PIC, -DPIC is meaningless:
  12600. *djgpp*)
  12601. lt_prog_compiler_pic_CXX=
  12602. ;;
  12603. *)
  12604. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12605. ;;
  12606. esac
  12607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12608. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12609. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12610. $as_echo_n "(cached) " >&6
  12611. else
  12612. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12613. fi
  12614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12615. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12616. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12617. #
  12618. # Check to make sure the PIC flag actually works.
  12619. #
  12620. if test -n "$lt_prog_compiler_pic_CXX"; then
  12621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12622. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12623. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12624. $as_echo_n "(cached) " >&6
  12625. else
  12626. lt_cv_prog_compiler_pic_works_CXX=no
  12627. ac_outfile=conftest.$ac_objext
  12628. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12629. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12630. # Insert the option either (1) after the last *FLAGS variable, or
  12631. # (2) before a word containing "conftest.", or (3) at the end.
  12632. # Note that $ac_compile itself does not contain backslashes and begins
  12633. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12634. # The option is referenced via a variable to avoid confusing sed.
  12635. lt_compile=`echo "$ac_compile" | $SED \
  12636. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12637. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12638. -e 's:$: $lt_compiler_flag:'`
  12639. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12640. (eval "$lt_compile" 2>conftest.err)
  12641. ac_status=$?
  12642. cat conftest.err >&5
  12643. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12644. if (exit $ac_status) && test -s "$ac_outfile"; then
  12645. # The compiler can only warn and ignore the option if not recognized
  12646. # So say no if there are warnings other than the usual output.
  12647. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12648. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12649. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12650. lt_cv_prog_compiler_pic_works_CXX=yes
  12651. fi
  12652. fi
  12653. $RM conftest*
  12654. fi
  12655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12656. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12657. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12658. case $lt_prog_compiler_pic_CXX in
  12659. "" | " "*) ;;
  12660. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12661. esac
  12662. else
  12663. lt_prog_compiler_pic_CXX=
  12664. lt_prog_compiler_can_build_shared_CXX=no
  12665. fi
  12666. fi
  12667. #
  12668. # Check to make sure the static flag actually works.
  12669. #
  12670. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12672. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12673. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12674. $as_echo_n "(cached) " >&6
  12675. else
  12676. lt_cv_prog_compiler_static_works_CXX=no
  12677. save_LDFLAGS="$LDFLAGS"
  12678. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12679. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12680. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12681. # The linker can only warn and ignore the option if not recognized
  12682. # So say no if there are warnings
  12683. if test -s conftest.err; then
  12684. # Append any errors to the config.log.
  12685. cat conftest.err 1>&5
  12686. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12687. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12688. if diff conftest.exp conftest.er2 >/dev/null; then
  12689. lt_cv_prog_compiler_static_works_CXX=yes
  12690. fi
  12691. else
  12692. lt_cv_prog_compiler_static_works_CXX=yes
  12693. fi
  12694. fi
  12695. $RM -r conftest*
  12696. LDFLAGS="$save_LDFLAGS"
  12697. fi
  12698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12699. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12700. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12701. :
  12702. else
  12703. lt_prog_compiler_static_CXX=
  12704. fi
  12705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12706. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12707. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12708. $as_echo_n "(cached) " >&6
  12709. else
  12710. lt_cv_prog_compiler_c_o_CXX=no
  12711. $RM -r conftest 2>/dev/null
  12712. mkdir conftest
  12713. cd conftest
  12714. mkdir out
  12715. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12716. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12717. # Insert the option either (1) after the last *FLAGS variable, or
  12718. # (2) before a word containing "conftest.", or (3) at the end.
  12719. # Note that $ac_compile itself does not contain backslashes and begins
  12720. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12721. lt_compile=`echo "$ac_compile" | $SED \
  12722. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12723. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12724. -e 's:$: $lt_compiler_flag:'`
  12725. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12726. (eval "$lt_compile" 2>out/conftest.err)
  12727. ac_status=$?
  12728. cat out/conftest.err >&5
  12729. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12730. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12731. then
  12732. # The compiler can only warn and ignore the option if not recognized
  12733. # So say no if there are warnings
  12734. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12735. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12736. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12737. lt_cv_prog_compiler_c_o_CXX=yes
  12738. fi
  12739. fi
  12740. chmod u+w . 2>&5
  12741. $RM conftest*
  12742. # SGI C++ compiler will create directory out/ii_files/ for
  12743. # template instantiation
  12744. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12745. $RM out/* && rmdir out
  12746. cd ..
  12747. $RM -r conftest
  12748. $RM conftest*
  12749. fi
  12750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12751. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12753. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12754. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12755. $as_echo_n "(cached) " >&6
  12756. else
  12757. lt_cv_prog_compiler_c_o_CXX=no
  12758. $RM -r conftest 2>/dev/null
  12759. mkdir conftest
  12760. cd conftest
  12761. mkdir out
  12762. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12763. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12764. # Insert the option either (1) after the last *FLAGS variable, or
  12765. # (2) before a word containing "conftest.", or (3) at the end.
  12766. # Note that $ac_compile itself does not contain backslashes and begins
  12767. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12768. lt_compile=`echo "$ac_compile" | $SED \
  12769. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12770. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12771. -e 's:$: $lt_compiler_flag:'`
  12772. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12773. (eval "$lt_compile" 2>out/conftest.err)
  12774. ac_status=$?
  12775. cat out/conftest.err >&5
  12776. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12777. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12778. then
  12779. # The compiler can only warn and ignore the option if not recognized
  12780. # So say no if there are warnings
  12781. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12782. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12783. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12784. lt_cv_prog_compiler_c_o_CXX=yes
  12785. fi
  12786. fi
  12787. chmod u+w . 2>&5
  12788. $RM conftest*
  12789. # SGI C++ compiler will create directory out/ii_files/ for
  12790. # template instantiation
  12791. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12792. $RM out/* && rmdir out
  12793. cd ..
  12794. $RM -r conftest
  12795. $RM conftest*
  12796. fi
  12797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12798. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12799. hard_links="nottested"
  12800. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12801. # do not overwrite the value of need_locks provided by the user
  12802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12803. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12804. hard_links=yes
  12805. $RM conftest*
  12806. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12807. touch conftest.a
  12808. ln conftest.a conftest.b 2>&5 || hard_links=no
  12809. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12811. $as_echo "$hard_links" >&6; }
  12812. if test "$hard_links" = no; then
  12813. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12814. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12815. need_locks=warn
  12816. fi
  12817. else
  12818. need_locks=no
  12819. fi
  12820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12821. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12822. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12823. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12824. case $host_os in
  12825. aix[4-9]*)
  12826. # If we're using GNU nm, then we don't want the "-C" option.
  12827. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12828. # Also, AIX nm treats weak defined symbols like other global defined
  12829. # symbols, whereas GNU nm marks them as "W".
  12830. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12831. 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'
  12832. else
  12833. 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'
  12834. fi
  12835. ;;
  12836. pw32*)
  12837. export_symbols_cmds_CXX="$ltdll_cmds"
  12838. ;;
  12839. cygwin* | mingw* | cegcc*)
  12840. case $cc_basename in
  12841. cl*)
  12842. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12843. ;;
  12844. *)
  12845. 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'
  12846. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12847. ;;
  12848. esac
  12849. ;;
  12850. *)
  12851. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12852. ;;
  12853. esac
  12854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12855. $as_echo "$ld_shlibs_CXX" >&6; }
  12856. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12857. with_gnu_ld_CXX=$with_gnu_ld
  12858. #
  12859. # Do we need to explicitly link libc?
  12860. #
  12861. case "x$archive_cmds_need_lc_CXX" in
  12862. x|xyes)
  12863. # Assume -lc should be added
  12864. archive_cmds_need_lc_CXX=yes
  12865. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12866. case $archive_cmds_CXX in
  12867. *'~'*)
  12868. # FIXME: we may have to deal with multi-command sequences.
  12869. ;;
  12870. '$CC '*)
  12871. # Test whether the compiler implicitly links with -lc since on some
  12872. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12873. # to ld, don't add -lc before -lgcc.
  12874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12875. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12876. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12877. $as_echo_n "(cached) " >&6
  12878. else
  12879. $RM conftest*
  12880. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12881. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12882. (eval $ac_compile) 2>&5
  12883. ac_status=$?
  12884. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12885. test $ac_status = 0; } 2>conftest.err; then
  12886. soname=conftest
  12887. lib=conftest
  12888. libobjs=conftest.$ac_objext
  12889. deplibs=
  12890. wl=$lt_prog_compiler_wl_CXX
  12891. pic_flag=$lt_prog_compiler_pic_CXX
  12892. compiler_flags=-v
  12893. linker_flags=-v
  12894. verstring=
  12895. output_objdir=.
  12896. libname=conftest
  12897. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12898. allow_undefined_flag_CXX=
  12899. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12900. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12901. ac_status=$?
  12902. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12903. test $ac_status = 0; }
  12904. then
  12905. lt_cv_archive_cmds_need_lc_CXX=no
  12906. else
  12907. lt_cv_archive_cmds_need_lc_CXX=yes
  12908. fi
  12909. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12910. else
  12911. cat conftest.err 1>&5
  12912. fi
  12913. $RM conftest*
  12914. fi
  12915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12916. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12917. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12918. ;;
  12919. esac
  12920. fi
  12921. ;;
  12922. esac
  12923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12924. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12925. library_names_spec=
  12926. libname_spec='lib$name'
  12927. soname_spec=
  12928. shrext_cmds=".so"
  12929. postinstall_cmds=
  12930. postuninstall_cmds=
  12931. finish_cmds=
  12932. finish_eval=
  12933. shlibpath_var=
  12934. shlibpath_overrides_runpath=unknown
  12935. version_type=none
  12936. dynamic_linker="$host_os ld.so"
  12937. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12938. need_lib_prefix=unknown
  12939. hardcode_into_libs=no
  12940. # when you set need_version to no, make sure it does not cause -set_version
  12941. # flags to be left without arguments
  12942. need_version=unknown
  12943. case $host_os in
  12944. aix3*)
  12945. version_type=linux # correct to gnu/linux during the next big refactor
  12946. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12947. shlibpath_var=LIBPATH
  12948. # AIX 3 has no versioning support, so we append a major version to the name.
  12949. soname_spec='${libname}${release}${shared_ext}$major'
  12950. ;;
  12951. aix[4-9]*)
  12952. version_type=linux # correct to gnu/linux during the next big refactor
  12953. need_lib_prefix=no
  12954. need_version=no
  12955. hardcode_into_libs=yes
  12956. if test "$host_cpu" = ia64; then
  12957. # AIX 5 supports IA64
  12958. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12959. shlibpath_var=LD_LIBRARY_PATH
  12960. else
  12961. # With GCC up to 2.95.x, collect2 would create an import file
  12962. # for dependence libraries. The import file would start with
  12963. # the line `#! .'. This would cause the generated library to
  12964. # depend on `.', always an invalid library. This was fixed in
  12965. # development snapshots of GCC prior to 3.0.
  12966. case $host_os in
  12967. aix4 | aix4.[01] | aix4.[01].*)
  12968. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12969. echo ' yes '
  12970. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12971. :
  12972. else
  12973. can_build_shared=no
  12974. fi
  12975. ;;
  12976. esac
  12977. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12978. # soname into executable. Probably we can add versioning support to
  12979. # collect2, so additional links can be useful in future.
  12980. if test "$aix_use_runtimelinking" = yes; then
  12981. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12982. # instead of lib<name>.a to let people know that these are not
  12983. # typical AIX shared libraries.
  12984. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12985. else
  12986. # We preserve .a as extension for shared libraries through AIX4.2
  12987. # and later when we are not doing run time linking.
  12988. library_names_spec='${libname}${release}.a $libname.a'
  12989. soname_spec='${libname}${release}${shared_ext}$major'
  12990. fi
  12991. shlibpath_var=LIBPATH
  12992. fi
  12993. ;;
  12994. amigaos*)
  12995. case $host_cpu in
  12996. powerpc)
  12997. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12998. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12999. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13000. ;;
  13001. m68k)
  13002. library_names_spec='$libname.ixlibrary $libname.a'
  13003. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13004. 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'
  13005. ;;
  13006. esac
  13007. ;;
  13008. beos*)
  13009. library_names_spec='${libname}${shared_ext}'
  13010. dynamic_linker="$host_os ld.so"
  13011. shlibpath_var=LIBRARY_PATH
  13012. ;;
  13013. bsdi[45]*)
  13014. version_type=linux # correct to gnu/linux during the next big refactor
  13015. need_version=no
  13016. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13017. soname_spec='${libname}${release}${shared_ext}$major'
  13018. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13019. shlibpath_var=LD_LIBRARY_PATH
  13020. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13021. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13022. # the default ld.so.conf also contains /usr/contrib/lib and
  13023. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13024. # libtool to hard-code these into programs
  13025. ;;
  13026. cygwin* | mingw* | pw32* | cegcc*)
  13027. version_type=windows
  13028. shrext_cmds=".dll"
  13029. need_version=no
  13030. need_lib_prefix=no
  13031. case $GCC,$cc_basename in
  13032. yes,*)
  13033. # gcc
  13034. library_names_spec='$libname.dll.a'
  13035. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13036. postinstall_cmds='base_file=`basename \${file}`~
  13037. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13038. dldir=$destdir/`dirname \$dlpath`~
  13039. test -d \$dldir || mkdir -p \$dldir~
  13040. $install_prog $dir/$dlname \$dldir/$dlname~
  13041. chmod a+x \$dldir/$dlname~
  13042. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13043. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13044. fi'
  13045. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13046. dlpath=$dir/\$dldll~
  13047. $RM \$dlpath'
  13048. shlibpath_overrides_runpath=yes
  13049. case $host_os in
  13050. cygwin*)
  13051. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13052. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  13053. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  13054. ;;
  13055. mingw* | cegcc*)
  13056. # MinGW DLLs use traditional 'lib' prefix
  13057. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  13058. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  13059. ;;
  13060. pw32*)
  13061. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13062. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13063. ;;
  13064. esac
  13065. dynamic_linker='Win32 ld.exe'
  13066. ;;
  13067. *,cl*)
  13068. # Native MSVC
  13069. libname_spec='$name'
  13070. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13071. library_names_spec='${libname}.dll.lib'
  13072. case $build_os in
  13073. mingw*)
  13074. sys_lib_search_path_spec=
  13075. lt_save_ifs=$IFS
  13076. IFS=';'
  13077. for lt_path in $LIB
  13078. do
  13079. IFS=$lt_save_ifs
  13080. # Let DOS variable expansion print the short 8.3 style file name.
  13081. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13082. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13083. done
  13084. IFS=$lt_save_ifs
  13085. # Convert to MSYS style.
  13086. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13087. ;;
  13088. cygwin*)
  13089. # Convert to unix form, then to dos form, then back to unix form
  13090. # but this time dos style (no spaces!) so that the unix form looks
  13091. # like /cygdrive/c/PROGRA~1:/cygdr...
  13092. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13093. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13094. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13095. ;;
  13096. *)
  13097. sys_lib_search_path_spec="$LIB"
  13098. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13099. # It is most probably a Windows format PATH.
  13100. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13101. else
  13102. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13103. fi
  13104. # FIXME: find the short name or the path components, as spaces are
  13105. # common. (e.g. "Program Files" -> "PROGRA~1")
  13106. ;;
  13107. esac
  13108. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13109. postinstall_cmds='base_file=`basename \${file}`~
  13110. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13111. dldir=$destdir/`dirname \$dlpath`~
  13112. test -d \$dldir || mkdir -p \$dldir~
  13113. $install_prog $dir/$dlname \$dldir/$dlname'
  13114. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13115. dlpath=$dir/\$dldll~
  13116. $RM \$dlpath'
  13117. shlibpath_overrides_runpath=yes
  13118. dynamic_linker='Win32 link.exe'
  13119. ;;
  13120. *)
  13121. # Assume MSVC wrapper
  13122. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13123. dynamic_linker='Win32 ld.exe'
  13124. ;;
  13125. esac
  13126. # FIXME: first we should search . and the directory the executable is in
  13127. shlibpath_var=PATH
  13128. ;;
  13129. darwin* | rhapsody*)
  13130. dynamic_linker="$host_os dyld"
  13131. version_type=darwin
  13132. need_lib_prefix=no
  13133. need_version=no
  13134. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13135. soname_spec='${libname}${release}${major}$shared_ext'
  13136. shlibpath_overrides_runpath=yes
  13137. shlibpath_var=DYLD_LIBRARY_PATH
  13138. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13139. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13140. ;;
  13141. dgux*)
  13142. version_type=linux # correct to gnu/linux during the next big refactor
  13143. need_lib_prefix=no
  13144. need_version=no
  13145. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13146. soname_spec='${libname}${release}${shared_ext}$major'
  13147. shlibpath_var=LD_LIBRARY_PATH
  13148. ;;
  13149. freebsd* | dragonfly*)
  13150. # DragonFly does not have aout. When/if they implement a new
  13151. # versioning mechanism, adjust this.
  13152. if test -x /usr/bin/objformat; then
  13153. objformat=`/usr/bin/objformat`
  13154. else
  13155. case $host_os in
  13156. freebsd[23].*) objformat=aout ;;
  13157. *) objformat=elf ;;
  13158. esac
  13159. fi
  13160. version_type=freebsd-$objformat
  13161. case $version_type in
  13162. freebsd-elf*)
  13163. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13164. need_version=no
  13165. need_lib_prefix=no
  13166. ;;
  13167. freebsd-*)
  13168. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13169. need_version=yes
  13170. ;;
  13171. esac
  13172. shlibpath_var=LD_LIBRARY_PATH
  13173. case $host_os in
  13174. freebsd2.*)
  13175. shlibpath_overrides_runpath=yes
  13176. ;;
  13177. freebsd3.[01]* | freebsdelf3.[01]*)
  13178. shlibpath_overrides_runpath=yes
  13179. hardcode_into_libs=yes
  13180. ;;
  13181. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13182. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13183. shlibpath_overrides_runpath=no
  13184. hardcode_into_libs=yes
  13185. ;;
  13186. *) # from 4.6 on, and DragonFly
  13187. shlibpath_overrides_runpath=yes
  13188. hardcode_into_libs=yes
  13189. ;;
  13190. esac
  13191. ;;
  13192. gnu*)
  13193. version_type=linux # correct to gnu/linux during the next big refactor
  13194. need_lib_prefix=no
  13195. need_version=no
  13196. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13197. soname_spec='${libname}${release}${shared_ext}$major'
  13198. shlibpath_var=LD_LIBRARY_PATH
  13199. shlibpath_overrides_runpath=no
  13200. hardcode_into_libs=yes
  13201. ;;
  13202. haiku*)
  13203. version_type=linux # correct to gnu/linux during the next big refactor
  13204. need_lib_prefix=no
  13205. need_version=no
  13206. dynamic_linker="$host_os runtime_loader"
  13207. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13208. soname_spec='${libname}${release}${shared_ext}$major'
  13209. shlibpath_var=LIBRARY_PATH
  13210. shlibpath_overrides_runpath=yes
  13211. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13212. hardcode_into_libs=yes
  13213. ;;
  13214. hpux9* | hpux10* | hpux11*)
  13215. # Give a soname corresponding to the major version so that dld.sl refuses to
  13216. # link against other versions.
  13217. version_type=sunos
  13218. need_lib_prefix=no
  13219. need_version=no
  13220. case $host_cpu in
  13221. ia64*)
  13222. shrext_cmds='.so'
  13223. hardcode_into_libs=yes
  13224. dynamic_linker="$host_os dld.so"
  13225. shlibpath_var=LD_LIBRARY_PATH
  13226. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13227. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13228. soname_spec='${libname}${release}${shared_ext}$major'
  13229. if test "X$HPUX_IA64_MODE" = X32; then
  13230. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13231. else
  13232. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13233. fi
  13234. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13235. ;;
  13236. hppa*64*)
  13237. shrext_cmds='.sl'
  13238. hardcode_into_libs=yes
  13239. dynamic_linker="$host_os dld.sl"
  13240. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13241. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13242. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13243. soname_spec='${libname}${release}${shared_ext}$major'
  13244. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13245. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13246. ;;
  13247. *)
  13248. shrext_cmds='.sl'
  13249. dynamic_linker="$host_os dld.sl"
  13250. shlibpath_var=SHLIB_PATH
  13251. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13252. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13253. soname_spec='${libname}${release}${shared_ext}$major'
  13254. ;;
  13255. esac
  13256. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13257. postinstall_cmds='chmod 555 $lib'
  13258. # or fails outright, so override atomically:
  13259. install_override_mode=555
  13260. ;;
  13261. interix[3-9]*)
  13262. version_type=linux # correct to gnu/linux during the next big refactor
  13263. need_lib_prefix=no
  13264. need_version=no
  13265. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13266. soname_spec='${libname}${release}${shared_ext}$major'
  13267. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13268. shlibpath_var=LD_LIBRARY_PATH
  13269. shlibpath_overrides_runpath=no
  13270. hardcode_into_libs=yes
  13271. ;;
  13272. irix5* | irix6* | nonstopux*)
  13273. case $host_os in
  13274. nonstopux*) version_type=nonstopux ;;
  13275. *)
  13276. if test "$lt_cv_prog_gnu_ld" = yes; then
  13277. version_type=linux # correct to gnu/linux during the next big refactor
  13278. else
  13279. version_type=irix
  13280. fi ;;
  13281. esac
  13282. need_lib_prefix=no
  13283. need_version=no
  13284. soname_spec='${libname}${release}${shared_ext}$major'
  13285. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13286. case $host_os in
  13287. irix5* | nonstopux*)
  13288. libsuff= shlibsuff=
  13289. ;;
  13290. *)
  13291. case $LD in # libtool.m4 will add one of these switches to LD
  13292. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13293. libsuff= shlibsuff= libmagic=32-bit;;
  13294. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13295. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13296. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13297. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13298. *) libsuff= shlibsuff= libmagic=never-match;;
  13299. esac
  13300. ;;
  13301. esac
  13302. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13303. shlibpath_overrides_runpath=no
  13304. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13305. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13306. hardcode_into_libs=yes
  13307. ;;
  13308. # No shared lib support for Linux oldld, aout, or coff.
  13309. linux*oldld* | linux*aout* | linux*coff*)
  13310. dynamic_linker=no
  13311. ;;
  13312. # This must be glibc/ELF.
  13313. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13314. version_type=linux # correct to gnu/linux during the next big refactor
  13315. need_lib_prefix=no
  13316. need_version=no
  13317. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13318. soname_spec='${libname}${release}${shared_ext}$major'
  13319. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13320. shlibpath_var=LD_LIBRARY_PATH
  13321. shlibpath_overrides_runpath=no
  13322. # Some binutils ld are patched to set DT_RUNPATH
  13323. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13324. $as_echo_n "(cached) " >&6
  13325. else
  13326. lt_cv_shlibpath_overrides_runpath=no
  13327. save_LDFLAGS=$LDFLAGS
  13328. save_libdir=$libdir
  13329. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13330. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13332. /* end confdefs.h. */
  13333. int
  13334. main ()
  13335. {
  13336. ;
  13337. return 0;
  13338. }
  13339. _ACEOF
  13340. if ac_fn_cxx_try_link "$LINENO"; then :
  13341. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13342. lt_cv_shlibpath_overrides_runpath=yes
  13343. fi
  13344. fi
  13345. rm -f core conftest.err conftest.$ac_objext \
  13346. conftest$ac_exeext conftest.$ac_ext
  13347. LDFLAGS=$save_LDFLAGS
  13348. libdir=$save_libdir
  13349. fi
  13350. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13351. # This implies no fast_install, which is unacceptable.
  13352. # Some rework will be needed to allow for fast_install
  13353. # before this can be enabled.
  13354. hardcode_into_libs=yes
  13355. # Append ld.so.conf contents to the search path
  13356. if test -f /etc/ld.so.conf; then
  13357. 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' ' '`
  13358. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13359. fi
  13360. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13361. # powerpc, because MkLinux only supported shared libraries with the
  13362. # GNU dynamic linker. Since this was broken with cross compilers,
  13363. # most powerpc-linux boxes support dynamic linking these days and
  13364. # people can always --disable-shared, the test was removed, and we
  13365. # assume the GNU/Linux dynamic linker is in use.
  13366. dynamic_linker='GNU/Linux ld.so'
  13367. ;;
  13368. netbsd*)
  13369. version_type=sunos
  13370. need_lib_prefix=no
  13371. need_version=no
  13372. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13373. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13374. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13375. dynamic_linker='NetBSD (a.out) ld.so'
  13376. else
  13377. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13378. soname_spec='${libname}${release}${shared_ext}$major'
  13379. dynamic_linker='NetBSD ld.elf_so'
  13380. fi
  13381. shlibpath_var=LD_LIBRARY_PATH
  13382. shlibpath_overrides_runpath=yes
  13383. hardcode_into_libs=yes
  13384. ;;
  13385. newsos6)
  13386. version_type=linux # correct to gnu/linux during the next big refactor
  13387. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13388. shlibpath_var=LD_LIBRARY_PATH
  13389. shlibpath_overrides_runpath=yes
  13390. ;;
  13391. *nto* | *qnx*)
  13392. version_type=qnx
  13393. need_lib_prefix=no
  13394. need_version=no
  13395. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13396. soname_spec='${libname}${release}${shared_ext}$major'
  13397. shlibpath_var=LD_LIBRARY_PATH
  13398. shlibpath_overrides_runpath=no
  13399. hardcode_into_libs=yes
  13400. dynamic_linker='ldqnx.so'
  13401. ;;
  13402. openbsd*)
  13403. version_type=sunos
  13404. sys_lib_dlsearch_path_spec="/usr/lib"
  13405. need_lib_prefix=no
  13406. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13407. case $host_os in
  13408. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13409. *) need_version=no ;;
  13410. esac
  13411. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13412. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13413. shlibpath_var=LD_LIBRARY_PATH
  13414. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13415. case $host_os in
  13416. openbsd2.[89] | openbsd2.[89].*)
  13417. shlibpath_overrides_runpath=no
  13418. ;;
  13419. *)
  13420. shlibpath_overrides_runpath=yes
  13421. ;;
  13422. esac
  13423. else
  13424. shlibpath_overrides_runpath=yes
  13425. fi
  13426. ;;
  13427. os2*)
  13428. libname_spec='$name'
  13429. shrext_cmds=".dll"
  13430. need_lib_prefix=no
  13431. library_names_spec='$libname${shared_ext} $libname.a'
  13432. dynamic_linker='OS/2 ld.exe'
  13433. shlibpath_var=LIBPATH
  13434. ;;
  13435. osf3* | osf4* | osf5*)
  13436. version_type=osf
  13437. need_lib_prefix=no
  13438. need_version=no
  13439. soname_spec='${libname}${release}${shared_ext}$major'
  13440. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13441. shlibpath_var=LD_LIBRARY_PATH
  13442. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13443. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13444. ;;
  13445. rdos*)
  13446. dynamic_linker=no
  13447. ;;
  13448. solaris*)
  13449. version_type=linux # correct to gnu/linux during the next big refactor
  13450. need_lib_prefix=no
  13451. need_version=no
  13452. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13453. soname_spec='${libname}${release}${shared_ext}$major'
  13454. shlibpath_var=LD_LIBRARY_PATH
  13455. shlibpath_overrides_runpath=yes
  13456. hardcode_into_libs=yes
  13457. # ldd complains unless libraries are executable
  13458. postinstall_cmds='chmod +x $lib'
  13459. ;;
  13460. sunos4*)
  13461. version_type=sunos
  13462. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13463. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13464. shlibpath_var=LD_LIBRARY_PATH
  13465. shlibpath_overrides_runpath=yes
  13466. if test "$with_gnu_ld" = yes; then
  13467. need_lib_prefix=no
  13468. fi
  13469. need_version=yes
  13470. ;;
  13471. sysv4 | sysv4.3*)
  13472. version_type=linux # correct to gnu/linux during the next big refactor
  13473. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13474. soname_spec='${libname}${release}${shared_ext}$major'
  13475. shlibpath_var=LD_LIBRARY_PATH
  13476. case $host_vendor in
  13477. sni)
  13478. shlibpath_overrides_runpath=no
  13479. need_lib_prefix=no
  13480. runpath_var=LD_RUN_PATH
  13481. ;;
  13482. siemens)
  13483. need_lib_prefix=no
  13484. ;;
  13485. motorola)
  13486. need_lib_prefix=no
  13487. need_version=no
  13488. shlibpath_overrides_runpath=no
  13489. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13490. ;;
  13491. esac
  13492. ;;
  13493. sysv4*MP*)
  13494. if test -d /usr/nec ;then
  13495. version_type=linux # correct to gnu/linux during the next big refactor
  13496. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13497. soname_spec='$libname${shared_ext}.$major'
  13498. shlibpath_var=LD_LIBRARY_PATH
  13499. fi
  13500. ;;
  13501. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13502. version_type=freebsd-elf
  13503. need_lib_prefix=no
  13504. need_version=no
  13505. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13506. soname_spec='${libname}${release}${shared_ext}$major'
  13507. shlibpath_var=LD_LIBRARY_PATH
  13508. shlibpath_overrides_runpath=yes
  13509. hardcode_into_libs=yes
  13510. if test "$with_gnu_ld" = yes; then
  13511. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13512. else
  13513. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13514. case $host_os in
  13515. sco3.2v5*)
  13516. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13517. ;;
  13518. esac
  13519. fi
  13520. sys_lib_dlsearch_path_spec='/usr/lib'
  13521. ;;
  13522. tpf*)
  13523. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13524. version_type=linux # correct to gnu/linux during the next big refactor
  13525. need_lib_prefix=no
  13526. need_version=no
  13527. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13528. shlibpath_var=LD_LIBRARY_PATH
  13529. shlibpath_overrides_runpath=no
  13530. hardcode_into_libs=yes
  13531. ;;
  13532. uts4*)
  13533. version_type=linux # correct to gnu/linux during the next big refactor
  13534. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13535. soname_spec='${libname}${release}${shared_ext}$major'
  13536. shlibpath_var=LD_LIBRARY_PATH
  13537. ;;
  13538. *)
  13539. dynamic_linker=no
  13540. ;;
  13541. esac
  13542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13543. $as_echo "$dynamic_linker" >&6; }
  13544. test "$dynamic_linker" = no && can_build_shared=no
  13545. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13546. if test "$GCC" = yes; then
  13547. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13548. fi
  13549. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13550. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13551. fi
  13552. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13553. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13554. fi
  13555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13556. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13557. hardcode_action_CXX=
  13558. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13559. test -n "$runpath_var_CXX" ||
  13560. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13561. # We can hardcode non-existent directories.
  13562. if test "$hardcode_direct_CXX" != no &&
  13563. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13564. # have to relink, otherwise we might link with an installed library
  13565. # when we should be linking with a yet-to-be-installed one
  13566. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13567. test "$hardcode_minus_L_CXX" != no; then
  13568. # Linking always hardcodes the temporary library directory.
  13569. hardcode_action_CXX=relink
  13570. else
  13571. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13572. hardcode_action_CXX=immediate
  13573. fi
  13574. else
  13575. # We cannot hardcode anything, or else we can only hardcode existing
  13576. # directories.
  13577. hardcode_action_CXX=unsupported
  13578. fi
  13579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13580. $as_echo "$hardcode_action_CXX" >&6; }
  13581. if test "$hardcode_action_CXX" = relink ||
  13582. test "$inherit_rpath_CXX" = yes; then
  13583. # Fast installation is not supported
  13584. enable_fast_install=no
  13585. elif test "$shlibpath_overrides_runpath" = yes ||
  13586. test "$enable_shared" = no; then
  13587. # Fast installation is not necessary
  13588. enable_fast_install=needless
  13589. fi
  13590. fi # test -n "$compiler"
  13591. CC=$lt_save_CC
  13592. CFLAGS=$lt_save_CFLAGS
  13593. LDCXX=$LD
  13594. LD=$lt_save_LD
  13595. GCC=$lt_save_GCC
  13596. with_gnu_ld=$lt_save_with_gnu_ld
  13597. lt_cv_path_LDCXX=$lt_cv_path_LD
  13598. lt_cv_path_LD=$lt_save_path_LD
  13599. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13600. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13601. fi # test "$_lt_caught_CXX_error" != yes
  13602. ac_ext=c
  13603. ac_cpp='$CPP $CPPFLAGS'
  13604. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13605. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13606. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13607. # Find a good install program. We prefer a C program (faster),
  13608. # so one script is as good as another. But avoid the broken or
  13609. # incompatible versions:
  13610. # SysV /etc/install, /usr/sbin/install
  13611. # SunOS /usr/etc/install
  13612. # IRIX /sbin/install
  13613. # AIX /bin/install
  13614. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13615. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13616. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13617. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13618. # OS/2's system install, which has a completely different semantic
  13619. # ./install, which can be erroneously created by make from ./install.sh.
  13620. # Reject install programs that cannot install multiple files.
  13621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13622. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13623. if test -z "$INSTALL"; then
  13624. if ${ac_cv_path_install+:} false; then :
  13625. $as_echo_n "(cached) " >&6
  13626. else
  13627. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13628. for as_dir in $PATH
  13629. do
  13630. IFS=$as_save_IFS
  13631. test -z "$as_dir" && as_dir=.
  13632. # Account for people who put trailing slashes in PATH elements.
  13633. case $as_dir/ in #((
  13634. ./ | .// | /[cC]/* | \
  13635. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13636. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13637. /usr/ucb/* ) ;;
  13638. *)
  13639. # OSF1 and SCO ODT 3.0 have their own names for install.
  13640. # Don't use installbsd from OSF since it installs stuff as root
  13641. # by default.
  13642. for ac_prog in ginstall scoinst install; do
  13643. for ac_exec_ext in '' $ac_executable_extensions; do
  13644. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13645. if test $ac_prog = install &&
  13646. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13647. # AIX install. It has an incompatible calling convention.
  13648. :
  13649. elif test $ac_prog = install &&
  13650. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13651. # program-specific install script used by HP pwplus--don't use.
  13652. :
  13653. else
  13654. rm -rf conftest.one conftest.two conftest.dir
  13655. echo one > conftest.one
  13656. echo two > conftest.two
  13657. mkdir conftest.dir
  13658. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13659. test -s conftest.one && test -s conftest.two &&
  13660. test -s conftest.dir/conftest.one &&
  13661. test -s conftest.dir/conftest.two
  13662. then
  13663. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13664. break 3
  13665. fi
  13666. fi
  13667. fi
  13668. done
  13669. done
  13670. ;;
  13671. esac
  13672. done
  13673. IFS=$as_save_IFS
  13674. rm -rf conftest.one conftest.two conftest.dir
  13675. fi
  13676. if test "${ac_cv_path_install+set}" = set; then
  13677. INSTALL=$ac_cv_path_install
  13678. else
  13679. # As a last resort, use the slow shell script. Don't cache a
  13680. # value for INSTALL within a source directory, because that will
  13681. # break other packages using the cache if that directory is
  13682. # removed, or if the value is a relative name.
  13683. INSTALL=$ac_install_sh
  13684. fi
  13685. fi
  13686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13687. $as_echo "$INSTALL" >&6; }
  13688. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13689. # It thinks the first close brace ends the variable substitution.
  13690. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13691. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13692. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13694. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13695. set x ${MAKE-make}
  13696. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13697. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13698. $as_echo_n "(cached) " >&6
  13699. else
  13700. cat >conftest.make <<\_ACEOF
  13701. SHELL = /bin/sh
  13702. all:
  13703. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13704. _ACEOF
  13705. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13706. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13707. *@@@%%%=?*=@@@%%%*)
  13708. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13709. *)
  13710. eval ac_cv_prog_make_${ac_make}_set=no;;
  13711. esac
  13712. rm -f conftest.make
  13713. fi
  13714. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13716. $as_echo "yes" >&6; }
  13717. SET_MAKE=
  13718. else
  13719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13720. $as_echo "no" >&6; }
  13721. SET_MAKE="MAKE=${MAKE-make}"
  13722. fi
  13723. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  13724. if test -n "$ac_tool_prefix"; then
  13725. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  13726. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  13727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13728. $as_echo_n "checking for $ac_word... " >&6; }
  13729. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  13730. $as_echo_n "(cached) " >&6
  13731. else
  13732. case $PKG_CONFIG in
  13733. [\\/]* | ?:[\\/]*)
  13734. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13735. ;;
  13736. *)
  13737. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13738. for as_dir in $PATH
  13739. do
  13740. IFS=$as_save_IFS
  13741. test -z "$as_dir" && as_dir=.
  13742. for ac_exec_ext in '' $ac_executable_extensions; do
  13743. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13744. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13745. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13746. break 2
  13747. fi
  13748. done
  13749. done
  13750. IFS=$as_save_IFS
  13751. ;;
  13752. esac
  13753. fi
  13754. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13755. if test -n "$PKG_CONFIG"; then
  13756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13757. $as_echo "$PKG_CONFIG" >&6; }
  13758. else
  13759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13760. $as_echo "no" >&6; }
  13761. fi
  13762. fi
  13763. if test -z "$ac_cv_path_PKG_CONFIG"; then
  13764. ac_pt_PKG_CONFIG=$PKG_CONFIG
  13765. # Extract the first word of "pkg-config", so it can be a program name with args.
  13766. set dummy pkg-config; ac_word=$2
  13767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13768. $as_echo_n "checking for $ac_word... " >&6; }
  13769. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  13770. $as_echo_n "(cached) " >&6
  13771. else
  13772. case $ac_pt_PKG_CONFIG in
  13773. [\\/]* | ?:[\\/]*)
  13774. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  13775. ;;
  13776. *)
  13777. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13778. for as_dir in $PATH
  13779. do
  13780. IFS=$as_save_IFS
  13781. test -z "$as_dir" && as_dir=.
  13782. for ac_exec_ext in '' $ac_executable_extensions; do
  13783. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13784. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13785. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13786. break 2
  13787. fi
  13788. done
  13789. done
  13790. IFS=$as_save_IFS
  13791. ;;
  13792. esac
  13793. fi
  13794. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  13795. if test -n "$ac_pt_PKG_CONFIG"; then
  13796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  13797. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  13798. else
  13799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13800. $as_echo "no" >&6; }
  13801. fi
  13802. if test "x$ac_pt_PKG_CONFIG" = x; then
  13803. PKG_CONFIG=""
  13804. else
  13805. case $cross_compiling:$ac_tool_warned in
  13806. yes:)
  13807. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13808. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13809. ac_tool_warned=yes ;;
  13810. esac
  13811. PKG_CONFIG=$ac_pt_PKG_CONFIG
  13812. fi
  13813. else
  13814. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  13815. fi
  13816. fi
  13817. if test -n "$PKG_CONFIG"; then
  13818. _pkg_min_version=0.9.0
  13819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  13820. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  13821. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  13822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13823. $as_echo "yes" >&6; }
  13824. else
  13825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13826. $as_echo "no" >&6; }
  13827. PKG_CONFIG=""
  13828. fi
  13829. fi
  13830. case "$host" in
  13831. *-*-mingw*)
  13832. # Except on msys, where make can't handle full pathnames (bug 1972)
  13833. ;;
  13834. *)
  13835. srcdir=`cd $srcdir && pwd`
  13836. ;;
  13837. esac
  13838. INCLUDE="-I$srcdir/include"
  13839. case "$host" in
  13840. *-*-nto-qnx*)
  13841. ;;
  13842. *)
  13843. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  13844. ;;
  13845. esac
  13846. case "$host" in
  13847. *-*-haiku*)
  13848. LINKER=CXX
  13849. ;;
  13850. *)
  13851. LINKER=CC
  13852. ;;
  13853. esac
  13854. if test x$srcdir != x.; then
  13855. INCLUDE="-Iinclude $INCLUDE"
  13856. elif test -d .git; then
  13857. as_fn_error $? "
  13858. *** When building from a git clone you should configure and build in a
  13859. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13860. " "$LINENO" 5
  13861. fi
  13862. BASE_CFLAGS=""
  13863. BASE_LDFLAGS=""
  13864. case "$host" in
  13865. *-*-cygwin*)
  13866. # We build SDL on cygwin without the UNIX emulation layer
  13867. save_CFLAGS="$CFLAGS"
  13868. have_no_cygwin=no
  13869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13870. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13871. CFLAGS="$save_CFLAGS -mno-cygwin"
  13872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13873. /* end confdefs.h. */
  13874. int
  13875. main ()
  13876. {
  13877. ;
  13878. return 0;
  13879. }
  13880. _ACEOF
  13881. if ac_fn_c_try_compile "$LINENO"; then :
  13882. have_no_cygwin=yes
  13883. fi
  13884. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13886. $as_echo "$have_no_cygwin" >&6; }
  13887. CFLAGS="$save_CFLAGS"
  13888. if test x$have_no_cygwin = xyes; then
  13889. BASE_CFLAGS="-mno-cygwin"
  13890. BASE_LDFLAGS="-mno-cygwin"
  13891. fi
  13892. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13893. ;;
  13894. esac
  13895. # Uncomment the following line if you want to force SDL and applications
  13896. # built with it to be compiled for a particular architecture.
  13897. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13898. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13899. # The default optimization for SDL is -O3 (Bug #31)
  13900. if test "x$orig_CFLAGS" = x; then
  13901. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13902. fi
  13903. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13904. BUILD_LDFLAGS="$LDFLAGS"
  13905. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13906. ## These are common directories to find software packages
  13907. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13908. # if test -d $path/include; then
  13909. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13910. # fi
  13911. # if test -d $path/lib; then
  13912. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13913. # fi
  13914. #done
  13915. SDL_CFLAGS="$BASE_CFLAGS"
  13916. SDL_LIBS="-lSDL2"
  13917. if test "x$BASE_LDFLAGS" != x; then
  13918. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  13919. fi
  13920. if test "x$EXTRA_CFLAGS" != x; then
  13921. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13922. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13923. fi
  13924. if test "x$EXTRA_LDFLAGS" != x; then
  13925. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13926. fi
  13927. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13928. find_lib()
  13929. {
  13930. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13931. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13932. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13933. if test "$cross_compiling" = yes; then
  13934. host_lib_path=""
  13935. else
  13936. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13937. fi
  13938. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13939. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13940. if test x$lib != x; then
  13941. echo $lib
  13942. return
  13943. fi
  13944. done
  13945. # Try again, this time allowing more than one version digit after the .so
  13946. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13947. lib=`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1`
  13948. if test x$lib != x; then
  13949. echo $lib
  13950. return
  13951. fi
  13952. done
  13953. }
  13954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13955. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13956. if ${ac_cv_c_const+:} false; then :
  13957. $as_echo_n "(cached) " >&6
  13958. else
  13959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13960. /* end confdefs.h. */
  13961. int
  13962. main ()
  13963. {
  13964. #ifndef __cplusplus
  13965. /* Ultrix mips cc rejects this sort of thing. */
  13966. typedef int charset[2];
  13967. const charset cs = { 0, 0 };
  13968. /* SunOS 4.1.1 cc rejects this. */
  13969. char const *const *pcpcc;
  13970. char **ppc;
  13971. /* NEC SVR4.0.2 mips cc rejects this. */
  13972. struct point {int x, y;};
  13973. static struct point const zero = {0,0};
  13974. /* AIX XL C 1.02.0.0 rejects this.
  13975. It does not let you subtract one const X* pointer from another in
  13976. an arm of an if-expression whose if-part is not a constant
  13977. expression */
  13978. const char *g = "string";
  13979. pcpcc = &g + (g ? g-g : 0);
  13980. /* HPUX 7.0 cc rejects these. */
  13981. ++pcpcc;
  13982. ppc = (char**) pcpcc;
  13983. pcpcc = (char const *const *) ppc;
  13984. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13985. char tx;
  13986. char *t = &tx;
  13987. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13988. *t++ = 0;
  13989. if (s) return 0;
  13990. }
  13991. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13992. int x[] = {25, 17};
  13993. const int *foo = &x[0];
  13994. ++foo;
  13995. }
  13996. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13997. typedef const int *iptr;
  13998. iptr p = 0;
  13999. ++p;
  14000. }
  14001. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  14002. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  14003. struct s { int j; const int *ap[3]; } bx;
  14004. struct s *b = &bx; b->j = 5;
  14005. }
  14006. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  14007. const int foo = 10;
  14008. if (!foo) return 0;
  14009. }
  14010. return !cs[0] && !zero.x;
  14011. #endif
  14012. ;
  14013. return 0;
  14014. }
  14015. _ACEOF
  14016. if ac_fn_c_try_compile "$LINENO"; then :
  14017. ac_cv_c_const=yes
  14018. else
  14019. ac_cv_c_const=no
  14020. fi
  14021. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14022. fi
  14023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  14024. $as_echo "$ac_cv_c_const" >&6; }
  14025. if test $ac_cv_c_const = no; then
  14026. $as_echo "#define const /**/" >>confdefs.h
  14027. fi
  14028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  14029. $as_echo_n "checking for inline... " >&6; }
  14030. if ${ac_cv_c_inline+:} false; then :
  14031. $as_echo_n "(cached) " >&6
  14032. else
  14033. ac_cv_c_inline=no
  14034. for ac_kw in inline __inline__ __inline; do
  14035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14036. /* end confdefs.h. */
  14037. #ifndef __cplusplus
  14038. typedef int foo_t;
  14039. static $ac_kw foo_t static_foo () {return 0; }
  14040. $ac_kw foo_t foo () {return 0; }
  14041. #endif
  14042. _ACEOF
  14043. if ac_fn_c_try_compile "$LINENO"; then :
  14044. ac_cv_c_inline=$ac_kw
  14045. fi
  14046. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14047. test "$ac_cv_c_inline" != no && break
  14048. done
  14049. fi
  14050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  14051. $as_echo "$ac_cv_c_inline" >&6; }
  14052. case $ac_cv_c_inline in
  14053. inline | yes) ;;
  14054. *)
  14055. case $ac_cv_c_inline in
  14056. no) ac_val=;;
  14057. *) ac_val=$ac_cv_c_inline;;
  14058. esac
  14059. cat >>confdefs.h <<_ACEOF
  14060. #ifndef __cplusplus
  14061. #define inline $ac_val
  14062. #endif
  14063. _ACEOF
  14064. ;;
  14065. esac
  14066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  14067. $as_echo_n "checking for working volatile... " >&6; }
  14068. if ${ac_cv_c_volatile+:} false; then :
  14069. $as_echo_n "(cached) " >&6
  14070. else
  14071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14072. /* end confdefs.h. */
  14073. int
  14074. main ()
  14075. {
  14076. volatile int x;
  14077. int * volatile y = (int *) 0;
  14078. return !x && !y;
  14079. ;
  14080. return 0;
  14081. }
  14082. _ACEOF
  14083. if ac_fn_c_try_compile "$LINENO"; then :
  14084. ac_cv_c_volatile=yes
  14085. else
  14086. ac_cv_c_volatile=no
  14087. fi
  14088. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14089. fi
  14090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  14091. $as_echo "$ac_cv_c_volatile" >&6; }
  14092. if test $ac_cv_c_volatile = no; then
  14093. $as_echo "#define volatile /**/" >>confdefs.h
  14094. fi
  14095. # Check whether --enable-assertions was given.
  14096. if test "${enable_assertions+set}" = set; then :
  14097. enableval=$enable_assertions;
  14098. else
  14099. enable_assertions=auto
  14100. fi
  14101. case "$enable_assertions" in
  14102. auto) # Use optimization settings to determine assertion level
  14103. ;;
  14104. disabled)
  14105. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  14106. ;;
  14107. release)
  14108. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  14109. ;;
  14110. enabled)
  14111. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  14112. ;;
  14113. paranoid)
  14114. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  14115. ;;
  14116. *)
  14117. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  14118. ;;
  14119. esac
  14120. # Check whether --enable-dependency-tracking was given.
  14121. if test "${enable_dependency_tracking+set}" = set; then :
  14122. enableval=$enable_dependency_tracking;
  14123. else
  14124. enable_dependency_tracking=yes
  14125. fi
  14126. if test x$enable_dependency_tracking = xyes; then
  14127. have_gcc_mmd_mt=no
  14128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  14129. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  14130. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14131. /* end confdefs.h. */
  14132. #if !defined(__GNUC__) || __GNUC__ < 3
  14133. #error Dependency tracking requires GCC 3.0 or newer
  14134. #endif
  14135. int
  14136. main ()
  14137. {
  14138. ;
  14139. return 0;
  14140. }
  14141. _ACEOF
  14142. if ac_fn_c_try_compile "$LINENO"; then :
  14143. have_gcc_mmd_mt=yes
  14144. fi
  14145. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  14147. $as_echo "$have_gcc_mmd_mt" >&6; }
  14148. if test x$have_gcc_mmd_mt = xyes; then
  14149. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  14150. fi
  14151. fi
  14152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  14153. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  14154. have_no_undefined=no
  14155. case "$host" in
  14156. *-*-openbsd*)
  14157. ;;
  14158. *)
  14159. save_LDFLAGS="$LDFLAGS"
  14160. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  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_no_undefined=yes
  14172. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  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_no_undefined" >&5
  14180. $as_echo "$have_no_undefined" >&6; }
  14181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  14182. $as_echo_n "checking for linker option --dynamicbase... " >&6; }
  14183. have_dynamicbase=no
  14184. case "$host" in
  14185. *)
  14186. save_LDFLAGS="$LDFLAGS"
  14187. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  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_dynamicbase=yes
  14199. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  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_dynamicbase" >&5
  14207. $as_echo "$have_dynamicbase" >&6; }
  14208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  14209. $as_echo_n "checking for linker option --nxcompat... " >&6; }
  14210. have_nxcompat=no
  14211. case "$host" in
  14212. *)
  14213. save_LDFLAGS="$LDFLAGS"
  14214. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  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_nxcompat=yes
  14226. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  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_nxcompat" >&5
  14234. $as_echo "$have_nxcompat" >&6; }
  14235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  14236. $as_echo_n "checking for linker option --high-entropy-va... " >&6; }
  14237. have_high_entropy_va=no
  14238. case "$host" in
  14239. *)
  14240. save_LDFLAGS="$LDFLAGS"
  14241. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  14242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14243. /* end confdefs.h. */
  14244. int
  14245. main ()
  14246. {
  14247. ;
  14248. return 0;
  14249. }
  14250. _ACEOF
  14251. if ac_fn_c_try_link "$LINENO"; then :
  14252. have_high_entropy_va=yes
  14253. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  14254. fi
  14255. rm -f core conftest.err conftest.$ac_objext \
  14256. conftest$ac_exeext conftest.$ac_ext
  14257. LDFLAGS="$save_LDFLAGS"
  14258. ;;
  14259. esac
  14260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  14261. $as_echo "$have_high_entropy_va" >&6; }
  14262. # Check whether --enable-libc was given.
  14263. if test "${enable_libc+set}" = set; then :
  14264. enableval=$enable_libc;
  14265. else
  14266. enable_libc=yes
  14267. fi
  14268. if test x$enable_libc = xyes; then
  14269. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  14270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14271. $as_echo_n "checking for ANSI C header files... " >&6; }
  14272. if ${ac_cv_header_stdc+:} false; then :
  14273. $as_echo_n "(cached) " >&6
  14274. else
  14275. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14276. /* end confdefs.h. */
  14277. #include <stdlib.h>
  14278. #include <stdarg.h>
  14279. #include <string.h>
  14280. #include <float.h>
  14281. int
  14282. main ()
  14283. {
  14284. ;
  14285. return 0;
  14286. }
  14287. _ACEOF
  14288. if ac_fn_c_try_compile "$LINENO"; then :
  14289. ac_cv_header_stdc=yes
  14290. else
  14291. ac_cv_header_stdc=no
  14292. fi
  14293. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14294. if test $ac_cv_header_stdc = yes; then
  14295. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14296. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14297. /* end confdefs.h. */
  14298. #include <string.h>
  14299. _ACEOF
  14300. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14301. $EGREP "memchr" >/dev/null 2>&1; then :
  14302. else
  14303. ac_cv_header_stdc=no
  14304. fi
  14305. rm -f conftest*
  14306. fi
  14307. if test $ac_cv_header_stdc = yes; then
  14308. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14310. /* end confdefs.h. */
  14311. #include <stdlib.h>
  14312. _ACEOF
  14313. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14314. $EGREP "free" >/dev/null 2>&1; then :
  14315. else
  14316. ac_cv_header_stdc=no
  14317. fi
  14318. rm -f conftest*
  14319. fi
  14320. if test $ac_cv_header_stdc = yes; then
  14321. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14322. if test "$cross_compiling" = yes; then :
  14323. :
  14324. else
  14325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14326. /* end confdefs.h. */
  14327. #include <ctype.h>
  14328. #include <stdlib.h>
  14329. #if ((' ' & 0x0FF) == 0x020)
  14330. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14331. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14332. #else
  14333. # define ISLOWER(c) \
  14334. (('a' <= (c) && (c) <= 'i') \
  14335. || ('j' <= (c) && (c) <= 'r') \
  14336. || ('s' <= (c) && (c) <= 'z'))
  14337. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14338. #endif
  14339. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14340. int
  14341. main ()
  14342. {
  14343. int i;
  14344. for (i = 0; i < 256; i++)
  14345. if (XOR (islower (i), ISLOWER (i))
  14346. || toupper (i) != TOUPPER (i))
  14347. return 2;
  14348. return 0;
  14349. }
  14350. _ACEOF
  14351. if ac_fn_c_try_run "$LINENO"; then :
  14352. else
  14353. ac_cv_header_stdc=no
  14354. fi
  14355. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14356. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14357. fi
  14358. fi
  14359. fi
  14360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14361. $as_echo "$ac_cv_header_stdc" >&6; }
  14362. if test $ac_cv_header_stdc = yes; then
  14363. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14364. fi
  14365. 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
  14366. do :
  14367. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14368. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14369. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14370. cat >>confdefs.h <<_ACEOF
  14371. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14372. _ACEOF
  14373. fi
  14374. done
  14375. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14376. if test "x$ac_cv_type_size_t" = xyes; then :
  14377. else
  14378. cat >>confdefs.h <<_ACEOF
  14379. #define size_t unsigned int
  14380. _ACEOF
  14381. fi
  14382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  14383. $as_echo_n "checking for M_PI in math.h... " >&6; }
  14384. if ${ac_cv_define_M_PI+:} false; then :
  14385. $as_echo_n "(cached) " >&6
  14386. else
  14387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14388. /* end confdefs.h. */
  14389. #include <math.h>
  14390. #ifdef M_PI
  14391. YES_IS_DEFINED
  14392. #endif
  14393. _ACEOF
  14394. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14395. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  14396. ac_cv_define_M_PI=yes
  14397. else
  14398. ac_cv_define_M_PI=no
  14399. fi
  14400. rm -f conftest*
  14401. fi
  14402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14403. $as_echo "$ac_cv_define_M_PI" >&6; }
  14404. if test "$ac_cv_define_M_PI" = "yes" ; then
  14405. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14406. fi
  14407. case "$host" in
  14408. *-*-cygwin* | *-*-mingw*)
  14409. ;;
  14410. *)
  14411. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14412. # for constant arguments. Useless!
  14413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14414. $as_echo_n "checking for working alloca.h... " >&6; }
  14415. if ${ac_cv_working_alloca_h+:} false; then :
  14416. $as_echo_n "(cached) " >&6
  14417. else
  14418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14419. /* end confdefs.h. */
  14420. #include <alloca.h>
  14421. int
  14422. main ()
  14423. {
  14424. char *p = (char *) alloca (2 * sizeof (int));
  14425. if (p) return 0;
  14426. ;
  14427. return 0;
  14428. }
  14429. _ACEOF
  14430. if ac_fn_c_try_link "$LINENO"; then :
  14431. ac_cv_working_alloca_h=yes
  14432. else
  14433. ac_cv_working_alloca_h=no
  14434. fi
  14435. rm -f core conftest.err conftest.$ac_objext \
  14436. conftest$ac_exeext conftest.$ac_ext
  14437. fi
  14438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14439. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14440. if test $ac_cv_working_alloca_h = yes; then
  14441. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14442. fi
  14443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14444. $as_echo_n "checking for alloca... " >&6; }
  14445. if ${ac_cv_func_alloca_works+:} false; then :
  14446. $as_echo_n "(cached) " >&6
  14447. else
  14448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14449. /* end confdefs.h. */
  14450. #ifdef __GNUC__
  14451. # define alloca __builtin_alloca
  14452. #else
  14453. # ifdef _MSC_VER
  14454. # include <malloc.h>
  14455. # define alloca _alloca
  14456. # else
  14457. # ifdef HAVE_ALLOCA_H
  14458. # include <alloca.h>
  14459. # else
  14460. # ifdef _AIX
  14461. #pragma alloca
  14462. # else
  14463. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14464. void *alloca (size_t);
  14465. # endif
  14466. # endif
  14467. # endif
  14468. # endif
  14469. #endif
  14470. int
  14471. main ()
  14472. {
  14473. char *p = (char *) alloca (1);
  14474. if (p) return 0;
  14475. ;
  14476. return 0;
  14477. }
  14478. _ACEOF
  14479. if ac_fn_c_try_link "$LINENO"; then :
  14480. ac_cv_func_alloca_works=yes
  14481. else
  14482. ac_cv_func_alloca_works=no
  14483. fi
  14484. rm -f core conftest.err conftest.$ac_objext \
  14485. conftest$ac_exeext conftest.$ac_ext
  14486. fi
  14487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14488. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14489. if test $ac_cv_func_alloca_works = yes; then
  14490. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14491. else
  14492. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14493. # that cause trouble. Some versions do not even contain alloca or
  14494. # contain a buggy version. If you still want to use their alloca,
  14495. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14496. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14497. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14499. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14500. if ${ac_cv_os_cray+:} false; then :
  14501. $as_echo_n "(cached) " >&6
  14502. else
  14503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14504. /* end confdefs.h. */
  14505. #if defined CRAY && ! defined CRAY2
  14506. webecray
  14507. #else
  14508. wenotbecray
  14509. #endif
  14510. _ACEOF
  14511. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14512. $EGREP "webecray" >/dev/null 2>&1; then :
  14513. ac_cv_os_cray=yes
  14514. else
  14515. ac_cv_os_cray=no
  14516. fi
  14517. rm -f conftest*
  14518. fi
  14519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14520. $as_echo "$ac_cv_os_cray" >&6; }
  14521. if test $ac_cv_os_cray = yes; then
  14522. for ac_func in _getb67 GETB67 getb67; do
  14523. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14524. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14525. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14526. cat >>confdefs.h <<_ACEOF
  14527. #define CRAY_STACKSEG_END $ac_func
  14528. _ACEOF
  14529. break
  14530. fi
  14531. done
  14532. fi
  14533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14534. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14535. if ${ac_cv_c_stack_direction+:} false; then :
  14536. $as_echo_n "(cached) " >&6
  14537. else
  14538. if test "$cross_compiling" = yes; then :
  14539. ac_cv_c_stack_direction=0
  14540. else
  14541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14542. /* end confdefs.h. */
  14543. $ac_includes_default
  14544. int
  14545. find_stack_direction (int *addr, int depth)
  14546. {
  14547. int dir, dummy = 0;
  14548. if (! addr)
  14549. addr = &dummy;
  14550. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14551. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14552. return dir + dummy;
  14553. }
  14554. int
  14555. main (int argc, char **argv)
  14556. {
  14557. return find_stack_direction (0, argc + !argv + 20) < 0;
  14558. }
  14559. _ACEOF
  14560. if ac_fn_c_try_run "$LINENO"; then :
  14561. ac_cv_c_stack_direction=1
  14562. else
  14563. ac_cv_c_stack_direction=-1
  14564. fi
  14565. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14566. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14567. fi
  14568. fi
  14569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14570. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14571. cat >>confdefs.h <<_ACEOF
  14572. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14573. _ACEOF
  14574. fi
  14575. ;;
  14576. esac
  14577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14578. $as_echo_n "checking for working memcmp... " >&6; }
  14579. if ${ac_cv_func_memcmp_working+:} false; then :
  14580. $as_echo_n "(cached) " >&6
  14581. else
  14582. if test "$cross_compiling" = yes; then :
  14583. ac_cv_func_memcmp_working=no
  14584. else
  14585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14586. /* end confdefs.h. */
  14587. $ac_includes_default
  14588. int
  14589. main ()
  14590. {
  14591. /* Some versions of memcmp are not 8-bit clean. */
  14592. char c0 = '\100', c1 = '\200', c2 = '\201';
  14593. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14594. return 1;
  14595. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14596. or more and with at least one buffer not starting on a 4-byte boundary.
  14597. William Lewis provided this test program. */
  14598. {
  14599. char foo[21];
  14600. char bar[21];
  14601. int i;
  14602. for (i = 0; i < 4; i++)
  14603. {
  14604. char *a = foo + i;
  14605. char *b = bar + i;
  14606. strcpy (a, "--------01111111");
  14607. strcpy (b, "--------10000000");
  14608. if (memcmp (a, b, 16) >= 0)
  14609. return 1;
  14610. }
  14611. return 0;
  14612. }
  14613. ;
  14614. return 0;
  14615. }
  14616. _ACEOF
  14617. if ac_fn_c_try_run "$LINENO"; then :
  14618. ac_cv_func_memcmp_working=yes
  14619. else
  14620. ac_cv_func_memcmp_working=no
  14621. fi
  14622. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14623. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14624. fi
  14625. fi
  14626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14627. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14628. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14629. *" memcmp.$ac_objext "* ) ;;
  14630. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14631. ;;
  14632. esac
  14633. if test x$ac_cv_func_memcmp_working = xyes; then
  14634. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14635. fi
  14636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14637. $as_echo_n "checking for working strtod... " >&6; }
  14638. if ${ac_cv_func_strtod+:} false; then :
  14639. $as_echo_n "(cached) " >&6
  14640. else
  14641. if test "$cross_compiling" = yes; then :
  14642. ac_cv_func_strtod=no
  14643. else
  14644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14645. /* end confdefs.h. */
  14646. $ac_includes_default
  14647. #ifndef strtod
  14648. double strtod ();
  14649. #endif
  14650. int
  14651. main()
  14652. {
  14653. {
  14654. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14655. char *string = " +69";
  14656. char *term;
  14657. double value;
  14658. value = strtod (string, &term);
  14659. if (value != 69 || term != (string + 4))
  14660. return 1;
  14661. }
  14662. {
  14663. /* Under Solaris 2.4, strtod returns the wrong value for the
  14664. terminating character under some conditions. */
  14665. char *string = "NaN";
  14666. char *term;
  14667. strtod (string, &term);
  14668. if (term != string && *(term - 1) == 0)
  14669. return 1;
  14670. }
  14671. return 0;
  14672. }
  14673. _ACEOF
  14674. if ac_fn_c_try_run "$LINENO"; then :
  14675. ac_cv_func_strtod=yes
  14676. else
  14677. ac_cv_func_strtod=no
  14678. fi
  14679. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14680. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14681. fi
  14682. fi
  14683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14684. $as_echo "$ac_cv_func_strtod" >&6; }
  14685. if test $ac_cv_func_strtod = no; then
  14686. case " $LIBOBJS " in
  14687. *" strtod.$ac_objext "* ) ;;
  14688. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14689. ;;
  14690. esac
  14691. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14692. if test "x$ac_cv_func_pow" = xyes; then :
  14693. fi
  14694. if test $ac_cv_func_pow = no; then
  14695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14696. $as_echo_n "checking for pow in -lm... " >&6; }
  14697. if ${ac_cv_lib_m_pow+:} false; then :
  14698. $as_echo_n "(cached) " >&6
  14699. else
  14700. ac_check_lib_save_LIBS=$LIBS
  14701. LIBS="-lm $LIBS"
  14702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14703. /* end confdefs.h. */
  14704. /* Override any GCC internal prototype to avoid an error.
  14705. Use char because int might match the return type of a GCC
  14706. builtin and then its argument prototype would still apply. */
  14707. #ifdef __cplusplus
  14708. extern "C"
  14709. #endif
  14710. char pow ();
  14711. int
  14712. main ()
  14713. {
  14714. return pow ();
  14715. ;
  14716. return 0;
  14717. }
  14718. _ACEOF
  14719. if ac_fn_c_try_link "$LINENO"; then :
  14720. ac_cv_lib_m_pow=yes
  14721. else
  14722. ac_cv_lib_m_pow=no
  14723. fi
  14724. rm -f core conftest.err conftest.$ac_objext \
  14725. conftest$ac_exeext conftest.$ac_ext
  14726. LIBS=$ac_check_lib_save_LIBS
  14727. fi
  14728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14729. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14730. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14731. POW_LIB=-lm
  14732. else
  14733. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14734. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14735. fi
  14736. fi
  14737. fi
  14738. if test x$ac_cv_func_strtod = xyes; then
  14739. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14740. fi
  14741. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14742. if test "x$ac_cv_func_mprotect" = xyes; then :
  14743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14744. /* end confdefs.h. */
  14745. #include <sys/types.h>
  14746. #include <sys/mman.h>
  14747. int
  14748. main ()
  14749. {
  14750. ;
  14751. return 0;
  14752. }
  14753. _ACEOF
  14754. if ac_fn_c_try_compile "$LINENO"; then :
  14755. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14756. fi
  14757. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14758. fi
  14759. 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
  14760. do :
  14761. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14762. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14763. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14764. cat >>confdefs.h <<_ACEOF
  14765. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14766. _ACEOF
  14767. fi
  14768. done
  14769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14770. $as_echo_n "checking for pow in -lm... " >&6; }
  14771. if ${ac_cv_lib_m_pow+:} false; then :
  14772. $as_echo_n "(cached) " >&6
  14773. else
  14774. ac_check_lib_save_LIBS=$LIBS
  14775. LIBS="-lm $LIBS"
  14776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14777. /* end confdefs.h. */
  14778. /* Override any GCC internal prototype to avoid an error.
  14779. Use char because int might match the return type of a GCC
  14780. builtin and then its argument prototype would still apply. */
  14781. #ifdef __cplusplus
  14782. extern "C"
  14783. #endif
  14784. char pow ();
  14785. int
  14786. main ()
  14787. {
  14788. return pow ();
  14789. ;
  14790. return 0;
  14791. }
  14792. _ACEOF
  14793. if ac_fn_c_try_link "$LINENO"; then :
  14794. ac_cv_lib_m_pow=yes
  14795. else
  14796. ac_cv_lib_m_pow=no
  14797. fi
  14798. rm -f core conftest.err conftest.$ac_objext \
  14799. conftest$ac_exeext conftest.$ac_ext
  14800. LIBS=$ac_check_lib_save_LIBS
  14801. fi
  14802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14803. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14804. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14805. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14806. fi
  14807. 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
  14808. do :
  14809. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14810. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14811. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14812. cat >>confdefs.h <<_ACEOF
  14813. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14814. _ACEOF
  14815. fi
  14816. done
  14817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14818. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14819. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14820. $as_echo_n "(cached) " >&6
  14821. else
  14822. ac_check_lib_save_LIBS=$LIBS
  14823. LIBS="-liconv $LIBS"
  14824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14825. /* end confdefs.h. */
  14826. /* Override any GCC internal prototype to avoid an error.
  14827. Use char because int might match the return type of a GCC
  14828. builtin and then its argument prototype would still apply. */
  14829. #ifdef __cplusplus
  14830. extern "C"
  14831. #endif
  14832. char iconv_open ();
  14833. int
  14834. main ()
  14835. {
  14836. return iconv_open ();
  14837. ;
  14838. return 0;
  14839. }
  14840. _ACEOF
  14841. if ac_fn_c_try_link "$LINENO"; then :
  14842. ac_cv_lib_iconv_iconv_open=yes
  14843. else
  14844. ac_cv_lib_iconv_iconv_open=no
  14845. fi
  14846. rm -f core conftest.err conftest.$ac_objext \
  14847. conftest$ac_exeext conftest.$ac_ext
  14848. LIBS=$ac_check_lib_save_LIBS
  14849. fi
  14850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14851. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14852. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14853. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14854. fi
  14855. for ac_func in iconv
  14856. do :
  14857. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14858. if test "x$ac_cv_func_iconv" = xyes; then :
  14859. cat >>confdefs.h <<_ACEOF
  14860. #define HAVE_ICONV 1
  14861. _ACEOF
  14862. fi
  14863. done
  14864. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14865. "
  14866. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14867. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14868. fi
  14869. for ac_header in libunwind.h
  14870. do :
  14871. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  14872. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  14873. cat >>confdefs.h <<_ACEOF
  14874. #define HAVE_LIBUNWIND_H 1
  14875. _ACEOF
  14876. fi
  14877. done
  14878. fi
  14879. # Check whether --enable-gcc-atomics was given.
  14880. if test "${enable_gcc_atomics+set}" = set; then :
  14881. enableval=$enable_gcc_atomics;
  14882. else
  14883. enable_gcc_atomics=yes
  14884. fi
  14885. if test x$enable_gcc_atomics = xyes; then
  14886. have_gcc_atomics=no
  14887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14888. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14890. /* end confdefs.h. */
  14891. int
  14892. main ()
  14893. {
  14894. int a;
  14895. void *x, *y, *z;
  14896. __sync_lock_test_and_set(&a, 4);
  14897. __sync_lock_test_and_set(&x, y);
  14898. __sync_fetch_and_add(&a, 1);
  14899. __sync_bool_compare_and_swap(&a, 5, 10);
  14900. __sync_bool_compare_and_swap(&x, y, z);
  14901. ;
  14902. return 0;
  14903. }
  14904. _ACEOF
  14905. if ac_fn_c_try_link "$LINENO"; then :
  14906. have_gcc_atomics=yes
  14907. fi
  14908. rm -f core conftest.err conftest.$ac_objext \
  14909. conftest$ac_exeext conftest.$ac_ext
  14910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14911. $as_echo "$have_gcc_atomics" >&6; }
  14912. if test x$have_gcc_atomics = xyes; then
  14913. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14914. else
  14915. # See if we have the minimum operation needed for GCC atomics
  14916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14917. /* end confdefs.h. */
  14918. int
  14919. main ()
  14920. {
  14921. int a;
  14922. __sync_lock_test_and_set(&a, 1);
  14923. __sync_lock_release(&a);
  14924. ;
  14925. return 0;
  14926. }
  14927. _ACEOF
  14928. if ac_fn_c_try_link "$LINENO"; then :
  14929. have_gcc_sync_lock_test_and_set=yes
  14930. fi
  14931. rm -f core conftest.err conftest.$ac_objext \
  14932. conftest$ac_exeext conftest.$ac_ext
  14933. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14934. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14935. fi
  14936. fi
  14937. fi
  14938. # Standard C sources
  14939. SOURCES="$SOURCES $srcdir/src/*.c"
  14940. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14941. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14942. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14943. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14944. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14945. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14946. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14947. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14948. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14949. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  14950. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14951. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14952. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14953. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14954. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  14955. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14956. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14957. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14958. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14959. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  14960. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  14961. # Check whether --enable-atomic was given.
  14962. if test "${enable_atomic+set}" = set; then :
  14963. enableval=$enable_atomic;
  14964. else
  14965. enable_atomic=yes
  14966. fi
  14967. if test x$enable_atomic != xyes; then
  14968. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14969. else
  14970. SUMMARY_modules="${SUMMARY_modules} atomic"
  14971. fi
  14972. # Check whether --enable-audio was given.
  14973. if test "${enable_audio+set}" = set; then :
  14974. enableval=$enable_audio;
  14975. else
  14976. enable_audio=yes
  14977. fi
  14978. if test x$enable_audio != xyes; then
  14979. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14980. else
  14981. SUMMARY_modules="${SUMMARY_modules} audio"
  14982. fi
  14983. # Check whether --enable-video was given.
  14984. if test "${enable_video+set}" = set; then :
  14985. enableval=$enable_video;
  14986. else
  14987. enable_video=yes
  14988. fi
  14989. if test x$enable_video != xyes; then
  14990. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14991. else
  14992. SUMMARY_modules="${SUMMARY_modules} video"
  14993. fi
  14994. # Check whether --enable-render was given.
  14995. if test "${enable_render+set}" = set; then :
  14996. enableval=$enable_render;
  14997. else
  14998. enable_render=yes
  14999. fi
  15000. if test x$enable_render != xyes; then
  15001. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  15002. else
  15003. SUMMARY_modules="${SUMMARY_modules} render"
  15004. fi
  15005. # Check whether --enable-events was given.
  15006. if test "${enable_events+set}" = set; then :
  15007. enableval=$enable_events;
  15008. else
  15009. enable_events=yes
  15010. fi
  15011. if test x$enable_events != xyes; then
  15012. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  15013. else
  15014. SUMMARY_modules="${SUMMARY_modules} events"
  15015. fi
  15016. # Check whether --enable-joystick was given.
  15017. if test "${enable_joystick+set}" = set; then :
  15018. enableval=$enable_joystick;
  15019. else
  15020. enable_joystick=yes
  15021. fi
  15022. if test x$enable_joystick != xyes; then
  15023. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  15024. else
  15025. SUMMARY_modules="${SUMMARY_modules} joystick"
  15026. fi
  15027. # Check whether --enable-haptic was given.
  15028. if test "${enable_haptic+set}" = set; then :
  15029. enableval=$enable_haptic;
  15030. else
  15031. enable_haptic=yes
  15032. fi
  15033. if test x$enable_haptic != xyes; then
  15034. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  15035. else
  15036. SUMMARY_modules="${SUMMARY_modules} haptic"
  15037. fi
  15038. # Check whether --enable-sensor was given.
  15039. if test "${enable_sensor+set}" = set; then :
  15040. enableval=$enable_sensor;
  15041. else
  15042. enable_sensor=yes
  15043. fi
  15044. if test x$enable_sensor != xyes; then
  15045. $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  15046. else
  15047. SUMMARY_modules="${SUMMARY_modules} sensor"
  15048. fi
  15049. # Check whether --enable-power was given.
  15050. if test "${enable_power+set}" = set; then :
  15051. enableval=$enable_power;
  15052. else
  15053. enable_power=yes
  15054. fi
  15055. if test x$enable_power != xyes; then
  15056. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  15057. else
  15058. SUMMARY_modules="${SUMMARY_modules} power"
  15059. fi
  15060. # Check whether --enable-filesystem was given.
  15061. if test "${enable_filesystem+set}" = set; then :
  15062. enableval=$enable_filesystem;
  15063. else
  15064. enable_filesystem=yes
  15065. fi
  15066. if test x$enable_filesystem != xyes; then
  15067. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  15068. else
  15069. SUMMARY_modules="${SUMMARY_modules} filesystem"
  15070. fi
  15071. # Check whether --enable-threads was given.
  15072. if test "${enable_threads+set}" = set; then :
  15073. enableval=$enable_threads;
  15074. else
  15075. enable_threads=yes
  15076. fi
  15077. if test x$enable_threads != xyes; then
  15078. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  15079. else
  15080. SUMMARY_modules="${SUMMARY_modules} threads"
  15081. fi
  15082. # Check whether --enable-timers was given.
  15083. if test "${enable_timers+set}" = set; then :
  15084. enableval=$enable_timers;
  15085. else
  15086. enable_timers=yes
  15087. fi
  15088. if test x$enable_timers != xyes; then
  15089. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  15090. else
  15091. SUMMARY_modules="${SUMMARY_modules} timers"
  15092. fi
  15093. # Check whether --enable-file was given.
  15094. if test "${enable_file+set}" = set; then :
  15095. enableval=$enable_file;
  15096. else
  15097. enable_file=yes
  15098. fi
  15099. if test x$enable_file != xyes; then
  15100. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  15101. else
  15102. SUMMARY_modules="${SUMMARY_modules} file"
  15103. fi
  15104. # Check whether --enable-loadso was given.
  15105. if test "${enable_loadso+set}" = set; then :
  15106. enableval=$enable_loadso;
  15107. else
  15108. enable_loadso=yes
  15109. fi
  15110. if test x$enable_loadso != xyes; then
  15111. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  15112. else
  15113. SUMMARY_modules="${SUMMARY_modules} loadso"
  15114. fi
  15115. # Check whether --enable-cpuinfo was given.
  15116. if test "${enable_cpuinfo+set}" = set; then :
  15117. enableval=$enable_cpuinfo;
  15118. else
  15119. enable_cpuinfo=yes
  15120. fi
  15121. if test x$enable_cpuinfo != xyes; then
  15122. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  15123. else
  15124. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  15125. fi
  15126. # Check whether --enable-assembly was given.
  15127. if test "${enable_assembly+set}" = set; then :
  15128. enableval=$enable_assembly;
  15129. else
  15130. enable_assembly=yes
  15131. fi
  15132. if test x$enable_assembly = xyes; then
  15133. SUMMARY_modules="${SUMMARY_modules} assembly"
  15134. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  15135. # Make sure that we don't generate floating point code that would
  15136. # cause illegal instruction exceptions on older processors
  15137. case "$host" in
  15138. *-*-darwin*)
  15139. # Don't need to worry about Apple hardware, it's all SSE capable
  15140. default_ssemath=yes
  15141. ;;
  15142. *64-*-*)
  15143. # x86 64-bit architectures all have SSE instructions
  15144. default_ssemath=yes
  15145. ;;
  15146. *)
  15147. default_ssemath=no
  15148. ;;
  15149. esac
  15150. # Check whether --enable-ssemath was given.
  15151. if test "${enable_ssemath+set}" = set; then :
  15152. enableval=$enable_ssemath;
  15153. else
  15154. enable_ssemath=$default_ssemath
  15155. fi
  15156. if test x$enable_ssemath = xno; then
  15157. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  15158. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  15159. fi
  15160. fi
  15161. # Check whether --enable-mmx was given.
  15162. if test "${enable_mmx+set}" = set; then :
  15163. enableval=$enable_mmx;
  15164. else
  15165. enable_mmx=yes
  15166. fi
  15167. if test x$enable_mmx = xyes; then
  15168. save_CFLAGS="$CFLAGS"
  15169. have_gcc_mmx=no
  15170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  15171. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  15172. mmx_CFLAGS="-mmmx"
  15173. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  15174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15175. /* end confdefs.h. */
  15176. #ifdef __MINGW32__
  15177. #include <_mingw.h>
  15178. #ifdef __MINGW64_VERSION_MAJOR
  15179. #include <intrin.h>
  15180. #else
  15181. #include <mmintrin.h>
  15182. #endif
  15183. #else
  15184. #include <mmintrin.h>
  15185. #endif
  15186. #ifndef __MMX__
  15187. #error Assembler CPP flag not enabled
  15188. #endif
  15189. int
  15190. main ()
  15191. {
  15192. ;
  15193. return 0;
  15194. }
  15195. _ACEOF
  15196. if ac_fn_c_try_compile "$LINENO"; then :
  15197. have_gcc_mmx=yes
  15198. fi
  15199. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  15201. $as_echo "$have_gcc_mmx" >&6; }
  15202. CFLAGS="$save_CFLAGS"
  15203. if test x$have_gcc_mmx = xyes; then
  15204. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  15205. SUMMARY_math="${SUMMARY_math} mmx"
  15206. fi
  15207. fi
  15208. # Check whether --enable-3dnow was given.
  15209. if test "${enable_3dnow+set}" = set; then :
  15210. enableval=$enable_3dnow;
  15211. else
  15212. enable_3dnow=yes
  15213. fi
  15214. if test x$enable_3dnow = xyes; then
  15215. save_CFLAGS="$CFLAGS"
  15216. have_gcc_3dnow=no
  15217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  15218. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  15219. amd3dnow_CFLAGS="-m3dnow"
  15220. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  15221. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15222. /* end confdefs.h. */
  15223. #include <mm3dnow.h>
  15224. #ifndef __3dNOW__
  15225. #error Assembler CPP flag not enabled
  15226. #endif
  15227. int
  15228. main ()
  15229. {
  15230. void *p = 0;
  15231. _m_prefetch(p);
  15232. ;
  15233. return 0;
  15234. }
  15235. _ACEOF
  15236. if ac_fn_c_try_link "$LINENO"; then :
  15237. have_gcc_3dnow=yes
  15238. fi
  15239. rm -f core conftest.err conftest.$ac_objext \
  15240. conftest$ac_exeext conftest.$ac_ext
  15241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  15242. $as_echo "$have_gcc_3dnow" >&6; }
  15243. CFLAGS="$save_CFLAGS"
  15244. if test x$have_gcc_3dnow = xyes; then
  15245. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  15246. SUMMARY_math="${SUMMARY_math} 3dnow"
  15247. fi
  15248. fi
  15249. # Check whether --enable-sse was given.
  15250. if test "${enable_sse+set}" = set; then :
  15251. enableval=$enable_sse;
  15252. else
  15253. enable_sse=yes
  15254. fi
  15255. if test x$enable_sse = xyes; then
  15256. save_CFLAGS="$CFLAGS"
  15257. have_gcc_sse=no
  15258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  15259. $as_echo_n "checking for GCC -msse option... " >&6; }
  15260. sse_CFLAGS="-msse"
  15261. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  15262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15263. /* end confdefs.h. */
  15264. #ifdef __MINGW32__
  15265. #include <_mingw.h>
  15266. #ifdef __MINGW64_VERSION_MAJOR
  15267. #include <intrin.h>
  15268. #else
  15269. #include <xmmintrin.h>
  15270. #endif
  15271. #else
  15272. #include <xmmintrin.h>
  15273. #endif
  15274. #ifndef __SSE__
  15275. #error Assembler CPP flag not enabled
  15276. #endif
  15277. int
  15278. main ()
  15279. {
  15280. ;
  15281. return 0;
  15282. }
  15283. _ACEOF
  15284. if ac_fn_c_try_compile "$LINENO"; then :
  15285. have_gcc_sse=yes
  15286. fi
  15287. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  15289. $as_echo "$have_gcc_sse" >&6; }
  15290. CFLAGS="$save_CFLAGS"
  15291. if test x$have_gcc_sse = xyes; then
  15292. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  15293. SUMMARY_math="${SUMMARY_math} sse"
  15294. fi
  15295. fi
  15296. # Check whether --enable-sse2 was given.
  15297. if test "${enable_sse2+set}" = set; then :
  15298. enableval=$enable_sse2;
  15299. else
  15300. enable_sse2=$default_ssemath
  15301. fi
  15302. if test x$enable_sse2 = xyes; then
  15303. save_CFLAGS="$CFLAGS"
  15304. have_gcc_sse2=no
  15305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  15306. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  15307. sse2_CFLAGS="-msse2"
  15308. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  15309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15310. /* end confdefs.h. */
  15311. #ifdef __MINGW32__
  15312. #include <_mingw.h>
  15313. #ifdef __MINGW64_VERSION_MAJOR
  15314. #include <intrin.h>
  15315. #else
  15316. #include <emmintrin.h>
  15317. #endif
  15318. #else
  15319. #include <emmintrin.h>
  15320. #endif
  15321. #ifndef __SSE2__
  15322. #error Assembler CPP flag not enabled
  15323. #endif
  15324. int
  15325. main ()
  15326. {
  15327. ;
  15328. return 0;
  15329. }
  15330. _ACEOF
  15331. if ac_fn_c_try_compile "$LINENO"; then :
  15332. have_gcc_sse2=yes
  15333. fi
  15334. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  15336. $as_echo "$have_gcc_sse2" >&6; }
  15337. CFLAGS="$save_CFLAGS"
  15338. if test x$have_gcc_sse2 = xyes; then
  15339. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  15340. SUMMARY_math="${SUMMARY_math} sse2"
  15341. fi
  15342. fi
  15343. # Check whether --enable-sse3 was given.
  15344. if test "${enable_sse3+set}" = set; then :
  15345. enableval=$enable_sse3;
  15346. else
  15347. enable_sse3=$default_ssemath
  15348. fi
  15349. if test x$enable_sse3 = xyes; then
  15350. save_CFLAGS="$CFLAGS"
  15351. have_gcc_sse3=no
  15352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  15353. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  15354. sse3_CFLAGS="-msse3"
  15355. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  15356. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15357. /* end confdefs.h. */
  15358. #ifdef __MINGW32__
  15359. #include <_mingw.h>
  15360. #ifdef __MINGW64_VERSION_MAJOR
  15361. #include <intrin.h>
  15362. #else
  15363. #include <pmmintrin.h>
  15364. #endif
  15365. #else
  15366. #include <pmmintrin.h>
  15367. #endif
  15368. #ifndef __SSE2__
  15369. #error Assembler CPP flag not enabled
  15370. #endif
  15371. int
  15372. main ()
  15373. {
  15374. ;
  15375. return 0;
  15376. }
  15377. _ACEOF
  15378. if ac_fn_c_try_compile "$LINENO"; then :
  15379. have_gcc_sse3=yes
  15380. fi
  15381. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  15383. $as_echo "$have_gcc_sse3" >&6; }
  15384. CFLAGS="$save_CFLAGS"
  15385. if test x$have_gcc_sse3 = xyes; then
  15386. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  15387. SUMMARY_math="${SUMMARY_math} sse3"
  15388. fi
  15389. fi
  15390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  15391. $as_echo_n "checking for immintrin.h... " >&6; }
  15392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15393. /* end confdefs.h. */
  15394. #include <immintrin.h>
  15395. int
  15396. main ()
  15397. {
  15398. ;
  15399. return 0;
  15400. }
  15401. _ACEOF
  15402. if ac_fn_c_try_compile "$LINENO"; then :
  15403. have_immintrin_h_hdr=yes
  15404. else
  15405. have_immintrin_h_hdr=no
  15406. fi
  15407. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  15409. $as_echo "$have_immintrin_h_hdr" >&6; }
  15410. if test x$have_immintrin_h_hdr = xyes; then
  15411. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  15412. fi
  15413. # Check whether --enable-altivec was given.
  15414. if test "${enable_altivec+set}" = set; then :
  15415. enableval=$enable_altivec;
  15416. else
  15417. enable_altivec=yes
  15418. fi
  15419. if test x$enable_altivec = xyes; then
  15420. save_CFLAGS="$CFLAGS"
  15421. have_gcc_altivec=no
  15422. have_altivec_h_hdr=no
  15423. altivec_CFLAGS="-maltivec"
  15424. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  15426. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  15427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15428. /* end confdefs.h. */
  15429. #include <altivec.h>
  15430. vector unsigned int vzero() {
  15431. return vec_splat_u32(0);
  15432. }
  15433. int
  15434. main ()
  15435. {
  15436. ;
  15437. return 0;
  15438. }
  15439. _ACEOF
  15440. if ac_fn_c_try_compile "$LINENO"; then :
  15441. have_gcc_altivec=yes
  15442. have_altivec_h_hdr=yes
  15443. fi
  15444. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15446. $as_echo "$have_gcc_altivec" >&6; }
  15447. if test x$have_gcc_altivec = xno; then
  15448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  15449. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  15450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15451. /* end confdefs.h. */
  15452. vector unsigned int vzero() {
  15453. return vec_splat_u32(0);
  15454. }
  15455. int
  15456. main ()
  15457. {
  15458. ;
  15459. return 0;
  15460. }
  15461. _ACEOF
  15462. if ac_fn_c_try_compile "$LINENO"; then :
  15463. have_gcc_altivec=yes
  15464. fi
  15465. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15467. $as_echo "$have_gcc_altivec" >&6; }
  15468. fi
  15469. if test x$have_gcc_altivec = xno; then
  15470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  15471. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  15472. altivec_CFLAGS="-faltivec"
  15473. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15474. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15475. /* end confdefs.h. */
  15476. #include <altivec.h>
  15477. vector unsigned int vzero() {
  15478. return vec_splat_u32(0);
  15479. }
  15480. int
  15481. main ()
  15482. {
  15483. ;
  15484. return 0;
  15485. }
  15486. _ACEOF
  15487. if ac_fn_c_try_compile "$LINENO"; then :
  15488. have_gcc_altivec=yes
  15489. have_altivec_h_hdr=yes
  15490. fi
  15491. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15493. $as_echo "$have_gcc_altivec" >&6; }
  15494. fi
  15495. if test x$have_gcc_altivec = xno; then
  15496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  15497. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  15498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15499. /* end confdefs.h. */
  15500. vector unsigned int vzero() {
  15501. return vec_splat_u32(0);
  15502. }
  15503. int
  15504. main ()
  15505. {
  15506. ;
  15507. return 0;
  15508. }
  15509. _ACEOF
  15510. if ac_fn_c_try_compile "$LINENO"; then :
  15511. have_gcc_altivec=yes
  15512. fi
  15513. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15515. $as_echo "$have_gcc_altivec" >&6; }
  15516. fi
  15517. CFLAGS="$save_CFLAGS"
  15518. if test x$have_gcc_altivec = xyes; then
  15519. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15520. if test x$have_altivec_h_hdr = xyes; then
  15521. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15522. fi
  15523. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15524. SUMMARY_math="${SUMMARY_math} altivec"
  15525. fi
  15526. fi
  15527. fi
  15528. CheckOSS()
  15529. {
  15530. # Check whether --enable-oss was given.
  15531. if test "${enable_oss+set}" = set; then :
  15532. enableval=$enable_oss;
  15533. else
  15534. enable_oss=maybe
  15535. fi
  15536. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15537. # use sndio instead. So on there, we default to disabled. You can force
  15538. # it on if you really want, though.
  15539. if test x$enable_oss = xmaybe; then
  15540. enable_oss=yes
  15541. case "$host" in
  15542. *-*-openbsd*)
  15543. enable_oss=no;;
  15544. esac
  15545. fi
  15546. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15548. $as_echo_n "checking for OSS audio support... " >&6; }
  15549. have_oss=no
  15550. if test x$have_oss != xyes; then
  15551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15552. /* end confdefs.h. */
  15553. #include <sys/soundcard.h>
  15554. int
  15555. main ()
  15556. {
  15557. int arg = SNDCTL_DSP_SETFRAGMENT;
  15558. ;
  15559. return 0;
  15560. }
  15561. _ACEOF
  15562. if ac_fn_c_try_compile "$LINENO"; then :
  15563. have_oss=yes
  15564. fi
  15565. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15566. fi
  15567. if test x$have_oss != xyes; then
  15568. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15569. /* end confdefs.h. */
  15570. #include <soundcard.h>
  15571. int
  15572. main ()
  15573. {
  15574. int arg = SNDCTL_DSP_SETFRAGMENT;
  15575. ;
  15576. return 0;
  15577. }
  15578. _ACEOF
  15579. if ac_fn_c_try_compile "$LINENO"; then :
  15580. have_oss=yes
  15581. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15582. fi
  15583. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15584. fi
  15585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15586. $as_echo "$have_oss" >&6; }
  15587. if test x$have_oss = xyes; then
  15588. SUMMARY_audio="${SUMMARY_audio} oss"
  15589. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15590. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15591. have_audio=yes
  15592. # We may need to link with ossaudio emulation library
  15593. case "$host" in
  15594. *-*-openbsd*|*-*-netbsd*)
  15595. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15596. esac
  15597. fi
  15598. fi
  15599. }
  15600. CheckALSA()
  15601. {
  15602. # Check whether --enable-alsa was given.
  15603. if test "${enable_alsa+set}" = set; then :
  15604. enableval=$enable_alsa;
  15605. else
  15606. enable_alsa=yes
  15607. fi
  15608. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15609. alsa_save_CFLAGS="$CFLAGS"
  15610. alsa_save_LDFLAGS="$LDFLAGS"
  15611. alsa_save_LIBS="$LIBS"
  15612. alsa_found=yes
  15613. # Check whether --with-alsa-prefix was given.
  15614. if test "${with_alsa_prefix+set}" = set; then :
  15615. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15616. else
  15617. alsa_prefix=""
  15618. fi
  15619. # Check whether --with-alsa-inc-prefix was given.
  15620. if test "${with_alsa_inc_prefix+set}" = set; then :
  15621. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15622. else
  15623. alsa_inc_prefix=""
  15624. fi
  15625. # Check whether --enable-alsatest was given.
  15626. if test "${enable_alsatest+set}" = set; then :
  15627. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15628. else
  15629. enable_alsatest=yes
  15630. fi
  15631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15632. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15633. if test "$alsa_inc_prefix" != "" ; then
  15634. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15635. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15636. fi
  15637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15638. $as_echo "$ALSA_CFLAGS" >&6; }
  15639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15640. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15641. if test "$alsa_prefix" != "" ; then
  15642. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15643. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15644. fi
  15645. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15646. LIBS=`echo $LIBS | sed 's/-lm//'`
  15647. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15648. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15649. LIBS=`echo $LIBS | sed 's/ //'`
  15650. LIBS="$ALSA_LIBS $LIBS"
  15651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15652. $as_echo "$ALSA_LIBS" >&6; }
  15653. min_alsa_version=1.0.11
  15654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15655. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15656. no_alsa=""
  15657. alsa_min_major_version=`echo $min_alsa_version | \
  15658. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15659. alsa_min_minor_version=`echo $min_alsa_version | \
  15660. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15661. alsa_min_micro_version=`echo $min_alsa_version | \
  15662. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15663. ac_ext=c
  15664. ac_cpp='$CPP $CPPFLAGS'
  15665. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15666. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15667. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15669. /* end confdefs.h. */
  15670. #include <alsa/asoundlib.h>
  15671. int
  15672. main ()
  15673. {
  15674. /* ensure backward compatibility */
  15675. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15676. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15677. #endif
  15678. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15679. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15680. #endif
  15681. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15682. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15683. #endif
  15684. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15685. exit(0);
  15686. # else
  15687. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15688. # error not present
  15689. # endif
  15690. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15691. exit(0);
  15692. # else
  15693. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15694. # error not present
  15695. # endif
  15696. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15697. # error not present
  15698. # endif
  15699. # endif
  15700. # endif
  15701. exit(0);
  15702. ;
  15703. return 0;
  15704. }
  15705. _ACEOF
  15706. if ac_fn_c_try_compile "$LINENO"; then :
  15707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15708. $as_echo "found." >&6; }
  15709. else
  15710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15711. $as_echo "not present." >&6; }
  15712. alsa_found=no
  15713. fi
  15714. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15715. ac_ext=c
  15716. ac_cpp='$CPP $CPPFLAGS'
  15717. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15718. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15719. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15720. if test "x$enable_alsatest" = "xyes"; then
  15721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15722. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15723. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15724. $as_echo_n "(cached) " >&6
  15725. else
  15726. ac_check_lib_save_LIBS=$LIBS
  15727. LIBS="-lasound $LIBS"
  15728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15729. /* end confdefs.h. */
  15730. /* Override any GCC internal prototype to avoid an error.
  15731. Use char because int might match the return type of a GCC
  15732. builtin and then its argument prototype would still apply. */
  15733. #ifdef __cplusplus
  15734. extern "C"
  15735. #endif
  15736. char snd_ctl_open ();
  15737. int
  15738. main ()
  15739. {
  15740. return snd_ctl_open ();
  15741. ;
  15742. return 0;
  15743. }
  15744. _ACEOF
  15745. if ac_fn_c_try_link "$LINENO"; then :
  15746. ac_cv_lib_asound_snd_ctl_open=yes
  15747. else
  15748. ac_cv_lib_asound_snd_ctl_open=no
  15749. fi
  15750. rm -f core conftest.err conftest.$ac_objext \
  15751. conftest$ac_exeext conftest.$ac_ext
  15752. LIBS=$ac_check_lib_save_LIBS
  15753. fi
  15754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15755. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15756. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15757. cat >>confdefs.h <<_ACEOF
  15758. #define HAVE_LIBASOUND 1
  15759. _ACEOF
  15760. LIBS="-lasound $LIBS"
  15761. else
  15762. alsa_found=no
  15763. fi
  15764. fi
  15765. if test "x$alsa_found" = "xyes" ; then
  15766. have_alsa=yes
  15767. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15768. LIBS=`echo $LIBS | sed 's/ //'`
  15769. LIBS="-lasound $LIBS"
  15770. fi
  15771. if test "x$alsa_found" = "xno" ; then
  15772. have_alsa=no
  15773. CFLAGS="$alsa_save_CFLAGS"
  15774. LDFLAGS="$alsa_save_LDFLAGS"
  15775. LIBS="$alsa_save_LIBS"
  15776. ALSA_CFLAGS=""
  15777. ALSA_LIBS=""
  15778. fi
  15779. # Restore all flags from before the ALSA detection runs
  15780. CFLAGS="$alsa_save_CFLAGS"
  15781. LDFLAGS="$alsa_save_LDFLAGS"
  15782. LIBS="$alsa_save_LIBS"
  15783. if test x$have_alsa = xyes; then
  15784. # Check whether --enable-alsa-shared was given.
  15785. if test "${enable_alsa_shared+set}" = set; then :
  15786. enableval=$enable_alsa_shared;
  15787. else
  15788. enable_alsa_shared=yes
  15789. fi
  15790. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15791. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15792. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15793. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15794. if test x$have_loadso != xyes && \
  15795. test x$enable_alsa_shared = xyes; then
  15796. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15797. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15798. fi
  15799. if test x$have_loadso = xyes && \
  15800. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15801. echo "-- dynamic libasound -> $alsa_lib"
  15802. cat >>confdefs.h <<_ACEOF
  15803. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15804. _ACEOF
  15805. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15806. else
  15807. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15808. SUMMARY_audio="${SUMMARY_audio} alsa"
  15809. fi
  15810. have_audio=yes
  15811. fi
  15812. fi
  15813. }
  15814. CheckJACK()
  15815. {
  15816. # Check whether --enable-jack was given.
  15817. if test "${enable_jack+set}" = set; then :
  15818. enableval=$enable_jack;
  15819. else
  15820. enable_jack=yes
  15821. fi
  15822. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  15823. pkg_failed=no
  15824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  15825. $as_echo_n "checking for jack >= 0.125... " >&6; }
  15826. if test -n "$JACK_CFLAGS"; then
  15827. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  15828. elif test -n "$PKG_CONFIG"; then
  15829. if test -n "$PKG_CONFIG" && \
  15830. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15831. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15832. ac_status=$?
  15833. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15834. test $ac_status = 0; }; then
  15835. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  15836. test "x$?" != "x0" && pkg_failed=yes
  15837. else
  15838. pkg_failed=yes
  15839. fi
  15840. else
  15841. pkg_failed=untried
  15842. fi
  15843. if test -n "$JACK_LIBS"; then
  15844. pkg_cv_JACK_LIBS="$JACK_LIBS"
  15845. elif test -n "$PKG_CONFIG"; then
  15846. if test -n "$PKG_CONFIG" && \
  15847. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15848. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15849. ac_status=$?
  15850. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15851. test $ac_status = 0; }; then
  15852. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  15853. test "x$?" != "x0" && pkg_failed=yes
  15854. else
  15855. pkg_failed=yes
  15856. fi
  15857. else
  15858. pkg_failed=untried
  15859. fi
  15860. if test $pkg_failed = yes; then
  15861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15862. $as_echo "no" >&6; }
  15863. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15864. _pkg_short_errors_supported=yes
  15865. else
  15866. _pkg_short_errors_supported=no
  15867. fi
  15868. if test $_pkg_short_errors_supported = yes; then
  15869. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  15870. else
  15871. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  15872. fi
  15873. # Put the nasty error message in config.log where it belongs
  15874. echo "$JACK_PKG_ERRORS" >&5
  15875. audio_jack=no
  15876. elif test $pkg_failed = untried; then
  15877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15878. $as_echo "no" >&6; }
  15879. audio_jack=no
  15880. else
  15881. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  15882. JACK_LIBS=$pkg_cv_JACK_LIBS
  15883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15884. $as_echo "yes" >&6; }
  15885. audio_jack=yes
  15886. fi
  15887. if test x$audio_jack = xyes; then
  15888. # Check whether --enable-jack-shared was given.
  15889. if test "${enable_jack_shared+set}" = set; then :
  15890. enableval=$enable_jack_shared;
  15891. else
  15892. enable_jack_shared=yes
  15893. fi
  15894. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15895. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  15896. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  15897. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  15898. if test x$have_loadso != xyes && \
  15899. test x$enable_jack_shared = xyes; then
  15900. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  15901. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  15902. fi
  15903. if test x$have_loadso = xyes && \
  15904. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  15905. echo "-- dynamic libjack -> $jack_lib"
  15906. cat >>confdefs.h <<_ACEOF
  15907. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  15908. _ACEOF
  15909. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  15910. case "$host" in
  15911. # On Solaris, jack must be linked deferred explicitly
  15912. # to prevent undefined symbol failures.
  15913. *-*-solaris*)
  15914. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  15915. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  15916. esac
  15917. else
  15918. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  15919. SUMMARY_audio="${SUMMARY_audio} jack"
  15920. fi
  15921. have_audio=yes
  15922. fi
  15923. fi
  15924. }
  15925. CheckESD()
  15926. {
  15927. # Check whether --enable-esd was given.
  15928. if test "${enable_esd+set}" = set; then :
  15929. enableval=$enable_esd;
  15930. else
  15931. enable_esd=yes
  15932. fi
  15933. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15934. # Check whether --with-esd-prefix was given.
  15935. if test "${with_esd_prefix+set}" = set; then :
  15936. withval=$with_esd_prefix; esd_prefix="$withval"
  15937. else
  15938. esd_prefix=""
  15939. fi
  15940. # Check whether --with-esd-exec-prefix was given.
  15941. if test "${with_esd_exec_prefix+set}" = set; then :
  15942. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15943. else
  15944. esd_exec_prefix=""
  15945. fi
  15946. # Check whether --enable-esdtest was given.
  15947. if test "${enable_esdtest+set}" = set; then :
  15948. enableval=$enable_esdtest;
  15949. else
  15950. enable_esdtest=yes
  15951. fi
  15952. if test x$esd_exec_prefix != x ; then
  15953. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15954. if test x${ESD_CONFIG+set} != xset ; then
  15955. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15956. fi
  15957. fi
  15958. if test x$esd_prefix != x ; then
  15959. esd_args="$esd_args --prefix=$esd_prefix"
  15960. if test x${ESD_CONFIG+set} != xset ; then
  15961. ESD_CONFIG=$esd_prefix/bin/esd-config
  15962. fi
  15963. fi
  15964. # Extract the first word of "esd-config", so it can be a program name with args.
  15965. set dummy esd-config; ac_word=$2
  15966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15967. $as_echo_n "checking for $ac_word... " >&6; }
  15968. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15969. $as_echo_n "(cached) " >&6
  15970. else
  15971. case $ESD_CONFIG in
  15972. [\\/]* | ?:[\\/]*)
  15973. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15974. ;;
  15975. *)
  15976. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15977. for as_dir in $PATH
  15978. do
  15979. IFS=$as_save_IFS
  15980. test -z "$as_dir" && as_dir=.
  15981. for ac_exec_ext in '' $ac_executable_extensions; do
  15982. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15983. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15984. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15985. break 2
  15986. fi
  15987. done
  15988. done
  15989. IFS=$as_save_IFS
  15990. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15991. ;;
  15992. esac
  15993. fi
  15994. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15995. if test -n "$ESD_CONFIG"; then
  15996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15997. $as_echo "$ESD_CONFIG" >&6; }
  15998. else
  15999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16000. $as_echo "no" >&6; }
  16001. fi
  16002. min_esd_version=0.2.8
  16003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  16004. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  16005. no_esd=""
  16006. if test "$ESD_CONFIG" = "no" ; then
  16007. no_esd=yes
  16008. else
  16009. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  16010. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  16011. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  16012. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  16013. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  16014. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  16015. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  16016. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  16017. if test "x$enable_esdtest" = "xyes" ; then
  16018. ac_ext=c
  16019. ac_cpp='$CPP $CPPFLAGS'
  16020. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16021. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16022. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16023. ac_save_CFLAGS="$CFLAGS"
  16024. ac_save_LIBS="$LIBS"
  16025. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16026. LIBS="$LIBS $ESD_LIBS"
  16027. rm -f conf.esdtest
  16028. if test "$cross_compiling" = yes; then :
  16029. echo $ac_n "cross compiling; assumed OK... $ac_c"
  16030. else
  16031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16032. /* end confdefs.h. */
  16033. #include <stdio.h>
  16034. #include <stdlib.h>
  16035. #include <esd.h>
  16036. int main (void)
  16037. {
  16038. int major, minor, micro;
  16039. FILE *fp = fopen("conf.esdtest", "w");
  16040. if (fp) fclose(fp);
  16041. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  16042. printf("%s, bad version string\n", "$min_esd_version");
  16043. exit(1);
  16044. }
  16045. if (($esd_major_version > major) ||
  16046. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  16047. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  16048. {
  16049. return 0;
  16050. }
  16051. else
  16052. {
  16053. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  16054. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  16055. printf("*** best to upgrade to the required version.\n");
  16056. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  16057. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  16058. printf("*** config.cache before re-running configure\n");
  16059. return 1;
  16060. }
  16061. }
  16062. _ACEOF
  16063. if ac_fn_c_try_run "$LINENO"; then :
  16064. else
  16065. no_esd=yes
  16066. fi
  16067. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16068. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16069. fi
  16070. CFLAGS="$ac_save_CFLAGS"
  16071. LIBS="$ac_save_LIBS"
  16072. ac_ext=c
  16073. ac_cpp='$CPP $CPPFLAGS'
  16074. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16075. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16076. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16077. fi
  16078. fi
  16079. if test "x$no_esd" = x ; then
  16080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16081. $as_echo "yes" >&6; }
  16082. have_esd=yes
  16083. else
  16084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16085. $as_echo "no" >&6; }
  16086. if test "$ESD_CONFIG" = "no" ; then
  16087. echo "*** The esd-config script installed by ESD could not be found"
  16088. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  16089. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  16090. echo "*** full path to esd-config."
  16091. else
  16092. if test -f conf.esdtest ; then
  16093. :
  16094. else
  16095. echo "*** Could not run ESD test program, checking why..."
  16096. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16097. LIBS="$LIBS $ESD_LIBS"
  16098. ac_ext=c
  16099. ac_cpp='$CPP $CPPFLAGS'
  16100. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16101. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16102. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16103. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16104. /* end confdefs.h. */
  16105. #include <stdio.h>
  16106. #include <esd.h>
  16107. int
  16108. main ()
  16109. {
  16110. return 0;
  16111. ;
  16112. return 0;
  16113. }
  16114. _ACEOF
  16115. if ac_fn_c_try_link "$LINENO"; then :
  16116. echo "*** The test program compiled, but did not run. This usually means"
  16117. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  16118. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  16119. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  16120. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  16121. echo "*** is required on your system"
  16122. echo "***"
  16123. echo "*** If you have an old version installed, it is best to remove it, although"
  16124. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  16125. else
  16126. echo "*** The test program failed to compile or link. See the file config.log for the"
  16127. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  16128. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  16129. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  16130. fi
  16131. rm -f core conftest.err conftest.$ac_objext \
  16132. conftest$ac_exeext conftest.$ac_ext
  16133. CFLAGS="$ac_save_CFLAGS"
  16134. LIBS="$ac_save_LIBS"
  16135. ac_ext=c
  16136. ac_cpp='$CPP $CPPFLAGS'
  16137. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16138. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16139. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16140. fi
  16141. fi
  16142. ESD_CFLAGS=""
  16143. ESD_LIBS=""
  16144. have_esd=no
  16145. fi
  16146. rm -f conf.esdtest
  16147. if test x$have_esd = xyes; then
  16148. # Check whether --enable-esd-shared was given.
  16149. if test "${enable_esd_shared+set}" = set; then :
  16150. enableval=$enable_esd_shared;
  16151. else
  16152. enable_esd_shared=yes
  16153. fi
  16154. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16155. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  16156. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  16157. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  16158. if test x$have_loadso != xyes && \
  16159. test x$enable_esd_shared = xyes; then
  16160. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  16161. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  16162. fi
  16163. if test x$have_loadso = xyes && \
  16164. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  16165. echo "-- dynamic libesd -> $esd_lib"
  16166. cat >>confdefs.h <<_ACEOF
  16167. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  16168. _ACEOF
  16169. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  16170. else
  16171. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  16172. SUMMARY_audio="${SUMMARY_audio} esd"
  16173. fi
  16174. have_audio=yes
  16175. fi
  16176. fi
  16177. }
  16178. CheckPipewire()
  16179. {
  16180. # Check whether --enable-pipewire was given.
  16181. if test "${enable_pipewire+set}" = set; then :
  16182. enableval=$enable_pipewire;
  16183. else
  16184. enable_pipewire=yes
  16185. fi
  16186. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  16187. pkg_failed=no
  16188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  16189. $as_echo_n "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  16190. if test -n "$PIPEWIRE_CFLAGS"; then
  16191. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  16192. elif test -n "$PKG_CONFIG"; then
  16193. if test -n "$PKG_CONFIG" && \
  16194. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  16195. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  16196. ac_status=$?
  16197. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16198. test $ac_status = 0; }; then
  16199. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  16200. test "x$?" != "x0" && pkg_failed=yes
  16201. else
  16202. pkg_failed=yes
  16203. fi
  16204. else
  16205. pkg_failed=untried
  16206. fi
  16207. if test -n "$PIPEWIRE_LIBS"; then
  16208. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  16209. elif test -n "$PKG_CONFIG"; then
  16210. if test -n "$PKG_CONFIG" && \
  16211. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  16212. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  16213. ac_status=$?
  16214. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16215. test $ac_status = 0; }; then
  16216. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  16217. test "x$?" != "x0" && pkg_failed=yes
  16218. else
  16219. pkg_failed=yes
  16220. fi
  16221. else
  16222. pkg_failed=untried
  16223. fi
  16224. if test $pkg_failed = yes; then
  16225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16226. $as_echo "no" >&6; }
  16227. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16228. _pkg_short_errors_supported=yes
  16229. else
  16230. _pkg_short_errors_supported=no
  16231. fi
  16232. if test $_pkg_short_errors_supported = yes; then
  16233. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  16234. else
  16235. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  16236. fi
  16237. # Put the nasty error message in config.log where it belongs
  16238. echo "$PIPEWIRE_PKG_ERRORS" >&5
  16239. audio_pipewire=no
  16240. elif test $pkg_failed = untried; then
  16241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16242. $as_echo "no" >&6; }
  16243. audio_pipewire=no
  16244. else
  16245. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  16246. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  16247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16248. $as_echo "yes" >&6; }
  16249. audio_pipewire=yes
  16250. fi
  16251. if test x$audio_pipewire = xyes; then
  16252. # Check whether --enable-pipewire-shared was given.
  16253. if test "${enable_pipewire_shared+set}" = set; then :
  16254. enableval=$enable_pipewire_shared;
  16255. else
  16256. enable_pipewire_shared=yes
  16257. fi
  16258. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16259. $as_echo "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  16260. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  16261. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  16262. if test x$have_loadso != xyes && \
  16263. test x$enable_pipewire_shared = xyes; then
  16264. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  16265. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  16266. fi
  16267. if test x$have_loadso = xyes && \
  16268. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  16269. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  16270. cat >>confdefs.h <<_ACEOF
  16271. #define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC "$pipewire_lib"
  16272. _ACEOF
  16273. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  16274. else
  16275. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  16276. SUMMARY_audio="${SUMMARY_audio} pipewire"
  16277. fi
  16278. have_audio=yes
  16279. fi
  16280. fi
  16281. }
  16282. CheckPulseAudio()
  16283. {
  16284. # Check whether --enable-pulseaudio was given.
  16285. if test "${enable_pulseaudio+set}" = set; then :
  16286. enableval=$enable_pulseaudio;
  16287. else
  16288. enable_pulseaudio=yes
  16289. fi
  16290. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  16291. pkg_failed=no
  16292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  16293. $as_echo_n "checking for libpulse-simple >= 0.9... " >&6; }
  16294. if test -n "$PULSEAUDIO_CFLAGS"; then
  16295. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  16296. elif test -n "$PKG_CONFIG"; then
  16297. if test -n "$PKG_CONFIG" && \
  16298. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16299. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16300. ac_status=$?
  16301. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16302. test $ac_status = 0; }; then
  16303. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  16304. test "x$?" != "x0" && pkg_failed=yes
  16305. else
  16306. pkg_failed=yes
  16307. fi
  16308. else
  16309. pkg_failed=untried
  16310. fi
  16311. if test -n "$PULSEAUDIO_LIBS"; then
  16312. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  16313. elif test -n "$PKG_CONFIG"; then
  16314. if test -n "$PKG_CONFIG" && \
  16315. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16316. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16317. ac_status=$?
  16318. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16319. test $ac_status = 0; }; then
  16320. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  16321. test "x$?" != "x0" && pkg_failed=yes
  16322. else
  16323. pkg_failed=yes
  16324. fi
  16325. else
  16326. pkg_failed=untried
  16327. fi
  16328. if test $pkg_failed = yes; then
  16329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16330. $as_echo "no" >&6; }
  16331. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16332. _pkg_short_errors_supported=yes
  16333. else
  16334. _pkg_short_errors_supported=no
  16335. fi
  16336. if test $_pkg_short_errors_supported = yes; then
  16337. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  16338. else
  16339. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  16340. fi
  16341. # Put the nasty error message in config.log where it belongs
  16342. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  16343. audio_pulseaudio=no
  16344. elif test $pkg_failed = untried; then
  16345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16346. $as_echo "no" >&6; }
  16347. audio_pulseaudio=no
  16348. else
  16349. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  16350. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  16351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16352. $as_echo "yes" >&6; }
  16353. audio_pulseaudio=yes
  16354. fi
  16355. if test x$audio_pulseaudio = xyes; then
  16356. # Check whether --enable-pulseaudio-shared was given.
  16357. if test "${enable_pulseaudio_shared+set}" = set; then :
  16358. enableval=$enable_pulseaudio_shared;
  16359. else
  16360. enable_pulseaudio_shared=yes
  16361. fi
  16362. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16363. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  16364. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  16365. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  16366. if test x$have_loadso != xyes && \
  16367. test x$enable_pulseaudio_shared = xyes; then
  16368. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  16369. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  16370. fi
  16371. if test x$have_loadso = xyes && \
  16372. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  16373. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  16374. cat >>confdefs.h <<_ACEOF
  16375. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  16376. _ACEOF
  16377. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  16378. case "$host" in
  16379. # On Solaris, pulseaudio must be linked deferred explicitly
  16380. # to prevent undefined symbol failures.
  16381. *-*-solaris*)
  16382. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  16383. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  16384. esac
  16385. else
  16386. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  16387. SUMMARY_audio="${SUMMARY_audio} pulse"
  16388. fi
  16389. have_audio=yes
  16390. fi
  16391. fi
  16392. }
  16393. CheckARTSC()
  16394. {
  16395. # Check whether --enable-arts was given.
  16396. if test "${enable_arts+set}" = set; then :
  16397. enableval=$enable_arts;
  16398. else
  16399. enable_arts=yes
  16400. fi
  16401. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  16402. # Extract the first word of "artsc-config", so it can be a program name with args.
  16403. set dummy artsc-config; ac_word=$2
  16404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16405. $as_echo_n "checking for $ac_word... " >&6; }
  16406. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  16407. $as_echo_n "(cached) " >&6
  16408. else
  16409. case $ARTSCONFIG in
  16410. [\\/]* | ?:[\\/]*)
  16411. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  16412. ;;
  16413. *)
  16414. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16415. for as_dir in $PATH
  16416. do
  16417. IFS=$as_save_IFS
  16418. test -z "$as_dir" && as_dir=.
  16419. for ac_exec_ext in '' $ac_executable_extensions; do
  16420. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16421. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  16422. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16423. break 2
  16424. fi
  16425. done
  16426. done
  16427. IFS=$as_save_IFS
  16428. ;;
  16429. esac
  16430. fi
  16431. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  16432. if test -n "$ARTSCONFIG"; then
  16433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  16434. $as_echo "$ARTSCONFIG" >&6; }
  16435. else
  16436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16437. $as_echo "no" >&6; }
  16438. fi
  16439. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  16440. : # arts isn't installed
  16441. else
  16442. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  16443. ARTS_LIBS=`$ARTSCONFIG --libs`
  16444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  16445. $as_echo_n "checking for aRts development environment... " >&6; }
  16446. audio_arts=no
  16447. save_CFLAGS="$CFLAGS"
  16448. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  16449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16450. /* end confdefs.h. */
  16451. #include <artsc.h>
  16452. int
  16453. main ()
  16454. {
  16455. arts_stream_t stream;
  16456. ;
  16457. return 0;
  16458. }
  16459. _ACEOF
  16460. if ac_fn_c_try_compile "$LINENO"; then :
  16461. audio_arts=yes
  16462. fi
  16463. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16464. CFLAGS="$save_CFLAGS"
  16465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  16466. $as_echo "$audio_arts" >&6; }
  16467. if test x$audio_arts = xyes; then
  16468. # Check whether --enable-arts-shared was given.
  16469. if test "${enable_arts_shared+set}" = set; then :
  16470. enableval=$enable_arts_shared;
  16471. else
  16472. enable_arts_shared=yes
  16473. fi
  16474. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16475. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  16476. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  16477. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  16478. if test x$have_loadso != xyes && \
  16479. test x$enable_arts_shared = xyes; then
  16480. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  16481. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  16482. fi
  16483. if test x$have_loadso = xyes && \
  16484. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  16485. echo "-- dynamic libartsc -> $arts_lib"
  16486. cat >>confdefs.h <<_ACEOF
  16487. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  16488. _ACEOF
  16489. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  16490. else
  16491. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  16492. SUMMARY_audio="${SUMMARY_audio} arts"
  16493. fi
  16494. have_audio=yes
  16495. fi
  16496. fi
  16497. fi
  16498. }
  16499. CheckNAS()
  16500. {
  16501. # Check whether --enable-nas was given.
  16502. if test "${enable_nas+set}" = set; then :
  16503. enableval=$enable_nas;
  16504. else
  16505. enable_nas=yes
  16506. fi
  16507. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  16508. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  16509. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  16510. have_nas_hdr=yes
  16511. fi
  16512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  16513. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  16514. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  16515. $as_echo_n "(cached) " >&6
  16516. else
  16517. ac_check_lib_save_LIBS=$LIBS
  16518. LIBS="-laudio $LIBS"
  16519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16520. /* end confdefs.h. */
  16521. /* Override any GCC internal prototype to avoid an error.
  16522. Use char because int might match the return type of a GCC
  16523. builtin and then its argument prototype would still apply. */
  16524. #ifdef __cplusplus
  16525. extern "C"
  16526. #endif
  16527. char AuOpenServer ();
  16528. int
  16529. main ()
  16530. {
  16531. return AuOpenServer ();
  16532. ;
  16533. return 0;
  16534. }
  16535. _ACEOF
  16536. if ac_fn_c_try_link "$LINENO"; then :
  16537. ac_cv_lib_audio_AuOpenServer=yes
  16538. else
  16539. ac_cv_lib_audio_AuOpenServer=no
  16540. fi
  16541. rm -f core conftest.err conftest.$ac_objext \
  16542. conftest$ac_exeext conftest.$ac_ext
  16543. LIBS=$ac_check_lib_save_LIBS
  16544. fi
  16545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  16546. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  16547. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  16548. have_nas_lib=yes
  16549. fi
  16550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  16551. $as_echo_n "checking for NAS audio support... " >&6; }
  16552. have_nas=no
  16553. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  16554. have_nas=yes
  16555. NAS_LIBS="-laudio"
  16556. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  16557. have_nas=yes
  16558. NAS_CFLAGS="-I/usr/X11R6/include/"
  16559. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  16560. fi
  16561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  16562. $as_echo "$have_nas" >&6; }
  16563. if test x$have_nas = xyes; then
  16564. # Check whether --enable-nas-shared was given.
  16565. if test "${enable_nas_shared+set}" = set; then :
  16566. enableval=$enable_nas_shared;
  16567. else
  16568. enable_nas_shared=yes
  16569. fi
  16570. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16571. if test x$have_loadso != xyes && \
  16572. test x$enable_nas_shared = xyes; then
  16573. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  16574. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  16575. fi
  16576. if test x$have_loadso = xyes && \
  16577. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  16578. echo "-- dynamic libaudio -> $nas_lib"
  16579. cat >>confdefs.h <<_ACEOF
  16580. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  16581. _ACEOF
  16582. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  16583. else
  16584. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  16585. SUMMARY_audio="${SUMMARY_audio} nas"
  16586. fi
  16587. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  16588. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  16589. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  16590. have_audio=yes
  16591. fi
  16592. fi
  16593. }
  16594. CheckSNDIO()
  16595. {
  16596. # Check whether --enable-sndio was given.
  16597. if test "${enable_sndio+set}" = set; then :
  16598. enableval=$enable_sndio;
  16599. else
  16600. enable_sndio=yes
  16601. fi
  16602. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  16603. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  16604. if test "x$ac_cv_header_sndio_h" = xyes; then :
  16605. have_sndio_hdr=yes
  16606. fi
  16607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  16608. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  16609. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  16610. $as_echo_n "(cached) " >&6
  16611. else
  16612. ac_check_lib_save_LIBS=$LIBS
  16613. LIBS="-lsndio $LIBS"
  16614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16615. /* end confdefs.h. */
  16616. /* Override any GCC internal prototype to avoid an error.
  16617. Use char because int might match the return type of a GCC
  16618. builtin and then its argument prototype would still apply. */
  16619. #ifdef __cplusplus
  16620. extern "C"
  16621. #endif
  16622. char sio_open ();
  16623. int
  16624. main ()
  16625. {
  16626. return sio_open ();
  16627. ;
  16628. return 0;
  16629. }
  16630. _ACEOF
  16631. if ac_fn_c_try_link "$LINENO"; then :
  16632. ac_cv_lib_sndio_sio_open=yes
  16633. else
  16634. ac_cv_lib_sndio_sio_open=no
  16635. fi
  16636. rm -f core conftest.err conftest.$ac_objext \
  16637. conftest$ac_exeext conftest.$ac_ext
  16638. LIBS=$ac_check_lib_save_LIBS
  16639. fi
  16640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  16641. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  16642. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  16643. have_sndio_lib=yes
  16644. fi
  16645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  16646. $as_echo_n "checking for sndio audio support... " >&6; }
  16647. have_sndio=no
  16648. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  16649. have_sndio=yes
  16650. SNDIO_LIBS="-lsndio"
  16651. fi
  16652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  16653. $as_echo "$have_sndio" >&6; }
  16654. if test x$have_sndio = xyes; then
  16655. # Check whether --enable-sndio-shared was given.
  16656. if test "${enable_sndio_shared+set}" = set; then :
  16657. enableval=$enable_sndio_shared;
  16658. else
  16659. enable_sndio_shared=yes
  16660. fi
  16661. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16662. if test x$have_loadso != xyes && \
  16663. test x$enable_sndio_shared = xyes; then
  16664. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  16665. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  16666. fi
  16667. if test x$have_loadso = xyes && \
  16668. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  16669. echo "-- dynamic libsndio -> $sndio_lib"
  16670. cat >>confdefs.h <<_ACEOF
  16671. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  16672. _ACEOF
  16673. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  16674. else
  16675. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  16676. SUMMARY_audio="${SUMMARY_audio} sndio"
  16677. fi
  16678. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  16679. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  16680. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  16681. have_audio=yes
  16682. fi
  16683. fi
  16684. }
  16685. CheckFusionSound()
  16686. {
  16687. # Check whether --enable-fusionsound was given.
  16688. if test "${enable_fusionsound+set}" = set; then :
  16689. enableval=$enable_fusionsound;
  16690. else
  16691. enable_fusionsound=no
  16692. fi
  16693. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  16694. pkg_failed=no
  16695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  16696. $as_echo_n "checking for fusionsound >= 1.1.1... " >&6; }
  16697. if test -n "$FUSIONSOUND_CFLAGS"; then
  16698. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  16699. elif test -n "$PKG_CONFIG"; then
  16700. if test -n "$PKG_CONFIG" && \
  16701. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16702. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16703. ac_status=$?
  16704. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16705. test $ac_status = 0; }; then
  16706. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  16707. test "x$?" != "x0" && pkg_failed=yes
  16708. else
  16709. pkg_failed=yes
  16710. fi
  16711. else
  16712. pkg_failed=untried
  16713. fi
  16714. if test -n "$FUSIONSOUND_LIBS"; then
  16715. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  16716. elif test -n "$PKG_CONFIG"; then
  16717. if test -n "$PKG_CONFIG" && \
  16718. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16719. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16720. ac_status=$?
  16721. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16722. test $ac_status = 0; }; then
  16723. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  16724. test "x$?" != "x0" && pkg_failed=yes
  16725. else
  16726. pkg_failed=yes
  16727. fi
  16728. else
  16729. pkg_failed=untried
  16730. fi
  16731. if test $pkg_failed = yes; then
  16732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16733. $as_echo "no" >&6; }
  16734. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16735. _pkg_short_errors_supported=yes
  16736. else
  16737. _pkg_short_errors_supported=no
  16738. fi
  16739. if test $_pkg_short_errors_supported = yes; then
  16740. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  16741. else
  16742. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  16743. fi
  16744. # Put the nasty error message in config.log where it belongs
  16745. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  16746. fusionsound=no
  16747. elif test $pkg_failed = untried; then
  16748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16749. $as_echo "no" >&6; }
  16750. fusionsound=no
  16751. else
  16752. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  16753. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  16754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16755. $as_echo "yes" >&6; }
  16756. fusionsound=yes
  16757. fi
  16758. if test x$fusionsound = xyes; then
  16759. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  16760. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  16761. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  16762. # Check whether --enable-fusionsound-shared was given.
  16763. if test "${enable_fusionsound_shared+set}" = set; then :
  16764. enableval=$enable_fusionsound_shared;
  16765. else
  16766. enable_fusionsound_shared=yes
  16767. fi
  16768. fusionsound_shared=no
  16769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  16770. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  16771. if test x$have_loadso != xyes && \
  16772. test x$enable_fusionsound_shared = xyes; then
  16773. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  16774. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  16775. fi
  16776. if test x$have_loadso = xyes && \
  16777. test x$enable_fusionsound_shared = xyes; then
  16778. cat >>confdefs.h <<_ACEOF
  16779. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  16780. _ACEOF
  16781. fusionsound_shared=yes
  16782. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  16783. else
  16784. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  16785. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  16786. fi
  16787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  16788. $as_echo "$fusionsound_shared" >&6; }
  16789. have_audio=yes
  16790. fi
  16791. fi
  16792. }
  16793. CheckDiskAudio()
  16794. {
  16795. # Check whether --enable-diskaudio was given.
  16796. if test "${enable_diskaudio+set}" = set; then :
  16797. enableval=$enable_diskaudio;
  16798. else
  16799. enable_diskaudio=yes
  16800. fi
  16801. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  16802. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  16803. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  16804. SUMMARY_audio="${SUMMARY_audio} disk"
  16805. fi
  16806. }
  16807. CheckDummyAudio()
  16808. {
  16809. # Check whether --enable-dummyaudio was given.
  16810. if test "${enable_dummyaudio+set}" = set; then :
  16811. enableval=$enable_dummyaudio;
  16812. else
  16813. enable_dummyaudio=yes
  16814. fi
  16815. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  16816. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  16817. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  16818. SUMMARY_audio="${SUMMARY_audio} dummy"
  16819. fi
  16820. }
  16821. CheckLibSampleRate()
  16822. {
  16823. # Check whether --enable-libsamplerate was given.
  16824. if test "${enable_libsamplerate+set}" = set; then :
  16825. enableval=$enable_libsamplerate;
  16826. else
  16827. enable_libsamplerate=yes
  16828. fi
  16829. if test x$enable_libsamplerate = xyes; then
  16830. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  16831. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  16832. have_samplerate_h_hdr=yes
  16833. else
  16834. have_samplerate_h_hdr=no
  16835. fi
  16836. if test x$have_samplerate_h_hdr = xyes; then
  16837. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  16838. # Check whether --enable-libsamplerate-shared was given.
  16839. if test "${enable_libsamplerate_shared+set}" = set; then :
  16840. enableval=$enable_libsamplerate_shared;
  16841. else
  16842. enable_libsamplerate_shared=yes
  16843. fi
  16844. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  16845. if test x$have_loadso != xyes && \
  16846. test x$enable_libsamplerate_shared = xyes; then
  16847. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  16848. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  16849. fi
  16850. if test x$have_loadso = xyes && \
  16851. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  16852. echo "-- dynamic libsamplerate -> $samplerate_lib"
  16853. cat >>confdefs.h <<_ACEOF
  16854. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  16855. _ACEOF
  16856. else
  16857. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  16858. fi
  16859. fi
  16860. fi
  16861. }
  16862. CheckARM()
  16863. {
  16864. # Check whether --enable-arm-simd was given.
  16865. if test "${enable_arm_simd+set}" = set; then :
  16866. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  16867. else
  16868. enable_arm_simd=no
  16869. fi
  16870. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  16871. save_CFLAGS="$CFLAGS"
  16872. have_arm_simd=no
  16873. CFLAGS="-x assembler-with-cpp $CFLAGS"
  16874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  16875. $as_echo_n "checking for ARM SIMD... " >&6; }
  16876. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16877. /* end confdefs.h. */
  16878. .text
  16879. .arch armv6
  16880. .object_arch armv4
  16881. .arm
  16882. .altmacro
  16883. #ifndef __ARM_EABI__
  16884. #error EABI is required (to be sure that calling conventions are compatible)
  16885. #endif
  16886. pld [r0]
  16887. uqadd8 r0, r0, r0
  16888. _ACEOF
  16889. if ac_fn_c_try_compile "$LINENO"; then :
  16890. have_arm_simd=yes
  16891. fi
  16892. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  16894. $as_echo "$have_arm_simd" >&6; }
  16895. CFLAGS="$save_CFLAGS"
  16896. if test x$have_arm_simd = xyes; then
  16897. $as_echo "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  16898. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  16899. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  16900. fi
  16901. fi
  16902. }
  16903. CheckNEON()
  16904. {
  16905. # Check whether --enable-arm-neon was given.
  16906. if test "${enable_arm_neon+set}" = set; then :
  16907. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  16908. else
  16909. enable_arm_neon=no
  16910. fi
  16911. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  16912. save_CFLAGS="$CFLAGS"
  16913. have_arm_neon=no
  16914. CFLAGS="-x assembler-with-cpp $CFLAGS"
  16915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  16916. $as_echo_n "checking for ARM NEON... " >&6; }
  16917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16918. /* end confdefs.h. */
  16919. .text
  16920. .fpu neon
  16921. .arch armv7a
  16922. .object_arch armv4
  16923. .eabi_attribute 10, 0
  16924. .arm
  16925. .altmacro
  16926. #ifndef __ARM_EABI__
  16927. #error EABI is required (to be sure that calling conventions are compatible)
  16928. #endif
  16929. pld [r0]
  16930. vmovn.u16 d0, q0
  16931. _ACEOF
  16932. if ac_fn_c_try_compile "$LINENO"; then :
  16933. have_arm_neon=yes
  16934. fi
  16935. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  16937. $as_echo "$have_arm_neon" >&6; }
  16938. CFLAGS="$save_CFLAGS"
  16939. if test x$have_arm_neon = xyes; then
  16940. $as_echo "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  16941. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  16942. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  16943. fi
  16944. fi
  16945. }
  16946. CheckVisibilityHidden()
  16947. {
  16948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  16949. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  16950. have_gcc_fvisibility=no
  16951. visibility_CFLAGS="-fvisibility=hidden"
  16952. save_CFLAGS="$CFLAGS"
  16953. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  16954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16955. /* end confdefs.h. */
  16956. #if !defined(__GNUC__) || __GNUC__ < 4
  16957. #error SDL only uses visibility attributes in GCC 4 or newer
  16958. #endif
  16959. int
  16960. main ()
  16961. {
  16962. ;
  16963. return 0;
  16964. }
  16965. _ACEOF
  16966. if ac_fn_c_try_compile "$LINENO"; then :
  16967. have_gcc_fvisibility=yes
  16968. fi
  16969. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  16971. $as_echo "$have_gcc_fvisibility" >&6; }
  16972. CFLAGS="$save_CFLAGS"
  16973. if test x$have_gcc_fvisibility = xyes; then
  16974. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  16975. fi
  16976. }
  16977. CheckNoStrictAliasing()
  16978. {
  16979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  16980. $as_echo_n "checking for GCC -fno-strict-aliasing option... " >&6; }
  16981. have_gcc_no_strict_aliasing=no
  16982. save_CFLAGS="$CFLAGS"
  16983. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  16984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16985. /* end confdefs.h. */
  16986. int x = 0;
  16987. int
  16988. main ()
  16989. {
  16990. ;
  16991. return 0;
  16992. }
  16993. _ACEOF
  16994. if ac_fn_c_try_compile "$LINENO"; then :
  16995. have_gcc_no_strict_aliasing=yes
  16996. fi
  16997. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  16999. $as_echo "$have_gcc_no_strict_aliasing" >&6; }
  17000. CFLAGS="$save_CFLAGS"
  17001. if test x$have_gcc_no_strict_aliasing = xyes; then
  17002. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  17003. fi
  17004. }
  17005. CheckStackBoundary()
  17006. {
  17007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  17008. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  17009. have_gcc_preferred_stack_boundary=no
  17010. save_CFLAGS="$CFLAGS"
  17011. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  17012. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17013. /* end confdefs.h. */
  17014. int x = 0;
  17015. int
  17016. main ()
  17017. {
  17018. ;
  17019. return 0;
  17020. }
  17021. _ACEOF
  17022. if ac_fn_c_try_compile "$LINENO"; then :
  17023. have_gcc_preferred_stack_boundary=yes
  17024. fi
  17025. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  17027. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  17028. CFLAGS="$save_CFLAGS"
  17029. if test x$have_gcc_preferred_stack_boundary = xyes; then
  17030. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  17031. fi
  17032. }
  17033. CheckDeclarationAfterStatement()
  17034. {
  17035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  17036. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  17037. have_gcc_declaration_after_statement=no
  17038. save_CFLAGS="$CFLAGS"
  17039. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  17040. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17041. /* end confdefs.h. */
  17042. int x = 0;
  17043. int
  17044. main ()
  17045. {
  17046. ;
  17047. return 0;
  17048. }
  17049. _ACEOF
  17050. if ac_fn_c_try_compile "$LINENO"; then :
  17051. have_gcc_declaration_after_statement=yes
  17052. fi
  17053. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  17055. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  17056. CFLAGS="$save_CFLAGS"
  17057. if test x$have_gcc_declaration_after_statement = xyes; then
  17058. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  17059. fi
  17060. }
  17061. CheckWarnAll()
  17062. {
  17063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  17064. $as_echo_n "checking for GCC -Wall option... " >&6; }
  17065. have_gcc_Wall=no
  17066. save_CFLAGS="$CFLAGS"
  17067. CFLAGS="$save_CFLAGS -Wall"
  17068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17069. /* end confdefs.h. */
  17070. int x = 0;
  17071. int
  17072. main ()
  17073. {
  17074. ;
  17075. return 0;
  17076. }
  17077. _ACEOF
  17078. if ac_fn_c_try_compile "$LINENO"; then :
  17079. have_gcc_Wall=yes
  17080. fi
  17081. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  17083. $as_echo "$have_gcc_Wall" >&6; }
  17084. CFLAGS="$save_CFLAGS"
  17085. if test x$have_gcc_Wall = xyes; then
  17086. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  17087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  17088. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  17089. need_gcc_Wno_multichar=no
  17090. case "$host" in
  17091. *-*-haiku*)
  17092. need_gcc_Wno_multichar=yes
  17093. ;;
  17094. esac
  17095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  17096. $as_echo "$need_gcc_Wno_multichar" >&6; }
  17097. if test x$need_gcc_Wno_multichar = xyes; then
  17098. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  17099. fi
  17100. fi
  17101. }
  17102. CheckLibDecor()
  17103. {
  17104. # Check whether --enable-libdecor was given.
  17105. if test "${enable_libdecor+set}" = set; then :
  17106. enableval=$enable_libdecor;
  17107. else
  17108. enable_libdecor=yes
  17109. fi
  17110. if test x$enable_libdecor = xyes; then
  17111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdecor support" >&5
  17112. $as_echo_n "checking for libdecor support... " >&6; }
  17113. if $PKG_CONFIG --exists libdecor-0; then :
  17114. video_libdecor=yes
  17115. else
  17116. video_libdecor=no
  17117. fi
  17118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_libdecor" >&5
  17119. $as_echo "$video_libdecor" >&6; }
  17120. if test x$video_libdecor = xyes; then
  17121. EXTRA_CFLAGS="$EXTRA_CFLAGS `$PKG_CONFIG --cflags libdecor-0`"
  17122. $as_echo "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  17123. # Check whether --enable-libdecor-shared was given.
  17124. if test "${enable_libdecor_shared+set}" = set; then :
  17125. enableval=$enable_libdecor_shared;
  17126. else
  17127. enable_libdecor_shared=yes
  17128. fi
  17129. decor_lib=`find_lib "libdecor-0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  17130. if test x$have_loadso != xyes && \
  17131. test x$enable_libdecor_shared = xyes; then
  17132. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  17133. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  17134. fi
  17135. if test x$have_loadso = xyes && \
  17136. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  17137. echo "-- dynamic libdecor -> $decor_lib"
  17138. cat >>confdefs.h <<_ACEOF
  17139. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR "$decor_lib"
  17140. _ACEOF
  17141. else
  17142. EXTRA_LDFLAGS="$EXTRA_LDFLAGS `$PKG_CONFIG --libs libdecor-0`"
  17143. fi
  17144. fi
  17145. fi
  17146. }
  17147. CheckWayland()
  17148. {
  17149. # Check whether --enable-video-wayland was given.
  17150. if test "${enable_video_wayland+set}" = set; then :
  17151. enableval=$enable_video_wayland;
  17152. else
  17153. enable_video_wayland=yes
  17154. fi
  17155. # Check whether --enable-video-wayland-qt-touch was given.
  17156. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  17157. enableval=$enable_video_wayland_qt_touch;
  17158. else
  17159. enable_video_wayland_qt_touch=yes
  17160. fi
  17161. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  17162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  17163. $as_echo_n "checking for Wayland support... " >&6; }
  17164. video_wayland=no
  17165. if test x$video_opengl_egl = xyes && \
  17166. test x$video_opengles_v2 = xyes; then
  17167. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-egl wayland-cursor egl xkbcommon ; then
  17168. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  17169. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  17170. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  17171. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'; then :
  17172. WAYLAND_SCANNER_CODE_MODE=private-code
  17173. else
  17174. WAYLAND_SCANNER_CODE_MODE=code
  17175. fi
  17176. video_wayland=yes
  17177. fi
  17178. fi
  17179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  17180. $as_echo "$video_wayland" >&6; }
  17181. if test x$video_wayland = xyes; then
  17182. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  17183. if test x$enable_video_wayland_qt_touch = xyes; then
  17184. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  17185. fi
  17186. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  17187. SOURCES="$SOURCES $WAYLAND_SOURCES"
  17188. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  17189. # Check whether --enable-wayland-shared was given.
  17190. if test "${enable_wayland_shared+set}" = set; then :
  17191. enableval=$enable_wayland_shared;
  17192. else
  17193. enable_wayland_shared=maybe
  17194. fi
  17195. case "$host" in
  17196. *)
  17197. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17198. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17199. if test x$wayland_egl_lib = x; then
  17200. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17201. fi
  17202. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17203. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17204. ;;
  17205. esac
  17206. if test x$enable_wayland_shared = xmaybe; then
  17207. enable_wayland_shared=yes
  17208. fi
  17209. if test x$have_loadso != xyes && \
  17210. test x$enable_wayland_shared = xyes; then
  17211. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  17212. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  17213. enable_wayland_shared=no
  17214. fi
  17215. if test x$have_loadso = xyes && \
  17216. test x$enable_wayland_shared = xyes && \
  17217. test x$wayland_client_lib != x && \
  17218. test x$wayland_egl_lib != x && \
  17219. test x$wayland_cursor_lib != x && \
  17220. test x$xkbcommon_lib != x; then
  17221. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  17222. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  17223. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  17224. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  17225. cat >>confdefs.h <<_ACEOF
  17226. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  17227. _ACEOF
  17228. cat >>confdefs.h <<_ACEOF
  17229. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  17230. _ACEOF
  17231. cat >>confdefs.h <<_ACEOF
  17232. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  17233. _ACEOF
  17234. cat >>confdefs.h <<_ACEOF
  17235. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  17236. _ACEOF
  17237. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  17238. else
  17239. enable_wayland_shared=no
  17240. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  17241. SUMMARY_video="${SUMMARY_video} wayland"
  17242. fi
  17243. have_video=yes
  17244. CheckLibDecor
  17245. fi
  17246. fi
  17247. }
  17248. CheckNativeClient()
  17249. {
  17250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17251. /* end confdefs.h. */
  17252. #if !defined(__native_client__)
  17253. #error "NO NACL"
  17254. #endif
  17255. int
  17256. main ()
  17257. {
  17258. ;
  17259. return 0;
  17260. }
  17261. _ACEOF
  17262. if ac_fn_c_try_compile "$LINENO"; then :
  17263. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  17264. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  17265. $as_echo "#define HAVE_POW 1" >>confdefs.h
  17266. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  17267. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  17268. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  17269. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  17270. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  17271. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  17272. SUMMARY_audio="${SUMMARY_audio} nacl"
  17273. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  17274. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  17275. fi
  17276. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17277. }
  17278. CheckRPI()
  17279. {
  17280. # Check whether --enable-video-rpi was given.
  17281. if test "${enable_video_rpi+set}" = set; then :
  17282. enableval=$enable_video_rpi;
  17283. else
  17284. enable_video_rpi=yes
  17285. fi
  17286. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  17287. pkg_failed=no
  17288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  17289. $as_echo_n "checking for bcm_host brcmegl... " >&6; }
  17290. if test -n "$RPI_CFLAGS"; then
  17291. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  17292. elif test -n "$PKG_CONFIG"; then
  17293. if test -n "$PKG_CONFIG" && \
  17294. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17295. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17296. ac_status=$?
  17297. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17298. test $ac_status = 0; }; then
  17299. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  17300. test "x$?" != "x0" && pkg_failed=yes
  17301. else
  17302. pkg_failed=yes
  17303. fi
  17304. else
  17305. pkg_failed=untried
  17306. fi
  17307. if test -n "$RPI_LIBS"; then
  17308. pkg_cv_RPI_LIBS="$RPI_LIBS"
  17309. elif test -n "$PKG_CONFIG"; then
  17310. if test -n "$PKG_CONFIG" && \
  17311. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17312. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17313. ac_status=$?
  17314. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17315. test $ac_status = 0; }; then
  17316. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  17317. test "x$?" != "x0" && pkg_failed=yes
  17318. else
  17319. pkg_failed=yes
  17320. fi
  17321. else
  17322. pkg_failed=untried
  17323. fi
  17324. if test $pkg_failed = yes; then
  17325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17326. $as_echo "no" >&6; }
  17327. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17328. _pkg_short_errors_supported=yes
  17329. else
  17330. _pkg_short_errors_supported=no
  17331. fi
  17332. if test $_pkg_short_errors_supported = yes; then
  17333. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  17334. else
  17335. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  17336. fi
  17337. # Put the nasty error message in config.log where it belongs
  17338. echo "$RPI_PKG_ERRORS" >&5
  17339. video_rpi=no
  17340. elif test $pkg_failed = untried; then
  17341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17342. $as_echo "no" >&6; }
  17343. video_rpi=no
  17344. else
  17345. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  17346. RPI_LIBS=$pkg_cv_RPI_LIBS
  17347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17348. $as_echo "yes" >&6; }
  17349. video_rpi=yes
  17350. fi
  17351. if test x$video_rpi = xno; then
  17352. if test x$ARCH = xnetbsd; then
  17353. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  17354. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  17355. else
  17356. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  17357. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  17358. fi
  17359. fi
  17360. # Save the original compiler flags and libraries
  17361. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  17362. # Add the Raspberry Pi compiler flags and libraries
  17363. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  17364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi" >&5
  17365. $as_echo_n "checking for Raspberry Pi... " >&6; }
  17366. have_video_rpi=no
  17367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17368. /* end confdefs.h. */
  17369. #include <bcm_host.h>
  17370. int
  17371. main ()
  17372. {
  17373. bcm_host_init();
  17374. ;
  17375. return 0;
  17376. }
  17377. _ACEOF
  17378. if ac_fn_c_try_link "$LINENO"; then :
  17379. have_video_rpi=yes
  17380. fi
  17381. rm -f core conftest.err conftest.$ac_objext \
  17382. conftest$ac_exeext conftest.$ac_ext
  17383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  17384. $as_echo "$have_video_rpi" >&6; }
  17385. # Restore the compiler flags and libraries
  17386. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  17387. if test x$have_video_rpi = xyes; then
  17388. CFLAGS="$CFLAGS $RPI_CFLAGS"
  17389. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  17390. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  17391. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  17392. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  17393. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  17394. SUMMARY_video="${SUMMARY_video} rpi"
  17395. fi
  17396. fi
  17397. }
  17398. CheckX11()
  17399. {
  17400. # Check whether --enable-video-x11 was given.
  17401. if test "${enable_video_x11+set}" = set; then :
  17402. enableval=$enable_video_x11;
  17403. else
  17404. enable_video_x11=yes
  17405. fi
  17406. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  17407. case "$host" in
  17408. *-*-darwin*)
  17409. # This isn't necessary for X11, but fixes GLX detection
  17410. if test "x$x_includes" = xNONE && \
  17411. test "x$x_libraries" = xNONE && \
  17412. test -d /opt/X11/include && \
  17413. test -d /opt/X11/lib; then
  17414. x_includes="/opt/X11/include"
  17415. x_libraries="/opt/X11/lib"
  17416. fi
  17417. ;;
  17418. esac
  17419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  17420. $as_echo_n "checking for X... " >&6; }
  17421. # Check whether --with-x was given.
  17422. if test "${with_x+set}" = set; then :
  17423. withval=$with_x;
  17424. fi
  17425. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  17426. if test "x$with_x" = xno; then
  17427. # The user explicitly disabled X.
  17428. have_x=disabled
  17429. else
  17430. case $x_includes,$x_libraries in #(
  17431. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  17432. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  17433. $as_echo_n "(cached) " >&6
  17434. else
  17435. # One or both of the vars are not set, and there is no cached value.
  17436. ac_x_includes=no
  17437. ac_x_libraries=no
  17438. # Do we need to do anything special at all?
  17439. ac_save_LIBS=$LIBS
  17440. LIBS="-lX11 $LIBS"
  17441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17442. /* end confdefs.h. */
  17443. #include <X11/Xlib.h>
  17444. int
  17445. main ()
  17446. {
  17447. XrmInitialize ()
  17448. ;
  17449. return 0;
  17450. }
  17451. _ACEOF
  17452. if ac_fn_c_try_link "$LINENO"; then :
  17453. # We can compile and link X programs with no special options.
  17454. ac_x_includes=
  17455. ac_x_libraries=
  17456. fi
  17457. rm -f core conftest.err conftest.$ac_objext \
  17458. conftest$ac_exeext conftest.$ac_ext
  17459. LIBS="$ac_save_LIBS"
  17460. # If that didn't work, only try xmkmf and filesystem searches
  17461. # for native compilation.
  17462. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no; then :
  17463. rm -f -r conftest.dir
  17464. if mkdir conftest.dir; then
  17465. cd conftest.dir
  17466. cat >Imakefile <<'_ACEOF'
  17467. incroot:
  17468. @echo incroot='${INCROOT}'
  17469. usrlibdir:
  17470. @echo usrlibdir='${USRLIBDIR}'
  17471. libdir:
  17472. @echo libdir='${LIBDIR}'
  17473. _ACEOF
  17474. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  17475. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  17476. for ac_var in incroot usrlibdir libdir; do
  17477. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  17478. done
  17479. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  17480. for ac_extension in a so sl dylib la dll; do
  17481. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  17482. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  17483. ac_im_usrlibdir=$ac_im_libdir; break
  17484. fi
  17485. done
  17486. # Screen out bogus values from the imake configuration. They are
  17487. # bogus both because they are the default anyway, and because
  17488. # using them would break gcc on systems where it needs fixed includes.
  17489. case $ac_im_incroot in
  17490. /usr/include) ac_x_includes= ;;
  17491. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  17492. esac
  17493. case $ac_im_usrlibdir in
  17494. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  17495. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  17496. esac
  17497. fi
  17498. cd ..
  17499. rm -f -r conftest.dir
  17500. fi
  17501. # Standard set of common directories for X headers.
  17502. # Check X11 before X11Rn because it is often a symlink to the current release.
  17503. ac_x_header_dirs='
  17504. /usr/X11/include
  17505. /usr/X11R7/include
  17506. /usr/X11R6/include
  17507. /usr/X11R5/include
  17508. /usr/X11R4/include
  17509. /usr/include/X11
  17510. /usr/include/X11R7
  17511. /usr/include/X11R6
  17512. /usr/include/X11R5
  17513. /usr/include/X11R4
  17514. /usr/local/X11/include
  17515. /usr/local/X11R7/include
  17516. /usr/local/X11R6/include
  17517. /usr/local/X11R5/include
  17518. /usr/local/X11R4/include
  17519. /usr/local/include/X11
  17520. /usr/local/include/X11R7
  17521. /usr/local/include/X11R6
  17522. /usr/local/include/X11R5
  17523. /usr/local/include/X11R4
  17524. /opt/X11/include
  17525. /usr/X386/include
  17526. /usr/x386/include
  17527. /usr/XFree86/include/X11
  17528. /usr/include
  17529. /usr/local/include
  17530. /usr/unsupported/include
  17531. /usr/athena/include
  17532. /usr/local/x11r5/include
  17533. /usr/lpp/Xamples/include
  17534. /usr/openwin/include
  17535. /usr/openwin/share/include'
  17536. if test "$ac_x_includes" = no; then
  17537. # Guess where to find include files, by looking for Xlib.h.
  17538. # First, try using that file with no special directory specified.
  17539. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17540. /* end confdefs.h. */
  17541. #include <X11/Xlib.h>
  17542. _ACEOF
  17543. if ac_fn_c_try_cpp "$LINENO"; then :
  17544. # We can compile using X headers with no special include directory.
  17545. ac_x_includes=
  17546. else
  17547. for ac_dir in $ac_x_header_dirs; do
  17548. if test -r "$ac_dir/X11/Xlib.h"; then
  17549. ac_x_includes=$ac_dir
  17550. break
  17551. fi
  17552. done
  17553. fi
  17554. rm -f conftest.err conftest.i conftest.$ac_ext
  17555. fi # $ac_x_includes = no
  17556. if test "$ac_x_libraries" = no; then
  17557. # Check for the libraries.
  17558. # See if we find them without any special options.
  17559. # Don't add to $LIBS permanently.
  17560. ac_save_LIBS=$LIBS
  17561. LIBS="-lX11 $LIBS"
  17562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17563. /* end confdefs.h. */
  17564. #include <X11/Xlib.h>
  17565. int
  17566. main ()
  17567. {
  17568. XrmInitialize ()
  17569. ;
  17570. return 0;
  17571. }
  17572. _ACEOF
  17573. if ac_fn_c_try_link "$LINENO"; then :
  17574. LIBS=$ac_save_LIBS
  17575. # We can link X programs with no special library path.
  17576. ac_x_libraries=
  17577. else
  17578. LIBS=$ac_save_LIBS
  17579. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  17580. do
  17581. # Don't even attempt the hair of trying to link an X program!
  17582. for ac_extension in a so sl dylib la dll; do
  17583. if test -r "$ac_dir/libX11.$ac_extension"; then
  17584. ac_x_libraries=$ac_dir
  17585. break 2
  17586. fi
  17587. done
  17588. done
  17589. fi
  17590. rm -f core conftest.err conftest.$ac_objext \
  17591. conftest$ac_exeext conftest.$ac_ext
  17592. fi # $ac_x_libraries = no
  17593. fi
  17594. # Record the results.
  17595. case $ac_x_includes,$ac_x_libraries in #(
  17596. no,* | *,no | *\'*) :
  17597. # Didn't find X, or a directory has "'" in its name.
  17598. ac_cv_have_x="have_x=no" ;; #(
  17599. *) :
  17600. # Record where we found X for the cache.
  17601. ac_cv_have_x="have_x=yes\
  17602. ac_x_includes='$ac_x_includes'\
  17603. ac_x_libraries='$ac_x_libraries'" ;;
  17604. esac
  17605. fi
  17606. ;; #(
  17607. *) have_x=yes;;
  17608. esac
  17609. eval "$ac_cv_have_x"
  17610. fi # $with_x != no
  17611. if test "$have_x" != yes; then
  17612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  17613. $as_echo "$have_x" >&6; }
  17614. no_x=yes
  17615. else
  17616. # If each of the values was on the command line, it overrides each guess.
  17617. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  17618. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  17619. # Update the cache value to reflect the command line values.
  17620. ac_cv_have_x="have_x=yes\
  17621. ac_x_includes='$x_includes'\
  17622. ac_x_libraries='$x_libraries'"
  17623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  17624. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  17625. fi
  17626. if test "$no_x" = yes; then
  17627. # Not all programs may use this symbol, but it does not hurt to define it.
  17628. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  17629. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  17630. else
  17631. if test -n "$x_includes"; then
  17632. X_CFLAGS="$X_CFLAGS -I$x_includes"
  17633. fi
  17634. # It would also be nice to do this for all -L options, not just this one.
  17635. if test -n "$x_libraries"; then
  17636. X_LIBS="$X_LIBS -L$x_libraries"
  17637. # For Solaris; some versions of Sun CC require a space after -R and
  17638. # others require no space. Words are not sufficient . . . .
  17639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  17640. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  17641. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  17642. ac_xsave_c_werror_flag=$ac_c_werror_flag
  17643. ac_c_werror_flag=yes
  17644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17645. /* end confdefs.h. */
  17646. int
  17647. main ()
  17648. {
  17649. ;
  17650. return 0;
  17651. }
  17652. _ACEOF
  17653. if ac_fn_c_try_link "$LINENO"; then :
  17654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17655. $as_echo "no" >&6; }
  17656. X_LIBS="$X_LIBS -R$x_libraries"
  17657. else
  17658. LIBS="$ac_xsave_LIBS -R $x_libraries"
  17659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17660. /* end confdefs.h. */
  17661. int
  17662. main ()
  17663. {
  17664. ;
  17665. return 0;
  17666. }
  17667. _ACEOF
  17668. if ac_fn_c_try_link "$LINENO"; then :
  17669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17670. $as_echo "yes" >&6; }
  17671. X_LIBS="$X_LIBS -R $x_libraries"
  17672. else
  17673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  17674. $as_echo "neither works" >&6; }
  17675. fi
  17676. rm -f core conftest.err conftest.$ac_objext \
  17677. conftest$ac_exeext conftest.$ac_ext
  17678. fi
  17679. rm -f core conftest.err conftest.$ac_objext \
  17680. conftest$ac_exeext conftest.$ac_ext
  17681. ac_c_werror_flag=$ac_xsave_c_werror_flag
  17682. LIBS=$ac_xsave_LIBS
  17683. fi
  17684. # Check for system-dependent libraries X programs must link with.
  17685. # Do this before checking for the system-independent R6 libraries
  17686. # (-lICE), since we may need -lsocket or whatever for X linking.
  17687. if test "$ISC" = yes; then
  17688. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  17689. else
  17690. # Martyn Johnson says this is needed for Ultrix, if the X
  17691. # libraries were built with DECnet support. And Karl Berry says
  17692. # the Alpha needs dnet_stub (dnet does not exist).
  17693. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  17694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17695. /* end confdefs.h. */
  17696. /* Override any GCC internal prototype to avoid an error.
  17697. Use char because int might match the return type of a GCC
  17698. builtin and then its argument prototype would still apply. */
  17699. #ifdef __cplusplus
  17700. extern "C"
  17701. #endif
  17702. char XOpenDisplay ();
  17703. int
  17704. main ()
  17705. {
  17706. return XOpenDisplay ();
  17707. ;
  17708. return 0;
  17709. }
  17710. _ACEOF
  17711. if ac_fn_c_try_link "$LINENO"; then :
  17712. else
  17713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  17714. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  17715. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  17716. $as_echo_n "(cached) " >&6
  17717. else
  17718. ac_check_lib_save_LIBS=$LIBS
  17719. LIBS="-ldnet $LIBS"
  17720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17721. /* end confdefs.h. */
  17722. /* Override any GCC internal prototype to avoid an error.
  17723. Use char because int might match the return type of a GCC
  17724. builtin and then its argument prototype would still apply. */
  17725. #ifdef __cplusplus
  17726. extern "C"
  17727. #endif
  17728. char dnet_ntoa ();
  17729. int
  17730. main ()
  17731. {
  17732. return dnet_ntoa ();
  17733. ;
  17734. return 0;
  17735. }
  17736. _ACEOF
  17737. if ac_fn_c_try_link "$LINENO"; then :
  17738. ac_cv_lib_dnet_dnet_ntoa=yes
  17739. else
  17740. ac_cv_lib_dnet_dnet_ntoa=no
  17741. fi
  17742. rm -f core conftest.err conftest.$ac_objext \
  17743. conftest$ac_exeext conftest.$ac_ext
  17744. LIBS=$ac_check_lib_save_LIBS
  17745. fi
  17746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  17747. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  17748. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  17749. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  17750. fi
  17751. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  17752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  17753. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  17754. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  17755. $as_echo_n "(cached) " >&6
  17756. else
  17757. ac_check_lib_save_LIBS=$LIBS
  17758. LIBS="-ldnet_stub $LIBS"
  17759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17760. /* end confdefs.h. */
  17761. /* Override any GCC internal prototype to avoid an error.
  17762. Use char because int might match the return type of a GCC
  17763. builtin and then its argument prototype would still apply. */
  17764. #ifdef __cplusplus
  17765. extern "C"
  17766. #endif
  17767. char dnet_ntoa ();
  17768. int
  17769. main ()
  17770. {
  17771. return dnet_ntoa ();
  17772. ;
  17773. return 0;
  17774. }
  17775. _ACEOF
  17776. if ac_fn_c_try_link "$LINENO"; then :
  17777. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  17778. else
  17779. ac_cv_lib_dnet_stub_dnet_ntoa=no
  17780. fi
  17781. rm -f core conftest.err conftest.$ac_objext \
  17782. conftest$ac_exeext conftest.$ac_ext
  17783. LIBS=$ac_check_lib_save_LIBS
  17784. fi
  17785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  17786. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  17787. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  17788. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  17789. fi
  17790. fi
  17791. fi
  17792. rm -f core conftest.err conftest.$ac_objext \
  17793. conftest$ac_exeext conftest.$ac_ext
  17794. LIBS="$ac_xsave_LIBS"
  17795. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  17796. # to get the SysV transport functions.
  17797. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  17798. # needs -lnsl.
  17799. # The nsl library prevents programs from opening the X display
  17800. # on Irix 5.2, according to T.E. Dickey.
  17801. # The functions gethostbyname, getservbyname, and inet_addr are
  17802. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  17803. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  17804. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  17805. fi
  17806. if test $ac_cv_func_gethostbyname = no; then
  17807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  17808. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  17809. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  17810. $as_echo_n "(cached) " >&6
  17811. else
  17812. ac_check_lib_save_LIBS=$LIBS
  17813. LIBS="-lnsl $LIBS"
  17814. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17815. /* end confdefs.h. */
  17816. /* Override any GCC internal prototype to avoid an error.
  17817. Use char because int might match the return type of a GCC
  17818. builtin and then its argument prototype would still apply. */
  17819. #ifdef __cplusplus
  17820. extern "C"
  17821. #endif
  17822. char gethostbyname ();
  17823. int
  17824. main ()
  17825. {
  17826. return gethostbyname ();
  17827. ;
  17828. return 0;
  17829. }
  17830. _ACEOF
  17831. if ac_fn_c_try_link "$LINENO"; then :
  17832. ac_cv_lib_nsl_gethostbyname=yes
  17833. else
  17834. ac_cv_lib_nsl_gethostbyname=no
  17835. fi
  17836. rm -f core conftest.err conftest.$ac_objext \
  17837. conftest$ac_exeext conftest.$ac_ext
  17838. LIBS=$ac_check_lib_save_LIBS
  17839. fi
  17840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  17841. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  17842. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  17843. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  17844. fi
  17845. if test $ac_cv_lib_nsl_gethostbyname = no; then
  17846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  17847. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  17848. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  17849. $as_echo_n "(cached) " >&6
  17850. else
  17851. ac_check_lib_save_LIBS=$LIBS
  17852. LIBS="-lbsd $LIBS"
  17853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17854. /* end confdefs.h. */
  17855. /* Override any GCC internal prototype to avoid an error.
  17856. Use char because int might match the return type of a GCC
  17857. builtin and then its argument prototype would still apply. */
  17858. #ifdef __cplusplus
  17859. extern "C"
  17860. #endif
  17861. char gethostbyname ();
  17862. int
  17863. main ()
  17864. {
  17865. return gethostbyname ();
  17866. ;
  17867. return 0;
  17868. }
  17869. _ACEOF
  17870. if ac_fn_c_try_link "$LINENO"; then :
  17871. ac_cv_lib_bsd_gethostbyname=yes
  17872. else
  17873. ac_cv_lib_bsd_gethostbyname=no
  17874. fi
  17875. rm -f core conftest.err conftest.$ac_objext \
  17876. conftest$ac_exeext conftest.$ac_ext
  17877. LIBS=$ac_check_lib_save_LIBS
  17878. fi
  17879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17880. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  17881. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  17882. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  17883. fi
  17884. fi
  17885. fi
  17886. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  17887. # socket/setsockopt and other routines are undefined under SCO ODT
  17888. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  17889. # on later versions), says Simon Leinen: it contains gethostby*
  17890. # variants that don't use the name server (or something). -lsocket
  17891. # must be given before -lnsl if both are needed. We assume that
  17892. # if connect needs -lnsl, so does gethostbyname.
  17893. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  17894. if test "x$ac_cv_func_connect" = xyes; then :
  17895. fi
  17896. if test $ac_cv_func_connect = no; then
  17897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17898. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17899. if ${ac_cv_lib_socket_connect+:} false; then :
  17900. $as_echo_n "(cached) " >&6
  17901. else
  17902. ac_check_lib_save_LIBS=$LIBS
  17903. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17905. /* end confdefs.h. */
  17906. /* Override any GCC internal prototype to avoid an error.
  17907. Use char because int might match the return type of a GCC
  17908. builtin and then its argument prototype would still apply. */
  17909. #ifdef __cplusplus
  17910. extern "C"
  17911. #endif
  17912. char connect ();
  17913. int
  17914. main ()
  17915. {
  17916. return connect ();
  17917. ;
  17918. return 0;
  17919. }
  17920. _ACEOF
  17921. if ac_fn_c_try_link "$LINENO"; then :
  17922. ac_cv_lib_socket_connect=yes
  17923. else
  17924. ac_cv_lib_socket_connect=no
  17925. fi
  17926. rm -f core conftest.err conftest.$ac_objext \
  17927. conftest$ac_exeext conftest.$ac_ext
  17928. LIBS=$ac_check_lib_save_LIBS
  17929. fi
  17930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17931. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17932. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17933. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17934. fi
  17935. fi
  17936. # Guillermo Gomez says -lposix is necessary on A/UX.
  17937. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17938. if test "x$ac_cv_func_remove" = xyes; then :
  17939. fi
  17940. if test $ac_cv_func_remove = no; then
  17941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17942. $as_echo_n "checking for remove in -lposix... " >&6; }
  17943. if ${ac_cv_lib_posix_remove+:} false; then :
  17944. $as_echo_n "(cached) " >&6
  17945. else
  17946. ac_check_lib_save_LIBS=$LIBS
  17947. LIBS="-lposix $LIBS"
  17948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17949. /* end confdefs.h. */
  17950. /* Override any GCC internal prototype to avoid an error.
  17951. Use char because int might match the return type of a GCC
  17952. builtin and then its argument prototype would still apply. */
  17953. #ifdef __cplusplus
  17954. extern "C"
  17955. #endif
  17956. char remove ();
  17957. int
  17958. main ()
  17959. {
  17960. return remove ();
  17961. ;
  17962. return 0;
  17963. }
  17964. _ACEOF
  17965. if ac_fn_c_try_link "$LINENO"; then :
  17966. ac_cv_lib_posix_remove=yes
  17967. else
  17968. ac_cv_lib_posix_remove=no
  17969. fi
  17970. rm -f core conftest.err conftest.$ac_objext \
  17971. conftest$ac_exeext conftest.$ac_ext
  17972. LIBS=$ac_check_lib_save_LIBS
  17973. fi
  17974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17975. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17976. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  17977. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17978. fi
  17979. fi
  17980. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17981. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  17982. if test "x$ac_cv_func_shmat" = xyes; then :
  17983. fi
  17984. if test $ac_cv_func_shmat = no; then
  17985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  17986. $as_echo_n "checking for shmat in -lipc... " >&6; }
  17987. if ${ac_cv_lib_ipc_shmat+:} false; then :
  17988. $as_echo_n "(cached) " >&6
  17989. else
  17990. ac_check_lib_save_LIBS=$LIBS
  17991. LIBS="-lipc $LIBS"
  17992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17993. /* end confdefs.h. */
  17994. /* Override any GCC internal prototype to avoid an error.
  17995. Use char because int might match the return type of a GCC
  17996. builtin and then its argument prototype would still apply. */
  17997. #ifdef __cplusplus
  17998. extern "C"
  17999. #endif
  18000. char shmat ();
  18001. int
  18002. main ()
  18003. {
  18004. return shmat ();
  18005. ;
  18006. return 0;
  18007. }
  18008. _ACEOF
  18009. if ac_fn_c_try_link "$LINENO"; then :
  18010. ac_cv_lib_ipc_shmat=yes
  18011. else
  18012. ac_cv_lib_ipc_shmat=no
  18013. fi
  18014. rm -f core conftest.err conftest.$ac_objext \
  18015. conftest$ac_exeext conftest.$ac_ext
  18016. LIBS=$ac_check_lib_save_LIBS
  18017. fi
  18018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  18019. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  18020. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  18021. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  18022. fi
  18023. fi
  18024. fi
  18025. # Check for libraries that X11R6 Xt/Xaw programs need.
  18026. ac_save_LDFLAGS=$LDFLAGS
  18027. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  18028. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  18029. # check for ICE first), but we must link in the order -lSM -lICE or
  18030. # we get undefined symbols. So assume we have SM if we have ICE.
  18031. # These have to be linked with before -lX11, unlike the other
  18032. # libraries we check for below, so use a different variable.
  18033. # John Interrante, Karl Berry
  18034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  18035. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  18036. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  18037. $as_echo_n "(cached) " >&6
  18038. else
  18039. ac_check_lib_save_LIBS=$LIBS
  18040. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  18041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18042. /* end confdefs.h. */
  18043. /* Override any GCC internal prototype to avoid an error.
  18044. Use char because int might match the return type of a GCC
  18045. builtin and then its argument prototype would still apply. */
  18046. #ifdef __cplusplus
  18047. extern "C"
  18048. #endif
  18049. char IceConnectionNumber ();
  18050. int
  18051. main ()
  18052. {
  18053. return IceConnectionNumber ();
  18054. ;
  18055. return 0;
  18056. }
  18057. _ACEOF
  18058. if ac_fn_c_try_link "$LINENO"; then :
  18059. ac_cv_lib_ICE_IceConnectionNumber=yes
  18060. else
  18061. ac_cv_lib_ICE_IceConnectionNumber=no
  18062. fi
  18063. rm -f core conftest.err conftest.$ac_objext \
  18064. conftest$ac_exeext conftest.$ac_ext
  18065. LIBS=$ac_check_lib_save_LIBS
  18066. fi
  18067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  18068. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  18069. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  18070. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  18071. fi
  18072. LDFLAGS=$ac_save_LDFLAGS
  18073. fi
  18074. if test x$have_x = xyes; then
  18075. # Check whether --enable-x11-shared was given.
  18076. if test "${enable_x11_shared+set}" = set; then :
  18077. enableval=$enable_x11_shared;
  18078. else
  18079. enable_x11_shared=maybe
  18080. fi
  18081. case "$host" in
  18082. *-*-darwin*)
  18083. # Apple now puts this in /opt/X11
  18084. x11_lib='/opt/X11/lib/libX11.6.dylib'
  18085. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  18086. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  18087. xinerama_lib='/opt/X11/lib/libXinerama.1.dylib'
  18088. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  18089. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  18090. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  18091. xss_lib='/opt/X11/lib/libXss.1.dylib'
  18092. xvidmode_lib='/opt/X11/lib/libXxf86vm.1.dylib'
  18093. ;;
  18094. *-*-openbsd*)
  18095. x11_lib='libX11.so'
  18096. x11ext_lib='libXext.so'
  18097. xcursor_lib='libXcursor.so'
  18098. xinerama_lib='libXinerama.so'
  18099. xinput_lib='libXi.so'
  18100. xrandr_lib='libXrandr.so'
  18101. xrender_lib='libXrender.so'
  18102. xss_lib='libXss.so'
  18103. xvidmode_lib='libXxf86vm.so'
  18104. ;;
  18105. *)
  18106. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18107. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18108. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18109. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18110. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18111. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18112. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18113. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18114. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18115. ;;
  18116. esac
  18117. if test x$ac_cv_func_shmat != xyes; then
  18118. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  18119. fi
  18120. CFLAGS="$CFLAGS $X_CFLAGS"
  18121. LDFLAGS="$LDFLAGS $X_LIBS"
  18122. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  18123. #include <X11/Xproto.h>
  18124. "
  18125. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  18126. have_xext_h_hdr=yes
  18127. else
  18128. have_xext_h_hdr=no
  18129. fi
  18130. if test x$have_xext_h_hdr != xyes; then
  18131. as_fn_error $? "
  18132. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  18133. " "$LINENO" 5
  18134. fi
  18135. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  18136. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  18137. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  18138. # Needed so SDL applications can include SDL_syswm.h
  18139. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  18140. if test x$enable_x11_shared = xmaybe; then
  18141. enable_x11_shared=yes
  18142. fi
  18143. if test x$have_loadso != xyes && \
  18144. test x$enable_x11_shared = xyes; then
  18145. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  18146. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  18147. enable_x11_shared=no
  18148. fi
  18149. if test x$have_loadso = xyes && \
  18150. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  18151. echo "-- dynamic libX11 -> $x11_lib"
  18152. echo "-- dynamic libX11ext -> $x11ext_lib"
  18153. cat >>confdefs.h <<_ACEOF
  18154. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  18155. _ACEOF
  18156. cat >>confdefs.h <<_ACEOF
  18157. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  18158. _ACEOF
  18159. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  18160. else
  18161. enable_x11_shared=no
  18162. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  18163. SUMMARY_video="${SUMMARY_video} x11"
  18164. fi
  18165. have_video=yes
  18166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  18167. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  18168. have_const_param_XextAddDisplay=no
  18169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18170. /* end confdefs.h. */
  18171. #include <X11/Xlib.h>
  18172. #include <X11/Xproto.h>
  18173. #include <X11/extensions/Xext.h>
  18174. #include <X11/extensions/extutil.h>
  18175. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  18176. int
  18177. main ()
  18178. {
  18179. ;
  18180. return 0;
  18181. }
  18182. _ACEOF
  18183. if ac_fn_c_try_compile "$LINENO"; then :
  18184. have_const_param_XextAddDisplay=yes
  18185. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  18186. fi
  18187. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  18189. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  18190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  18191. $as_echo_n "checking for XGenericEvent... " >&6; }
  18192. have_XGenericEvent=no
  18193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18194. /* end confdefs.h. */
  18195. #include <X11/Xlib.h>
  18196. int
  18197. main ()
  18198. {
  18199. Display *display;
  18200. XEvent event;
  18201. XGenericEventCookie *cookie = &event.xcookie;
  18202. XNextEvent(display, &event);
  18203. XGetEventData(display, cookie);
  18204. XFreeEventData(display, cookie);
  18205. ;
  18206. return 0;
  18207. }
  18208. _ACEOF
  18209. if ac_fn_c_try_compile "$LINENO"; then :
  18210. have_XGenericEvent=yes
  18211. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  18212. fi
  18213. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  18215. $as_echo "$have_XGenericEvent" >&6; }
  18216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  18217. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  18218. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  18219. $as_echo_n "(cached) " >&6
  18220. else
  18221. ac_check_lib_save_LIBS=$LIBS
  18222. LIBS="-lX11 $LIBS"
  18223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18224. /* end confdefs.h. */
  18225. /* Override any GCC internal prototype to avoid an error.
  18226. Use char because int might match the return type of a GCC
  18227. builtin and then its argument prototype would still apply. */
  18228. #ifdef __cplusplus
  18229. extern "C"
  18230. #endif
  18231. char XkbKeycodeToKeysym ();
  18232. int
  18233. main ()
  18234. {
  18235. return XkbKeycodeToKeysym ();
  18236. ;
  18237. return 0;
  18238. }
  18239. _ACEOF
  18240. if ac_fn_c_try_link "$LINENO"; then :
  18241. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  18242. else
  18243. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  18244. fi
  18245. rm -f core conftest.err conftest.$ac_objext \
  18246. conftest$ac_exeext conftest.$ac_ext
  18247. LIBS=$ac_check_lib_save_LIBS
  18248. fi
  18249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  18250. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  18251. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  18252. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  18253. fi
  18254. # Check whether --enable-video-x11-xcursor was given.
  18255. if test "${enable_video_x11_xcursor+set}" = set; then :
  18256. enableval=$enable_video_x11_xcursor;
  18257. else
  18258. enable_video_x11_xcursor=yes
  18259. fi
  18260. if test x$enable_video_x11_xcursor = xyes; then
  18261. definitely_enable_video_x11_xcursor=no
  18262. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  18263. "
  18264. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  18265. have_xcursor_h_hdr=yes
  18266. else
  18267. have_xcursor_h_hdr=no
  18268. fi
  18269. if test x$have_xcursor_h_hdr = xyes; then
  18270. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  18271. echo "-- dynamic libXcursor -> $xcursor_lib"
  18272. cat >>confdefs.h <<_ACEOF
  18273. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  18274. _ACEOF
  18275. definitely_enable_video_x11_xcursor=yes
  18276. else
  18277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  18278. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  18279. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  18280. $as_echo_n "(cached) " >&6
  18281. else
  18282. ac_check_lib_save_LIBS=$LIBS
  18283. LIBS="-lXcursor $LIBS"
  18284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18285. /* end confdefs.h. */
  18286. /* Override any GCC internal prototype to avoid an error.
  18287. Use char because int might match the return type of a GCC
  18288. builtin and then its argument prototype would still apply. */
  18289. #ifdef __cplusplus
  18290. extern "C"
  18291. #endif
  18292. char XcursorImageCreate ();
  18293. int
  18294. main ()
  18295. {
  18296. return XcursorImageCreate ();
  18297. ;
  18298. return 0;
  18299. }
  18300. _ACEOF
  18301. if ac_fn_c_try_link "$LINENO"; then :
  18302. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  18303. else
  18304. ac_cv_lib_Xcursor_XcursorImageCreate=no
  18305. fi
  18306. rm -f core conftest.err conftest.$ac_objext \
  18307. conftest$ac_exeext conftest.$ac_ext
  18308. LIBS=$ac_check_lib_save_LIBS
  18309. fi
  18310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  18311. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  18312. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  18313. have_xcursor_lib=yes
  18314. fi
  18315. if test x$have_xcursor_lib = xyes ; then
  18316. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  18317. definitely_enable_video_x11_xcursor=yes
  18318. fi
  18319. fi
  18320. fi
  18321. fi
  18322. if test x$definitely_enable_video_x11_xcursor = xyes; then
  18323. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  18324. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  18325. fi
  18326. # Check whether --enable-video-x11-xdbe was given.
  18327. if test "${enable_video_x11_xdbe+set}" = set; then :
  18328. enableval=$enable_video_x11_xdbe;
  18329. else
  18330. enable_video_x11_xdbe=yes
  18331. fi
  18332. if test x$enable_video_x11_xdbe = xyes; then
  18333. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  18334. "
  18335. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  18336. have_dbe_h_hdr=yes
  18337. else
  18338. have_dbe_h_hdr=no
  18339. fi
  18340. if test x$have_dbe_h_hdr = xyes; then
  18341. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  18342. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  18343. fi
  18344. fi
  18345. # Check whether --enable-video-x11-xinerama was given.
  18346. if test "${enable_video_x11_xinerama+set}" = set; then :
  18347. enableval=$enable_video_x11_xinerama;
  18348. else
  18349. enable_video_x11_xinerama=yes
  18350. fi
  18351. if test x$enable_video_x11_xinerama = xyes; then
  18352. definitely_enable_video_x11_xinerama=no
  18353. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  18354. "
  18355. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  18356. have_xinerama_h_hdr=yes
  18357. else
  18358. have_xinerama_h_hdr=no
  18359. fi
  18360. if test x$have_xinerama_h_hdr = xyes; then
  18361. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  18362. echo "-- dynamic libXinerama -> $xinerama_lib"
  18363. cat >>confdefs.h <<_ACEOF
  18364. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  18365. _ACEOF
  18366. definitely_enable_video_x11_xinerama=yes
  18367. else
  18368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  18369. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  18370. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  18371. $as_echo_n "(cached) " >&6
  18372. else
  18373. ac_check_lib_save_LIBS=$LIBS
  18374. LIBS="-lXinerama $LIBS"
  18375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18376. /* end confdefs.h. */
  18377. /* Override any GCC internal prototype to avoid an error.
  18378. Use char because int might match the return type of a GCC
  18379. builtin and then its argument prototype would still apply. */
  18380. #ifdef __cplusplus
  18381. extern "C"
  18382. #endif
  18383. char XineramaQueryExtension ();
  18384. int
  18385. main ()
  18386. {
  18387. return XineramaQueryExtension ();
  18388. ;
  18389. return 0;
  18390. }
  18391. _ACEOF
  18392. if ac_fn_c_try_link "$LINENO"; then :
  18393. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  18394. else
  18395. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  18396. fi
  18397. rm -f core conftest.err conftest.$ac_objext \
  18398. conftest$ac_exeext conftest.$ac_ext
  18399. LIBS=$ac_check_lib_save_LIBS
  18400. fi
  18401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  18402. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  18403. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  18404. have_xinerama_lib=yes
  18405. fi
  18406. if test x$have_xinerama_lib = xyes ; then
  18407. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  18408. definitely_enable_video_x11_xinerama=yes
  18409. fi
  18410. fi
  18411. fi
  18412. fi
  18413. if test x$definitely_enable_video_x11_xinerama = xyes; then
  18414. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  18415. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  18416. fi
  18417. # Check whether --enable-video-x11-xinput was given.
  18418. if test "${enable_video_x11_xinput+set}" = set; then :
  18419. enableval=$enable_video_x11_xinput;
  18420. else
  18421. enable_video_x11_xinput=yes
  18422. fi
  18423. if test x$enable_video_x11_xinput = xyes; then
  18424. definitely_enable_video_x11_xinput=no
  18425. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  18426. "
  18427. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  18428. have_xinput_h_hdr=yes
  18429. else
  18430. have_xinput_h_hdr=no
  18431. fi
  18432. if test x$have_xinput_h_hdr = xyes; then
  18433. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  18434. echo "-- dynamic libXi -> $xinput_lib"
  18435. cat >>confdefs.h <<_ACEOF
  18436. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  18437. _ACEOF
  18438. definitely_enable_video_x11_xinput=yes
  18439. else
  18440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  18441. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  18442. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  18443. $as_echo_n "(cached) " >&6
  18444. else
  18445. ac_check_lib_save_LIBS=$LIBS
  18446. LIBS="-lXi $LIBS"
  18447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18448. /* end confdefs.h. */
  18449. /* Override any GCC internal prototype to avoid an error.
  18450. Use char because int might match the return type of a GCC
  18451. builtin and then its argument prototype would still apply. */
  18452. #ifdef __cplusplus
  18453. extern "C"
  18454. #endif
  18455. char XOpenDevice ();
  18456. int
  18457. main ()
  18458. {
  18459. return XOpenDevice ();
  18460. ;
  18461. return 0;
  18462. }
  18463. _ACEOF
  18464. if ac_fn_c_try_link "$LINENO"; then :
  18465. ac_cv_lib_Xi_XOpenDevice=yes
  18466. else
  18467. ac_cv_lib_Xi_XOpenDevice=no
  18468. fi
  18469. rm -f core conftest.err conftest.$ac_objext \
  18470. conftest$ac_exeext conftest.$ac_ext
  18471. LIBS=$ac_check_lib_save_LIBS
  18472. fi
  18473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  18474. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  18475. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  18476. have_xinput_lib=yes
  18477. fi
  18478. if test x$have_xinput_lib = xyes ; then
  18479. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  18480. definitely_enable_video_x11_xinput=yes
  18481. fi
  18482. fi
  18483. fi
  18484. fi
  18485. if test x$definitely_enable_video_x11_xinput = xyes; then
  18486. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  18487. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  18488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  18489. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  18490. have_xinput2_multitouch=no
  18491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18492. /* end confdefs.h. */
  18493. #include <X11/Xlib.h>
  18494. #include <X11/Xproto.h>
  18495. #include <X11/extensions/XInput2.h>
  18496. int
  18497. main ()
  18498. {
  18499. int event_type = XI_TouchBegin;
  18500. XITouchClassInfo *t;
  18501. ;
  18502. return 0;
  18503. }
  18504. _ACEOF
  18505. if ac_fn_c_try_compile "$LINENO"; then :
  18506. have_xinput2_multitouch=yes
  18507. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  18508. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  18509. fi
  18510. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  18512. $as_echo "$have_xinput2_multitouch" >&6; }
  18513. fi
  18514. # Check whether --enable-video-x11-xrandr was given.
  18515. if test "${enable_video_x11_xrandr+set}" = set; then :
  18516. enableval=$enable_video_x11_xrandr;
  18517. else
  18518. enable_video_x11_xrandr=yes
  18519. fi
  18520. if test x$enable_video_x11_xrandr = xyes; then
  18521. definitely_enable_video_x11_xrandr=no
  18522. have_xrandr_h_hdr=no
  18523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18524. /* end confdefs.h. */
  18525. #include <X11/Xlib.h>
  18526. #include <X11/extensions/Xrandr.h>
  18527. int
  18528. main ()
  18529. {
  18530. XRRScreenResources *res = NULL;
  18531. ;
  18532. return 0;
  18533. }
  18534. _ACEOF
  18535. if ac_fn_c_try_compile "$LINENO"; then :
  18536. have_xrandr_h_hdr=yes
  18537. fi
  18538. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18539. if test x$have_xrandr_h_hdr = xyes; then
  18540. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  18541. echo "-- dynamic libXrandr -> $xrandr_lib"
  18542. cat >>confdefs.h <<_ACEOF
  18543. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  18544. _ACEOF
  18545. definitely_enable_video_x11_xrandr=yes
  18546. else
  18547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  18548. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  18549. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  18550. $as_echo_n "(cached) " >&6
  18551. else
  18552. ac_check_lib_save_LIBS=$LIBS
  18553. LIBS="-lXrandr $LIBS"
  18554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18555. /* end confdefs.h. */
  18556. /* Override any GCC internal prototype to avoid an error.
  18557. Use char because int might match the return type of a GCC
  18558. builtin and then its argument prototype would still apply. */
  18559. #ifdef __cplusplus
  18560. extern "C"
  18561. #endif
  18562. char XRRQueryExtension ();
  18563. int
  18564. main ()
  18565. {
  18566. return XRRQueryExtension ();
  18567. ;
  18568. return 0;
  18569. }
  18570. _ACEOF
  18571. if ac_fn_c_try_link "$LINENO"; then :
  18572. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  18573. else
  18574. ac_cv_lib_Xrandr_XRRQueryExtension=no
  18575. fi
  18576. rm -f core conftest.err conftest.$ac_objext \
  18577. conftest$ac_exeext conftest.$ac_ext
  18578. LIBS=$ac_check_lib_save_LIBS
  18579. fi
  18580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  18581. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  18582. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  18583. have_xrandr_lib=yes
  18584. fi
  18585. if test x$have_xrandr_lib = xyes ; then
  18586. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  18587. definitely_enable_video_x11_xrandr=yes
  18588. fi
  18589. fi
  18590. fi
  18591. fi
  18592. if test x$definitely_enable_video_x11_xrandr = xyes; then
  18593. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  18594. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  18595. fi
  18596. # Check whether --enable-video-x11-scrnsaver was given.
  18597. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  18598. enableval=$enable_video_x11_scrnsaver;
  18599. else
  18600. enable_video_x11_scrnsaver=yes
  18601. fi
  18602. if test x$enable_video_x11_scrnsaver = xyes; then
  18603. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  18604. "
  18605. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  18606. have_scrnsaver_h_hdr=yes
  18607. else
  18608. have_scrnsaver_h_hdr=no
  18609. fi
  18610. if test x$have_scrnsaver_h_hdr = xyes; then
  18611. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  18612. echo "-- dynamic libXss -> $xss_lib"
  18613. cat >>confdefs.h <<_ACEOF
  18614. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  18615. _ACEOF
  18616. definitely_enable_video_x11_scrnsaver=yes
  18617. else
  18618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  18619. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  18620. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  18621. $as_echo_n "(cached) " >&6
  18622. else
  18623. ac_check_lib_save_LIBS=$LIBS
  18624. LIBS="-lXss $LIBS"
  18625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18626. /* end confdefs.h. */
  18627. /* Override any GCC internal prototype to avoid an error.
  18628. Use char because int might match the return type of a GCC
  18629. builtin and then its argument prototype would still apply. */
  18630. #ifdef __cplusplus
  18631. extern "C"
  18632. #endif
  18633. char XScreenSaverSuspend ();
  18634. int
  18635. main ()
  18636. {
  18637. return XScreenSaverSuspend ();
  18638. ;
  18639. return 0;
  18640. }
  18641. _ACEOF
  18642. if ac_fn_c_try_link "$LINENO"; then :
  18643. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  18644. else
  18645. ac_cv_lib_Xss_XScreenSaverSuspend=no
  18646. fi
  18647. rm -f core conftest.err conftest.$ac_objext \
  18648. conftest$ac_exeext conftest.$ac_ext
  18649. LIBS=$ac_check_lib_save_LIBS
  18650. fi
  18651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  18652. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  18653. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  18654. have_xss_lib=yes
  18655. fi
  18656. if test x$have_xss_lib = xyes ; then
  18657. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  18658. definitely_enable_video_x11_scrnsaver=yes
  18659. fi
  18660. fi
  18661. fi
  18662. fi
  18663. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  18664. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  18665. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  18666. fi
  18667. # Check whether --enable-video-x11-xshape was given.
  18668. if test "${enable_video_x11_xshape+set}" = set; then :
  18669. enableval=$enable_video_x11_xshape;
  18670. else
  18671. enable_video_x11_xshape=yes
  18672. fi
  18673. if test x$enable_video_x11_xshape = xyes; then
  18674. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  18675. "
  18676. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  18677. have_shape_h_hdr=yes
  18678. else
  18679. have_shape_h_hdr=no
  18680. fi
  18681. if test x$have_shape_h_hdr = xyes; then
  18682. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  18683. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  18684. fi
  18685. fi
  18686. # Check whether --enable-video-x11-vm was given.
  18687. if test "${enable_video_x11_vm+set}" = set; then :
  18688. enableval=$enable_video_x11_vm;
  18689. else
  18690. enable_video_x11_vm=yes
  18691. fi
  18692. if test x$enable_video_x11_vm = xyes; then
  18693. definitely_enable_video_x11_vm=no
  18694. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  18695. "
  18696. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  18697. have_vm_h_hdr=yes
  18698. else
  18699. have_vm_h_hdr=no
  18700. fi
  18701. if test x$have_vm_h_hdr = xyes; then
  18702. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  18703. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  18704. cat >>confdefs.h <<_ACEOF
  18705. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  18706. _ACEOF
  18707. definitely_enable_video_x11_vm=yes
  18708. else
  18709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  18710. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  18711. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  18712. $as_echo_n "(cached) " >&6
  18713. else
  18714. ac_check_lib_save_LIBS=$LIBS
  18715. LIBS="-lXxf86vm $LIBS"
  18716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18717. /* end confdefs.h. */
  18718. /* Override any GCC internal prototype to avoid an error.
  18719. Use char because int might match the return type of a GCC
  18720. builtin and then its argument prototype would still apply. */
  18721. #ifdef __cplusplus
  18722. extern "C"
  18723. #endif
  18724. char XF86VidModeQueryVersion ();
  18725. int
  18726. main ()
  18727. {
  18728. return XF86VidModeQueryVersion ();
  18729. ;
  18730. return 0;
  18731. }
  18732. _ACEOF
  18733. if ac_fn_c_try_link "$LINENO"; then :
  18734. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  18735. else
  18736. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  18737. fi
  18738. rm -f core conftest.err conftest.$ac_objext \
  18739. conftest$ac_exeext conftest.$ac_ext
  18740. LIBS=$ac_check_lib_save_LIBS
  18741. fi
  18742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  18743. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  18744. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  18745. have_vm_lib=yes
  18746. fi
  18747. if test x$have_vm_lib = xyes ; then
  18748. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  18749. definitely_enable_video_x11_vm=yes
  18750. fi
  18751. fi
  18752. fi
  18753. fi
  18754. if test x$definitely_enable_video_x11_vm = xyes; then
  18755. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  18756. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  18757. fi
  18758. fi
  18759. fi
  18760. if test x$have_x != xyes; then
  18761. # Prevent Mesa from including X11 headers
  18762. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  18763. fi
  18764. }
  18765. CheckVivanteVideo()
  18766. {
  18767. # Check whether --enable-video-vivante was given.
  18768. if test "${enable_video_vivante+set}" = set; then :
  18769. enableval=$enable_video_vivante;
  18770. else
  18771. enable_video_vivante=yes
  18772. fi
  18773. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  18774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  18775. $as_echo_n "checking for Vivante VDK API... " >&6; }
  18776. have_vivante_vdk=no
  18777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18778. /* end confdefs.h. */
  18779. #define LINUX
  18780. #define EGL_API_FB
  18781. #include <gc_vdk.h>
  18782. int
  18783. main ()
  18784. {
  18785. ;
  18786. return 0;
  18787. }
  18788. _ACEOF
  18789. if ac_fn_c_try_compile "$LINENO"; then :
  18790. have_vivante_vdk=yes
  18791. fi
  18792. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  18794. $as_echo "$have_vivante_vdk" >&6; }
  18795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  18796. $as_echo_n "checking for Vivante FB API... " >&6; }
  18797. have_vivante_egl=no
  18798. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18799. /* end confdefs.h. */
  18800. #define LINUX
  18801. #define EGL_API_FB
  18802. #include <EGL/eglvivante.h>
  18803. int
  18804. main ()
  18805. {
  18806. ;
  18807. return 0;
  18808. }
  18809. _ACEOF
  18810. if ac_fn_c_try_compile "$LINENO"; then :
  18811. have_vivante_egl=yes
  18812. fi
  18813. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  18815. $as_echo "$have_vivante_egl" >&6; }
  18816. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  18817. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  18818. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  18819. if test x$have_vivante_vdk = xyes; then
  18820. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  18821. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  18822. fi
  18823. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  18824. SUMMARY_video="${SUMMARY_video} vivante"
  18825. have_video=yes
  18826. fi
  18827. fi
  18828. }
  18829. CheckHaikuVideo()
  18830. {
  18831. if test x$enable_video = xyes; then
  18832. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  18833. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  18834. have_video=yes
  18835. SUMMARY_video="${SUMMARY_video} haiku"
  18836. fi
  18837. }
  18838. CheckCOCOA()
  18839. {
  18840. # Check whether --enable-video-cocoa was given.
  18841. if test "${enable_video_cocoa+set}" = set; then :
  18842. enableval=$enable_video_cocoa;
  18843. else
  18844. enable_video_cocoa=yes
  18845. fi
  18846. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  18847. save_CFLAGS="$CFLAGS"
  18848. CFLAGS="$CFLAGS -x objective-c"
  18849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  18850. $as_echo_n "checking for Cocoa framework... " >&6; }
  18851. have_cocoa=no
  18852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18853. /* end confdefs.h. */
  18854. #import <Cocoa/Cocoa.h>
  18855. int
  18856. main ()
  18857. {
  18858. ;
  18859. return 0;
  18860. }
  18861. _ACEOF
  18862. if ac_fn_c_try_compile "$LINENO"; then :
  18863. have_cocoa=yes
  18864. fi
  18865. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  18867. $as_echo "$have_cocoa" >&6; }
  18868. CFLAGS="$save_CFLAGS"
  18869. if test x$have_cocoa = xyes; then
  18870. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  18871. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  18872. SUMMARY_video="${SUMMARY_video} cocoa"
  18873. have_video=yes
  18874. fi
  18875. fi
  18876. }
  18877. CheckMETAL()
  18878. {
  18879. # Check whether --enable-video-metal was given.
  18880. if test "${enable_video_metal+set}" = set; then :
  18881. enableval=$enable_video_metal;
  18882. else
  18883. enable_video_metal=yes
  18884. fi
  18885. # Check whether --enable-render-metal was given.
  18886. if test "${enable_render_metal+set}" = set; then :
  18887. enableval=$enable_render_metal;
  18888. else
  18889. enable_render_metal=yes
  18890. fi
  18891. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  18892. save_CFLAGS="$CFLAGS"
  18893. CFLAGS="$CFLAGS -x objective-c"
  18894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  18895. $as_echo_n "checking for Metal framework... " >&6; }
  18896. have_metal=no
  18897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18898. /* end confdefs.h. */
  18899. #import <Cocoa/Cocoa.h>
  18900. #import <Metal/Metal.h>
  18901. #import <QuartzCore/CAMetalLayer.h>
  18902. #if TARGET_CPU_X86
  18903. #error Metal doesn't work on this configuration
  18904. #endif
  18905. int
  18906. main ()
  18907. {
  18908. ;
  18909. return 0;
  18910. }
  18911. _ACEOF
  18912. if ac_fn_c_try_compile "$LINENO"; then :
  18913. have_metal=yes
  18914. fi
  18915. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18916. CFLAGS="$save_CFLAGS"
  18917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  18918. $as_echo "$have_metal" >&6; }
  18919. if test x$have_metal = xyes; then
  18920. $as_echo "#define SDL_VIDEO_METAL 1" >>confdefs.h
  18921. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  18922. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  18923. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  18924. fi
  18925. SUMMARY_video="${SUMMARY_video} metal"
  18926. else
  18927. enable_video_metal=no
  18928. enable_render_metal=no
  18929. fi
  18930. fi
  18931. }
  18932. CheckDirectFB()
  18933. {
  18934. # Check whether --enable-video-directfb was given.
  18935. if test "${enable_video_directfb+set}" = set; then :
  18936. enableval=$enable_video_directfb;
  18937. else
  18938. enable_video_directfb=no
  18939. fi
  18940. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  18941. pkg_failed=no
  18942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  18943. $as_echo_n "checking for directfb >= 1.0.0... " >&6; }
  18944. if test -n "$DIRECTFB_CFLAGS"; then
  18945. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  18946. elif test -n "$PKG_CONFIG"; then
  18947. if test -n "$PKG_CONFIG" && \
  18948. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  18949. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  18950. ac_status=$?
  18951. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18952. test $ac_status = 0; }; then
  18953. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  18954. test "x$?" != "x0" && pkg_failed=yes
  18955. else
  18956. pkg_failed=yes
  18957. fi
  18958. else
  18959. pkg_failed=untried
  18960. fi
  18961. if test -n "$DIRECTFB_LIBS"; then
  18962. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  18963. elif test -n "$PKG_CONFIG"; then
  18964. if test -n "$PKG_CONFIG" && \
  18965. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  18966. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  18967. ac_status=$?
  18968. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18969. test $ac_status = 0; }; then
  18970. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  18971. test "x$?" != "x0" && pkg_failed=yes
  18972. else
  18973. pkg_failed=yes
  18974. fi
  18975. else
  18976. pkg_failed=untried
  18977. fi
  18978. if test $pkg_failed = yes; then
  18979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18980. $as_echo "no" >&6; }
  18981. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18982. _pkg_short_errors_supported=yes
  18983. else
  18984. _pkg_short_errors_supported=no
  18985. fi
  18986. if test $_pkg_short_errors_supported = yes; then
  18987. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  18988. else
  18989. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  18990. fi
  18991. # Put the nasty error message in config.log where it belongs
  18992. echo "$DIRECTFB_PKG_ERRORS" >&5
  18993. video_directfb=no
  18994. elif test $pkg_failed = untried; then
  18995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18996. $as_echo "no" >&6; }
  18997. video_directfb=no
  18998. else
  18999. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  19000. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  19001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19002. $as_echo "yes" >&6; }
  19003. video_directfb=yes
  19004. fi
  19005. if test x$video_directfb = xyes; then
  19006. # SuSE 11.1 installs directfb-config without directfb-devel
  19007. save_CPPFLAGS="$CPPFLAGS"
  19008. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  19009. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  19010. if test "x$ac_cv_header_directfb_h" = xyes; then :
  19011. have_directfb_hdr=yes
  19012. else
  19013. have_directfb_hdr=no
  19014. fi
  19015. CPPFLAGS="$save_CPPFLAGS"
  19016. video_directfb=$have_directfb_hdr
  19017. fi
  19018. if test x$video_directfb = xyes; then
  19019. # Check whether --enable-directfb-shared was given.
  19020. if test "${enable_directfb_shared+set}" = set; then :
  19021. enableval=$enable_directfb_shared;
  19022. else
  19023. enable_directfb_shared=yes
  19024. fi
  19025. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  19026. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  19027. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  19028. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  19029. directfb_shared=no
  19030. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19031. if test x$have_loadso != xyes && \
  19032. test x$enable_directfb_shared = xyes; then
  19033. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  19034. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  19035. fi
  19036. if test x$have_loadso = xyes && \
  19037. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  19038. directfb_shared=yes
  19039. echo "-- dynamic libdirectfb -> $directfb_lib"
  19040. cat >>confdefs.h <<_ACEOF
  19041. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  19042. _ACEOF
  19043. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  19044. else
  19045. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  19046. SUMMARY_video="${SUMMARY_video} directfb"
  19047. fi
  19048. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  19049. have_video=yes
  19050. fi
  19051. fi
  19052. }
  19053. CheckKMSDRM()
  19054. {
  19055. # Check whether --enable-video-kmsdrm was given.
  19056. if test "${enable_video_kmsdrm+set}" = set; then :
  19057. enableval=$enable_video_kmsdrm;
  19058. else
  19059. enable_video_kmsdrm=yes
  19060. fi
  19061. if test x$enable_video = xyes && \
  19062. test x$enable_video_kmsdrm = xyes && \
  19063. test x$video_opengl_egl = xyes; then
  19064. video_kmsdrm=no
  19065. pkg_failed=no
  19066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  19067. $as_echo_n "checking for libdrm >= 1.4.82... " >&6; }
  19068. if test -n "$LIBDRM_CFLAGS"; then
  19069. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  19070. elif test -n "$PKG_CONFIG"; then
  19071. if test -n "$PKG_CONFIG" && \
  19072. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  19073. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  19074. ac_status=$?
  19075. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19076. test $ac_status = 0; }; then
  19077. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  19078. test "x$?" != "x0" && pkg_failed=yes
  19079. else
  19080. pkg_failed=yes
  19081. fi
  19082. else
  19083. pkg_failed=untried
  19084. fi
  19085. if test -n "$LIBDRM_LIBS"; then
  19086. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  19087. elif test -n "$PKG_CONFIG"; then
  19088. if test -n "$PKG_CONFIG" && \
  19089. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  19090. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  19091. ac_status=$?
  19092. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19093. test $ac_status = 0; }; then
  19094. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  19095. test "x$?" != "x0" && pkg_failed=yes
  19096. else
  19097. pkg_failed=yes
  19098. fi
  19099. else
  19100. pkg_failed=untried
  19101. fi
  19102. if test $pkg_failed = yes; then
  19103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19104. $as_echo "no" >&6; }
  19105. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19106. _pkg_short_errors_supported=yes
  19107. else
  19108. _pkg_short_errors_supported=no
  19109. fi
  19110. if test $_pkg_short_errors_supported = yes; then
  19111. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  19112. else
  19113. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  19114. fi
  19115. # Put the nasty error message in config.log where it belongs
  19116. echo "$LIBDRM_PKG_ERRORS" >&5
  19117. libdrm_avail=no
  19118. elif test $pkg_failed = untried; then
  19119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19120. $as_echo "no" >&6; }
  19121. libdrm_avail=no
  19122. else
  19123. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  19124. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  19125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19126. $as_echo "yes" >&6; }
  19127. libdrm_avail=yes
  19128. fi
  19129. pkg_failed=no
  19130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  19131. $as_echo_n "checking for gbm >= 11.1.0... " >&6; }
  19132. if test -n "$LIBGBM_CFLAGS"; then
  19133. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  19134. elif test -n "$PKG_CONFIG"; then
  19135. if test -n "$PKG_CONFIG" && \
  19136. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  19137. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  19138. ac_status=$?
  19139. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19140. test $ac_status = 0; }; then
  19141. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  19142. test "x$?" != "x0" && pkg_failed=yes
  19143. else
  19144. pkg_failed=yes
  19145. fi
  19146. else
  19147. pkg_failed=untried
  19148. fi
  19149. if test -n "$LIBGBM_LIBS"; then
  19150. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  19151. elif test -n "$PKG_CONFIG"; then
  19152. if test -n "$PKG_CONFIG" && \
  19153. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  19154. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  19155. ac_status=$?
  19156. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19157. test $ac_status = 0; }; then
  19158. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  19159. test "x$?" != "x0" && pkg_failed=yes
  19160. else
  19161. pkg_failed=yes
  19162. fi
  19163. else
  19164. pkg_failed=untried
  19165. fi
  19166. if test $pkg_failed = yes; then
  19167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19168. $as_echo "no" >&6; }
  19169. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19170. _pkg_short_errors_supported=yes
  19171. else
  19172. _pkg_short_errors_supported=no
  19173. fi
  19174. if test $_pkg_short_errors_supported = yes; then
  19175. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  19176. else
  19177. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  19178. fi
  19179. # Put the nasty error message in config.log where it belongs
  19180. echo "$LIBGBM_PKG_ERRORS" >&5
  19181. libgbm_avail=no
  19182. elif test $pkg_failed = untried; then
  19183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19184. $as_echo "no" >&6; }
  19185. libgbm_avail=no
  19186. else
  19187. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  19188. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  19189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19190. $as_echo "yes" >&6; }
  19191. libgbm_avail=yes
  19192. fi
  19193. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  19194. video_kmsdrm=yes
  19195. fi
  19196. if test x$video_kmsdrm = xyes; then
  19197. # Check whether --enable-kmsdrm-shared was given.
  19198. if test "${enable_kmsdrm_shared+set}" = set; then :
  19199. enableval=$enable_kmsdrm_shared;
  19200. else
  19201. enable_kmsdrm_shared=yes
  19202. fi
  19203. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  19204. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  19205. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  19206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  19207. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  19208. kmsdrm_shared=no
  19209. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  19210. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  19211. if test x$have_loadso != xyes && \
  19212. test x$enable_kmsdrm_shared = xyes; then
  19213. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  19214. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  19215. fi
  19216. if test x$have_loadso = xyes && \
  19217. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  19218. kmsdrm_shared=yes
  19219. cat >>confdefs.h <<_ACEOF
  19220. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  19221. _ACEOF
  19222. cat >>confdefs.h <<_ACEOF
  19223. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  19224. _ACEOF
  19225. cat >>confdefs.h <<_ACEOF
  19226. #define HAVE_KMSDRM_SHARED "TRUE"
  19227. _ACEOF
  19228. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  19229. else
  19230. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  19231. SUMMARY_video="${SUMMARY_video} kmsdrm"
  19232. fi
  19233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  19234. $as_echo "$kmsdrm_shared" >&6; }
  19235. if test x$kmsdrm_shared = xyes; then
  19236. echo "-- dynamic libdrm -> $drm_lib"
  19237. echo "-- dynamic libgmb -> $gbm_lib"
  19238. fi
  19239. have_video=yes
  19240. fi
  19241. fi
  19242. }
  19243. CheckDummyVideo()
  19244. {
  19245. # Check whether --enable-video-dummy was given.
  19246. if test "${enable_video_dummy+set}" = set; then :
  19247. enableval=$enable_video_dummy;
  19248. else
  19249. enable_video_dummy=yes
  19250. fi
  19251. if test x$enable_video_dummy = xyes; then
  19252. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  19253. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  19254. have_video=yes
  19255. SUMMARY_video="${SUMMARY_video} dummy"
  19256. fi
  19257. }
  19258. CheckQNXVideo()
  19259. {
  19260. if test x$enable_video = xyes; then
  19261. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  19262. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  19263. have_video=yes
  19264. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  19265. SUMMARY_video="${SUMMARY_video} qnx"
  19266. fi
  19267. }
  19268. CheckQNXAudio()
  19269. {
  19270. if test x$enable_audio = xyes; then
  19271. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  19272. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  19273. have_audio=yes
  19274. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  19275. SUMMARY_audio="${SUMMARY_audio} qsa"
  19276. fi
  19277. }
  19278. # Check whether --enable-video-opengl was given.
  19279. if test "${enable_video_opengl+set}" = set; then :
  19280. enableval=$enable_video_opengl;
  19281. else
  19282. enable_video_opengl=yes
  19283. fi
  19284. CheckGLX()
  19285. {
  19286. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  19288. $as_echo_n "checking for GLX support... " >&6; }
  19289. video_opengl_glx=no
  19290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19291. /* end confdefs.h. */
  19292. #include <GL/glx.h>
  19293. int
  19294. main ()
  19295. {
  19296. ;
  19297. return 0;
  19298. }
  19299. _ACEOF
  19300. if ac_fn_c_try_compile "$LINENO"; then :
  19301. video_opengl_glx=yes
  19302. fi
  19303. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  19305. $as_echo "$video_opengl_glx" >&6; }
  19306. if test x$video_opengl_glx = xyes; then
  19307. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19308. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  19309. fi
  19310. fi
  19311. }
  19312. # Check whether --enable-video-opengles was given.
  19313. if test "${enable_video_opengles+set}" = set; then :
  19314. enableval=$enable_video_opengles;
  19315. else
  19316. enable_video_opengles=yes
  19317. fi
  19318. # Check whether --enable-video-opengles1 was given.
  19319. if test "${enable_video_opengles1+set}" = set; then :
  19320. enableval=$enable_video_opengles1;
  19321. else
  19322. enable_video_opengles1=yes
  19323. fi
  19324. # Check whether --enable-video-opengles2 was given.
  19325. if test "${enable_video_opengles2+set}" = set; then :
  19326. enableval=$enable_video_opengles2;
  19327. else
  19328. enable_video_opengles2=yes
  19329. fi
  19330. CheckEGL()
  19331. {
  19332. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19334. $as_echo_n "checking for EGL support... " >&6; }
  19335. video_opengl_egl=no
  19336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19337. /* end confdefs.h. */
  19338. #define LINUX
  19339. #define EGL_API_FB
  19340. #define MESA_EGL_NO_X11_HEADERS
  19341. #define EGL_NO_X11
  19342. #include <EGL/egl.h>
  19343. #include <EGL/eglext.h>
  19344. int
  19345. main ()
  19346. {
  19347. ;
  19348. return 0;
  19349. }
  19350. _ACEOF
  19351. if ac_fn_c_try_compile "$LINENO"; then :
  19352. video_opengl_egl=yes
  19353. fi
  19354. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19356. $as_echo "$video_opengl_egl" >&6; }
  19357. if test x$video_opengl_egl = xyes; then
  19358. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19359. fi
  19360. fi
  19361. }
  19362. CheckOpenGL()
  19363. {
  19364. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  19366. $as_echo_n "checking for OpenGL headers... " >&6; }
  19367. video_opengl=no
  19368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19369. /* end confdefs.h. */
  19370. #include <GL/gl.h>
  19371. #include <GL/glext.h>
  19372. int
  19373. main ()
  19374. {
  19375. ;
  19376. return 0;
  19377. }
  19378. _ACEOF
  19379. if ac_fn_c_try_compile "$LINENO"; then :
  19380. video_opengl=yes
  19381. fi
  19382. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  19384. $as_echo "$video_opengl" >&6; }
  19385. if test x$video_opengl = xyes; then
  19386. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19387. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19388. SUMMARY_video="${SUMMARY_video} opengl"
  19389. fi
  19390. fi
  19391. }
  19392. CheckOpenGLES()
  19393. {
  19394. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19395. if test x$enable_video_opengles1 = xyes; then
  19396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  19397. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  19398. video_opengles_v1=no
  19399. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19400. /* end confdefs.h. */
  19401. #include <GLES/gl.h>
  19402. #include <GLES/glext.h>
  19403. int
  19404. main ()
  19405. {
  19406. ;
  19407. return 0;
  19408. }
  19409. _ACEOF
  19410. if ac_fn_c_try_compile "$LINENO"; then :
  19411. video_opengles_v1=yes
  19412. fi
  19413. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  19415. $as_echo "$video_opengles_v1" >&6; }
  19416. if test x$video_opengles_v1 = xyes; then
  19417. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  19418. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  19419. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19420. fi
  19421. fi
  19422. if test x$enable_video_opengles2 = xyes; then
  19423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19424. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19425. video_opengles_v2=no
  19426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19427. /* end confdefs.h. */
  19428. #include <GLES2/gl2.h>
  19429. #include <GLES2/gl2ext.h>
  19430. int
  19431. main ()
  19432. {
  19433. ;
  19434. return 0;
  19435. }
  19436. _ACEOF
  19437. if ac_fn_c_try_compile "$LINENO"; then :
  19438. video_opengles_v2=yes
  19439. fi
  19440. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19442. $as_echo "$video_opengles_v2" >&6; }
  19443. if test x$video_opengles_v2 = xyes; then
  19444. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19445. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19446. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19447. fi
  19448. fi
  19449. fi
  19450. }
  19451. CheckWINDOWSGL()
  19452. {
  19453. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19454. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19455. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  19456. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19457. SUMMARY_video="${SUMMARY_video} opengl"
  19458. fi
  19459. }
  19460. CheckWINDOWSGLES()
  19461. {
  19462. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19464. $as_echo_n "checking for EGL support... " >&6; }
  19465. video_opengl_egl=no
  19466. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19467. /* end confdefs.h. */
  19468. #include <EGL/egl.h>
  19469. int
  19470. main ()
  19471. {
  19472. ;
  19473. return 0;
  19474. }
  19475. _ACEOF
  19476. if ac_fn_c_try_compile "$LINENO"; then :
  19477. video_opengl_egl=yes
  19478. fi
  19479. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19481. $as_echo "$video_opengl_egl" >&6; }
  19482. if test x$video_opengl_egl = xyes; then
  19483. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19484. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19485. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19486. fi
  19487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19488. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19489. video_opengles_v2=no
  19490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19491. /* end confdefs.h. */
  19492. #include <GLES2/gl2.h>
  19493. #include <GLES2/gl2ext.h>
  19494. int
  19495. main ()
  19496. {
  19497. ;
  19498. return 0;
  19499. }
  19500. _ACEOF
  19501. if ac_fn_c_try_compile "$LINENO"; then :
  19502. video_opengles_v2=yes
  19503. fi
  19504. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19506. $as_echo "$video_opengles_v2" >&6; }
  19507. if test x$video_opengles_v2 = xyes; then
  19508. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19509. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19510. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19511. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19512. fi
  19513. fi
  19514. }
  19515. CheckHaikuGL()
  19516. {
  19517. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19518. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19519. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  19520. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19521. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  19522. SUMMARY_video="${SUMMARY_video} opengl"
  19523. fi
  19524. }
  19525. CheckMacGL()
  19526. {
  19527. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19528. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19529. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  19530. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19531. SUMMARY_video="${SUMMARY_video} opengl"
  19532. fi
  19533. }
  19534. CheckMacGLES()
  19535. {
  19536. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19537. video_opengl_egl=yes
  19538. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19539. video_opengles_v2=yes
  19540. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19541. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19542. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19543. fi
  19544. }
  19545. CheckEmscriptenGLES()
  19546. {
  19547. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19549. $as_echo_n "checking for EGL support... " >&6; }
  19550. video_opengl_egl=no
  19551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19552. /* end confdefs.h. */
  19553. #include <EGL/egl.h>
  19554. int
  19555. main ()
  19556. {
  19557. ;
  19558. return 0;
  19559. }
  19560. _ACEOF
  19561. if ac_fn_c_try_compile "$LINENO"; then :
  19562. video_opengl_egl=yes
  19563. fi
  19564. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19566. $as_echo "$video_opengl_egl" >&6; }
  19567. if test x$video_opengl_egl = xyes; then
  19568. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19569. fi
  19570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19571. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19572. video_opengles_v2=no
  19573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19574. /* end confdefs.h. */
  19575. #include <GLES2/gl2.h>
  19576. #include <GLES2/gl2ext.h>
  19577. int
  19578. main ()
  19579. {
  19580. ;
  19581. return 0;
  19582. }
  19583. _ACEOF
  19584. if ac_fn_c_try_compile "$LINENO"; then :
  19585. video_opengles_v2=yes
  19586. fi
  19587. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19589. $as_echo "$video_opengles_v2" >&6; }
  19590. if test x$video_opengles_v2 = xyes; then
  19591. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19592. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19593. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19594. fi
  19595. fi
  19596. }
  19597. # Check whether --enable-video-vulkan was given.
  19598. if test "${enable_video_vulkan+set}" = set; then :
  19599. enableval=$enable_video_vulkan;
  19600. else
  19601. enable_video_vulkan=yes
  19602. fi
  19603. CheckVulkan()
  19604. {
  19605. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  19606. case "$host" in
  19607. *-*-android*)
  19608. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19609. /* end confdefs.h. */
  19610. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  19611. #error Vulkan doesn't work on this configuration
  19612. #endif
  19613. int
  19614. main ()
  19615. {
  19616. ;
  19617. return 0;
  19618. }
  19619. _ACEOF
  19620. if ac_fn_c_try_compile "$LINENO"; then :
  19621. else
  19622. enable_video_vulkan=no
  19623. fi
  19624. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19625. ;;
  19626. *-*-darwin*)
  19627. save_CFLAGS="$CFLAGS"
  19628. CFLAGS="$CFLAGS -x objective-c"
  19629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19630. /* end confdefs.h. */
  19631. #include <Cocoa/Cocoa.h>
  19632. #include <Metal/Metal.h>
  19633. #include <QuartzCore/CAMetalLayer.h>
  19634. #if TARGET_CPU_X86
  19635. #error Vulkan doesn't work on this configuration
  19636. #endif
  19637. int
  19638. main ()
  19639. {
  19640. ;
  19641. return 0;
  19642. }
  19643. _ACEOF
  19644. if ac_fn_c_try_compile "$LINENO"; then :
  19645. else
  19646. enable_video_vulkan=no
  19647. fi
  19648. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19649. CFLAGS="$save_CFLAGS"
  19650. ;;
  19651. *)
  19652. ;;
  19653. esac
  19654. if test x$enable_video_vulkan = xno; then
  19655. # For reasons I am totally unable to see, I get an undefined macro error if
  19656. # I put this in the AC_TRY_COMPILE.
  19657. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  19658. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  19659. fi
  19660. fi
  19661. if test x$enable_video_vulkan = xyes; then
  19662. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  19663. SUMMARY_video="${SUMMARY_video} vulkan"
  19664. fi
  19665. }
  19666. CheckInputEvents()
  19667. {
  19668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  19669. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  19670. use_input_events=no
  19671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19672. /* end confdefs.h. */
  19673. #include <linux/input.h>
  19674. int
  19675. main ()
  19676. {
  19677. #ifndef EVIOCGNAME
  19678. #error EVIOCGNAME() ioctl not available
  19679. #endif
  19680. ;
  19681. return 0;
  19682. }
  19683. _ACEOF
  19684. if ac_fn_c_try_compile "$LINENO"; then :
  19685. use_input_events=yes
  19686. fi
  19687. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  19689. $as_echo "$use_input_events" >&6; }
  19690. if test x$use_input_events = xyes; then
  19691. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  19692. SUMMARY_input="${SUMMARY_input} linuxev"
  19693. fi
  19694. }
  19695. CheckInputKD()
  19696. {
  19697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  19698. $as_echo_n "checking for Linux kd.h... " >&6; }
  19699. use_input_kd=no
  19700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19701. /* end confdefs.h. */
  19702. #include <linux/kd.h>
  19703. #include <linux/keyboard.h>
  19704. int
  19705. main ()
  19706. {
  19707. struct kbentry kbe;
  19708. kbe.kb_table = KG_CTRL;
  19709. ioctl(0, KDGKBENT, &kbe);
  19710. ;
  19711. return 0;
  19712. }
  19713. _ACEOF
  19714. if ac_fn_c_try_compile "$LINENO"; then :
  19715. use_input_kd=yes
  19716. fi
  19717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  19719. $as_echo "$use_input_kd" >&6; }
  19720. if test x$use_input_kd = xyes; then
  19721. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  19722. SUMMARY_input="${SUMMARY_input} linuxkd"
  19723. fi
  19724. }
  19725. CheckInputKBIO()
  19726. {
  19727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  19728. $as_echo_n "checking for FreeBSD kbio.h... " >&6; }
  19729. use_input_kbio=no
  19730. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19731. /* end confdefs.h. */
  19732. #include <sys/kbio.h>
  19733. #include <sys/ioctl.h>
  19734. int
  19735. main ()
  19736. {
  19737. accentmap_t accTable;
  19738. ioctl(0, KDENABIO, 1);
  19739. ;
  19740. return 0;
  19741. }
  19742. _ACEOF
  19743. if ac_fn_c_try_compile "$LINENO"; then :
  19744. use_input_kbio=yes
  19745. fi
  19746. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  19748. $as_echo "$use_input_kbio" >&6; }
  19749. if test x$use_input_kbio = xyes; then
  19750. $as_echo "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  19751. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  19752. fi
  19753. }
  19754. CheckInputWSCONS()
  19755. {
  19756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  19757. $as_echo_n "checking for OpenBSD wscons... " >&6; }
  19758. use_input_wscons=no
  19759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19760. /* end confdefs.h. */
  19761. #include <sys/time.h>
  19762. #include <dev/wscons/wsconsio.h>
  19763. #include <dev/wscons/wsksymdef.h>
  19764. #include <dev/wscons/wsksymvar.h>
  19765. #include <sys/ioctl.h>
  19766. int
  19767. main ()
  19768. {
  19769. struct wskbd_map_data data;
  19770. ioctl(0, WSKBDIO_GETMAP, &data);
  19771. ;
  19772. return 0;
  19773. }
  19774. _ACEOF
  19775. if ac_fn_c_try_compile "$LINENO"; then :
  19776. use_input_wscons=yes
  19777. fi
  19778. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  19780. $as_echo "$use_input_wscons" >&6; }
  19781. if test x$use_input_wscons = xyes; then
  19782. $as_echo "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  19783. SUMMARY_input="${SUMMARY_input} wscons"
  19784. fi
  19785. }
  19786. CheckLibUDev()
  19787. {
  19788. # Check whether --enable-libudev was given.
  19789. if test "${enable_libudev+set}" = set; then :
  19790. enableval=$enable_libudev;
  19791. else
  19792. enable_libudev=yes
  19793. fi
  19794. if test x$enable_libudev = xyes; then
  19795. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  19796. if test "x$ac_cv_header_libudev_h" = xyes; then :
  19797. have_libudev_h_hdr=yes
  19798. else
  19799. have_libudev_h_hdr=no
  19800. fi
  19801. if test x$have_libudev_h_hdr = xyes; then
  19802. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  19803. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19804. if test x$udev_lib != x; then
  19805. echo "-- dynamic udev -> $udev_lib"
  19806. cat >>confdefs.h <<_ACEOF
  19807. #define SDL_UDEV_DYNAMIC "$udev_lib"
  19808. _ACEOF
  19809. fi
  19810. fi
  19811. fi
  19812. }
  19813. CheckDBus()
  19814. {
  19815. # Check whether --enable-dbus was given.
  19816. if test "${enable_dbus+set}" = set; then :
  19817. enableval=$enable_dbus;
  19818. else
  19819. enable_dbus=yes
  19820. fi
  19821. if test x$enable_dbus = xyes; then
  19822. pkg_failed=no
  19823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  19824. $as_echo_n "checking for dbus-1... " >&6; }
  19825. if test -n "$DBUS_CFLAGS"; then
  19826. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  19827. elif test -n "$PKG_CONFIG"; then
  19828. if test -n "$PKG_CONFIG" && \
  19829. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19830. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19831. ac_status=$?
  19832. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19833. test $ac_status = 0; }; then
  19834. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  19835. test "x$?" != "x0" && pkg_failed=yes
  19836. else
  19837. pkg_failed=yes
  19838. fi
  19839. else
  19840. pkg_failed=untried
  19841. fi
  19842. if test -n "$DBUS_LIBS"; then
  19843. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  19844. elif test -n "$PKG_CONFIG"; then
  19845. if test -n "$PKG_CONFIG" && \
  19846. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19847. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19848. ac_status=$?
  19849. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19850. test $ac_status = 0; }; then
  19851. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  19852. test "x$?" != "x0" && pkg_failed=yes
  19853. else
  19854. pkg_failed=yes
  19855. fi
  19856. else
  19857. pkg_failed=untried
  19858. fi
  19859. if test $pkg_failed = yes; then
  19860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19861. $as_echo "no" >&6; }
  19862. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19863. _pkg_short_errors_supported=yes
  19864. else
  19865. _pkg_short_errors_supported=no
  19866. fi
  19867. if test $_pkg_short_errors_supported = yes; then
  19868. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  19869. else
  19870. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  19871. fi
  19872. # Put the nasty error message in config.log where it belongs
  19873. echo "$DBUS_PKG_ERRORS" >&5
  19874. have_dbus=no
  19875. elif test $pkg_failed = untried; then
  19876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19877. $as_echo "no" >&6; }
  19878. have_dbus=no
  19879. else
  19880. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  19881. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  19882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19883. $as_echo "yes" >&6; }
  19884. have_dbus=yes
  19885. fi
  19886. save_CPPFLAGS="$CPPFLAGS"
  19887. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  19888. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  19889. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  19890. have_dbus_dbus_h_hdr=yes
  19891. else
  19892. have_dbus_dbus_h_hdr=no
  19893. fi
  19894. CPPFLAGS="$save_CPPFLAGS"
  19895. if test x$have_dbus_dbus_h_hdr = xyes; then
  19896. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  19897. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  19898. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  19899. fi
  19900. fi
  19901. }
  19902. CheckIME()
  19903. {
  19904. # Check whether --enable-ime was given.
  19905. if test "${enable_ime+set}" = set; then :
  19906. enableval=$enable_ime;
  19907. else
  19908. enable_ime=yes
  19909. fi
  19910. if test x$enable_ime = xyes; then
  19911. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  19912. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  19913. fi
  19914. }
  19915. CheckInotify()
  19916. {
  19917. save_LIBS="$LIBS"
  19918. case "$host" in
  19919. *-*-freebsd*) LIBS="$LIBS -linotify"
  19920. ;;
  19921. esac
  19922. for ac_header in sys/inotify.h
  19923. do :
  19924. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  19925. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  19926. cat >>confdefs.h <<_ACEOF
  19927. #define HAVE_SYS_INOTIFY_H 1
  19928. _ACEOF
  19929. have_inotify_inotify_h_hdr=yes
  19930. fi
  19931. done
  19932. for ac_func in inotify_init
  19933. do :
  19934. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  19935. if test "x$ac_cv_func_inotify_init" = xyes; then :
  19936. cat >>confdefs.h <<_ACEOF
  19937. #define HAVE_INOTIFY_INIT 1
  19938. _ACEOF
  19939. have_inotify=yes
  19940. fi
  19941. done
  19942. for ac_func in inotify_init1
  19943. do :
  19944. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  19945. if test "x$ac_cv_func_inotify_init1" = xyes; then :
  19946. cat >>confdefs.h <<_ACEOF
  19947. #define HAVE_INOTIFY_INIT1 1
  19948. _ACEOF
  19949. fi
  19950. done
  19951. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  19952. $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
  19953. case "$host" in
  19954. *-*-freebsd*)
  19955. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  19956. ;;
  19957. esac
  19958. fi
  19959. LIBS="$save_LIBS"
  19960. }
  19961. CheckIBus()
  19962. {
  19963. # Check whether --enable-ibus was given.
  19964. if test "${enable_ibus+set}" = set; then :
  19965. enableval=$enable_ibus;
  19966. else
  19967. enable_ibus=yes
  19968. fi
  19969. if test x$enable_ibus = xyes; then
  19970. pkg_failed=no
  19971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  19972. $as_echo_n "checking for ibus-1.0... " >&6; }
  19973. if test -n "$IBUS_CFLAGS"; then
  19974. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  19975. elif test -n "$PKG_CONFIG"; then
  19976. if test -n "$PKG_CONFIG" && \
  19977. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  19978. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  19979. ac_status=$?
  19980. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19981. test $ac_status = 0; }; then
  19982. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  19983. test "x$?" != "x0" && pkg_failed=yes
  19984. else
  19985. pkg_failed=yes
  19986. fi
  19987. else
  19988. pkg_failed=untried
  19989. fi
  19990. if test -n "$IBUS_LIBS"; then
  19991. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  19992. elif test -n "$PKG_CONFIG"; then
  19993. if test -n "$PKG_CONFIG" && \
  19994. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  19995. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  19996. ac_status=$?
  19997. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19998. test $ac_status = 0; }; then
  19999. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  20000. test "x$?" != "x0" && pkg_failed=yes
  20001. else
  20002. pkg_failed=yes
  20003. fi
  20004. else
  20005. pkg_failed=untried
  20006. fi
  20007. if test $pkg_failed = yes; then
  20008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20009. $as_echo "no" >&6; }
  20010. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20011. _pkg_short_errors_supported=yes
  20012. else
  20013. _pkg_short_errors_supported=no
  20014. fi
  20015. if test $_pkg_short_errors_supported = yes; then
  20016. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  20017. else
  20018. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  20019. fi
  20020. # Put the nasty error message in config.log where it belongs
  20021. echo "$IBUS_PKG_ERRORS" >&5
  20022. have_ibus=no
  20023. elif test $pkg_failed = untried; then
  20024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20025. $as_echo "no" >&6; }
  20026. have_ibus=no
  20027. else
  20028. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  20029. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  20030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20031. $as_echo "yes" >&6; }
  20032. have_ibus=yes
  20033. fi
  20034. save_CPPFLAGS="$CPPFLAGS"
  20035. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  20036. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  20037. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  20038. have_ibus_ibus_h_hdr=yes
  20039. else
  20040. have_ibus_ibus_h_hdr=no
  20041. fi
  20042. CPPFLAGS="$save_CPPFLAGS"
  20043. if test x$have_ibus_ibus_h_hdr = xyes; then
  20044. if test x$enable_ime != xyes; then
  20045. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  20046. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  20047. have_ibus_ibus_h_hdr=no
  20048. elif test x$enable_dbus != xyes; then
  20049. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  20050. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  20051. have_ibus_ibus_h_hdr=no
  20052. elif test x$have_inotify_inotify_h_hdr != xyes; then
  20053. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  20054. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  20055. have_ibus_ibus_h_hdr=no
  20056. else
  20057. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  20058. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  20059. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  20060. fi
  20061. fi
  20062. fi
  20063. }
  20064. CheckFcitx()
  20065. {
  20066. # Check whether --enable-fcitx was given.
  20067. if test "${enable_fcitx+set}" = set; then :
  20068. enableval=$enable_fcitx;
  20069. else
  20070. enable_fcitx=yes
  20071. fi
  20072. if test x$enable_fcitx = xyes; then
  20073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  20074. $as_echo_n "checking for fcitx support... " >&6; }
  20075. have_fcitx=no
  20076. if test x$enable_ime != xyes; then
  20077. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  20078. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  20079. elif test x$have_dbus_dbus_h_hdr != xyes; then
  20080. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  20081. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  20082. else
  20083. have_fcitx=yes
  20084. $as_echo "#define HAVE_FCITX 1" >>confdefs.h
  20085. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  20086. fi
  20087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  20088. $as_echo "$have_fcitx" >&6; }
  20089. fi
  20090. }
  20091. CheckJoystickMFI()
  20092. {
  20093. # Check whether --enable-joystick-mfi was given.
  20094. if test "${enable_joystick_mfi+set}" = set; then :
  20095. enableval=$enable_joystick_mfi;
  20096. else
  20097. enable_joystick_mfi=yes
  20098. fi
  20099. if test x$enable_joystick_mfi = xyes; then
  20100. save_CFLAGS="$CFLAGS"
  20101. save_LDFLAGS="$LDFLAGS"
  20102. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  20103. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  20104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  20105. $as_echo_n "checking for GameController framework... " >&6; }
  20106. enable_joystick_mfi=no
  20107. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20108. /* end confdefs.h. */
  20109. #include <AvailabilityMacros.h>
  20110. #include <TargetConditionals.h>
  20111. #import <GameController/GameController.h>
  20112. int
  20113. main ()
  20114. {
  20115. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  20116. #error GameController framework doesn't work on this configuration
  20117. #endif
  20118. #if TARGET_CPU_X86
  20119. #error GameController framework doesn't work on this configuration
  20120. #endif
  20121. ;
  20122. return 0;
  20123. }
  20124. _ACEOF
  20125. if ac_fn_c_try_link "$LINENO"; then :
  20126. enable_joystick_mfi=yes
  20127. fi
  20128. rm -f core conftest.err conftest.$ac_objext \
  20129. conftest$ac_exeext conftest.$ac_ext
  20130. CFLAGS="$save_CFLAGS"
  20131. LDFLAGS="$save_LDFLAGS"
  20132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  20133. $as_echo "$enable_joystick_mfi" >&6; }
  20134. if test x$enable_joystick_mfi = xyes; then
  20135. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  20136. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  20137. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  20138. fi
  20139. fi
  20140. }
  20141. CheckPTHREAD()
  20142. {
  20143. case "$host" in
  20144. *-*-emscripten*)
  20145. enable_pthreads_default=no
  20146. ;;
  20147. *)
  20148. enable_pthreads_default=yes
  20149. ;;
  20150. esac
  20151. # Check whether --enable-pthreads was given.
  20152. if test "${enable_pthreads+set}" = set; then :
  20153. enableval=$enable_pthreads;
  20154. else
  20155. enable_pthreads=maybe
  20156. fi
  20157. # Check whether --enable-pthread-sem was given.
  20158. if test "${enable_pthread_sem+set}" = set; then :
  20159. enableval=$enable_pthread_sem;
  20160. else
  20161. enable_pthread_sem=maybe
  20162. fi
  20163. if test x$enable_pthreads = xmaybe; then
  20164. enable_pthreads=$enable_pthreads_default
  20165. fi
  20166. if test x$enable_pthread_sem = xmaybe; then
  20167. enable_pthread_sem=$enable_pthreads
  20168. fi
  20169. case "$host" in
  20170. *-*-android*)
  20171. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20172. pthread_lib=""
  20173. ;;
  20174. *-*-linux*|*-*-uclinux*)
  20175. pthread_cflags="-D_REENTRANT"
  20176. pthread_lib="-lpthread"
  20177. ;;
  20178. *-*-bsdi*)
  20179. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20180. pthread_lib=""
  20181. ;;
  20182. *-*-darwin*)
  20183. pthread_cflags="-D_THREAD_SAFE"
  20184. # causes Carbon.p complaints?
  20185. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20186. ;;
  20187. *-*-freebsd*|*-*-dragonfly*)
  20188. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20189. pthread_lib="-pthread"
  20190. ;;
  20191. *-*-netbsd*)
  20192. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20193. pthread_lib="-lpthread"
  20194. ;;
  20195. *-*-openbsd*)
  20196. pthread_cflags="-D_REENTRANT"
  20197. pthread_lib="-pthread"
  20198. ;;
  20199. *-*-solaris2.9)
  20200. # From Solaris 9+, posix4's preferred name is rt.
  20201. pthread_cflags="-D_REENTRANT"
  20202. pthread_lib="-lpthread -lrt"
  20203. ;;
  20204. *-*-solaris2.10)
  20205. # Solaris 10+ merged pthread into libc.
  20206. pthread_cflags="-D_REENTRANT"
  20207. pthread_lib="-lrt"
  20208. ;;
  20209. *-*-solaris*)
  20210. # Solaris 11+ merged rt into libc.
  20211. pthread_cflags="-D_REENTRANT"
  20212. pthread_lib=""
  20213. ;;
  20214. *-*-sysv5*)
  20215. pthread_cflags="-D_REENTRANT -Kthread"
  20216. pthread_lib=""
  20217. ;;
  20218. *-*-aix*)
  20219. pthread_cflags="-D_REENTRANT -mthreads"
  20220. pthread_lib="-lpthread"
  20221. ;;
  20222. *-*-hpux11*)
  20223. pthread_cflags="-D_REENTRANT"
  20224. pthread_lib="-L/usr/lib -lpthread"
  20225. ;;
  20226. *-*-haiku*)
  20227. pthread_cflags="-D_REENTRANT"
  20228. pthread_lib=""
  20229. ;;
  20230. *-*-nto*)
  20231. pthread_cflags="-D_REENTRANT"
  20232. pthread_lib=""
  20233. ;;
  20234. *-*-emscripten*)
  20235. pthread_cflags="-D_REENTRANT -pthread"
  20236. pthread_lib="-pthread"
  20237. ;;
  20238. *)
  20239. pthread_cflags="-D_REENTRANT"
  20240. pthread_lib="-lpthread"
  20241. ;;
  20242. esac
  20243. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  20244. # Save the original compiler flags and libraries
  20245. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20246. # Add the pthread compiler flags and libraries
  20247. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  20248. # Check to see if we have pthread support on this system
  20249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  20250. $as_echo_n "checking for pthreads... " >&6; }
  20251. use_pthreads=no
  20252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20253. /* end confdefs.h. */
  20254. #include <pthread.h>
  20255. int
  20256. main ()
  20257. {
  20258. pthread_attr_t type;
  20259. pthread_attr_init(&type);
  20260. ;
  20261. return 0;
  20262. }
  20263. _ACEOF
  20264. if ac_fn_c_try_link "$LINENO"; then :
  20265. use_pthreads=yes
  20266. fi
  20267. rm -f core conftest.err conftest.$ac_objext \
  20268. conftest$ac_exeext conftest.$ac_ext
  20269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  20270. $as_echo "$use_pthreads" >&6; }
  20271. # Restore the compiler flags and libraries
  20272. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20273. # Do futher testing if we have pthread support...
  20274. if test x$use_pthreads = xyes; then
  20275. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  20276. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  20277. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  20278. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  20279. # Save the original compiler flags and libraries
  20280. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20281. # Add the pthread compiler flags and libraries
  20282. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  20283. # Check to see if recursive mutexes are available
  20284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  20285. $as_echo_n "checking for recursive mutexes... " >&6; }
  20286. has_recursive_mutexes=no
  20287. if test x$has_recursive_mutexes = xno; then
  20288. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20289. /* end confdefs.h. */
  20290. #define _GNU_SOURCE 1
  20291. #include <pthread.h>
  20292. int
  20293. main ()
  20294. {
  20295. pthread_mutexattr_t attr;
  20296. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  20297. ;
  20298. return 0;
  20299. }
  20300. _ACEOF
  20301. if ac_fn_c_try_link "$LINENO"; then :
  20302. has_recursive_mutexes=yes
  20303. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  20304. fi
  20305. rm -f core conftest.err conftest.$ac_objext \
  20306. conftest$ac_exeext conftest.$ac_ext
  20307. fi
  20308. if test x$has_recursive_mutexes = xno; then
  20309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20310. /* end confdefs.h. */
  20311. #define _GNU_SOURCE 1
  20312. #include <pthread.h>
  20313. int
  20314. main ()
  20315. {
  20316. pthread_mutexattr_t attr;
  20317. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  20318. ;
  20319. return 0;
  20320. }
  20321. _ACEOF
  20322. if ac_fn_c_try_link "$LINENO"; then :
  20323. has_recursive_mutexes=yes
  20324. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  20325. fi
  20326. rm -f core conftest.err conftest.$ac_objext \
  20327. conftest$ac_exeext conftest.$ac_ext
  20328. fi
  20329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  20330. $as_echo "$has_recursive_mutexes" >&6; }
  20331. # Check to see if pthread semaphore support is missing
  20332. if test x$enable_pthread_sem = xyes; then
  20333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  20334. $as_echo_n "checking for pthread semaphores... " >&6; }
  20335. have_pthread_sem=no
  20336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20337. /* end confdefs.h. */
  20338. #include <pthread.h>
  20339. #include <semaphore.h>
  20340. int
  20341. main ()
  20342. {
  20343. ;
  20344. return 0;
  20345. }
  20346. _ACEOF
  20347. if ac_fn_c_try_compile "$LINENO"; then :
  20348. have_pthread_sem=yes
  20349. fi
  20350. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  20352. $as_echo "$have_pthread_sem" >&6; }
  20353. fi
  20354. if test x$have_pthread_sem = xyes; then
  20355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  20356. $as_echo_n "checking for sem_timedwait... " >&6; }
  20357. have_sem_timedwait=no
  20358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20359. /* end confdefs.h. */
  20360. #include <pthread.h>
  20361. #include <semaphore.h>
  20362. int
  20363. main ()
  20364. {
  20365. sem_timedwait(NULL, NULL);
  20366. ;
  20367. return 0;
  20368. }
  20369. _ACEOF
  20370. if ac_fn_c_try_link "$LINENO"; then :
  20371. have_sem_timedwait=yes
  20372. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  20373. fi
  20374. rm -f core conftest.err conftest.$ac_objext \
  20375. conftest$ac_exeext conftest.$ac_ext
  20376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  20377. $as_echo "$have_sem_timedwait" >&6; }
  20378. fi
  20379. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  20380. "
  20381. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  20382. have_pthread_np_h=yes
  20383. else
  20384. have_pthread_np_h=no
  20385. fi
  20386. if test x$have_pthread_np_h = xyes; then
  20387. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  20388. fi
  20389. # Check to see if pthread naming is available
  20390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  20391. $as_echo_n "checking for pthread_setname_np... " >&6; }
  20392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20393. /* end confdefs.h. */
  20394. /* Override any GCC internal prototype to avoid an error.
  20395. Use char because int might match the return type of a GCC
  20396. builtin and then its argument prototype would still apply. */
  20397. #ifdef __cplusplus
  20398. extern "C"
  20399. #endif
  20400. char pthread_setname_np ();
  20401. int
  20402. main ()
  20403. {
  20404. return pthread_setname_np ();
  20405. ;
  20406. return 0;
  20407. }
  20408. _ACEOF
  20409. if ac_fn_c_try_link "$LINENO"; then :
  20410. has_pthread_setname_np=yes
  20411. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  20412. else
  20413. has_pthread_setname_np=no
  20414. fi
  20415. rm -f core conftest.err conftest.$ac_objext \
  20416. conftest$ac_exeext conftest.$ac_ext
  20417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  20418. $as_echo "$has_pthread_setname_np" >&6; }
  20419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  20420. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  20421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20422. /* end confdefs.h. */
  20423. /* Override any GCC internal prototype to avoid an error.
  20424. Use char because int might match the return type of a GCC
  20425. builtin and then its argument prototype would still apply. */
  20426. #ifdef __cplusplus
  20427. extern "C"
  20428. #endif
  20429. char pthread_set_name_np ();
  20430. int
  20431. main ()
  20432. {
  20433. return pthread_set_name_np ();
  20434. ;
  20435. return 0;
  20436. }
  20437. _ACEOF
  20438. if ac_fn_c_try_link "$LINENO"; then :
  20439. has_pthread_set_name_np=yes
  20440. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  20441. else
  20442. has_pthread_set_name_np=no
  20443. fi
  20444. rm -f core conftest.err conftest.$ac_objext \
  20445. conftest$ac_exeext conftest.$ac_ext
  20446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  20447. $as_echo "$has_pthread_set_name_np" >&6; }
  20448. # Restore the compiler flags and libraries
  20449. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20450. # Basic thread creation functions
  20451. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  20452. # Semaphores
  20453. # We can fake these with mutexes and condition variables if necessary
  20454. if test x$have_pthread_sem = xyes; then
  20455. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  20456. else
  20457. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  20458. fi
  20459. # Mutexes
  20460. # We can fake these with semaphores if necessary
  20461. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  20462. # Condition variables
  20463. # We can fake these with semaphores and mutexes if necessary
  20464. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  20465. # Thread local storage
  20466. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  20467. have_threads=yes
  20468. fi
  20469. fi
  20470. }
  20471. CheckWINDOWS()
  20472. {
  20473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  20474. $as_echo_n "checking Windows compiler... " >&6; }
  20475. have_win32_gcc=no
  20476. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20477. /* end confdefs.h. */
  20478. #include <windows.h>
  20479. int
  20480. main ()
  20481. {
  20482. ;
  20483. return 0;
  20484. }
  20485. _ACEOF
  20486. if ac_fn_c_try_compile "$LINENO"; then :
  20487. have_win32_gcc=yes
  20488. fi
  20489. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  20491. $as_echo "$have_win32_gcc" >&6; }
  20492. if test x$have_win32_gcc != xyes; then
  20493. as_fn_error $? "
  20494. *** Your compiler ($CC) does not produce Windows executables!
  20495. " "$LINENO" 5
  20496. fi
  20497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  20498. $as_echo_n "checking Windows CE... " >&6; }
  20499. have_wince=no
  20500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20501. /* end confdefs.h. */
  20502. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  20503. #error This is not Windows CE
  20504. #endif
  20505. int
  20506. main ()
  20507. {
  20508. ;
  20509. return 0;
  20510. }
  20511. _ACEOF
  20512. if ac_fn_c_try_compile "$LINENO"; then :
  20513. have_wince=yes
  20514. as_fn_error $? "
  20515. *** Sorry, Windows CE is no longer supported.
  20516. " "$LINENO" 5
  20517. fi
  20518. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  20520. $as_echo "$have_wince" >&6; }
  20521. # This fixes Windows stack alignment with newer GCC
  20522. CheckStackBoundary
  20523. }
  20524. CheckDIRECTX()
  20525. {
  20526. # Check whether --enable-directx was given.
  20527. if test "${enable_directx+set}" = set; then :
  20528. enableval=$enable_directx;
  20529. else
  20530. enable_directx=yes
  20531. fi
  20532. if test x$enable_directx = xyes; then
  20533. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  20534. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  20535. have_d3d=yes
  20536. fi
  20537. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  20538. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  20539. have_d3d11=yes
  20540. fi
  20541. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  20542. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  20543. have_ddraw=yes
  20544. fi
  20545. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  20546. if test "x$ac_cv_header_dsound_h" = xyes; then :
  20547. have_dsound=yes
  20548. fi
  20549. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  20550. if test "x$ac_cv_header_dinput_h" = xyes; then :
  20551. have_dinput=yes
  20552. fi
  20553. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  20554. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  20555. have_dxgi=yes
  20556. fi
  20557. if test x$have_ddraw = xyes; then
  20558. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  20559. fi
  20560. if test x$have_dinput = xyes; then
  20561. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  20562. fi
  20563. if test x$have_dsound = xyes; then
  20564. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  20565. fi
  20566. if test x$have_dxgi = xyes; then
  20567. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  20568. fi
  20569. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  20570. # FIXME: ...so force it off for now.
  20571. case "$host" in
  20572. *-*-cygwin*)
  20573. have_dinput=false
  20574. ;;
  20575. esac
  20576. fi
  20577. # Check whether --enable-xinput was given.
  20578. if test "${enable_xinput+set}" = set; then :
  20579. enableval=$enable_xinput;
  20580. else
  20581. enable_xinput=yes
  20582. fi
  20583. if test x$enable_xinput = xyes; then
  20584. have_xinput_gamepadex=no
  20585. have_xinput_stateex=no
  20586. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  20587. if test "x$ac_cv_header_xinput_h" = xyes; then :
  20588. have_xinput=yes
  20589. fi
  20590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  20591. $as_echo_n "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  20592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20593. /* end confdefs.h. */
  20594. #include <windows.h>
  20595. #include <xinput.h>
  20596. XINPUT_GAMEPAD_EX x1;
  20597. int
  20598. main ()
  20599. {
  20600. ;
  20601. return 0;
  20602. }
  20603. _ACEOF
  20604. if ac_fn_c_try_compile "$LINENO"; then :
  20605. have_xinput_gamepadex=yes
  20606. fi
  20607. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  20609. $as_echo "$have_xinput_gamepadex" >&6; }
  20610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  20611. $as_echo_n "checking for struct XINPUT_STATE_EX... " >&6; }
  20612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20613. /* end confdefs.h. */
  20614. #include <windows.h>
  20615. #include <xinput.h>
  20616. XINPUT_STATE_EX s1;
  20617. int
  20618. main ()
  20619. {
  20620. ;
  20621. return 0;
  20622. }
  20623. _ACEOF
  20624. if ac_fn_c_try_compile "$LINENO"; then :
  20625. have_xinput_stateex=yes
  20626. fi
  20627. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  20629. $as_echo "$have_xinput_stateex" >&6; }
  20630. if test x$have_xinput = xyes; then
  20631. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  20632. fi
  20633. if test x$have_xinput_gamepadex = xyes; then
  20634. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  20635. fi
  20636. if test x$have_xinput_stateex = xyes; then
  20637. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  20638. fi
  20639. fi
  20640. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  20641. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  20642. have_wasapi=yes
  20643. fi
  20644. if test x$have_wasapi = xyes; then
  20645. $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  20646. fi
  20647. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  20648. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  20649. else
  20650. have_wasapi=no
  20651. fi
  20652. if test x$have_wasapi = xyes; then
  20653. $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  20654. fi
  20655. # Check whether --enable-wasapi was given.
  20656. if test "${enable_wasapi+set}" = set; then :
  20657. enableval=$enable_wasapi;
  20658. else
  20659. enable_wasapi=yes
  20660. fi
  20661. }
  20662. CheckDLOPEN()
  20663. {
  20664. # Check whether --enable-sdl-dlopen was given.
  20665. if test "${enable_sdl_dlopen+set}" = set; then :
  20666. enableval=$enable_sdl_dlopen;
  20667. else
  20668. enable_sdl_dlopen=yes
  20669. fi
  20670. if test x$enable_sdl_dlopen = xyes; then
  20671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  20672. $as_echo_n "checking for dlopen... " >&6; }
  20673. have_dlopen=no
  20674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20675. /* end confdefs.h. */
  20676. #include <dlfcn.h>
  20677. int
  20678. main ()
  20679. {
  20680. void *handle = dlopen("", RTLD_NOW);
  20681. const char *loaderror = (char *) dlerror();
  20682. ;
  20683. return 0;
  20684. }
  20685. _ACEOF
  20686. if ac_fn_c_try_compile "$LINENO"; then :
  20687. have_dlopen=yes
  20688. fi
  20689. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  20691. $as_echo "$have_dlopen" >&6; }
  20692. if test x$have_dlopen = xyes; then
  20693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  20694. $as_echo_n "checking for dlopen in -lc... " >&6; }
  20695. if ${ac_cv_lib_c_dlopen+:} false; then :
  20696. $as_echo_n "(cached) " >&6
  20697. else
  20698. ac_check_lib_save_LIBS=$LIBS
  20699. LIBS="-lc $LIBS"
  20700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20701. /* end confdefs.h. */
  20702. /* Override any GCC internal prototype to avoid an error.
  20703. Use char because int might match the return type of a GCC
  20704. builtin and then its argument prototype would still apply. */
  20705. #ifdef __cplusplus
  20706. extern "C"
  20707. #endif
  20708. char dlopen ();
  20709. int
  20710. main ()
  20711. {
  20712. return dlopen ();
  20713. ;
  20714. return 0;
  20715. }
  20716. _ACEOF
  20717. if ac_fn_c_try_link "$LINENO"; then :
  20718. ac_cv_lib_c_dlopen=yes
  20719. else
  20720. ac_cv_lib_c_dlopen=no
  20721. fi
  20722. rm -f core conftest.err conftest.$ac_objext \
  20723. conftest$ac_exeext conftest.$ac_ext
  20724. LIBS=$ac_check_lib_save_LIBS
  20725. fi
  20726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  20727. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  20728. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  20729. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20730. else
  20731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  20732. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  20733. if ${ac_cv_lib_dl_dlopen+:} false; then :
  20734. $as_echo_n "(cached) " >&6
  20735. else
  20736. ac_check_lib_save_LIBS=$LIBS
  20737. LIBS="-ldl $LIBS"
  20738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20739. /* end confdefs.h. */
  20740. /* Override any GCC internal prototype to avoid an error.
  20741. Use char because int might match the return type of a GCC
  20742. builtin and then its argument prototype would still apply. */
  20743. #ifdef __cplusplus
  20744. extern "C"
  20745. #endif
  20746. char dlopen ();
  20747. int
  20748. main ()
  20749. {
  20750. return dlopen ();
  20751. ;
  20752. return 0;
  20753. }
  20754. _ACEOF
  20755. if ac_fn_c_try_link "$LINENO"; then :
  20756. ac_cv_lib_dl_dlopen=yes
  20757. else
  20758. ac_cv_lib_dl_dlopen=no
  20759. fi
  20760. rm -f core conftest.err conftest.$ac_objext \
  20761. conftest$ac_exeext conftest.$ac_ext
  20762. LIBS=$ac_check_lib_save_LIBS
  20763. fi
  20764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  20765. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  20766. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  20767. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  20768. else
  20769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  20770. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  20771. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  20772. $as_echo_n "(cached) " >&6
  20773. else
  20774. ac_check_lib_save_LIBS=$LIBS
  20775. LIBS="-lltdl $LIBS"
  20776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20777. /* end confdefs.h. */
  20778. /* Override any GCC internal prototype to avoid an error.
  20779. Use char because int might match the return type of a GCC
  20780. builtin and then its argument prototype would still apply. */
  20781. #ifdef __cplusplus
  20782. extern "C"
  20783. #endif
  20784. char dlopen ();
  20785. int
  20786. main ()
  20787. {
  20788. return dlopen ();
  20789. ;
  20790. return 0;
  20791. }
  20792. _ACEOF
  20793. if ac_fn_c_try_link "$LINENO"; then :
  20794. ac_cv_lib_ltdl_dlopen=yes
  20795. else
  20796. ac_cv_lib_ltdl_dlopen=no
  20797. fi
  20798. rm -f core conftest.err conftest.$ac_objext \
  20799. conftest$ac_exeext conftest.$ac_ext
  20800. LIBS=$ac_check_lib_save_LIBS
  20801. fi
  20802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  20803. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  20804. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  20805. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  20806. fi
  20807. fi
  20808. fi
  20809. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  20810. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  20811. have_loadso=yes
  20812. fi
  20813. fi
  20814. }
  20815. CheckUSBHID()
  20816. {
  20817. case "$host" in
  20818. *-*-*bsd*|*-*-dragonfly*)
  20819. if test x$enable_joystick = xyes; then
  20820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  20821. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  20822. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  20823. $as_echo_n "(cached) " >&6
  20824. else
  20825. ac_check_lib_save_LIBS=$LIBS
  20826. LIBS="-lusbhid $LIBS"
  20827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20828. /* end confdefs.h. */
  20829. /* Override any GCC internal prototype to avoid an error.
  20830. Use char because int might match the return type of a GCC
  20831. builtin and then its argument prototype would still apply. */
  20832. #ifdef __cplusplus
  20833. extern "C"
  20834. #endif
  20835. char hid_init ();
  20836. int
  20837. main ()
  20838. {
  20839. return hid_init ();
  20840. ;
  20841. return 0;
  20842. }
  20843. _ACEOF
  20844. if ac_fn_c_try_link "$LINENO"; then :
  20845. ac_cv_lib_usbhid_hid_init=yes
  20846. else
  20847. ac_cv_lib_usbhid_hid_init=no
  20848. fi
  20849. rm -f core conftest.err conftest.$ac_objext \
  20850. conftest$ac_exeext conftest.$ac_ext
  20851. LIBS=$ac_check_lib_save_LIBS
  20852. fi
  20853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  20854. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  20855. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  20856. have_libusbhid=yes
  20857. fi
  20858. if test x$have_libusbhid = xyes; then
  20859. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  20860. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  20861. USB_CFLAGS="-DHAVE_USBHID_H"
  20862. fi
  20863. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  20864. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  20865. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  20866. fi
  20867. USB_LIBS="$USB_LIBS -lusbhid"
  20868. else
  20869. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  20870. if test "x$ac_cv_header_usb_h" = xyes; then :
  20871. USB_CFLAGS="-DHAVE_USB_H"
  20872. fi
  20873. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20874. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20875. USB_CFLAGS="-DHAVE_LIBUSB_H"
  20876. fi
  20877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  20878. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  20879. if ${ac_cv_lib_usb_hid_init+:} false; then :
  20880. $as_echo_n "(cached) " >&6
  20881. else
  20882. ac_check_lib_save_LIBS=$LIBS
  20883. LIBS="-lusb $LIBS"
  20884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20885. /* end confdefs.h. */
  20886. /* Override any GCC internal prototype to avoid an error.
  20887. Use char because int might match the return type of a GCC
  20888. builtin and then its argument prototype would still apply. */
  20889. #ifdef __cplusplus
  20890. extern "C"
  20891. #endif
  20892. char hid_init ();
  20893. int
  20894. main ()
  20895. {
  20896. return hid_init ();
  20897. ;
  20898. return 0;
  20899. }
  20900. _ACEOF
  20901. if ac_fn_c_try_link "$LINENO"; then :
  20902. ac_cv_lib_usb_hid_init=yes
  20903. else
  20904. ac_cv_lib_usb_hid_init=no
  20905. fi
  20906. rm -f core conftest.err conftest.$ac_objext \
  20907. conftest$ac_exeext conftest.$ac_ext
  20908. LIBS=$ac_check_lib_save_LIBS
  20909. fi
  20910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  20911. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  20912. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  20913. USB_LIBS="$USB_LIBS -lusb"
  20914. fi
  20915. fi
  20916. save_CFLAGS="$CFLAGS"
  20917. CFLAGS="$CFLAGS $USB_CFLAGS"
  20918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  20919. $as_echo_n "checking for usbhid... " >&6; }
  20920. have_usbhid=no
  20921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20922. /* end confdefs.h. */
  20923. #include <sys/types.h>
  20924. #if defined(HAVE_USB_H)
  20925. #include <usb.h>
  20926. #endif
  20927. #ifdef __DragonFly__
  20928. # include <bus/u4b/usb.h>
  20929. # include <bus/u4b/usbhid.h>
  20930. #else
  20931. # include <dev/usb/usb.h>
  20932. # include <dev/usb/usbhid.h>
  20933. #endif
  20934. #if defined(HAVE_USBHID_H)
  20935. #include <usbhid.h>
  20936. #elif defined(HAVE_LIBUSB_H)
  20937. #include <libusb.h>
  20938. #elif defined(HAVE_LIBUSBHID_H)
  20939. #include <libusbhid.h>
  20940. #endif
  20941. int
  20942. main ()
  20943. {
  20944. struct report_desc *repdesc;
  20945. struct usb_ctl_report *repbuf;
  20946. hid_kind_t hidkind;
  20947. ;
  20948. return 0;
  20949. }
  20950. _ACEOF
  20951. if ac_fn_c_try_compile "$LINENO"; then :
  20952. have_usbhid=yes
  20953. fi
  20954. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  20956. $as_echo "$have_usbhid" >&6; }
  20957. if test x$have_usbhid = xyes; then
  20958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  20959. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  20960. have_usbhid_ucr_data=no
  20961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20962. /* end confdefs.h. */
  20963. #include <sys/types.h>
  20964. #if defined(HAVE_USB_H)
  20965. #include <usb.h>
  20966. #endif
  20967. #ifdef __DragonFly__
  20968. # include <bus/u4b/usb.h>
  20969. # include <bus/u4b/usbhid.h>
  20970. #else
  20971. # include <dev/usb/usb.h>
  20972. # include <dev/usb/usbhid.h>
  20973. #endif
  20974. #if defined(HAVE_USBHID_H)
  20975. #include <usbhid.h>
  20976. #elif defined(HAVE_LIBUSB_H)
  20977. #include <libusb.h>
  20978. #elif defined(HAVE_LIBUSBHID_H)
  20979. #include <libusbhid.h>
  20980. #endif
  20981. int
  20982. main ()
  20983. {
  20984. struct usb_ctl_report buf;
  20985. if (buf.ucr_data) { }
  20986. ;
  20987. return 0;
  20988. }
  20989. _ACEOF
  20990. if ac_fn_c_try_compile "$LINENO"; then :
  20991. have_usbhid_ucr_data=yes
  20992. fi
  20993. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20994. if test x$have_usbhid_ucr_data = xyes; then
  20995. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  20996. fi
  20997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  20998. $as_echo "$have_usbhid_ucr_data" >&6; }
  20999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  21000. $as_echo_n "checking for new usbhid API... " >&6; }
  21001. have_usbhid_new=no
  21002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21003. /* end confdefs.h. */
  21004. #include <sys/types.h>
  21005. #if defined(HAVE_USB_H)
  21006. #include <usb.h>
  21007. #endif
  21008. #ifdef __DragonFly__
  21009. #include <bus/u4b/usb.h>
  21010. #include <bus/u4b/usbhid.h>
  21011. #else
  21012. #include <dev/usb/usb.h>
  21013. #include <dev/usb/usbhid.h>
  21014. #endif
  21015. #if defined(HAVE_USBHID_H)
  21016. #include <usbhid.h>
  21017. #elif defined(HAVE_LIBUSB_H)
  21018. #include <libusb.h>
  21019. #elif defined(HAVE_LIBUSBHID_H)
  21020. #include <libusbhid.h>
  21021. #endif
  21022. int
  21023. main ()
  21024. {
  21025. report_desc_t d;
  21026. hid_start_parse(d, 1, 1);
  21027. ;
  21028. return 0;
  21029. }
  21030. _ACEOF
  21031. if ac_fn_c_try_compile "$LINENO"; then :
  21032. have_usbhid_new=yes
  21033. fi
  21034. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21035. if test x$have_usbhid_new = xyes; then
  21036. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  21037. fi
  21038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  21039. $as_echo "$have_usbhid_new" >&6; }
  21040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  21041. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  21042. have_machine_joystick=no
  21043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21044. /* end confdefs.h. */
  21045. #include <machine/joystick.h>
  21046. int
  21047. main ()
  21048. {
  21049. struct joystick t;
  21050. ;
  21051. return 0;
  21052. }
  21053. _ACEOF
  21054. if ac_fn_c_try_compile "$LINENO"; then :
  21055. have_machine_joystick=yes
  21056. fi
  21057. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21058. if test x$have_machine_joystick = xyes; then
  21059. $as_echo "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  21060. fi
  21061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  21062. $as_echo "$have_machine_joystick" >&6; }
  21063. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  21064. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  21065. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  21066. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  21067. have_joystick=yes
  21068. fi
  21069. CFLAGS="$save_CFLAGS"
  21070. fi
  21071. ;;
  21072. esac
  21073. }
  21074. CheckHIDAPI()
  21075. {
  21076. # Check whether --enable-hidapi was given.
  21077. if test "${enable_hidapi+set}" = set; then :
  21078. enableval=$enable_hidapi;
  21079. else
  21080. enable_hidapi=yes
  21081. fi
  21082. # Check whether --enable-hidapi-libusb was given.
  21083. if test "${enable_hidapi_libusb+set}" = set; then :
  21084. enableval=$enable_hidapi_libusb;
  21085. else
  21086. enable_hidapi_libusb=maybe
  21087. fi
  21088. if test x$enable_joystick = xyes -a x$enable_hidapi = xyes; then
  21089. case "$host" in
  21090. # libusb does not support iOS
  21091. *-ios-* )
  21092. enable_hidapi_libusb=no
  21093. ;;
  21094. # On the other hand, *BSD specifically uses libusb only
  21095. *-*-*bsd* )
  21096. enable_hidapi_libusb=yes
  21097. require_hidapi_libusb=yes
  21098. ;;
  21099. esac
  21100. hidapi_support=yes
  21101. if test x$enable_hidapi_libusb = xyes; then
  21102. pkg_failed=no
  21103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  21104. $as_echo_n "checking for libusb-1.0... " >&6; }
  21105. if test -n "$LIBUSB_CFLAGS"; then
  21106. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  21107. elif test -n "$PKG_CONFIG"; then
  21108. if test -n "$PKG_CONFIG" && \
  21109. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  21110. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  21111. ac_status=$?
  21112. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21113. test $ac_status = 0; }; then
  21114. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  21115. test "x$?" != "x0" && pkg_failed=yes
  21116. else
  21117. pkg_failed=yes
  21118. fi
  21119. else
  21120. pkg_failed=untried
  21121. fi
  21122. if test -n "$LIBUSB_LIBS"; then
  21123. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  21124. elif test -n "$PKG_CONFIG"; then
  21125. if test -n "$PKG_CONFIG" && \
  21126. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  21127. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  21128. ac_status=$?
  21129. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21130. test $ac_status = 0; }; then
  21131. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  21132. test "x$?" != "x0" && pkg_failed=yes
  21133. else
  21134. pkg_failed=yes
  21135. fi
  21136. else
  21137. pkg_failed=untried
  21138. fi
  21139. if test $pkg_failed = yes; then
  21140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21141. $as_echo "no" >&6; }
  21142. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21143. _pkg_short_errors_supported=yes
  21144. else
  21145. _pkg_short_errors_supported=no
  21146. fi
  21147. if test $_pkg_short_errors_supported = yes; then
  21148. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  21149. else
  21150. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  21151. fi
  21152. # Put the nasty error message in config.log where it belongs
  21153. echo "$LIBUSB_PKG_ERRORS" >&5
  21154. have_libusb=no
  21155. elif test $pkg_failed = untried; then
  21156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21157. $as_echo "no" >&6; }
  21158. have_libusb=no
  21159. else
  21160. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  21161. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  21162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21163. $as_echo "yes" >&6; }
  21164. have_libusb=yes
  21165. fi
  21166. save_CPPFLAGS="$CPPFLAGS"
  21167. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  21168. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  21169. if test "x$ac_cv_header_libusb_h" = xyes; then :
  21170. have_libusb_h=yes
  21171. else
  21172. have_libusb_h=no
  21173. fi
  21174. CPPFLAGS="$save_CPPFLAGS"
  21175. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  21176. hidapi_support=no
  21177. fi
  21178. fi
  21179. if test x$hidapi_support = xyes; then
  21180. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  21181. EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
  21182. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  21183. SOURCES="$SOURCES $srcdir/src/hidapi/SDL_hidapi.c"
  21184. if test x$have_libusb_h = xyes; then
  21185. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  21186. if test x$require_hidapi_libusb = xyes; then
  21187. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  21188. else
  21189. if test x$have_loadso != xyes; then
  21190. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  21191. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  21192. fi
  21193. # libusb is loaded dynamically, so don't add it to LDFLAGS
  21194. libusb_lib=""
  21195. case "$host" in
  21196. *-*-darwin* )
  21197. libusb_lib="libusb-1.0.0.dylib"
  21198. ;;
  21199. *-*-cygwin* | *-*-mingw* )
  21200. libusb_lib="libusb-1.0.dll"
  21201. ;;
  21202. esac
  21203. if test x$libusb_lib = x; then
  21204. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  21205. fi
  21206. cat >>confdefs.h <<_ACEOF
  21207. #define SDL_LIBUSB_DYNAMIC "$libusb_lib"
  21208. _ACEOF
  21209. fi
  21210. fi
  21211. fi
  21212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi support" >&5
  21213. $as_echo_n "checking for hidapi support... " >&6; }
  21214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  21215. $as_echo "$hidapi_support" >&6; }
  21216. fi
  21217. }
  21218. CheckClockGettime()
  21219. {
  21220. # Check whether --enable-clock_gettime was given.
  21221. if test "${enable_clock_gettime+set}" = set; then :
  21222. enableval=$enable_clock_gettime;
  21223. else
  21224. enable_clock_gettime=yes
  21225. fi
  21226. if test x$enable_clock_gettime = xyes; then
  21227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  21228. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  21229. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  21230. $as_echo_n "(cached) " >&6
  21231. else
  21232. ac_check_lib_save_LIBS=$LIBS
  21233. LIBS="-lrt $LIBS"
  21234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21235. /* end confdefs.h. */
  21236. /* Override any GCC internal prototype to avoid an error.
  21237. Use char because int might match the return type of a GCC
  21238. builtin and then its argument prototype would still apply. */
  21239. #ifdef __cplusplus
  21240. extern "C"
  21241. #endif
  21242. char clock_gettime ();
  21243. int
  21244. main ()
  21245. {
  21246. return clock_gettime ();
  21247. ;
  21248. return 0;
  21249. }
  21250. _ACEOF
  21251. if ac_fn_c_try_link "$LINENO"; then :
  21252. ac_cv_lib_rt_clock_gettime=yes
  21253. else
  21254. ac_cv_lib_rt_clock_gettime=no
  21255. fi
  21256. rm -f core conftest.err conftest.$ac_objext \
  21257. conftest$ac_exeext conftest.$ac_ext
  21258. LIBS=$ac_check_lib_save_LIBS
  21259. fi
  21260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  21261. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  21262. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  21263. have_clock_gettime=yes
  21264. fi
  21265. if test x$have_clock_gettime = xyes; then
  21266. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  21267. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  21268. else
  21269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  21270. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  21271. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  21272. $as_echo_n "(cached) " >&6
  21273. else
  21274. ac_check_lib_save_LIBS=$LIBS
  21275. LIBS="-lc $LIBS"
  21276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21277. /* end confdefs.h. */
  21278. /* Override any GCC internal prototype to avoid an error.
  21279. Use char because int might match the return type of a GCC
  21280. builtin and then its argument prototype would still apply. */
  21281. #ifdef __cplusplus
  21282. extern "C"
  21283. #endif
  21284. char clock_gettime ();
  21285. int
  21286. main ()
  21287. {
  21288. return clock_gettime ();
  21289. ;
  21290. return 0;
  21291. }
  21292. _ACEOF
  21293. if ac_fn_c_try_link "$LINENO"; then :
  21294. ac_cv_lib_c_clock_gettime=yes
  21295. else
  21296. ac_cv_lib_c_clock_gettime=no
  21297. fi
  21298. rm -f core conftest.err conftest.$ac_objext \
  21299. conftest$ac_exeext conftest.$ac_ext
  21300. LIBS=$ac_check_lib_save_LIBS
  21301. fi
  21302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  21303. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  21304. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  21305. have_clock_gettime=yes
  21306. fi
  21307. if test x$have_clock_gettime = xyes; then
  21308. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  21309. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  21310. fi
  21311. fi
  21312. fi
  21313. }
  21314. CheckLinuxVersion()
  21315. {
  21316. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  21317. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  21318. have_linux_version_h=yes
  21319. fi
  21320. if test x$have_linux_version_h = xyes; then
  21321. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  21322. fi
  21323. }
  21324. CheckRPATH()
  21325. {
  21326. # Check whether --enable-rpath was given.
  21327. if test "${enable_rpath+set}" = set; then :
  21328. enableval=$enable_rpath;
  21329. else
  21330. enable_rpath=yes
  21331. fi
  21332. }
  21333. CheckEventSignals()
  21334. {
  21335. # Check whether --enable-backgrounding-signal was given.
  21336. if test "${enable_backgrounding_signal+set}" = set; then :
  21337. enableval=$enable_backgrounding_signal;
  21338. else
  21339. enable_backgrounding_signal=no
  21340. fi
  21341. if test x$enable_backgrounding_signal != xno; then
  21342. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  21343. fi
  21344. # Check whether --enable-foregrounding-signal was given.
  21345. if test "${enable_foregrounding_signal+set}" = set; then :
  21346. enableval=$enable_foregrounding_signal;
  21347. else
  21348. enable_foregrounding_signal=no
  21349. fi
  21350. if test x$enable_foregrounding_signal != xno; then
  21351. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  21352. fi
  21353. }
  21354. CheckVirtualJoystick()
  21355. {
  21356. # Check whether --enable-joystick-virtual was given.
  21357. if test "${enable_joystick_virtual+set}" = set; then :
  21358. enableval=$enable_joystick_virtual;
  21359. else
  21360. enable_joystick_virtual=yes
  21361. fi
  21362. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  21363. $as_echo "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  21364. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  21365. have_joystick_virtual=yes
  21366. fi
  21367. }
  21368. CheckWarnAll
  21369. CheckNoStrictAliasing
  21370. CheckEventSignals
  21371. have_locale=no
  21372. case "$host" in
  21373. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  21374. case "$host" in
  21375. *-*-android*)
  21376. # Android
  21377. ARCH=android
  21378. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  21379. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  21380. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  21381. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  21382. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  21383. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  21384. if test x$enable_video = xyes; then
  21385. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  21386. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  21387. SUMMARY_video="${SUMMARY_video} android"
  21388. fi
  21389. ;;
  21390. *-*-linux*) ARCH=linux ;;
  21391. *-*-uclinux*) ARCH=linux ;;
  21392. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  21393. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  21394. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  21395. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  21396. *-*-bsdi*) ARCH=bsdi ;;
  21397. *-*-freebsd*) ARCH=freebsd ;;
  21398. *-*-dragonfly*) ARCH=freebsd ;;
  21399. *-*-netbsd*) ARCH=netbsd ;;
  21400. *-*-openbsd*) ARCH=openbsd ;;
  21401. *-*-sysv5*) ARCH=sysv5 ;;
  21402. *-*-solaris*) ARCH=solaris ;;
  21403. *-*-hpux*) ARCH=hpux ;;
  21404. *-*-aix*) ARCH=aix ;;
  21405. *-*-minix*) ARCH=minix ;;
  21406. *-*-nto*) ARCH=nto
  21407. CheckQNXVideo
  21408. ;;
  21409. esac
  21410. CheckVisibilityHidden
  21411. CheckDeclarationAfterStatement
  21412. CheckDummyVideo
  21413. CheckDiskAudio
  21414. CheckDummyAudio
  21415. CheckDLOPEN
  21416. CheckARM
  21417. CheckNEON
  21418. CheckOSS
  21419. CheckALSA
  21420. CheckPipewire
  21421. CheckPulseAudio
  21422. CheckJACK
  21423. CheckARTSC
  21424. CheckESD
  21425. CheckNAS
  21426. CheckSNDIO
  21427. CheckFusionSound
  21428. CheckLibSampleRate
  21429. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  21430. CheckRPI
  21431. CheckX11
  21432. CheckDirectFB
  21433. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  21434. CheckEGL
  21435. CheckKMSDRM
  21436. CheckGLX
  21437. CheckOpenGL
  21438. CheckOpenGLES
  21439. CheckVulkan
  21440. CheckWayland
  21441. CheckInputEvents
  21442. CheckLibUDev
  21443. CheckDBus
  21444. CheckIME
  21445. CheckInotify
  21446. CheckIBus
  21447. CheckFcitx
  21448. case $ARCH in
  21449. linux)
  21450. CheckInputKD
  21451. ;;
  21452. freebsd)
  21453. CheckInputKBIO
  21454. ;;
  21455. openbsd|netbsd)
  21456. CheckInputWSCONS
  21457. ;;
  21458. esac
  21459. CheckUSBHID
  21460. CheckHIDAPI
  21461. CheckPTHREAD
  21462. CheckClockGettime
  21463. CheckLinuxVersion
  21464. CheckRPATH
  21465. CheckVivanteVideo
  21466. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  21467. have_misc=yes
  21468. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  21469. have_locale=yes
  21470. # Set up files for the audio library
  21471. if test x$enable_audio = xyes; then
  21472. case $ARCH in
  21473. sysv5|solaris|hpux)
  21474. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  21475. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  21476. SUMMARY_audio="${SUMMARY_audio} sun"
  21477. have_audio=yes
  21478. ;;
  21479. netbsd) # Don't use this on OpenBSD, it's busted.
  21480. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  21481. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  21482. SUMMARY_audio="${SUMMARY_audio} netbsd"
  21483. have_audio=yes
  21484. ;;
  21485. aix)
  21486. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  21487. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  21488. SUMMARY_audio="${SUMMARY_audio} paudio"
  21489. have_audio=yes
  21490. ;;
  21491. android)
  21492. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  21493. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  21494. SUMMARY_audio="${SUMMARY_audio} android"
  21495. have_audio=yes
  21496. ;;
  21497. nto)
  21498. CheckQNXAudio
  21499. ;;
  21500. esac
  21501. fi
  21502. # Set up files for the joystick library
  21503. if test x$enable_joystick = xyes; then
  21504. case $ARCH in
  21505. linux)
  21506. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  21507. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  21508. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21509. have_joystick=yes
  21510. ;;
  21511. freebsd)
  21512. if test x$use_input_events = xyes; then
  21513. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  21514. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  21515. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21516. have_joystick=yes
  21517. fi
  21518. ;;
  21519. android)
  21520. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  21521. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  21522. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21523. have_joystick=yes
  21524. ;;
  21525. esac
  21526. fi
  21527. # Set up files for the haptic library
  21528. if test x$enable_haptic = xyes; then
  21529. case $ARCH in
  21530. linux|freebsd)
  21531. if test x$use_input_events = xyes; then
  21532. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  21533. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  21534. have_haptic=yes
  21535. fi
  21536. ;;
  21537. android)
  21538. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  21539. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  21540. have_haptic=yes
  21541. ;;
  21542. esac
  21543. fi
  21544. # Set up files for the sensor library
  21545. if test x$enable_sensor = xyes; then
  21546. case $ARCH in
  21547. android)
  21548. $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  21549. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  21550. have_sensor=yes
  21551. ;;
  21552. esac
  21553. fi
  21554. # Set up files for the power library
  21555. if test x$enable_power = xyes; then
  21556. case $ARCH in
  21557. linux)
  21558. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  21559. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  21560. have_power=yes
  21561. ;;
  21562. android)
  21563. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  21564. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  21565. have_power=yes
  21566. ;;
  21567. esac
  21568. fi
  21569. # Set up files for the filesystem library
  21570. if test x$enable_filesystem = xyes; then
  21571. case $ARCH in
  21572. android)
  21573. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  21574. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  21575. have_filesystem=yes
  21576. ;;
  21577. *)
  21578. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  21579. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  21580. have_filesystem=yes
  21581. ;;
  21582. esac
  21583. fi
  21584. # Set up files for the timer library
  21585. if test x$enable_timers = xyes; then
  21586. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21587. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21588. have_timers=yes
  21589. fi
  21590. # Set up files for udev hotplugging support
  21591. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  21592. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  21593. fi
  21594. # Set up files for evdev input
  21595. if test x$use_input_events = xyes; then
  21596. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  21597. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  21598. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  21599. fi
  21600. # Set up files for wscons input
  21601. if test x$use_input_wscons = xyes; then
  21602. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  21603. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  21604. fi
  21605. # Set up other core UNIX files
  21606. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  21607. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  21608. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21609. ;;
  21610. *-*-cygwin* | *-*-mingw*)
  21611. ARCH=win32
  21612. if test "$build" != "$host"; then # cross-compiling
  21613. # Default cross-compile location
  21614. ac_default_prefix=/usr/local/cross-tools/$host
  21615. else
  21616. # Look for the location of the tools and install there
  21617. if test "$BUILD_PREFIX" != ""; then
  21618. ac_default_prefix=$BUILD_PREFIX
  21619. fi
  21620. fi
  21621. CheckDeclarationAfterStatement
  21622. CheckDummyVideo
  21623. CheckDiskAudio
  21624. CheckDummyAudio
  21625. CheckWINDOWS
  21626. CheckWINDOWSGL
  21627. CheckWINDOWSGLES
  21628. CheckVulkan
  21629. CheckDIRECTX
  21630. CheckHIDAPI
  21631. # Set up the core platform files
  21632. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  21633. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  21634. have_misc=yes
  21635. # Use the Windows locale APIs.
  21636. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  21637. have_locale=yes
  21638. # Set up files for the video library
  21639. if test x$enable_video = xyes; then
  21640. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  21641. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  21642. have_video=yes
  21643. # Check whether --enable-render-d3d was given.
  21644. if test "${enable_render_d3d+set}" = set; then :
  21645. enableval=$enable_render_d3d;
  21646. else
  21647. enable_render_d3d=yes
  21648. fi
  21649. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  21650. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  21651. SUMMARY_video="${SUMMARY_video} d3d9"
  21652. fi
  21653. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  21654. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  21655. SUMMARY_video="${SUMMARY_video} d3d11"
  21656. fi
  21657. fi
  21658. # Set up files for the audio library
  21659. if test x$enable_audio = xyes; then
  21660. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  21661. SUMMARY_audio="${SUMMARY_audio} winmm"
  21662. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  21663. if test x$have_dsound = xyes; then
  21664. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  21665. SUMMARY_audio="${SUMMARY_audio} directsound"
  21666. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  21667. fi
  21668. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  21669. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  21670. SUMMARY_audio="${SUMMARY_audio} wasapi"
  21671. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  21672. fi
  21673. have_audio=yes
  21674. fi
  21675. # Set up files for the joystick library
  21676. if test x$enable_joystick = xyes; then
  21677. $as_echo "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  21678. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21679. if test x$have_xinput = xyes; then
  21680. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  21681. fi
  21682. if test x$have_dinput = xyes; then
  21683. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  21684. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  21685. fi
  21686. else
  21687. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  21688. fi
  21689. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  21690. have_joystick=yes
  21691. fi
  21692. if test x$enable_haptic = xyes; then
  21693. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21694. if test x$have_xinput = xyes; then
  21695. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  21696. fi
  21697. if test x$have_dinput = xyes; then
  21698. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  21699. fi
  21700. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  21701. have_haptic=yes
  21702. fi
  21703. fi
  21704. # Set up files for the sensor library
  21705. ac_fn_c_check_header_mongrel "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  21706. if test "x$ac_cv_header_sensorsapi_h" = xyes; then :
  21707. have_winsensors=yes
  21708. else
  21709. have_winsensors=no
  21710. fi
  21711. if test x$have_winsensors = xyes; then
  21712. $as_echo "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  21713. fi
  21714. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  21715. $as_echo "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  21716. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  21717. have_sensor=yes
  21718. fi
  21719. # Set up files for the power library
  21720. if test x$enable_power = xyes; then
  21721. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  21722. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  21723. have_power=yes
  21724. fi
  21725. # Set up files for the filesystem library
  21726. if test x$enable_filesystem = xyes; then
  21727. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  21728. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  21729. have_filesystem=yes
  21730. fi
  21731. # Set up files for the thread library
  21732. if test x$enable_threads = xyes; then
  21733. $as_echo "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  21734. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  21735. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  21736. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  21737. have_threads=yes
  21738. fi
  21739. # Set up files for the timer library
  21740. if test x$enable_timers = xyes; then
  21741. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  21742. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  21743. have_timers=yes
  21744. fi
  21745. # Set up files for the shared object loading library
  21746. if test x$enable_loadso = xyes; then
  21747. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  21748. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  21749. have_loadso=yes
  21750. fi
  21751. # Set up the system libraries we need
  21752. if test -f /lib/w32api/libuuid.a; then
  21753. LIBUUID=/lib/w32api/libuuid.a
  21754. else
  21755. LIBUUID=-luuid
  21756. fi
  21757. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  21758. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  21759. # The Windows platform requires special setup
  21760. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  21761. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  21762. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  21763. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  21764. # Check to see if this is a mingw or cygwin build
  21765. have_mingw32=
  21766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  21767. $as_echo_n "checking for main in -lmingw32... " >&6; }
  21768. if ${ac_cv_lib_mingw32_main+:} false; then :
  21769. $as_echo_n "(cached) " >&6
  21770. else
  21771. ac_check_lib_save_LIBS=$LIBS
  21772. LIBS="-lmingw32 $LIBS"
  21773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21774. /* end confdefs.h. */
  21775. int
  21776. main ()
  21777. {
  21778. return main ();
  21779. ;
  21780. return 0;
  21781. }
  21782. _ACEOF
  21783. if ac_fn_c_try_link "$LINENO"; then :
  21784. ac_cv_lib_mingw32_main=yes
  21785. else
  21786. ac_cv_lib_mingw32_main=no
  21787. fi
  21788. rm -f core conftest.err conftest.$ac_objext \
  21789. conftest$ac_exeext conftest.$ac_ext
  21790. LIBS=$ac_check_lib_save_LIBS
  21791. fi
  21792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  21793. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  21794. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  21795. have_mingw32=yes
  21796. fi
  21797. if test x$have_mingw32 = xyes; then
  21798. SDL_LIBS="-lmingw32 $SDL_LIBS"
  21799. else
  21800. SDL_LIBS="-lcygwin $SDL_LIBS"
  21801. fi
  21802. ;;
  21803. *-*-beos*)
  21804. as_fn_error $? "
  21805. *** BeOS support has been removed as of SDL 2.0.2.
  21806. " "$LINENO" 5
  21807. ;;
  21808. *-*-haiku*)
  21809. ARCH=haiku
  21810. ac_default_prefix=/boot/system
  21811. CheckDummyVideo
  21812. CheckDiskAudio
  21813. CheckDummyAudio
  21814. CheckDLOPEN
  21815. CheckHaikuVideo
  21816. CheckHaikuGL
  21817. CheckPTHREAD
  21818. # Set up files for the audio library
  21819. if test x$enable_audio = xyes; then
  21820. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  21821. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  21822. SUMMARY_audio="${SUMMARY_audio} haiku"
  21823. have_audio=yes
  21824. fi
  21825. # Set up files for the joystick library
  21826. if test x$enable_joystick = xyes; then
  21827. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  21828. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  21829. have_joystick=yes
  21830. fi
  21831. # Set up files for the timer library
  21832. if test x$enable_timers = xyes; then
  21833. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  21834. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  21835. have_timers=yes
  21836. fi
  21837. # Set up files for the system power library
  21838. if test x$enable_power = xyes; then
  21839. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  21840. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  21841. have_power=yes
  21842. fi
  21843. # Set up files for the system filesystem library
  21844. if test x$enable_filesystem = xyes; then
  21845. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  21846. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  21847. have_filesystem=yes
  21848. fi
  21849. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  21850. have_misc=yes
  21851. # Set up files for the locale library
  21852. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  21853. have_locale=yes
  21854. # The Haiku platform requires special setup.
  21855. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  21856. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  21857. ;;
  21858. *-ios-*)
  21859. ARCH=ios
  21860. CheckVisibilityHidden
  21861. CheckDeclarationAfterStatement
  21862. CheckDummyVideo
  21863. CheckDiskAudio
  21864. CheckDummyAudio
  21865. CheckDLOPEN
  21866. CheckMETAL
  21867. CheckVulkan
  21868. CheckPTHREAD
  21869. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  21870. have_misc=yes
  21871. # Set up files for the locale library
  21872. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  21873. have_locale=yes
  21874. # Set up files for the audio library
  21875. if test x$enable_audio = xyes; then
  21876. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21877. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21878. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21879. have_audio=yes
  21880. fi
  21881. # Set up files for the joystick library
  21882. if test x$enable_joystick = xyes; then
  21883. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  21884. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21885. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21886. have_joystick=yes
  21887. else
  21888. # Need this code for accelerometer as joystick support
  21889. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21890. fi
  21891. # Set up files for the haptic library
  21892. #if test x$enable_haptic = xyes; then
  21893. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21894. # have_haptic=yes
  21895. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21896. #fi
  21897. # Set up files for the sensor library
  21898. if test x$enable_sensor = xyes; then
  21899. $as_echo "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  21900. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  21901. have_sensor=yes
  21902. fi
  21903. # Set up files for the power library
  21904. if test x$enable_power = xyes; then
  21905. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  21906. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  21907. have_power=yes
  21908. fi
  21909. # Set up files for the filesystem library
  21910. if test x$enable_filesystem = xyes; then
  21911. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21912. have_filesystem=yes
  21913. fi
  21914. # Set up additional files for the file library
  21915. if test x$enable_file = xyes; then
  21916. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21917. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21918. fi
  21919. # Set up files for the timer library
  21920. if test x$enable_timers = xyes; then
  21921. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21922. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21923. have_timers=yes
  21924. fi
  21925. # Set up other core UNIX files
  21926. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21927. # The iOS platform requires special setup.
  21928. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  21929. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21930. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  21931. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  21932. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21933. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  21934. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  21935. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  21936. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  21937. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  21938. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  21939. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  21940. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  21941. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  21942. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  21943. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  21944. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  21945. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  21946. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  21947. fi
  21948. ;;
  21949. *-*-darwin* )
  21950. # This could be either full "Mac OS X", or plain "Darwin" which is
  21951. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  21952. # Next line is broken, and a few files below require Mac OS X (full)
  21953. ARCH=macosx
  21954. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  21955. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  21956. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  21957. CheckVisibilityHidden
  21958. CheckDeclarationAfterStatement
  21959. CheckDummyVideo
  21960. CheckDiskAudio
  21961. CheckDummyAudio
  21962. CheckDLOPEN
  21963. CheckCOCOA
  21964. CheckMETAL
  21965. CheckX11
  21966. CheckMacGL
  21967. CheckMacGLES
  21968. CheckGLX
  21969. CheckOpenGL
  21970. CheckVulkan
  21971. CheckPTHREAD
  21972. CheckHIDAPI
  21973. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  21974. have_misc=yes
  21975. # Set up files for the locale library
  21976. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  21977. have_locale=yes
  21978. # Set up files for the audio library
  21979. if test x$enable_audio = xyes; then
  21980. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21981. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21982. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  21983. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21984. have_audio=yes
  21985. fi
  21986. # Set up files for the joystick library
  21987. if test x$enable_joystick = xyes; then
  21988. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  21989. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  21990. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21991. CheckJoystickMFI
  21992. have_joystick=yes
  21993. fi
  21994. # Set up files for the haptic library
  21995. if test x$enable_haptic = xyes; then
  21996. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  21997. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21998. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21999. have_haptic=yes
  22000. fi
  22001. # Set up files for the power library
  22002. if test x$enable_power = xyes; then
  22003. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  22004. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  22005. have_power=yes
  22006. fi
  22007. # Set up files for the filesystem library
  22008. if test x$enable_filesystem = xyes; then
  22009. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  22010. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  22011. have_filesystem=yes
  22012. fi
  22013. # Set up files for the timer library
  22014. if test x$enable_timers = xyes; then
  22015. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22016. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22017. have_timers=yes
  22018. fi
  22019. # Set up additional files for the file library
  22020. if test x$enable_file = xyes; then
  22021. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  22022. fi
  22023. # Set up other core UNIX files
  22024. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22025. # The Mac OS X platform requires special setup.
  22026. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  22027. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  22028. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  22029. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  22030. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  22031. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  22032. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  22033. fi
  22034. ;;
  22035. *-nacl|*-pnacl)
  22036. ARCH=nacl
  22037. CheckNativeClient
  22038. CheckDummyAudio
  22039. CheckDummyVideo
  22040. CheckInputEvents
  22041. CheckPTHREAD
  22042. # Set up files for the timer library
  22043. if test x$enable_timers = xyes; then
  22044. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22045. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22046. have_timers=yes
  22047. fi
  22048. if test x$enable_filesystem = xyes; then
  22049. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  22050. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  22051. have_filesystem=yes
  22052. fi
  22053. ;;
  22054. *-*-emscripten* )
  22055. if test x$enable_video = xyes; then
  22056. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  22057. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  22058. have_video=yes
  22059. SUMMARY_video="${SUMMARY_video} emscripten"
  22060. fi
  22061. if test x$enable_audio = xyes; then
  22062. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  22063. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  22064. have_audio=yes
  22065. SUMMARY_audio="${SUMMARY_audio} emscripten"
  22066. fi
  22067. CheckVisibilityHidden
  22068. CheckDeclarationAfterStatement
  22069. CheckDummyVideo
  22070. CheckDiskAudio
  22071. CheckDummyAudio
  22072. CheckPTHREAD
  22073. CheckDLOPEN
  22074. CheckClockGettime
  22075. CheckEmscriptenGLES
  22076. # Set up files for the power library
  22077. if test x$enable_power = xyes; then
  22078. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  22079. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  22080. have_power=yes
  22081. fi
  22082. # Set up files for the power library
  22083. if test x$enable_joystick = xyes; then
  22084. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  22085. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  22086. have_joystick=yes
  22087. fi
  22088. # Set up files for the filesystem library
  22089. if test x$enable_filesystem = xyes; then
  22090. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  22091. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  22092. have_filesystem=yes
  22093. fi
  22094. # Set up files for the timer library
  22095. if test x$enable_timers = xyes; then
  22096. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22097. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22098. have_timers=yes
  22099. fi
  22100. # Set up files for the locale library
  22101. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  22102. have_locale=yes
  22103. ;;
  22104. *-*-riscos*)
  22105. ARCH=riscos
  22106. CheckVisibilityHidden
  22107. CheckDeclarationAfterStatement
  22108. CheckDummyVideo
  22109. CheckDiskAudio
  22110. CheckDummyAudio
  22111. CheckDLOPEN
  22112. CheckOSS
  22113. CheckPTHREAD
  22114. CheckClockGettime
  22115. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  22116. have_misc=yes
  22117. # Set up files for the timer library
  22118. if test x$enable_timers = xyes; then
  22119. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22120. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22121. have_timers=yes
  22122. fi
  22123. ;;
  22124. *)
  22125. as_fn_error $? "
  22126. *** Unsupported host: Please add to configure.ac
  22127. " "$LINENO" 5
  22128. ;;
  22129. esac
  22130. CheckVirtualJoystick
  22131. # Check whether to install sdl2-config
  22132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  22133. $as_echo_n "checking whether to install sdl2-config... " >&6; }
  22134. # Check whether --enable-sdl2-config was given.
  22135. if test "${enable_sdl2_config+set}" = set; then :
  22136. enableval=$enable_sdl2_config; case "${enableval}" in
  22137. yes) enable_sdl2_config="TRUE" ;;
  22138. no) enable_sdl2_config="FALSE" ;;
  22139. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  22140. esac
  22141. else
  22142. enable_sdl2_config="TRUE"
  22143. fi
  22144. if test "$enable_sdl2_config" = "TRUE"; then
  22145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22146. $as_echo "yes" >&6; }
  22147. else
  22148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22149. $as_echo "no" >&6; }
  22150. fi
  22151. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  22152. # Verify that we have all the platform specific files we need
  22153. if test x$have_misc != xyes; then
  22154. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  22155. fi
  22156. if test x$have_locale != xyes; then
  22157. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  22158. fi
  22159. if test x$have_joystick != xyes; then
  22160. if test x$enable_joystick = xyes; then
  22161. $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  22162. fi
  22163. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  22164. fi
  22165. if test x$have_haptic != xyes; then
  22166. if test x$enable_haptic = xyes; then
  22167. $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  22168. fi
  22169. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  22170. fi
  22171. if test x$have_sensor != xyes; then
  22172. if test x$enable_sensor = xyes; then
  22173. $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  22174. fi
  22175. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  22176. fi
  22177. if test x$have_threads != xyes; then
  22178. if test x$enable_threads = xyes; then
  22179. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  22180. fi
  22181. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  22182. fi
  22183. if test x$have_timers != xyes; then
  22184. if test x$enable_timers = xyes; then
  22185. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  22186. fi
  22187. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  22188. fi
  22189. if test x$have_filesystem != xyes; then
  22190. if test x$enable_filesystem = xyes; then
  22191. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  22192. fi
  22193. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  22194. fi
  22195. if test x$have_loadso != xyes; then
  22196. if test x$enable_loadso = xyes; then
  22197. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  22198. fi
  22199. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  22200. fi
  22201. if test x$SDLMAIN_SOURCES = x; then
  22202. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  22203. fi
  22204. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  22205. if test x$video_wayland = xyes; then
  22206. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  22207. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  22208. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  22209. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  22210. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  22211. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  22212. echo ;\
  22213. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  22214. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  22215. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  22216. echo ;\
  22217. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  22218. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  22219. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  22220. echo ;\
  22221. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  22222. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  22223. done ;\
  22224. echo ;\
  22225. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  22226. fi
  22227. OBJECTS=`echo $SOURCES`
  22228. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  22229. for EXT in asm cc m c S; do
  22230. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  22231. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  22232. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  22233. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  22234. done
  22235. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  22236. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  22237. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  22238. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  22239. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  22240. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  22241. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  22242. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  22243. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  22244. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  22245. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  22246. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  22247. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  22248. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  22249. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  22250. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  22251. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  22252. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  22253. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  22254. # Set runtime shared library paths as needed
  22255. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  22256. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  22257. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  22258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  22259. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  22260. have_enable_new_dtags=no
  22261. save_LDFLAGS="$LDFLAGS"
  22262. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  22263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22264. /* end confdefs.h. */
  22265. int
  22266. main ()
  22267. {
  22268. ;
  22269. return 0;
  22270. }
  22271. _ACEOF
  22272. if ac_fn_c_try_link "$LINENO"; then :
  22273. have_enable_new_dtags=yes
  22274. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  22275. fi
  22276. rm -f core conftest.err conftest.$ac_objext \
  22277. conftest$ac_exeext conftest.$ac_ext
  22278. LDFLAGS="$save_LDFLAGS"
  22279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  22280. $as_echo "$have_enable_new_dtags" >&6; }
  22281. fi
  22282. if test $ARCH = solaris; then
  22283. SDL_RLD_FLAGS="-R\${libdir}"
  22284. fi
  22285. else
  22286. SDL_RLD_FLAGS=""
  22287. fi
  22288. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  22289. if test x$enable_shared = xyes; then
  22290. PKGCONFIG_LIBS_PRIV="
  22291. Libs.private:"
  22292. ENABLE_SHARED_TRUE=
  22293. ENABLE_SHARED_FALSE="#"
  22294. else
  22295. PKGCONFIG_LIBS_PRIV=
  22296. ENABLE_SHARED_TRUE="#"
  22297. ENABLE_SHARED_FALSE=
  22298. fi
  22299. if test x$enable_static = xyes; then
  22300. ENABLE_STATIC_TRUE=
  22301. ENABLE_STATIC_FALSE="#"
  22302. else
  22303. ENABLE_STATIC_TRUE="#"
  22304. ENABLE_STATIC_FALSE=
  22305. fi
  22306. cat >Makefile.rules <<__EOF__
  22307. # Build rules for objects
  22308. -include \$(OBJECTS:.lo=.d)
  22309. # Special dependency for SDL.c, since it depends on SDL_revision.h
  22310. $srcdir/src/SDL.c: update-revision
  22311. $DEPENDS
  22312. $VERSION_DEPENDS
  22313. $SDLMAIN_DEPENDS
  22314. $SDLTEST_DEPENDS
  22315. $WAYLAND_PROTOCOLS_DEPENDS
  22316. __EOF__
  22317. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  22318. ac_config_commands="$ac_config_commands sdl2_config"
  22319. SUMMARY="SDL2 Configure Summary:\n"
  22320. if test x$enable_shared = xyes; then
  22321. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  22322. fi
  22323. if test x$enable_static = xyes; then
  22324. SUMMARY="${SUMMARY}Building Static Libraries\n"
  22325. fi
  22326. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  22327. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  22328. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  22329. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  22330. if test x$have_x = xyes; then
  22331. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  22332. fi
  22333. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  22334. if test x$have_joystick_virtual = xyes; then
  22335. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  22336. else
  22337. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  22338. fi
  22339. if test x$have_samplerate_h_hdr = xyes; then
  22340. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  22341. else
  22342. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  22343. fi
  22344. if test x$have_libudev_h_hdr = xyes; then
  22345. SUMMARY="${SUMMARY}Using libudev : YES\n"
  22346. else
  22347. SUMMARY="${SUMMARY}Using libudev : NO\n"
  22348. fi
  22349. if test x$have_dbus_dbus_h_hdr = xyes; then
  22350. SUMMARY="${SUMMARY}Using dbus : YES\n"
  22351. else
  22352. SUMMARY="${SUMMARY}Using dbus : NO\n"
  22353. fi
  22354. if test x$enable_ime = xyes; then
  22355. SUMMARY="${SUMMARY}Using ime : YES\n"
  22356. else
  22357. SUMMARY="${SUMMARY}Using ime : NO\n"
  22358. fi
  22359. if test x$have_ibus_ibus_h_hdr = xyes; then
  22360. SUMMARY="${SUMMARY}Using ibus : YES\n"
  22361. else
  22362. SUMMARY="${SUMMARY}Using ibus : NO\n"
  22363. fi
  22364. if test x$have_fcitx = xyes; then
  22365. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  22366. else
  22367. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  22368. fi
  22369. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  22370. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  22371. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  22372. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  22373. SUMMARY="${SUMMARY}configure script with:\n"
  22374. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  22375. fi
  22376. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  22377. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  22378. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  22379. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  22380. SUMMARY="${SUMMARY}configure script with:\n"
  22381. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  22382. fi
  22383. ac_config_commands="$ac_config_commands summary"
  22384. cat >confcache <<\_ACEOF
  22385. # This file is a shell script that caches the results of configure
  22386. # tests run on this system so they can be shared between configure
  22387. # scripts and configure runs, see configure's option --config-cache.
  22388. # It is not useful on other systems. If it contains results you don't
  22389. # want to keep, you may remove or edit it.
  22390. #
  22391. # config.status only pays attention to the cache file if you give it
  22392. # the --recheck option to rerun configure.
  22393. #
  22394. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  22395. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  22396. # following values.
  22397. _ACEOF
  22398. # The following way of writing the cache mishandles newlines in values,
  22399. # but we know of no workaround that is simple, portable, and efficient.
  22400. # So, we kill variables containing newlines.
  22401. # Ultrix sh set writes to stderr and can't be redirected directly,
  22402. # and sets the high bit in the cache file unless we assign to the vars.
  22403. (
  22404. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  22405. eval ac_val=\$$ac_var
  22406. case $ac_val in #(
  22407. *${as_nl}*)
  22408. case $ac_var in #(
  22409. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  22410. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  22411. esac
  22412. case $ac_var in #(
  22413. _ | IFS | as_nl) ;; #(
  22414. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  22415. *) { eval $ac_var=; unset $ac_var;} ;;
  22416. esac ;;
  22417. esac
  22418. done
  22419. (set) 2>&1 |
  22420. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  22421. *${as_nl}ac_space=\ *)
  22422. # `set' does not quote correctly, so add quotes: double-quote
  22423. # substitution turns \\\\ into \\, and sed turns \\ into \.
  22424. sed -n \
  22425. "s/'/'\\\\''/g;
  22426. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  22427. ;; #(
  22428. *)
  22429. # `set' quotes correctly as required by POSIX, so do not add quotes.
  22430. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  22431. ;;
  22432. esac |
  22433. sort
  22434. ) |
  22435. sed '
  22436. /^ac_cv_env_/b end
  22437. t clear
  22438. :clear
  22439. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  22440. t end
  22441. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  22442. :end' >>confcache
  22443. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  22444. if test -w "$cache_file"; then
  22445. if test "x$cache_file" != "x/dev/null"; then
  22446. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  22447. $as_echo "$as_me: updating cache $cache_file" >&6;}
  22448. if test ! -f "$cache_file" || test -h "$cache_file"; then
  22449. cat confcache >"$cache_file"
  22450. else
  22451. case $cache_file in #(
  22452. */* | ?:*)
  22453. mv -f confcache "$cache_file"$$ &&
  22454. mv -f "$cache_file"$$ "$cache_file" ;; #(
  22455. *)
  22456. mv -f confcache "$cache_file" ;;
  22457. esac
  22458. fi
  22459. fi
  22460. else
  22461. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  22462. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  22463. fi
  22464. fi
  22465. rm -f confcache
  22466. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  22467. # Let make expand exec_prefix.
  22468. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  22469. DEFS=-DHAVE_CONFIG_H
  22470. ac_libobjs=
  22471. ac_ltlibobjs=
  22472. U=
  22473. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  22474. # 1. Remove the extension, and $U if already installed.
  22475. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  22476. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  22477. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  22478. # will be set to the directory where LIBOBJS objects are built.
  22479. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  22480. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  22481. done
  22482. LIBOBJS=$ac_libobjs
  22483. LTLIBOBJS=$ac_ltlibobjs
  22484. : "${CONFIG_STATUS=./config.status}"
  22485. ac_write_fail=0
  22486. ac_clean_files_save=$ac_clean_files
  22487. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  22488. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  22489. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  22490. as_write_fail=0
  22491. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  22492. #! $SHELL
  22493. # Generated by $as_me.
  22494. # Run this file to recreate the current configuration.
  22495. # Compiler output produced by configure, useful for debugging
  22496. # configure, is in config.log if it exists.
  22497. debug=false
  22498. ac_cs_recheck=false
  22499. ac_cs_silent=false
  22500. SHELL=\${CONFIG_SHELL-$SHELL}
  22501. export SHELL
  22502. _ASEOF
  22503. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  22504. ## -------------------- ##
  22505. ## M4sh Initialization. ##
  22506. ## -------------------- ##
  22507. # Be more Bourne compatible
  22508. DUALCASE=1; export DUALCASE # for MKS sh
  22509. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  22510. emulate sh
  22511. NULLCMD=:
  22512. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22513. # is contrary to our usage. Disable this feature.
  22514. alias -g '${1+"$@"}'='"$@"'
  22515. setopt NO_GLOB_SUBST
  22516. else
  22517. case `(set -o) 2>/dev/null` in #(
  22518. *posix*) :
  22519. set -o posix ;; #(
  22520. *) :
  22521. ;;
  22522. esac
  22523. fi
  22524. as_nl='
  22525. '
  22526. export as_nl
  22527. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  22528. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  22529. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  22530. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  22531. # Prefer a ksh shell builtin over an external printf program on Solaris,
  22532. # but without wasting forks for bash or zsh.
  22533. if test -z "$BASH_VERSION$ZSH_VERSION" \
  22534. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  22535. as_echo='print -r --'
  22536. as_echo_n='print -rn --'
  22537. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  22538. as_echo='printf %s\n'
  22539. as_echo_n='printf %s'
  22540. else
  22541. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  22542. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  22543. as_echo_n='/usr/ucb/echo -n'
  22544. else
  22545. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  22546. as_echo_n_body='eval
  22547. arg=$1;
  22548. case $arg in #(
  22549. *"$as_nl"*)
  22550. expr "X$arg" : "X\\(.*\\)$as_nl";
  22551. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  22552. esac;
  22553. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  22554. '
  22555. export as_echo_n_body
  22556. as_echo_n='sh -c $as_echo_n_body as_echo'
  22557. fi
  22558. export as_echo_body
  22559. as_echo='sh -c $as_echo_body as_echo'
  22560. fi
  22561. # The user is always right.
  22562. if test "${PATH_SEPARATOR+set}" != set; then
  22563. PATH_SEPARATOR=:
  22564. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  22565. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  22566. PATH_SEPARATOR=';'
  22567. }
  22568. fi
  22569. # IFS
  22570. # We need space, tab and new line, in precisely that order. Quoting is
  22571. # there to prevent editors from complaining about space-tab.
  22572. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  22573. # splitting by setting IFS to empty value.)
  22574. IFS=" "" $as_nl"
  22575. # Find who we are. Look in the path if we contain no directory separator.
  22576. as_myself=
  22577. case $0 in #((
  22578. *[\\/]* ) as_myself=$0 ;;
  22579. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22580. for as_dir in $PATH
  22581. do
  22582. IFS=$as_save_IFS
  22583. test -z "$as_dir" && as_dir=.
  22584. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  22585. done
  22586. IFS=$as_save_IFS
  22587. ;;
  22588. esac
  22589. # We did not find ourselves, most probably we were run as `sh COMMAND'
  22590. # in which case we are not to be found in the path.
  22591. if test "x$as_myself" = x; then
  22592. as_myself=$0
  22593. fi
  22594. if test ! -f "$as_myself"; then
  22595. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  22596. exit 1
  22597. fi
  22598. # Unset variables that we do not need and which cause bugs (e.g. in
  22599. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  22600. # suppresses any "Segmentation fault" message there. '((' could
  22601. # trigger a bug in pdksh 5.2.14.
  22602. for as_var in BASH_ENV ENV MAIL MAILPATH
  22603. do eval test x\${$as_var+set} = xset \
  22604. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  22605. done
  22606. PS1='$ '
  22607. PS2='> '
  22608. PS4='+ '
  22609. # NLS nuisances.
  22610. LC_ALL=C
  22611. export LC_ALL
  22612. LANGUAGE=C
  22613. export LANGUAGE
  22614. # CDPATH.
  22615. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22616. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  22617. # ----------------------------------------
  22618. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  22619. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  22620. # script with STATUS, using 1 if that was 0.
  22621. as_fn_error ()
  22622. {
  22623. as_status=$1; test $as_status -eq 0 && as_status=1
  22624. if test "$4"; then
  22625. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  22626. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  22627. fi
  22628. $as_echo "$as_me: error: $2" >&2
  22629. as_fn_exit $as_status
  22630. } # as_fn_error
  22631. # as_fn_set_status STATUS
  22632. # -----------------------
  22633. # Set $? to STATUS, without forking.
  22634. as_fn_set_status ()
  22635. {
  22636. return $1
  22637. } # as_fn_set_status
  22638. # as_fn_exit STATUS
  22639. # -----------------
  22640. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  22641. as_fn_exit ()
  22642. {
  22643. set +e
  22644. as_fn_set_status $1
  22645. exit $1
  22646. } # as_fn_exit
  22647. # as_fn_unset VAR
  22648. # ---------------
  22649. # Portably unset VAR.
  22650. as_fn_unset ()
  22651. {
  22652. { eval $1=; unset $1;}
  22653. }
  22654. as_unset=as_fn_unset
  22655. # as_fn_append VAR VALUE
  22656. # ----------------------
  22657. # Append the text in VALUE to the end of the definition contained in VAR. Take
  22658. # advantage of any shell optimizations that allow amortized linear growth over
  22659. # repeated appends, instead of the typical quadratic growth present in naive
  22660. # implementations.
  22661. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  22662. eval 'as_fn_append ()
  22663. {
  22664. eval $1+=\$2
  22665. }'
  22666. else
  22667. as_fn_append ()
  22668. {
  22669. eval $1=\$$1\$2
  22670. }
  22671. fi # as_fn_append
  22672. # as_fn_arith ARG...
  22673. # ------------------
  22674. # Perform arithmetic evaluation on the ARGs, and store the result in the
  22675. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  22676. # must be portable across $(()) and expr.
  22677. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  22678. eval 'as_fn_arith ()
  22679. {
  22680. as_val=$(( $* ))
  22681. }'
  22682. else
  22683. as_fn_arith ()
  22684. {
  22685. as_val=`expr "$@" || test $? -eq 1`
  22686. }
  22687. fi # as_fn_arith
  22688. if expr a : '\(a\)' >/dev/null 2>&1 &&
  22689. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  22690. as_expr=expr
  22691. else
  22692. as_expr=false
  22693. fi
  22694. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  22695. as_basename=basename
  22696. else
  22697. as_basename=false
  22698. fi
  22699. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  22700. as_dirname=dirname
  22701. else
  22702. as_dirname=false
  22703. fi
  22704. as_me=`$as_basename -- "$0" ||
  22705. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  22706. X"$0" : 'X\(//\)$' \| \
  22707. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  22708. $as_echo X/"$0" |
  22709. sed '/^.*\/\([^/][^/]*\)\/*$/{
  22710. s//\1/
  22711. q
  22712. }
  22713. /^X\/\(\/\/\)$/{
  22714. s//\1/
  22715. q
  22716. }
  22717. /^X\/\(\/\).*/{
  22718. s//\1/
  22719. q
  22720. }
  22721. s/.*/./; q'`
  22722. # Avoid depending upon Character Ranges.
  22723. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  22724. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  22725. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  22726. as_cr_digits='0123456789'
  22727. as_cr_alnum=$as_cr_Letters$as_cr_digits
  22728. ECHO_C= ECHO_N= ECHO_T=
  22729. case `echo -n x` in #(((((
  22730. -n*)
  22731. case `echo 'xy\c'` in
  22732. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  22733. xy) ECHO_C='\c';;
  22734. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  22735. ECHO_T=' ';;
  22736. esac;;
  22737. *)
  22738. ECHO_N='-n';;
  22739. esac
  22740. rm -f conf$$ conf$$.exe conf$$.file
  22741. if test -d conf$$.dir; then
  22742. rm -f conf$$.dir/conf$$.file
  22743. else
  22744. rm -f conf$$.dir
  22745. mkdir conf$$.dir 2>/dev/null
  22746. fi
  22747. if (echo >conf$$.file) 2>/dev/null; then
  22748. if ln -s conf$$.file conf$$ 2>/dev/null; then
  22749. as_ln_s='ln -s'
  22750. # ... but there are two gotchas:
  22751. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  22752. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  22753. # In both cases, we have to default to `cp -pR'.
  22754. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  22755. as_ln_s='cp -pR'
  22756. elif ln conf$$.file conf$$ 2>/dev/null; then
  22757. as_ln_s=ln
  22758. else
  22759. as_ln_s='cp -pR'
  22760. fi
  22761. else
  22762. as_ln_s='cp -pR'
  22763. fi
  22764. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  22765. rmdir conf$$.dir 2>/dev/null
  22766. # as_fn_mkdir_p
  22767. # -------------
  22768. # Create "$as_dir" as a directory, including parents if necessary.
  22769. as_fn_mkdir_p ()
  22770. {
  22771. case $as_dir in #(
  22772. -*) as_dir=./$as_dir;;
  22773. esac
  22774. test -d "$as_dir" || eval $as_mkdir_p || {
  22775. as_dirs=
  22776. while :; do
  22777. case $as_dir in #(
  22778. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  22779. *) as_qdir=$as_dir;;
  22780. esac
  22781. as_dirs="'$as_qdir' $as_dirs"
  22782. as_dir=`$as_dirname -- "$as_dir" ||
  22783. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22784. X"$as_dir" : 'X\(//\)[^/]' \| \
  22785. X"$as_dir" : 'X\(//\)$' \| \
  22786. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22787. $as_echo X"$as_dir" |
  22788. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22789. s//\1/
  22790. q
  22791. }
  22792. /^X\(\/\/\)[^/].*/{
  22793. s//\1/
  22794. q
  22795. }
  22796. /^X\(\/\/\)$/{
  22797. s//\1/
  22798. q
  22799. }
  22800. /^X\(\/\).*/{
  22801. s//\1/
  22802. q
  22803. }
  22804. s/.*/./; q'`
  22805. test -d "$as_dir" && break
  22806. done
  22807. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22808. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  22809. } # as_fn_mkdir_p
  22810. if mkdir -p . 2>/dev/null; then
  22811. as_mkdir_p='mkdir -p "$as_dir"'
  22812. else
  22813. test -d ./-p && rmdir ./-p
  22814. as_mkdir_p=false
  22815. fi
  22816. # as_fn_executable_p FILE
  22817. # -----------------------
  22818. # Test if FILE is an executable regular file.
  22819. as_fn_executable_p ()
  22820. {
  22821. test -f "$1" && test -x "$1"
  22822. } # as_fn_executable_p
  22823. as_test_x='test -x'
  22824. as_executable_p=as_fn_executable_p
  22825. # Sed expression to map a string onto a valid CPP name.
  22826. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  22827. # Sed expression to map a string onto a valid variable name.
  22828. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  22829. exec 6>&1
  22830. ## ----------------------------------- ##
  22831. ## Main body of $CONFIG_STATUS script. ##
  22832. ## ----------------------------------- ##
  22833. _ASEOF
  22834. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  22835. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22836. # Save the log message, to keep $0 and so on meaningful, and to
  22837. # report actual input values of CONFIG_FILES etc. instead of their
  22838. # values after options handling.
  22839. ac_log="
  22840. This file was extended by $as_me, which was
  22841. generated by GNU Autoconf 2.69. Invocation command line was
  22842. CONFIG_FILES = $CONFIG_FILES
  22843. CONFIG_HEADERS = $CONFIG_HEADERS
  22844. CONFIG_LINKS = $CONFIG_LINKS
  22845. CONFIG_COMMANDS = $CONFIG_COMMANDS
  22846. $ $0 $@
  22847. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  22848. "
  22849. _ACEOF
  22850. case $ac_config_files in *"
  22851. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  22852. esac
  22853. case $ac_config_headers in *"
  22854. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  22855. esac
  22856. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22857. # Files that config.status was made for.
  22858. config_files="$ac_config_files"
  22859. config_headers="$ac_config_headers"
  22860. config_commands="$ac_config_commands"
  22861. _ACEOF
  22862. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22863. ac_cs_usage="\
  22864. \`$as_me' instantiates files and other configuration actions
  22865. from templates according to the current configuration. Unless the files
  22866. and actions are specified as TAGs, all are instantiated by default.
  22867. Usage: $0 [OPTION]... [TAG]...
  22868. -h, --help print this help, then exit
  22869. -V, --version print version number and configuration settings, then exit
  22870. --config print configuration, then exit
  22871. -q, --quiet, --silent
  22872. do not print progress messages
  22873. -d, --debug don't remove temporary files
  22874. --recheck update $as_me by reconfiguring in the same conditions
  22875. --file=FILE[:TEMPLATE]
  22876. instantiate the configuration file FILE
  22877. --header=FILE[:TEMPLATE]
  22878. instantiate the configuration header FILE
  22879. Configuration files:
  22880. $config_files
  22881. Configuration headers:
  22882. $config_headers
  22883. Configuration commands:
  22884. $config_commands
  22885. Report bugs to the package provider."
  22886. _ACEOF
  22887. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22888. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  22889. ac_cs_version="\\
  22890. config.status
  22891. configured by $0, generated by GNU Autoconf 2.69,
  22892. with options \\"\$ac_cs_config\\"
  22893. Copyright (C) 2012 Free Software Foundation, Inc.
  22894. This config.status script is free software; the Free Software Foundation
  22895. gives unlimited permission to copy, distribute and modify it."
  22896. ac_pwd='$ac_pwd'
  22897. srcdir='$srcdir'
  22898. INSTALL='$INSTALL'
  22899. AWK='$AWK'
  22900. test -n "\$AWK" || AWK=awk
  22901. _ACEOF
  22902. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22903. # The default lists apply if the user does not specify any file.
  22904. ac_need_defaults=:
  22905. while test $# != 0
  22906. do
  22907. case $1 in
  22908. --*=?*)
  22909. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22910. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  22911. ac_shift=:
  22912. ;;
  22913. --*=)
  22914. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22915. ac_optarg=
  22916. ac_shift=:
  22917. ;;
  22918. *)
  22919. ac_option=$1
  22920. ac_optarg=$2
  22921. ac_shift=shift
  22922. ;;
  22923. esac
  22924. case $ac_option in
  22925. # Handling of the options.
  22926. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22927. ac_cs_recheck=: ;;
  22928. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  22929. $as_echo "$ac_cs_version"; exit ;;
  22930. --config | --confi | --conf | --con | --co | --c )
  22931. $as_echo "$ac_cs_config"; exit ;;
  22932. --debug | --debu | --deb | --de | --d | -d )
  22933. debug=: ;;
  22934. --file | --fil | --fi | --f )
  22935. $ac_shift
  22936. case $ac_optarg in
  22937. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22938. '') as_fn_error $? "missing file argument" ;;
  22939. esac
  22940. as_fn_append CONFIG_FILES " '$ac_optarg'"
  22941. ac_need_defaults=false;;
  22942. --header | --heade | --head | --hea )
  22943. $ac_shift
  22944. case $ac_optarg in
  22945. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22946. esac
  22947. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  22948. ac_need_defaults=false;;
  22949. --he | --h)
  22950. # Conflict between --help and --header
  22951. as_fn_error $? "ambiguous option: \`$1'
  22952. Try \`$0 --help' for more information.";;
  22953. --help | --hel | -h )
  22954. $as_echo "$ac_cs_usage"; exit ;;
  22955. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  22956. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  22957. ac_cs_silent=: ;;
  22958. # This is an error.
  22959. -*) as_fn_error $? "unrecognized option: \`$1'
  22960. Try \`$0 --help' for more information." ;;
  22961. *) as_fn_append ac_config_targets " $1"
  22962. ac_need_defaults=false ;;
  22963. esac
  22964. shift
  22965. done
  22966. ac_configure_extra_args=
  22967. if $ac_cs_silent; then
  22968. exec 6>/dev/null
  22969. ac_configure_extra_args="$ac_configure_extra_args --silent"
  22970. fi
  22971. _ACEOF
  22972. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22973. if \$ac_cs_recheck; then
  22974. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  22975. shift
  22976. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  22977. CONFIG_SHELL='$SHELL'
  22978. export CONFIG_SHELL
  22979. exec "\$@"
  22980. fi
  22981. _ACEOF
  22982. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22983. exec 5>>config.log
  22984. {
  22985. echo
  22986. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22987. ## Running $as_me. ##
  22988. _ASBOX
  22989. $as_echo "$ac_log"
  22990. } >&5
  22991. _ACEOF
  22992. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22993. #
  22994. # INIT-COMMANDS
  22995. #
  22996. # The HP-UX ksh and POSIX shell print the target directory to stdout
  22997. # if CDPATH is set.
  22998. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22999. sed_quote_subst='$sed_quote_subst'
  23000. double_quote_subst='$double_quote_subst'
  23001. delay_variable_subst='$delay_variable_subst'
  23002. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  23003. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  23004. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  23005. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  23006. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  23007. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  23008. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  23009. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  23010. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  23011. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  23012. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  23013. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  23014. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  23015. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  23016. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  23017. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  23018. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  23019. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  23020. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  23021. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  23022. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  23023. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  23024. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  23025. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  23026. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  23027. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  23028. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  23029. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  23030. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  23031. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  23032. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  23033. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  23034. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  23035. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  23036. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  23037. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  23038. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  23039. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  23040. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  23041. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  23042. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  23043. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  23044. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  23045. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  23046. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  23047. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  23048. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  23049. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  23050. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  23051. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  23052. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  23053. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  23054. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  23055. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  23056. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  23057. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  23058. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  23059. 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"`'
  23060. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  23061. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  23062. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  23063. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  23064. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  23065. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  23066. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  23067. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  23068. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  23069. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  23070. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  23071. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  23072. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  23073. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  23074. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  23075. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  23076. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  23077. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  23078. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  23079. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  23080. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  23081. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  23082. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  23083. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  23084. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  23085. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  23086. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  23087. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  23088. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  23089. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  23090. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  23091. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  23092. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  23093. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  23094. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  23095. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  23096. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  23097. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  23098. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  23099. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  23100. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  23101. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  23102. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  23103. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  23104. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  23105. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  23106. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  23107. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  23108. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  23109. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  23110. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  23111. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  23112. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  23113. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  23114. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  23115. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  23116. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  23117. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  23118. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  23119. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  23120. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  23121. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  23122. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  23123. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  23124. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  23125. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  23126. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  23127. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  23128. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  23129. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  23130. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  23131. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  23132. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  23133. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  23134. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  23135. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  23136. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  23137. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  23138. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  23139. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  23140. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  23141. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  23142. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23143. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23144. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23145. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23146. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23147. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  23148. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  23149. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  23150. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  23151. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  23152. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23153. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  23154. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  23155. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  23156. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  23157. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  23158. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  23159. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  23160. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  23161. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  23162. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  23163. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  23164. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  23165. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  23166. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23167. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  23168. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23169. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  23170. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  23171. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23172. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23173. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23174. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23175. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23176. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23177. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23178. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23179. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23180. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23181. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23182. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23183. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  23184. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  23185. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  23186. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23187. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  23188. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23189. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  23190. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23191. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  23192. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  23193. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  23194. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  23195. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  23196. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  23197. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  23198. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  23199. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  23200. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  23201. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  23202. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  23203. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  23204. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  23205. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  23206. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  23207. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  23208. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  23209. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23210. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23211. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  23212. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  23213. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  23214. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  23215. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23216. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23217. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23218. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23219. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  23220. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23221. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  23222. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  23223. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  23224. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  23225. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  23226. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  23227. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  23228. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  23229. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  23230. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  23231. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  23232. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  23233. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  23234. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  23235. LTCC='$LTCC'
  23236. LTCFLAGS='$LTCFLAGS'
  23237. compiler='$compiler_DEFAULT'
  23238. # A function that is used when there is no print builtin or printf.
  23239. func_fallback_echo ()
  23240. {
  23241. eval 'cat <<_LTECHO_EOF
  23242. \$1
  23243. _LTECHO_EOF'
  23244. }
  23245. # Quote evaled strings.
  23246. for var in AS \
  23247. DLLTOOL \
  23248. OBJDUMP \
  23249. SHELL \
  23250. ECHO \
  23251. PATH_SEPARATOR \
  23252. SED \
  23253. GREP \
  23254. EGREP \
  23255. FGREP \
  23256. LD \
  23257. NM \
  23258. LN_S \
  23259. lt_SP2NL \
  23260. lt_NL2SP \
  23261. reload_flag \
  23262. deplibs_check_method \
  23263. file_magic_cmd \
  23264. file_magic_glob \
  23265. want_nocaseglob \
  23266. sharedlib_from_linklib_cmd \
  23267. AR \
  23268. AR_FLAGS \
  23269. archiver_list_spec \
  23270. STRIP \
  23271. RANLIB \
  23272. CC \
  23273. CFLAGS \
  23274. compiler \
  23275. lt_cv_sys_global_symbol_pipe \
  23276. lt_cv_sys_global_symbol_to_cdecl \
  23277. lt_cv_sys_global_symbol_to_c_name_address \
  23278. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  23279. nm_file_list_spec \
  23280. lt_prog_compiler_no_builtin_flag \
  23281. lt_prog_compiler_pic \
  23282. lt_prog_compiler_wl \
  23283. lt_prog_compiler_static \
  23284. lt_cv_prog_compiler_c_o \
  23285. need_locks \
  23286. MANIFEST_TOOL \
  23287. DSYMUTIL \
  23288. NMEDIT \
  23289. LIPO \
  23290. OTOOL \
  23291. OTOOL64 \
  23292. shrext_cmds \
  23293. export_dynamic_flag_spec \
  23294. whole_archive_flag_spec \
  23295. compiler_needs_object \
  23296. with_gnu_ld \
  23297. allow_undefined_flag \
  23298. no_undefined_flag \
  23299. hardcode_libdir_flag_spec \
  23300. hardcode_libdir_separator \
  23301. exclude_expsyms \
  23302. include_expsyms \
  23303. file_list_spec \
  23304. variables_saved_for_relink \
  23305. libname_spec \
  23306. library_names_spec \
  23307. soname_spec \
  23308. install_override_mode \
  23309. finish_eval \
  23310. old_striplib \
  23311. striplib \
  23312. compiler_lib_search_dirs \
  23313. predep_objects \
  23314. postdep_objects \
  23315. predeps \
  23316. postdeps \
  23317. compiler_lib_search_path \
  23318. LD_RC \
  23319. LD_CXX \
  23320. reload_flag_RC \
  23321. reload_flag_CXX \
  23322. compiler_RC \
  23323. compiler_CXX \
  23324. lt_prog_compiler_no_builtin_flag_RC \
  23325. lt_prog_compiler_no_builtin_flag_CXX \
  23326. lt_prog_compiler_pic_RC \
  23327. lt_prog_compiler_pic_CXX \
  23328. lt_prog_compiler_wl_RC \
  23329. lt_prog_compiler_wl_CXX \
  23330. lt_prog_compiler_static_RC \
  23331. lt_prog_compiler_static_CXX \
  23332. lt_cv_prog_compiler_c_o_RC \
  23333. lt_cv_prog_compiler_c_o_CXX \
  23334. export_dynamic_flag_spec_RC \
  23335. export_dynamic_flag_spec_CXX \
  23336. whole_archive_flag_spec_RC \
  23337. whole_archive_flag_spec_CXX \
  23338. compiler_needs_object_RC \
  23339. compiler_needs_object_CXX \
  23340. with_gnu_ld_RC \
  23341. with_gnu_ld_CXX \
  23342. allow_undefined_flag_RC \
  23343. allow_undefined_flag_CXX \
  23344. no_undefined_flag_RC \
  23345. no_undefined_flag_CXX \
  23346. hardcode_libdir_flag_spec_RC \
  23347. hardcode_libdir_flag_spec_CXX \
  23348. hardcode_libdir_separator_RC \
  23349. hardcode_libdir_separator_CXX \
  23350. exclude_expsyms_RC \
  23351. exclude_expsyms_CXX \
  23352. include_expsyms_RC \
  23353. include_expsyms_CXX \
  23354. file_list_spec_RC \
  23355. file_list_spec_CXX \
  23356. compiler_lib_search_dirs_RC \
  23357. compiler_lib_search_dirs_CXX \
  23358. predep_objects_RC \
  23359. predep_objects_CXX \
  23360. postdep_objects_RC \
  23361. postdep_objects_CXX \
  23362. predeps_RC \
  23363. predeps_CXX \
  23364. postdeps_RC \
  23365. postdeps_CXX \
  23366. compiler_lib_search_path_RC \
  23367. compiler_lib_search_path_CXX; do
  23368. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  23369. *[\\\\\\\`\\"\\\$]*)
  23370. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  23371. ;;
  23372. *)
  23373. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  23374. ;;
  23375. esac
  23376. done
  23377. # Double-quote double-evaled strings.
  23378. for var in reload_cmds \
  23379. old_postinstall_cmds \
  23380. old_postuninstall_cmds \
  23381. old_archive_cmds \
  23382. extract_expsyms_cmds \
  23383. old_archive_from_new_cmds \
  23384. old_archive_from_expsyms_cmds \
  23385. archive_cmds \
  23386. archive_expsym_cmds \
  23387. module_cmds \
  23388. module_expsym_cmds \
  23389. export_symbols_cmds \
  23390. prelink_cmds \
  23391. postlink_cmds \
  23392. postinstall_cmds \
  23393. postuninstall_cmds \
  23394. finish_cmds \
  23395. sys_lib_search_path_spec \
  23396. sys_lib_dlsearch_path_spec \
  23397. reload_cmds_RC \
  23398. reload_cmds_CXX \
  23399. old_archive_cmds_RC \
  23400. old_archive_cmds_CXX \
  23401. old_archive_from_new_cmds_RC \
  23402. old_archive_from_new_cmds_CXX \
  23403. old_archive_from_expsyms_cmds_RC \
  23404. old_archive_from_expsyms_cmds_CXX \
  23405. archive_cmds_RC \
  23406. archive_cmds_CXX \
  23407. archive_expsym_cmds_RC \
  23408. archive_expsym_cmds_CXX \
  23409. module_cmds_RC \
  23410. module_cmds_CXX \
  23411. module_expsym_cmds_RC \
  23412. module_expsym_cmds_CXX \
  23413. export_symbols_cmds_RC \
  23414. export_symbols_cmds_CXX \
  23415. prelink_cmds_RC \
  23416. prelink_cmds_CXX \
  23417. postlink_cmds_RC \
  23418. postlink_cmds_CXX; do
  23419. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  23420. *[\\\\\\\`\\"\\\$]*)
  23421. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  23422. ;;
  23423. *)
  23424. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  23425. ;;
  23426. esac
  23427. done
  23428. ac_aux_dir='$ac_aux_dir'
  23429. xsi_shell='$xsi_shell'
  23430. lt_shell_append='$lt_shell_append'
  23431. # See if we are running on zsh, and set the options which allow our
  23432. # commands through without removal of \ escapes INIT.
  23433. if test -n "\${ZSH_VERSION+set}" ; then
  23434. setopt NO_GLOB_SUBST
  23435. fi
  23436. PACKAGE='$PACKAGE'
  23437. VERSION='$VERSION'
  23438. TIMESTAMP='$TIMESTAMP'
  23439. RM='$RM'
  23440. ofile='$ofile'
  23441. SUMMARY="$SUMMARY"
  23442. _ACEOF
  23443. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23444. # Handling of arguments.
  23445. for ac_config_target in $ac_config_targets
  23446. do
  23447. case $ac_config_target in
  23448. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  23449. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  23450. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  23451. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  23452. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  23453. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  23454. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  23455. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  23456. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  23457. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  23458. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  23459. esac
  23460. done
  23461. # If the user did not use the arguments to specify the items to instantiate,
  23462. # then the envvar interface is used. Set only those that are not.
  23463. # We use the long form for the default assignment because of an extremely
  23464. # bizarre bug on SunOS 4.1.3.
  23465. if $ac_need_defaults; then
  23466. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  23467. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  23468. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  23469. fi
  23470. # Have a temporary directory for convenience. Make it in the build tree
  23471. # simply because there is no reason against having it here, and in addition,
  23472. # creating and moving files from /tmp can sometimes cause problems.
  23473. # Hook for its removal unless debugging.
  23474. # Note that there is a small window in which the directory will not be cleaned:
  23475. # after its creation but before its name has been assigned to `$tmp'.
  23476. $debug ||
  23477. {
  23478. tmp= ac_tmp=
  23479. trap 'exit_status=$?
  23480. : "${ac_tmp:=$tmp}"
  23481. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  23482. ' 0
  23483. trap 'as_fn_exit 1' 1 2 13 15
  23484. }
  23485. # Create a (secure) tmp directory for tmp files.
  23486. {
  23487. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  23488. test -d "$tmp"
  23489. } ||
  23490. {
  23491. tmp=./conf$$-$RANDOM
  23492. (umask 077 && mkdir "$tmp")
  23493. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  23494. ac_tmp=$tmp
  23495. # Set up the scripts for CONFIG_FILES section.
  23496. # No need to generate them if there are no CONFIG_FILES.
  23497. # This happens for instance with `./config.status config.h'.
  23498. if test -n "$CONFIG_FILES"; then
  23499. ac_cr=`echo X | tr X '\015'`
  23500. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  23501. # But we know of no other shell where ac_cr would be empty at this
  23502. # point, so we can use a bashism as a fallback.
  23503. if test "x$ac_cr" = x; then
  23504. eval ac_cr=\$\'\\r\'
  23505. fi
  23506. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  23507. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  23508. ac_cs_awk_cr='\\r'
  23509. else
  23510. ac_cs_awk_cr=$ac_cr
  23511. fi
  23512. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  23513. _ACEOF
  23514. {
  23515. echo "cat >conf$$subs.awk <<_ACEOF" &&
  23516. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  23517. echo "_ACEOF"
  23518. } >conf$$subs.sh ||
  23519. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23520. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  23521. ac_delim='%!_!# '
  23522. for ac_last_try in false false false false false :; do
  23523. . ./conf$$subs.sh ||
  23524. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23525. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  23526. if test $ac_delim_n = $ac_delim_num; then
  23527. break
  23528. elif $ac_last_try; then
  23529. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23530. else
  23531. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23532. fi
  23533. done
  23534. rm -f conf$$subs.sh
  23535. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23536. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  23537. _ACEOF
  23538. sed -n '
  23539. h
  23540. s/^/S["/; s/!.*/"]=/
  23541. p
  23542. g
  23543. s/^[^!]*!//
  23544. :repl
  23545. t repl
  23546. s/'"$ac_delim"'$//
  23547. t delim
  23548. :nl
  23549. h
  23550. s/\(.\{148\}\)..*/\1/
  23551. t more1
  23552. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  23553. p
  23554. n
  23555. b repl
  23556. :more1
  23557. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23558. p
  23559. g
  23560. s/.\{148\}//
  23561. t nl
  23562. :delim
  23563. h
  23564. s/\(.\{148\}\)..*/\1/
  23565. t more2
  23566. s/["\\]/\\&/g; s/^/"/; s/$/"/
  23567. p
  23568. b
  23569. :more2
  23570. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23571. p
  23572. g
  23573. s/.\{148\}//
  23574. t delim
  23575. ' <conf$$subs.awk | sed '
  23576. /^[^""]/{
  23577. N
  23578. s/\n//
  23579. }
  23580. ' >>$CONFIG_STATUS || ac_write_fail=1
  23581. rm -f conf$$subs.awk
  23582. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23583. _ACAWK
  23584. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  23585. for (key in S) S_is_set[key] = 1
  23586. FS = ""
  23587. }
  23588. {
  23589. line = $ 0
  23590. nfields = split(line, field, "@")
  23591. substed = 0
  23592. len = length(field[1])
  23593. for (i = 2; i < nfields; i++) {
  23594. key = field[i]
  23595. keylen = length(key)
  23596. if (S_is_set[key]) {
  23597. value = S[key]
  23598. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  23599. len += length(value) + length(field[++i])
  23600. substed = 1
  23601. } else
  23602. len += 1 + keylen
  23603. }
  23604. print line
  23605. }
  23606. _ACAWK
  23607. _ACEOF
  23608. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23609. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  23610. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  23611. else
  23612. cat
  23613. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  23614. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  23615. _ACEOF
  23616. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  23617. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  23618. # trailing colons and then remove the whole line if VPATH becomes empty
  23619. # (actually we leave an empty line to preserve line numbers).
  23620. if test "x$srcdir" = x.; then
  23621. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  23622. h
  23623. s///
  23624. s/^/:/
  23625. s/[ ]*$/:/
  23626. s/:\$(srcdir):/:/g
  23627. s/:\${srcdir}:/:/g
  23628. s/:@srcdir@:/:/g
  23629. s/^:*//
  23630. s/:*$//
  23631. x
  23632. s/\(=[ ]*\).*/\1/
  23633. G
  23634. s/\n//
  23635. s/^[^=]*=[ ]*$//
  23636. }'
  23637. fi
  23638. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23639. fi # test -n "$CONFIG_FILES"
  23640. # Set up the scripts for CONFIG_HEADERS section.
  23641. # No need to generate them if there are no CONFIG_HEADERS.
  23642. # This happens for instance with `./config.status Makefile'.
  23643. if test -n "$CONFIG_HEADERS"; then
  23644. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  23645. BEGIN {
  23646. _ACEOF
  23647. # Transform confdefs.h into an awk script `defines.awk', embedded as
  23648. # here-document in config.status, that substitutes the proper values into
  23649. # config.h.in to produce config.h.
  23650. # Create a delimiter string that does not exist in confdefs.h, to ease
  23651. # handling of long lines.
  23652. ac_delim='%!_!# '
  23653. for ac_last_try in false false :; do
  23654. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  23655. if test -z "$ac_tt"; then
  23656. break
  23657. elif $ac_last_try; then
  23658. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  23659. else
  23660. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23661. fi
  23662. done
  23663. # For the awk script, D is an array of macro values keyed by name,
  23664. # likewise P contains macro parameters if any. Preserve backslash
  23665. # newline sequences.
  23666. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  23667. sed -n '
  23668. s/.\{148\}/&'"$ac_delim"'/g
  23669. t rset
  23670. :rset
  23671. s/^[ ]*#[ ]*define[ ][ ]*/ /
  23672. t def
  23673. d
  23674. :def
  23675. s/\\$//
  23676. t bsnl
  23677. s/["\\]/\\&/g
  23678. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23679. D["\1"]=" \3"/p
  23680. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  23681. d
  23682. :bsnl
  23683. s/["\\]/\\&/g
  23684. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23685. D["\1"]=" \3\\\\\\n"\\/p
  23686. t cont
  23687. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  23688. t cont
  23689. d
  23690. :cont
  23691. n
  23692. s/.\{148\}/&'"$ac_delim"'/g
  23693. t clear
  23694. :clear
  23695. s/\\$//
  23696. t bsnlc
  23697. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  23698. d
  23699. :bsnlc
  23700. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  23701. b cont
  23702. ' <confdefs.h | sed '
  23703. s/'"$ac_delim"'/"\\\
  23704. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  23705. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23706. for (key in D) D_is_set[key] = 1
  23707. FS = ""
  23708. }
  23709. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  23710. line = \$ 0
  23711. split(line, arg, " ")
  23712. if (arg[1] == "#") {
  23713. defundef = arg[2]
  23714. mac1 = arg[3]
  23715. } else {
  23716. defundef = substr(arg[1], 2)
  23717. mac1 = arg[2]
  23718. }
  23719. split(mac1, mac2, "(") #)
  23720. macro = mac2[1]
  23721. prefix = substr(line, 1, index(line, defundef) - 1)
  23722. if (D_is_set[macro]) {
  23723. # Preserve the white space surrounding the "#".
  23724. print prefix "define", macro P[macro] D[macro]
  23725. next
  23726. } else {
  23727. # Replace #undef with comments. This is necessary, for example,
  23728. # in the case of _POSIX_SOURCE, which is predefined and required
  23729. # on some systems where configure will not decide to define it.
  23730. if (defundef == "undef") {
  23731. print "/*", prefix defundef, macro, "*/"
  23732. next
  23733. }
  23734. }
  23735. }
  23736. { print }
  23737. _ACAWK
  23738. _ACEOF
  23739. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23740. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  23741. fi # test -n "$CONFIG_HEADERS"
  23742. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  23743. shift
  23744. for ac_tag
  23745. do
  23746. case $ac_tag in
  23747. :[FHLC]) ac_mode=$ac_tag; continue;;
  23748. esac
  23749. case $ac_mode$ac_tag in
  23750. :[FHL]*:*);;
  23751. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  23752. :[FH]-) ac_tag=-:-;;
  23753. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  23754. esac
  23755. ac_save_IFS=$IFS
  23756. IFS=:
  23757. set x $ac_tag
  23758. IFS=$ac_save_IFS
  23759. shift
  23760. ac_file=$1
  23761. shift
  23762. case $ac_mode in
  23763. :L) ac_source=$1;;
  23764. :[FH])
  23765. ac_file_inputs=
  23766. for ac_f
  23767. do
  23768. case $ac_f in
  23769. -) ac_f="$ac_tmp/stdin";;
  23770. *) # Look for the file first in the build tree, then in the source tree
  23771. # (if the path is not absolute). The absolute path cannot be DOS-style,
  23772. # because $ac_f cannot contain `:'.
  23773. test -f "$ac_f" ||
  23774. case $ac_f in
  23775. [\\/$]*) false;;
  23776. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  23777. esac ||
  23778. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  23779. esac
  23780. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  23781. as_fn_append ac_file_inputs " '$ac_f'"
  23782. done
  23783. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23784. # use $as_me), people would be surprised to read:
  23785. # /* config.h. Generated by config.status. */
  23786. configure_input='Generated from '`
  23787. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  23788. `' by configure.'
  23789. if test x"$ac_file" != x-; then
  23790. configure_input="$ac_file. $configure_input"
  23791. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  23792. $as_echo "$as_me: creating $ac_file" >&6;}
  23793. fi
  23794. # Neutralize special characters interpreted by sed in replacement strings.
  23795. case $configure_input in #(
  23796. *\&* | *\|* | *\\* )
  23797. ac_sed_conf_input=`$as_echo "$configure_input" |
  23798. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  23799. *) ac_sed_conf_input=$configure_input;;
  23800. esac
  23801. case $ac_tag in
  23802. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  23803. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  23804. esac
  23805. ;;
  23806. esac
  23807. ac_dir=`$as_dirname -- "$ac_file" ||
  23808. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23809. X"$ac_file" : 'X\(//\)[^/]' \| \
  23810. X"$ac_file" : 'X\(//\)$' \| \
  23811. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  23812. $as_echo X"$ac_file" |
  23813. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23814. s//\1/
  23815. q
  23816. }
  23817. /^X\(\/\/\)[^/].*/{
  23818. s//\1/
  23819. q
  23820. }
  23821. /^X\(\/\/\)$/{
  23822. s//\1/
  23823. q
  23824. }
  23825. /^X\(\/\).*/{
  23826. s//\1/
  23827. q
  23828. }
  23829. s/.*/./; q'`
  23830. as_dir="$ac_dir"; as_fn_mkdir_p
  23831. ac_builddir=.
  23832. case "$ac_dir" in
  23833. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23834. *)
  23835. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  23836. # A ".." for each directory in $ac_dir_suffix.
  23837. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  23838. case $ac_top_builddir_sub in
  23839. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23840. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  23841. esac ;;
  23842. esac
  23843. ac_abs_top_builddir=$ac_pwd
  23844. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  23845. # for backward compatibility:
  23846. ac_top_builddir=$ac_top_build_prefix
  23847. case $srcdir in
  23848. .) # We are building in place.
  23849. ac_srcdir=.
  23850. ac_top_srcdir=$ac_top_builddir_sub
  23851. ac_abs_top_srcdir=$ac_pwd ;;
  23852. [\\/]* | ?:[\\/]* ) # Absolute name.
  23853. ac_srcdir=$srcdir$ac_dir_suffix;
  23854. ac_top_srcdir=$srcdir
  23855. ac_abs_top_srcdir=$srcdir ;;
  23856. *) # Relative name.
  23857. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  23858. ac_top_srcdir=$ac_top_build_prefix$srcdir
  23859. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  23860. esac
  23861. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  23862. case $ac_mode in
  23863. :F)
  23864. #
  23865. # CONFIG_FILE
  23866. #
  23867. case $INSTALL in
  23868. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  23869. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  23870. esac
  23871. _ACEOF
  23872. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23873. # If the template does not know about datarootdir, expand it.
  23874. # FIXME: This hack should be removed a few years after 2.60.
  23875. ac_datarootdir_hack=; ac_datarootdir_seen=
  23876. ac_sed_dataroot='
  23877. /datarootdir/ {
  23878. p
  23879. q
  23880. }
  23881. /@datadir@/p
  23882. /@docdir@/p
  23883. /@infodir@/p
  23884. /@localedir@/p
  23885. /@mandir@/p'
  23886. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  23887. *datarootdir*) ac_datarootdir_seen=yes;;
  23888. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  23889. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  23890. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  23891. _ACEOF
  23892. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23893. ac_datarootdir_hack='
  23894. s&@datadir@&$datadir&g
  23895. s&@docdir@&$docdir&g
  23896. s&@infodir@&$infodir&g
  23897. s&@localedir@&$localedir&g
  23898. s&@mandir@&$mandir&g
  23899. s&\\\${datarootdir}&$datarootdir&g' ;;
  23900. esac
  23901. _ACEOF
  23902. # Neutralize VPATH when `$srcdir' = `.'.
  23903. # Shell code in configure.ac might set extrasub.
  23904. # FIXME: do we really want to maintain this feature?
  23905. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23906. ac_sed_extra="$ac_vpsub
  23907. $extrasub
  23908. _ACEOF
  23909. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23910. :t
  23911. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  23912. s|@configure_input@|$ac_sed_conf_input|;t t
  23913. s&@top_builddir@&$ac_top_builddir_sub&;t t
  23914. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  23915. s&@srcdir@&$ac_srcdir&;t t
  23916. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  23917. s&@top_srcdir@&$ac_top_srcdir&;t t
  23918. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  23919. s&@builddir@&$ac_builddir&;t t
  23920. s&@abs_builddir@&$ac_abs_builddir&;t t
  23921. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  23922. s&@INSTALL@&$ac_INSTALL&;t t
  23923. $ac_datarootdir_hack
  23924. "
  23925. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  23926. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23927. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  23928. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  23929. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  23930. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  23931. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23932. which seems to be undefined. Please make sure it is defined" >&5
  23933. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23934. which seems to be undefined. Please make sure it is defined" >&2;}
  23935. rm -f "$ac_tmp/stdin"
  23936. case $ac_file in
  23937. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  23938. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  23939. esac \
  23940. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23941. ;;
  23942. :H)
  23943. #
  23944. # CONFIG_HEADER
  23945. #
  23946. if test x"$ac_file" != x-; then
  23947. {
  23948. $as_echo "/* $configure_input */" \
  23949. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  23950. } >"$ac_tmp/config.h" \
  23951. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23952. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  23953. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  23954. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  23955. else
  23956. rm -f "$ac_file"
  23957. mv "$ac_tmp/config.h" "$ac_file" \
  23958. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23959. fi
  23960. else
  23961. $as_echo "/* $configure_input */" \
  23962. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  23963. || as_fn_error $? "could not create -" "$LINENO" 5
  23964. fi
  23965. ;;
  23966. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  23967. $as_echo "$as_me: executing $ac_file commands" >&6;}
  23968. ;;
  23969. esac
  23970. case $ac_file$ac_mode in
  23971. "libtool":C)
  23972. # See if we are running on zsh, and set the options which allow our
  23973. # commands through without removal of \ escapes.
  23974. if test -n "${ZSH_VERSION+set}" ; then
  23975. setopt NO_GLOB_SUBST
  23976. fi
  23977. cfgfile="${ofile}T"
  23978. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  23979. $RM "$cfgfile"
  23980. cat <<_LT_EOF >> "$cfgfile"
  23981. #! $SHELL
  23982. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  23983. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  23984. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  23985. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  23986. #
  23987. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  23988. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  23989. # Foundation, Inc.
  23990. # Written by Gordon Matzigkeit, 1996
  23991. #
  23992. # This file is part of GNU Libtool.
  23993. #
  23994. # GNU Libtool is free software; you can redistribute it and/or
  23995. # modify it under the terms of the GNU General Public License as
  23996. # published by the Free Software Foundation; either version 2 of
  23997. # the License, or (at your option) any later version.
  23998. #
  23999. # As a special exception to the GNU General Public License,
  24000. # if you distribute this file as part of a program or library that
  24001. # is built using GNU Libtool, you may include this file under the
  24002. # same distribution terms that you use for the rest of that program.
  24003. #
  24004. # GNU Libtool is distributed in the hope that it will be useful,
  24005. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  24006. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24007. # GNU General Public License for more details.
  24008. #
  24009. # You should have received a copy of the GNU General Public License
  24010. # along with GNU Libtool; see the file COPYING. If not, a copy
  24011. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  24012. # obtained by writing to the Free Software Foundation, Inc.,
  24013. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  24014. # The names of the tagged configurations supported by this script.
  24015. available_tags="RC CXX "
  24016. # ### BEGIN LIBTOOL CONFIG
  24017. # Which release of libtool.m4 was used?
  24018. macro_version=$macro_version
  24019. macro_revision=$macro_revision
  24020. # Assembler program.
  24021. AS=$lt_AS
  24022. # DLL creation program.
  24023. DLLTOOL=$lt_DLLTOOL
  24024. # Object dumper program.
  24025. OBJDUMP=$lt_OBJDUMP
  24026. # Whether or not to build shared libraries.
  24027. build_libtool_libs=$enable_shared
  24028. # Whether or not to build static libraries.
  24029. build_old_libs=$enable_static
  24030. # What type of objects to build.
  24031. pic_mode=$pic_mode
  24032. # Whether or not to optimize for fast installation.
  24033. fast_install=$enable_fast_install
  24034. # Shell to use when invoking shell scripts.
  24035. SHELL=$lt_SHELL
  24036. # An echo program that protects backslashes.
  24037. ECHO=$lt_ECHO
  24038. # The PATH separator for the build system.
  24039. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  24040. # The host system.
  24041. host_alias=$host_alias
  24042. host=$host
  24043. host_os=$host_os
  24044. # The build system.
  24045. build_alias=$build_alias
  24046. build=$build
  24047. build_os=$build_os
  24048. # A sed program that does not truncate output.
  24049. SED=$lt_SED
  24050. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  24051. Xsed="\$SED -e 1s/^X//"
  24052. # A grep program that handles long lines.
  24053. GREP=$lt_GREP
  24054. # An ERE matcher.
  24055. EGREP=$lt_EGREP
  24056. # A literal string matcher.
  24057. FGREP=$lt_FGREP
  24058. # A BSD- or MS-compatible name lister.
  24059. NM=$lt_NM
  24060. # Whether we need soft or hard links.
  24061. LN_S=$lt_LN_S
  24062. # What is the maximum length of a command?
  24063. max_cmd_len=$max_cmd_len
  24064. # Object file suffix (normally "o").
  24065. objext=$ac_objext
  24066. # Executable file suffix (normally "").
  24067. exeext=$exeext
  24068. # whether the shell understands "unset".
  24069. lt_unset=$lt_unset
  24070. # turn spaces into newlines.
  24071. SP2NL=$lt_lt_SP2NL
  24072. # turn newlines into spaces.
  24073. NL2SP=$lt_lt_NL2SP
  24074. # convert \$build file names to \$host format.
  24075. to_host_file_cmd=$lt_cv_to_host_file_cmd
  24076. # convert \$build files to toolchain format.
  24077. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  24078. # Method to check whether dependent libraries are shared objects.
  24079. deplibs_check_method=$lt_deplibs_check_method
  24080. # Command to use when deplibs_check_method = "file_magic".
  24081. file_magic_cmd=$lt_file_magic_cmd
  24082. # How to find potential files when deplibs_check_method = "file_magic".
  24083. file_magic_glob=$lt_file_magic_glob
  24084. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  24085. want_nocaseglob=$lt_want_nocaseglob
  24086. # Command to associate shared and link libraries.
  24087. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  24088. # The archiver.
  24089. AR=$lt_AR
  24090. # Flags to create an archive.
  24091. AR_FLAGS=$lt_AR_FLAGS
  24092. # How to feed a file listing to the archiver.
  24093. archiver_list_spec=$lt_archiver_list_spec
  24094. # A symbol stripping program.
  24095. STRIP=$lt_STRIP
  24096. # Commands used to install an old-style archive.
  24097. RANLIB=$lt_RANLIB
  24098. old_postinstall_cmds=$lt_old_postinstall_cmds
  24099. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  24100. # Whether to use a lock for old archive extraction.
  24101. lock_old_archive_extraction=$lock_old_archive_extraction
  24102. # A C compiler.
  24103. LTCC=$lt_CC
  24104. # LTCC compiler flags.
  24105. LTCFLAGS=$lt_CFLAGS
  24106. # Take the output of nm and produce a listing of raw symbols and C names.
  24107. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  24108. # Transform the output of nm in a proper C declaration.
  24109. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  24110. # Transform the output of nm in a C name address pair.
  24111. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  24112. # Transform the output of nm in a C name address pair when lib prefix is needed.
  24113. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  24114. # Specify filename containing input files for \$NM.
  24115. nm_file_list_spec=$lt_nm_file_list_spec
  24116. # The root where to search for dependent libraries,and in which our libraries should be installed.
  24117. lt_sysroot=$lt_sysroot
  24118. # The name of the directory that contains temporary libtool files.
  24119. objdir=$objdir
  24120. # Used to examine libraries when file_magic_cmd begins with "file".
  24121. MAGIC_CMD=$MAGIC_CMD
  24122. # Must we lock files when doing compilation?
  24123. need_locks=$lt_need_locks
  24124. # Manifest tool.
  24125. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  24126. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  24127. DSYMUTIL=$lt_DSYMUTIL
  24128. # Tool to change global to local symbols on Mac OS X.
  24129. NMEDIT=$lt_NMEDIT
  24130. # Tool to manipulate fat objects and archives on Mac OS X.
  24131. LIPO=$lt_LIPO
  24132. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  24133. OTOOL=$lt_OTOOL
  24134. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  24135. OTOOL64=$lt_OTOOL64
  24136. # Old archive suffix (normally "a").
  24137. libext=$libext
  24138. # Shared library suffix (normally ".so").
  24139. shrext_cmds=$lt_shrext_cmds
  24140. # The commands to extract the exported symbol list from a shared archive.
  24141. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  24142. # Variables whose values should be saved in libtool wrapper scripts and
  24143. # restored at link time.
  24144. variables_saved_for_relink=$lt_variables_saved_for_relink
  24145. # Do we need the "lib" prefix for modules?
  24146. need_lib_prefix=$need_lib_prefix
  24147. # Do we need a version for libraries?
  24148. need_version=$need_version
  24149. # Library versioning type.
  24150. version_type=$version_type
  24151. # Shared library runtime path variable.
  24152. runpath_var=$runpath_var
  24153. # Shared library path variable.
  24154. shlibpath_var=$shlibpath_var
  24155. # Is shlibpath searched before the hard-coded library search path?
  24156. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  24157. # Format of library name prefix.
  24158. libname_spec=$lt_libname_spec
  24159. # List of archive names. First name is the real one, the rest are links.
  24160. # The last name is the one that the linker finds with -lNAME
  24161. library_names_spec=$lt_library_names_spec
  24162. # The coded name of the library, if different from the real name.
  24163. soname_spec=$lt_soname_spec
  24164. # Permission mode override for installation of shared libraries.
  24165. install_override_mode=$lt_install_override_mode
  24166. # Command to use after installation of a shared archive.
  24167. postinstall_cmds=$lt_postinstall_cmds
  24168. # Command to use after uninstallation of a shared archive.
  24169. postuninstall_cmds=$lt_postuninstall_cmds
  24170. # Commands used to finish a libtool library installation in a directory.
  24171. finish_cmds=$lt_finish_cmds
  24172. # As "finish_cmds", except a single script fragment to be evaled but
  24173. # not shown.
  24174. finish_eval=$lt_finish_eval
  24175. # Whether we should hardcode library paths into libraries.
  24176. hardcode_into_libs=$hardcode_into_libs
  24177. # Compile-time system search path for libraries.
  24178. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  24179. # Run-time system search path for libraries.
  24180. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  24181. # Whether dlopen is supported.
  24182. dlopen_support=$enable_dlopen
  24183. # Whether dlopen of programs is supported.
  24184. dlopen_self=$enable_dlopen_self
  24185. # Whether dlopen of statically linked programs is supported.
  24186. dlopen_self_static=$enable_dlopen_self_static
  24187. # Commands to strip libraries.
  24188. old_striplib=$lt_old_striplib
  24189. striplib=$lt_striplib
  24190. # The linker used to build libraries.
  24191. LD=$lt_LD
  24192. # How to create reloadable object files.
  24193. reload_flag=$lt_reload_flag
  24194. reload_cmds=$lt_reload_cmds
  24195. # Commands used to build an old-style archive.
  24196. old_archive_cmds=$lt_old_archive_cmds
  24197. # A language specific compiler.
  24198. CC=$lt_compiler
  24199. # Is the compiler the GNU compiler?
  24200. with_gcc=$GCC
  24201. # Compiler flag to turn off builtin functions.
  24202. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  24203. # Additional compiler flags for building library objects.
  24204. pic_flag=$lt_lt_prog_compiler_pic
  24205. # How to pass a linker flag through the compiler.
  24206. wl=$lt_lt_prog_compiler_wl
  24207. # Compiler flag to prevent dynamic linking.
  24208. link_static_flag=$lt_lt_prog_compiler_static
  24209. # Does compiler simultaneously support -c and -o options?
  24210. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  24211. # Whether or not to add -lc for building shared libraries.
  24212. build_libtool_need_lc=$archive_cmds_need_lc
  24213. # Whether or not to disallow shared libs when runtime libs are static.
  24214. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  24215. # Compiler flag to allow reflexive dlopens.
  24216. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  24217. # Compiler flag to generate shared objects directly from archives.
  24218. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  24219. # Whether the compiler copes with passing no objects directly.
  24220. compiler_needs_object=$lt_compiler_needs_object
  24221. # Create an old-style archive from a shared archive.
  24222. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  24223. # Create a temporary old-style archive to link instead of a shared archive.
  24224. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  24225. # Commands used to build a shared archive.
  24226. archive_cmds=$lt_archive_cmds
  24227. archive_expsym_cmds=$lt_archive_expsym_cmds
  24228. # Commands used to build a loadable module if different from building
  24229. # a shared archive.
  24230. module_cmds=$lt_module_cmds
  24231. module_expsym_cmds=$lt_module_expsym_cmds
  24232. # Whether we are building with GNU ld or not.
  24233. with_gnu_ld=$lt_with_gnu_ld
  24234. # Flag that allows shared libraries with undefined symbols to be built.
  24235. allow_undefined_flag=$lt_allow_undefined_flag
  24236. # Flag that enforces no undefined symbols.
  24237. no_undefined_flag=$lt_no_undefined_flag
  24238. # Flag to hardcode \$libdir into a binary during linking.
  24239. # This must work even if \$libdir does not exist
  24240. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  24241. # Whether we need a single "-rpath" flag with a separated argument.
  24242. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  24243. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24244. # DIR into the resulting binary.
  24245. hardcode_direct=$hardcode_direct
  24246. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24247. # DIR into the resulting binary and the resulting library dependency is
  24248. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24249. # library is relocated.
  24250. hardcode_direct_absolute=$hardcode_direct_absolute
  24251. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24252. # into the resulting binary.
  24253. hardcode_minus_L=$hardcode_minus_L
  24254. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24255. # into the resulting binary.
  24256. hardcode_shlibpath_var=$hardcode_shlibpath_var
  24257. # Set to "yes" if building a shared library automatically hardcodes DIR
  24258. # into the library and all subsequent libraries and executables linked
  24259. # against it.
  24260. hardcode_automatic=$hardcode_automatic
  24261. # Set to yes if linker adds runtime paths of dependent libraries
  24262. # to runtime path list.
  24263. inherit_rpath=$inherit_rpath
  24264. # Whether libtool must link a program against all its dependency libraries.
  24265. link_all_deplibs=$link_all_deplibs
  24266. # Set to "yes" if exported symbols are required.
  24267. always_export_symbols=$always_export_symbols
  24268. # The commands to list exported symbols.
  24269. export_symbols_cmds=$lt_export_symbols_cmds
  24270. # Symbols that should not be listed in the preloaded symbols.
  24271. exclude_expsyms=$lt_exclude_expsyms
  24272. # Symbols that must always be exported.
  24273. include_expsyms=$lt_include_expsyms
  24274. # Commands necessary for linking programs (against libraries) with templates.
  24275. prelink_cmds=$lt_prelink_cmds
  24276. # Commands necessary for finishing linking programs.
  24277. postlink_cmds=$lt_postlink_cmds
  24278. # Specify filename containing input files.
  24279. file_list_spec=$lt_file_list_spec
  24280. # How to hardcode a shared library path into an executable.
  24281. hardcode_action=$hardcode_action
  24282. # The directories searched by this compiler when creating a shared library.
  24283. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  24284. # Dependencies to place before and after the objects being linked to
  24285. # create a shared library.
  24286. predep_objects=$lt_predep_objects
  24287. postdep_objects=$lt_postdep_objects
  24288. predeps=$lt_predeps
  24289. postdeps=$lt_postdeps
  24290. # The library search path used internally by the compiler when linking
  24291. # a shared library.
  24292. compiler_lib_search_path=$lt_compiler_lib_search_path
  24293. # ### END LIBTOOL CONFIG
  24294. _LT_EOF
  24295. case $host_os in
  24296. aix3*)
  24297. cat <<\_LT_EOF >> "$cfgfile"
  24298. # AIX sometimes has problems with the GCC collect2 program. For some
  24299. # reason, if we set the COLLECT_NAMES environment variable, the problems
  24300. # vanish in a puff of smoke.
  24301. if test "X${COLLECT_NAMES+set}" != Xset; then
  24302. COLLECT_NAMES=
  24303. export COLLECT_NAMES
  24304. fi
  24305. _LT_EOF
  24306. ;;
  24307. esac
  24308. ltmain="$ac_aux_dir/ltmain.sh"
  24309. # We use sed instead of cat because bash on DJGPP gets confused if
  24310. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  24311. # text mode, it properly converts lines to CR/LF. This bash problem
  24312. # is reportedly fixed, but why not run on old versions too?
  24313. sed '$q' "$ltmain" >> "$cfgfile" \
  24314. || (rm -f "$cfgfile"; exit 1)
  24315. if test x"$xsi_shell" = xyes; then
  24316. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  24317. func_dirname ()\
  24318. {\
  24319. \ case ${1} in\
  24320. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  24321. \ * ) func_dirname_result="${3}" ;;\
  24322. \ esac\
  24323. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  24324. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24325. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24326. test 0 -eq $? || _lt_function_replace_fail=:
  24327. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  24328. func_basename ()\
  24329. {\
  24330. \ func_basename_result="${1##*/}"\
  24331. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  24332. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24333. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24334. test 0 -eq $? || _lt_function_replace_fail=:
  24335. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  24336. func_dirname_and_basename ()\
  24337. {\
  24338. \ case ${1} in\
  24339. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  24340. \ * ) func_dirname_result="${3}" ;;\
  24341. \ esac\
  24342. \ func_basename_result="${1##*/}"\
  24343. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  24344. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24345. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24346. test 0 -eq $? || _lt_function_replace_fail=:
  24347. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  24348. func_stripname ()\
  24349. {\
  24350. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  24351. \ # positional parameters, so assign one to ordinary parameter first.\
  24352. \ func_stripname_result=${3}\
  24353. \ func_stripname_result=${func_stripname_result#"${1}"}\
  24354. \ func_stripname_result=${func_stripname_result%"${2}"}\
  24355. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  24356. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24357. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24358. test 0 -eq $? || _lt_function_replace_fail=:
  24359. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  24360. func_split_long_opt ()\
  24361. {\
  24362. \ func_split_long_opt_name=${1%%=*}\
  24363. \ func_split_long_opt_arg=${1#*=}\
  24364. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  24365. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24366. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24367. test 0 -eq $? || _lt_function_replace_fail=:
  24368. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  24369. func_split_short_opt ()\
  24370. {\
  24371. \ func_split_short_opt_arg=${1#??}\
  24372. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  24373. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  24374. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24375. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24376. test 0 -eq $? || _lt_function_replace_fail=:
  24377. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  24378. func_lo2o ()\
  24379. {\
  24380. \ case ${1} in\
  24381. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  24382. \ *) func_lo2o_result=${1} ;;\
  24383. \ esac\
  24384. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  24385. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24386. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24387. test 0 -eq $? || _lt_function_replace_fail=:
  24388. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  24389. func_xform ()\
  24390. {\
  24391. func_xform_result=${1%.*}.lo\
  24392. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  24393. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24394. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24395. test 0 -eq $? || _lt_function_replace_fail=:
  24396. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  24397. func_arith ()\
  24398. {\
  24399. func_arith_result=$(( $* ))\
  24400. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  24401. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24402. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24403. test 0 -eq $? || _lt_function_replace_fail=:
  24404. sed -e '/^func_len ()$/,/^} # func_len /c\
  24405. func_len ()\
  24406. {\
  24407. func_len_result=${#1}\
  24408. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  24409. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24410. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24411. test 0 -eq $? || _lt_function_replace_fail=:
  24412. fi
  24413. if test x"$lt_shell_append" = xyes; then
  24414. sed -e '/^func_append ()$/,/^} # func_append /c\
  24415. func_append ()\
  24416. {\
  24417. eval "${1}+=\\${2}"\
  24418. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  24419. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24420. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24421. test 0 -eq $? || _lt_function_replace_fail=:
  24422. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  24423. func_append_quoted ()\
  24424. {\
  24425. \ func_quote_for_eval "${2}"\
  24426. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  24427. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  24428. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24429. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24430. test 0 -eq $? || _lt_function_replace_fail=:
  24431. # Save a `func_append' function call where possible by direct use of '+='
  24432. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  24433. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24434. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24435. test 0 -eq $? || _lt_function_replace_fail=:
  24436. else
  24437. # Save a `func_append' function call even when '+=' is not available
  24438. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  24439. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24440. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24441. test 0 -eq $? || _lt_function_replace_fail=:
  24442. fi
  24443. if test x"$_lt_function_replace_fail" = x":"; then
  24444. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  24445. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  24446. fi
  24447. mv -f "$cfgfile" "$ofile" ||
  24448. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  24449. chmod +x "$ofile"
  24450. cat <<_LT_EOF >> "$ofile"
  24451. # ### BEGIN LIBTOOL TAG CONFIG: RC
  24452. # The linker used to build libraries.
  24453. LD=$lt_LD_RC
  24454. # How to create reloadable object files.
  24455. reload_flag=$lt_reload_flag_RC
  24456. reload_cmds=$lt_reload_cmds_RC
  24457. # Commands used to build an old-style archive.
  24458. old_archive_cmds=$lt_old_archive_cmds_RC
  24459. # A language specific compiler.
  24460. CC=$lt_compiler_RC
  24461. # Is the compiler the GNU compiler?
  24462. with_gcc=$GCC_RC
  24463. # Compiler flag to turn off builtin functions.
  24464. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  24465. # Additional compiler flags for building library objects.
  24466. pic_flag=$lt_lt_prog_compiler_pic_RC
  24467. # How to pass a linker flag through the compiler.
  24468. wl=$lt_lt_prog_compiler_wl_RC
  24469. # Compiler flag to prevent dynamic linking.
  24470. link_static_flag=$lt_lt_prog_compiler_static_RC
  24471. # Does compiler simultaneously support -c and -o options?
  24472. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  24473. # Whether or not to add -lc for building shared libraries.
  24474. build_libtool_need_lc=$archive_cmds_need_lc_RC
  24475. # Whether or not to disallow shared libs when runtime libs are static.
  24476. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  24477. # Compiler flag to allow reflexive dlopens.
  24478. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  24479. # Compiler flag to generate shared objects directly from archives.
  24480. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  24481. # Whether the compiler copes with passing no objects directly.
  24482. compiler_needs_object=$lt_compiler_needs_object_RC
  24483. # Create an old-style archive from a shared archive.
  24484. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  24485. # Create a temporary old-style archive to link instead of a shared archive.
  24486. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  24487. # Commands used to build a shared archive.
  24488. archive_cmds=$lt_archive_cmds_RC
  24489. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  24490. # Commands used to build a loadable module if different from building
  24491. # a shared archive.
  24492. module_cmds=$lt_module_cmds_RC
  24493. module_expsym_cmds=$lt_module_expsym_cmds_RC
  24494. # Whether we are building with GNU ld or not.
  24495. with_gnu_ld=$lt_with_gnu_ld_RC
  24496. # Flag that allows shared libraries with undefined symbols to be built.
  24497. allow_undefined_flag=$lt_allow_undefined_flag_RC
  24498. # Flag that enforces no undefined symbols.
  24499. no_undefined_flag=$lt_no_undefined_flag_RC
  24500. # Flag to hardcode \$libdir into a binary during linking.
  24501. # This must work even if \$libdir does not exist
  24502. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  24503. # Whether we need a single "-rpath" flag with a separated argument.
  24504. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  24505. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24506. # DIR into the resulting binary.
  24507. hardcode_direct=$hardcode_direct_RC
  24508. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24509. # DIR into the resulting binary and the resulting library dependency is
  24510. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24511. # library is relocated.
  24512. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  24513. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24514. # into the resulting binary.
  24515. hardcode_minus_L=$hardcode_minus_L_RC
  24516. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24517. # into the resulting binary.
  24518. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  24519. # Set to "yes" if building a shared library automatically hardcodes DIR
  24520. # into the library and all subsequent libraries and executables linked
  24521. # against it.
  24522. hardcode_automatic=$hardcode_automatic_RC
  24523. # Set to yes if linker adds runtime paths of dependent libraries
  24524. # to runtime path list.
  24525. inherit_rpath=$inherit_rpath_RC
  24526. # Whether libtool must link a program against all its dependency libraries.
  24527. link_all_deplibs=$link_all_deplibs_RC
  24528. # Set to "yes" if exported symbols are required.
  24529. always_export_symbols=$always_export_symbols_RC
  24530. # The commands to list exported symbols.
  24531. export_symbols_cmds=$lt_export_symbols_cmds_RC
  24532. # Symbols that should not be listed in the preloaded symbols.
  24533. exclude_expsyms=$lt_exclude_expsyms_RC
  24534. # Symbols that must always be exported.
  24535. include_expsyms=$lt_include_expsyms_RC
  24536. # Commands necessary for linking programs (against libraries) with templates.
  24537. prelink_cmds=$lt_prelink_cmds_RC
  24538. # Commands necessary for finishing linking programs.
  24539. postlink_cmds=$lt_postlink_cmds_RC
  24540. # Specify filename containing input files.
  24541. file_list_spec=$lt_file_list_spec_RC
  24542. # How to hardcode a shared library path into an executable.
  24543. hardcode_action=$hardcode_action_RC
  24544. # The directories searched by this compiler when creating a shared library.
  24545. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  24546. # Dependencies to place before and after the objects being linked to
  24547. # create a shared library.
  24548. predep_objects=$lt_predep_objects_RC
  24549. postdep_objects=$lt_postdep_objects_RC
  24550. predeps=$lt_predeps_RC
  24551. postdeps=$lt_postdeps_RC
  24552. # The library search path used internally by the compiler when linking
  24553. # a shared library.
  24554. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  24555. # ### END LIBTOOL TAG CONFIG: RC
  24556. _LT_EOF
  24557. cat <<_LT_EOF >> "$ofile"
  24558. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  24559. # The linker used to build libraries.
  24560. LD=$lt_LD_CXX
  24561. # How to create reloadable object files.
  24562. reload_flag=$lt_reload_flag_CXX
  24563. reload_cmds=$lt_reload_cmds_CXX
  24564. # Commands used to build an old-style archive.
  24565. old_archive_cmds=$lt_old_archive_cmds_CXX
  24566. # A language specific compiler.
  24567. CC=$lt_compiler_CXX
  24568. # Is the compiler the GNU compiler?
  24569. with_gcc=$GCC_CXX
  24570. # Compiler flag to turn off builtin functions.
  24571. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  24572. # Additional compiler flags for building library objects.
  24573. pic_flag=$lt_lt_prog_compiler_pic_CXX
  24574. # How to pass a linker flag through the compiler.
  24575. wl=$lt_lt_prog_compiler_wl_CXX
  24576. # Compiler flag to prevent dynamic linking.
  24577. link_static_flag=$lt_lt_prog_compiler_static_CXX
  24578. # Does compiler simultaneously support -c and -o options?
  24579. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  24580. # Whether or not to add -lc for building shared libraries.
  24581. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  24582. # Whether or not to disallow shared libs when runtime libs are static.
  24583. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  24584. # Compiler flag to allow reflexive dlopens.
  24585. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  24586. # Compiler flag to generate shared objects directly from archives.
  24587. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  24588. # Whether the compiler copes with passing no objects directly.
  24589. compiler_needs_object=$lt_compiler_needs_object_CXX
  24590. # Create an old-style archive from a shared archive.
  24591. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  24592. # Create a temporary old-style archive to link instead of a shared archive.
  24593. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  24594. # Commands used to build a shared archive.
  24595. archive_cmds=$lt_archive_cmds_CXX
  24596. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  24597. # Commands used to build a loadable module if different from building
  24598. # a shared archive.
  24599. module_cmds=$lt_module_cmds_CXX
  24600. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  24601. # Whether we are building with GNU ld or not.
  24602. with_gnu_ld=$lt_with_gnu_ld_CXX
  24603. # Flag that allows shared libraries with undefined symbols to be built.
  24604. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  24605. # Flag that enforces no undefined symbols.
  24606. no_undefined_flag=$lt_no_undefined_flag_CXX
  24607. # Flag to hardcode \$libdir into a binary during linking.
  24608. # This must work even if \$libdir does not exist
  24609. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  24610. # Whether we need a single "-rpath" flag with a separated argument.
  24611. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  24612. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24613. # DIR into the resulting binary.
  24614. hardcode_direct=$hardcode_direct_CXX
  24615. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24616. # DIR into the resulting binary and the resulting library dependency is
  24617. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24618. # library is relocated.
  24619. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  24620. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24621. # into the resulting binary.
  24622. hardcode_minus_L=$hardcode_minus_L_CXX
  24623. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24624. # into the resulting binary.
  24625. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  24626. # Set to "yes" if building a shared library automatically hardcodes DIR
  24627. # into the library and all subsequent libraries and executables linked
  24628. # against it.
  24629. hardcode_automatic=$hardcode_automatic_CXX
  24630. # Set to yes if linker adds runtime paths of dependent libraries
  24631. # to runtime path list.
  24632. inherit_rpath=$inherit_rpath_CXX
  24633. # Whether libtool must link a program against all its dependency libraries.
  24634. link_all_deplibs=$link_all_deplibs_CXX
  24635. # Set to "yes" if exported symbols are required.
  24636. always_export_symbols=$always_export_symbols_CXX
  24637. # The commands to list exported symbols.
  24638. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  24639. # Symbols that should not be listed in the preloaded symbols.
  24640. exclude_expsyms=$lt_exclude_expsyms_CXX
  24641. # Symbols that must always be exported.
  24642. include_expsyms=$lt_include_expsyms_CXX
  24643. # Commands necessary for linking programs (against libraries) with templates.
  24644. prelink_cmds=$lt_prelink_cmds_CXX
  24645. # Commands necessary for finishing linking programs.
  24646. postlink_cmds=$lt_postlink_cmds_CXX
  24647. # Specify filename containing input files.
  24648. file_list_spec=$lt_file_list_spec_CXX
  24649. # How to hardcode a shared library path into an executable.
  24650. hardcode_action=$hardcode_action_CXX
  24651. # The directories searched by this compiler when creating a shared library.
  24652. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  24653. # Dependencies to place before and after the objects being linked to
  24654. # create a shared library.
  24655. predep_objects=$lt_predep_objects_CXX
  24656. postdep_objects=$lt_postdep_objects_CXX
  24657. predeps=$lt_predeps_CXX
  24658. postdeps=$lt_postdeps_CXX
  24659. # The library search path used internally by the compiler when linking
  24660. # a shared library.
  24661. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  24662. # ### END LIBTOOL TAG CONFIG: CXX
  24663. _LT_EOF
  24664. ;;
  24665. "sdl2_config":C) chmod a+x sdl2-config ;;
  24666. "summary":C) printf "$SUMMARY" ;;
  24667. esac
  24668. done # for ac_tag
  24669. as_fn_exit 0
  24670. _ACEOF
  24671. ac_clean_files=$ac_clean_files_save
  24672. test $ac_write_fail = 0 ||
  24673. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  24674. # configure is writing to config.log, and then calls config.status.
  24675. # config.status does its own redirection, appending to config.log.
  24676. # Unfortunately, on DOS this fails, as config.log is still kept open
  24677. # by configure, so config.status won't be able to write to it; its
  24678. # output is simply discarded. So we exec the FD to /dev/null,
  24679. # effectively closing config.log, so it can be properly (re)opened and
  24680. # appended to by config.status. When coming back to configure, we
  24681. # need to make the FD available again.
  24682. if test "$no_create" != yes; then
  24683. ac_cs_success=:
  24684. ac_config_status_args=
  24685. test "$silent" = yes &&
  24686. ac_config_status_args="$ac_config_status_args --quiet"
  24687. exec 5>/dev/null
  24688. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  24689. exec 5>>config.log
  24690. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  24691. # would make configure fail if this is the last instruction.
  24692. $ac_cs_success || as_fn_exit 1
  24693. fi
  24694. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  24695. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  24696. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  24697. fi